maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Android (https://talk.maemo.org/forumdisplay.php?f=54)
-   -   [Android] Guide to getting NITdroid to run. (https://talk.maemo.org/showthread.php?t=25736)

munkimatt 2009-01-12 22:35

Re: Guide to getting NITdroid to run.
 
Quote:

Device Boot Start End MiB #blocks Id System
/dev/sdf1 0+ 1919 1920- 1966079+ 83 Linux
/dev/sdf2 0 - 0 0 0 Empty
/dev/sdf3 0 - 0 0 0 Empty
/dev/sdf4 0 - 0 0 0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Do you want to write this to disk? [ynq] y
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
umount: /dev/sdf1: not mounted
Creating filesystems...
mkfs.msdos 2.11 (12 Mar 2005)
umount: /dev/sdf3: not found
mke2fs 1.41.3 (12-Oct-2008)
Could not stat /dev/sdf3 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
Filesystems created...
mount: special device /dev/sdf3 does not exist


(SKIPPING FILE EXTRATCION TEXT HERE)

umount: /mnt: not mounted
Now flashing...
Unplug your tablet from all power sources and USB connections.
Plug in the USB cable without turning on the tablet.
Next, turn on the tablet with the USB cable plugged in by pressing
and holding the Home and Power buttons.
flasher v0.9.0 (Jan 19 2007)

Suitable USB device not found, waiting
USB device found found at bus 005, device address 023
Found device RX-44, hardware revision 0801
NOLO version 1.1.16
Version of 'sw-release': RX-44_DIABLO_5.2008.43-7_PR_MR0
Sending kernel image (1711 kB)...
100% (1711 of 1711 kB, avg. 11971 kB/s)
Flashing kernel... done.
The device is now in R&D mode
Beginning cleanup...
Cleanup complete.
matt@matt-desktop:~/Desktop$
Anyone else getting the feeling that the bit I've underlined is where I'm getting the problem...

BrentDC 2009-01-12 22:51

Re: Guide to getting NITdroid to run.
 
Hi,

Yeah, the underlined part seems to be the problem...

I am not familiar enough w/ Jake's script to tell you what went wrong with it, but I can tell you the way I got Android working:

Installed Gparted and partitioned my 2gb sd card as 1gb fat, 8mb unformatted, 1gb ext3.
Gained root in the terminal and moved rootfs tar to my ext3 partition. Untarred it, then flashed the Android kernel w/ flasher-3.0.

Instructions on the needed commands are on the NITdroid homepage.

And viola! It worked.

munkimatt 2009-01-12 22:56

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by BrentDC (Post 256996)
Hi,

Yeah, the underlined part seems to be the problem...

I am not familiar enough w/ Jake's script to tell you what went wrong with it, but I can tell you the way I got Android working:

Installed Gparted and partitioned my 2gb sd card as 1gb fat, 8mb unformatted, 1gb ext3.
Gained root in the terminal and moved rootfs tar to my ext3 partition. Untarred it, then flashed the Android kernel w/ flasher-3.0.

Instructions on the needed commands are on the NITdroid homepage.

And viola! It worked.

I'll tell you something, this is one hell of a way to learn how to use Linux!

Benson 2009-01-12 23:06

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by jakemaheu (Post 251617)
Now, to partiton, enter the following.
Code:

sudo sfdisk -uM /dev/sdc
,1024,C
,1,L
,,
,,

Then, when it asks whether or not to proceed, simply enter:
Code:

y
It will create partitons-- 3 of them.

From a glance at the script, it appears that the script still pauses to let sfdiskread from the console, so you should enter a partition table like (but adapted to your SD card size):
Code:

,1024,C
,1,L
,,
,,

It looks like you used the whole disk as partition 1, when you need three separate partitions as indicated...

munkimatt 2009-01-12 23:53

Re: Guide to getting NITdroid to run.
 
Yes, got it working! Cheers guys :)

jakemaheu 2009-01-16 03:44

Re: Guide to getting NITdroid to run.
 
Sorry I've been gone, I'm getting ready for midterms.

Yeah, you need to create 3 partions still. Also, yes. this was one hell of a way to learn Linux commands.

I want to thank lcuk for the sfdisk command that allowed me to run it and simultaneously run a umoumt after 10 seconds. Friggin' Ubuntu automounting.

EasternPA 2009-01-16 21:55

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by jakemaheu (Post 257981)
Sorry I've been gone, I'm getting ready for midterms.

Yeah, you need to create 3 partions still. Also, yes. this was one hell of a way to learn Linux commands.

I want to thank lcuk for the sfdisk command that allowed me to run it and simultaneously run a umoumt after 10 seconds. Friggin' Ubuntu automounting.

Don't know if this subtopic is still hot, but I did my conversion under CentOS 5 (actually my Rocks Cluster frontend). I had an issue where after running sfdisk I couldn't format the partitions until I disconnected and reconnected the cable from the NIT. Once I did that, my PC rescanned the Nokia and detected the new partitions, after which I was able to format. Also, the card came in as /dev/sda not /dev/sdc as it appears Ubuntu would have seen it.

rcadden 2009-01-23 03:27

Re: Guide to getting NITdroid to run.
 
I just did this on my N800, and was unable to get the onscreen keyboard to work. After chatting with Vid and solca on IRC, we figured it out:

Assuming you can boot into Android, and that adb works, you need to download v0.3.2 of the rootfs here: http://guug.org/nit/nitdroid/rootfs-...-0.3.2.tar.bz2. Untar this into a new directory.

Then, with the tablet connected, run:

[quote]sudo ./adb push rootfsnitdroid /nitdroid[\quote]

where 'rootfsnitdroid' is the subdir where you untar'd it. You should get a few error messages on the tablet while it's running, just ignore them. When the terminal stops working, disconnect and reboot, and wa-la!

namtastic 2009-01-23 12:46

Re: Guide to getting NITdroid to run.
 
For those of us who are willing to wipe new hardware, couldn't there be a single flashing image that could set everything up? (I'm sure I'm missing something, but when I flash OS2008 it modifies the file system too.) I know there's a lot of talk about back and forth, but seeing that the N810 is going for like $210 new, should there be a way to just "slap" NITdroid onto a device without having to worry about "dual-booting?"

jakemaheu 2009-01-23 20:05

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by namtastic (Post 259466)
For those of us who are willing to wipe new hardware, couldn't there be a single flashing image that could set everything up? (I'm sure I'm missing something, but when I flash OS2008 it modifies the file system too.) I know there's a lot of talk about back and forth, but seeing that the N810 is going for like $210 new, should there be a way to just "slap" NITdroid onto a device without having to worry about "dual-booting?"

I don't know right now (I'll look at the documentation later), but it should be possible to pack the kernel and rootfs into one bin. I wouldn't bother, personally, as Solca releases new ones so often.

rcadden 2009-01-23 20:44

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by namtastic (Post 259466)
For those of us who are willing to wipe new hardware, couldn't there be a single flashing image that could set everything up? (I'm sure I'm missing something, but when I flash OS2008 it modifies the file system too.) I know there's a lot of talk about back and forth, but seeing that the N810 is going for like $210 new, should there be a way to just "slap" NITdroid onto a device without having to worry about "dual-booting?"

Honestly, if you can read, you can pretty much do this. I'm nowhere near what I'd call a geek, and this was the first time I spent any amount of time in a terminal window, but it was pretty easy to get setup.

namtastic 2009-01-24 04:13

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by rcadden (Post 259535)
Honestly, if you can read, you can pretty much do this. I'm nowhere near what I'd call a geek, and this was the first time I spent any amount of time in a terminal window, but it was pretty easy to get setup.

True, but the process still REQUIRES Ubuntu, which I don't have set up. So I'd have to partition/install/etc. a whole Linux installation onto my Mac just to try this hack -- that's a lot more than just typing in a terminal window :(

Thesandlord 2009-01-24 04:52

Re: Guide to getting NITdroid to run.
 
Dude, I am 90% sure you can do this on a Mac.

There is a flasher for Mac, there is tar for Mac, and that is all you need.

Anyone willing to do a Mac guide?

namtastic 2009-01-24 11:16

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by Thesandlord (Post 259619)
Dude, I am 90% sure you can do this on a Mac.

There is a flasher for Mac, there is tar for Mac, and that is all you need.

Anyone willing to do a Mac guide?

...and you need to download adb to punch in the keyboard layout. OH WAIT it's a binary and it's only been compiled for Ubuntu. :| Yeah, I tried to execute it.

Plus, you skipped the whole partitioning step, the command used in the guide is not installed in the OS X terminal.

Really, I tried to follow the steps on my Mac already. It's missing some.

(Minor note: only flasher 2.0 is available on the Mac, but since the instructions specifically say to use 3.0 and not 2.0-or-higher I can't tell if that's a roadblock as well.)

namtastic 2009-01-25 05:51

Re: Guide to getting NITdroid to run.
 
OK, so I later realized that since I own VMWare Fusion for some office XP apps, I could create an Ubuntu virtual machine. So ultimately I caved in, installed, config'd, etc. Ubuntu under Fusion and used it to flash NITdroid. I never did get adb to work right -- kept saying it couldn't find the device, but the 0.4.0 filesystem seemed to already have the mappings in it as the hardware keyboard worked fine without manually pushing the layout. Pretty impressive work, if only the power button and keylock (screenlock) was functional, I might have stayed booted in it longer.

Thesandlord 2009-01-25 07:26

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by namtastic (Post 259650)
...and you need to download adb to punch in the keyboard layout. OH WAIT it's a binary and it's only been compiled for Ubuntu. :| Yeah, I tried to execute it.

Plus, you skipped the whole partitioning step, the command used in the guide is not installed in the OS X terminal.

Really, I tried to follow the steps on my Mac already. It's missing some.

(Minor note: only flasher 2.0 is available on the Mac, but since the instructions specifically say to use 3.0 and not 2.0-or-higher I can't tell if that's a roadblock as well.)

Ahh, you are looking at the problem the wrong way.

Why are you trying to tackle the problem via the guide. It obviously wont work for Mac!

Ok, this is what you need...

First, you partition the SD card via Tablet or LiveCD (Or the Mac, but I don't know how)

adb for Mac (Its in the SDK for Mac)
flasher 2.0 for Mac (You have this)


Boom bada Boom...

EasternPA 2009-02-03 14:25

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by namtastic (Post 259763)
I never did get adb to work right -- kept saying it couldn't find the device

First, I'm glad that you eventually installed a VM and took care of this. Thank you for your perseverance. Second, none of this requires Ubuntu specifically. I've been doing this with CentOS all along -- no Ubuntu. Finally, your adb issues may be linked to the tablet not being configured to support it.

On the tablet, look under Settings, Applications, Development Options, and turn on Automatically Enable Debug when USB is connected. Once that check mark is green, try your adb again. If it still doesn't work, you may have a process out that that needs to be killed and restarted. From a command prompt

ps axw | grep adb

and if you see a line with "adb fork-server server", locate the number in the very first field on that line (called the Process ID or "pid"), and then type

kill <pid>

replacing <pid> with the actual number from the first column. Then try adb again (from the directory where you stored it) such as

adb get-state

and see if adb starts the server and shows "device" instead of "unknown". I've been a Linux geek for 15 years, and this one bit me for a few days last week!

lm2 2009-02-09 05:33

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by namtastic (Post 259617)
True, but the process still REQUIRES Ubuntu, which I don't have set up.

False. I just did it complete on-tablet, and I'm am still a linux n00b. :)

0. Boot to flash, not sd.
1. Download gparted from http://penguinbait.com/
2. Download NITdroid kernel for N8x0 and NITdroid filesystem to your n8x0's flash memory (but not in any folder). Get these files from http://guug.org/nit/nitdroid/
3. Use gparted to partition your mmc, as described here. First FAT, then anything (i used fat again), and then ext3 (at least 128mb).

Now, here are the modifications you'll make to the "hardcore" install guide:

-Mount the new filesystem. Open xterm, gain root, and enter with

Code:

mount -t ext3 /dev/mmcblk0p3 /mnt
if you're using an internal mmc. Use mmcblk1p3 if you're using external mmc.

-Extract the NITdroid files to your new filesystem with

Code:

cd /mnt;tar -xjpvf /home/user/MyDocs/rootfs-nitdroid-0.4.2.tar.bz2
-Unmount the filesystem with

Code:

cd;umount /mnt
-Flash the NITdroid kernel with

Code:

fiasco-flasher -k zImage-nitdroid-2.6.28_n8x0-5 -f

That said, I found this release of NITdroid to be rather unstable. First, the onscreen keyboard kept crashing, and then the entire OS crashed--several times. Perhaps this has something to do with my method of installation. Who knows. Anyway, I've reflashed and am back to Maemo. But if you want to try NIT droid, you DO NOT need ubuntu. You just need an NIT.

If someone smarter than me sees a place where I've messed up, please don't hesitate to point out the needed correction.

splashd 2009-02-11 22:16

Re: Guide to getting NITdroid to run.
 
How long should the nitdroid logo continue to flash?--I've been watching it for 15 minutes on my N800-flash, then black, repeat...

Bundyo 2009-02-11 22:32

Re: Guide to getting NITdroid to run.
 
Not that much ;)

silverrocker 2009-02-16 22:58

Re: Guide to getting NITdroid to run.
 
Is there something easy like this for the 770?

jakemaheu 2009-02-26 19:16

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by silverrocker (Post 264982)
Is there something easy like this for the 770?

It should be easy for one to change the script to download the other files. To do so, simply modify the "wget" lines and the "flasher-3.0-static" lines to the new files.

jutley 2009-02-26 19:43

Re: Guide to getting NITdroid to run.
 
can someone help me get nitdroid on my nokia n810 all i have is my n810 with a 8gb micro sd card installed and a pc with windows vista i am using the latest built of mamo.can someone out there guide me step by step i am having trouble gaining root acess aswell

andrewfblack 2009-02-26 20:59

Re: Guide to getting NITdroid to run.
 
I notice this said its for the n800 internal memory card what changes need to be done for n810 external? Tried this and it doesn't boot I just get the NITdroid loading screen then nothing just freezes.

Edit Didn't know you had to keep external card out for it to boot.

Bxsteez 2009-02-27 20:38

Re: Guide to getting NITdroid to run.
 
Can someone point me in the right direction of a guide to install android on my nokia n810 using a windows xp system? Every guide explains hot do it through a linux pc which i don't have.

jpramlak 2009-02-27 21:17

Re: Guide to getting NITdroid to run.
 
Bxsteez, I don't think you're going to get a response other than "Install Linux".
Development is taking place at a heady pace and priorities are such that this is low on the list.
Here is a link to Wubi, a way to get Linux installed as an application in Windows.
Good luck.

andrewfblack 2009-02-27 21:28

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by Bxsteez (Post 267655)
Can someone point me in the right direction of a guide to install android on my nokia n810 using a windows xp system? Every guide explains hot do it through a linux pc which i don't have.

Only way is linux or linux live cd which you can download burn and then run.

bigr3dd0g 2009-02-27 23:26

Re: Guide to getting NITdroid to run.
 
if you go to ubuntu.com you can install ubuntu and boot it instead of windows (and if u don't want it anymore you can uninstall it)

wzero 2009-03-13 02:16

Re: Guide to getting NITdroid to run.
 
I'm planning to install the NITdroid on my tablet, but I'm a bit confused about one of the later steps:

Quote:

Execute this command, then AFTER you have run it, plug in the USB cable and hold the power and home keys to put it into flashing mode.
Isn't the USB cable always plugged in since the beginning?

n810_itt 2009-03-13 09:34

Re: Guide to getting NITdroid to run.
 
For me it just worked like written in the guide, without any hitch. Just pull the cable out before the mentioned step.

wzero 2009-03-15 04:50

Re: Guide to getting NITdroid to run.
 
Alright!. I have successfully installed NITdroid and installed an android application on it. But there's one problem. Whenever I choose to power off android, it restarts. Is this normal? Is there another way to power down the tablet??

choya061 2009-04-01 12:09

Re: [Android] Guide to getting NITdroid to run.
 
fyi N810 crashes a lot, and you cant access internal mmc after you flash the device with nitroid

CodeShogun 2009-04-01 15:37

Re: [Android] Guide to getting NITdroid to run.
 
I've successfully flashed my N800 with NITdroid. I'm a newbie in the Linux world so I will offer a few of my findings and mistakes so that others might find useful:
*one problem with open source stuff is lack of documentation or I should say thorough documentation.

In the nitdroid_complete.sh:
"echo NOTE: This program should NOT be run as root.
echo It has specific parts that need to run as root."
What does this mean? confusing huh? What I found out is that... I'm logged in as my own username, but the shell script uses sudo (so the user will be root after the sudo command). There's this $USER variable that refers to the current user. So essentially I'm running part of the script on my username/Desktop while other stuff is running on root/Desktop, one way or another. An easy fix is to replace $USER with your current username in the .sh file. Save and run as: sudo ./nitdroid_complete.sh so everything will be in your own home / Desktop folders.

I have this N800 from the early days so the internal SDK card (the one besides the battery) has only 128MB of memory. I thought I should flash/install the OS into the external SD card since the internal one is less than 512MB. So that's my mistake #2.
Make sure you use the internal SD w/ at least 512MB of RAM and remove the external SD. My internal SD shows as /dev/sdc1 and the external shows as /dev/sdd1 if plugged in.

First boot of android, showing a few force close exception due to MMS, Alarm, etc.
Then black screen. Took out battery and reboot, much better now. Wifi works like a charm. However, the soft keyboard crashes all the time. So install this one instead:
http://code.google.com/p/netgents/

Now I got some hacking to do on it, besides my G1... ^_^

jakemaheu 2009-04-03 20:42

Re: [Android] Guide to getting NITdroid to run.
 
Quote:

Originally Posted by CodeShogun (Post 276496)
In the nitdroid_complete.sh:
"echo NOTE: This program should NOT be run as root.
echo It has specific parts that need to run as root."
What does this mean? confusing huh? What I found out is that... I'm logged in as my own username, but the shell script uses sudo (so the user will be root after the sudo command). There's this $USER variable that refers to the current user. So essentially I'm running part of the script on my username/Desktop while other stuff is running on root/Desktop, one way or another. An easy fix is to replace $USER with your current username in the .sh file. Save and run as: sudo ./nitdroid_complete.sh so everything will be in your own home / Desktop folders.

What are you talking about?

That part of the script just lets you know NOT to run it as "sudo ./nitdroid_complete.sh". The commands that do run as root need to do so and they don't actually run on "Root/Desktop". The sudo commands actually are for things like mounting, unmounting, and partitioning. Those REQUIRE root privileges.

$USER simply makes it so that you DON'T have to modify the script.

tl;dr: Ignore him. The script is doing what it is supposed to.

jakemaheu 2009-04-03 20:43

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by wzero (Post 271783)
Alright!. I have successfully installed NITdroid and installed an android application on it. But there's one problem. Whenever I choose to power off android, it restarts. Is this normal? Is there another way to power down the tablet??

Pouble Doast!

Yes, that is normal. NITdroid has some bugs; that's one that is being worked on. ^^

jakemaheu 2009-04-03 20:47

Re: Guide to getting NITdroid to run.
 
Quote:

Originally Posted by wzero (Post 271331)
I'm planning to install the NITdroid on my tablet, but I'm a bit confused about one of the later steps:

Quote:

Originally Posted by my script
Execute this command, then AFTER you have run it, plug in the USB cable and hold the power and home keys to put it into flashing mode.

Isn't the USB cable always plugged in since the beginning?

AUGH TRIPLE POST COMBO

Actually, I unplug it after the other steps. I guess I'm just paranoid about it.

frviana 2009-04-05 20:03

Re: [Android] Guide to getting NITdroid to run.
 
I got it installed on my N810. Everything was very smooth and quick. Nice instructions.
I did not have to do the adb part. My sliding keyboard works like a charm.

A few questions more related to the Android: Calendar doesn't work, Contact Synch doesn't work either. Anyone having the same problems with Calendar?

Can we download and add more widgets?

Cheers

atwleung 2009-04-06 04:31

Re: [Android] Guide to getting NITdroid to run.
 
Dear community members,

I have got both N800 hardware and N810 hardware. When I tried to follow the NITdroid installation instructions, it works okay for the N800, but failed on N810. The obstacle I got on N810 is similar to what sarathmenon described: 'When I start the tablet, it shows the Nokia logo, with the picture of a spanner inside the tablet, and does not proceed further." Any clues?

My N810 hardware is currently running Chinook. Should I upgrade it to Diablo first, before I attempt to install NITdroid?

Thanks for your kind attention!

Alex Leung.

sarathmenon 2009-04-06 06:27

Re: [Android] Guide to getting NITdroid to run.
 
Quote:

Originally Posted by atwleung (Post 277791)
Dear community members,

I have got both N800 hardware and N810 hardware. When I tried to follow the NITdroid installation instructions, it works okay for the N800, but failed on N810. The obstacle I got on N810 is similar to what sarathmenon described: 'When I start the tablet, it shows the Nokia logo, with the picture of a spanner inside the tablet, and does not proceed further." Any clues?

My N810 hardware is currently running Chinook. Should I upgrade it to Diablo first, before I attempt to install NITdroid?

Thanks for your kind attention!

Alex Leung.

@atwleung: What is the hardware revision of your tablet? You can get it by running cat /proc/component_version on xterm in the tablet.

atwleung 2009-04-06 09:32

Re: [Android] Guide to getting NITdroid to run.
 
Dear team,

cat /proc/component_version
product RX-44
hw-build 0805
nolo 1.1.11

Any insights?

Alex Leung.


All times are GMT. The time now is 11:15.

vBulletin® Version 3.8.8