![]() |
[Android] Guide to getting NITdroid to run.
NEWS: I've written a script that does everything!
NOTE: THIS GUIDE IS FOR THE N800. Alright guys, I know quite a few people are having trouble getting Solca's NITdroid port to work, so here's a nice guide I decided to put together. Also, before you start, BACKUP YOUR DATA! You need to backup the data on your tablet and your internal SD card. PREREQUISITES:
Now, assuming you have all of those, we can proceed. For this tutorial, we'll use the example of a 2GB SD card. Step 1: Acquire the files. Note: Download all files into the same directory. For the purpose of this tutorial, we'll use '/home/paul/Desktop/'. Go to guug.org/nit/nitdroid/ and download the following:
Now, go to http://tablets-dev.nokia.com/d3.php and download 'flasher-3.0-static' to the same directory. NEW: I've written a quick script for downloading all of the files. You'll need to go in and make it executable with: Code:
chmod a+x Code:
./nitdroid_downloader.sh Step 2: Create a filesystem. First, remove your external SD card. Then, turn on the tablet and then plug the usb cable into it. Once the computer detects and registers the tablet, open a terminal and type: Code:
dmesg Code:
[ 813.234547] scsi 5:0:0:1: Direct-Access Nokia N800 031 PQ: 0 ANSI: 2 Code:
[ 813.270464] sdc: sdc1 Before you create a filesystem, go to the terminal and check where the drive is mounted: Code:
mount Code:
/dev/sdc1 on /media/disk-1 Next, to unmount the card, run: Code:
sudo umount /dev/sdc1 To double check, type: Code:
mount Now, to partiton, enter the following. Code:
sudo sfdisk -uM /dev/sdc Code:
y Your OS will likely automatically remount them, so once they are created, you'll run these commands: Code:
sudo umount /dev/sdc1 Step 3: Extracting the filesystem. To actually create the filesystem, you'll do this: Code:
sudo mount -t ext3 /dev/sdc3 /mnt Code:
cd /mnt To extract the rootfs onto the partition, enter: Code:
sudo tar -xjpvf /home/paul/Desktop/rootfs-nitdroid.tar.bz2 Code:
ls -a Next, run these commands: Code:
cd .. Step 4: Flash the kernel. Finally, you're almost done! Now, use this: Code:
cd /home/paul/Desktop/ To flash the kernel, use the following command: Code:
./flasher-3.0-static -f -k zImage-nitdroid-n8x0 --enable-rd-mode -R This flashes the NITdroid kernel and activates R&D mode, then restarts the tablet. After it completes, unplug the USB cable and wait. You will see the Nokia logo screen with a little tablet beneath it. Next, the screen will turn black and then to the NITdroid logo. After this, it will flash black again and turn into a pulsating NITdroid logo. It will stay here for a few minutes, and then boot into Android. EDIT: I have written my second script. This will automatically flash the kernel when run. You will need to make it executable, as with the downloader. It is now downloaded when you use the downloader script. To invoke it, run: Code:
./nitdroid_flasher It will be located in the 'nitdroid' directory on your Desktop. Now, to get ADB working. To extract it, you use: Code:
bunzip2 adb.bz2 Code:
chmod a+x adb Code:
sudo ./adb command The hardware keys won't work, so to make them work, use the following commands. Code:
sudo ./adb push Internal_keypad.kl /system/usr/keylayout Code:
paul@paul-laptop:~/Desktop/android$ sudo ./adb push Internal_keypad.kl /system/usr/keylayout DISCLAIMER: I TAKE NO RESPONSIBILITY FOR THE CONSEQUENCES OF HUMAN ERROR. DOING THIS INCORRECTLY MAY CAUSE YOUR TABLET TO IMPLODE, A HOBO TO SODOMIZE YOUR DOG AND GRANDMOTHER, OR LCUK TO BURN HIS HAND MAKING BACON AGAIN. Credit goes to:
EDIT: I am in the process of writing a few scripts to automate this process. EDIT 2: Downloader script done! You can download it at the top of this post. EDIT 3: Flasher script done! When you use the downloader script, it is automatically downloaded. |
Re: Guide to getting NITdroid to run.
Thanks for posting the Guide, it is what I have been hoping for.
I am well placed, having a few spare SD cards and a partition running Ubuntu, so I shall give it a try shortly when I can pluck up the courage and necessary focus. In the meantime, user contributions posted here about their experiences will help fortify my resolve and save me from the embarrassment of asking dumb questions. I really want this to work. |
Re: Guide to getting NITdroid to run.
To unzip and use the ADB, these are the commands:
Quote:
Quote:
Besides, why you specified this works only for N800 ? These are the very same steps needed for the N810, right? |
Re: Guide to getting NITdroid to run.
So, is anyone working on a nice simple GUI wizard for this? Or is NITdroid not at the point yet where this high(ish) barrier to entry is a Bad Thing?
|
Re: Guide to getting NITdroid to run.
I was just going to ask for a completely new thread like this!
Is there also a pros and cons of NITDroid somewhere? e.g. Cons: no onscreen keyboard (is this true?), no Maemo access without taking drastic steps, RD mode (downsides?), no SSU Pros: A next-gen environment, Java, more apps, etc. Will this result in an actual first- or second-tier Android platform? Or would it be foolish to, for example, buy things from the Android market? Thanks again. |
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Quote:
Quote:
The advantage of a script - even on a Linux computer - is there's less chance of error and it makes support easier as you know how people have installed things. Certainly, if a user isn't paying attention in the steps above - and they use a SCSI or SATA drive - they could end up repartitioning one of their existing disks, rather than the SD card. Similarly, it could detect the sizes and suggest partioning schemes etc. |
Re: Guide to getting NITdroid to run.
Quote:
EDIT: It's not that it isn't ready for the masses-- it runs quite well (with a couple exceptions), but you need to be careful when flashing and such. |
Re: Guide to getting NITdroid to run.
If you're feeling brave (or stupid) enough you can do this using a Linux virtual machine using VirtualBox (and probably the other virtualization solutions).
The only issue I had with installing was the 2nd stage loader (when the NITdroid logo pulses) didn't work at first. I'm not sure if this is where the pause (due to first load caching) is supposed to be or not but the first 2 times it sat there for 5+ minutes before I gave up. I tried again later and now it works fine, could be the sd card didn't make a good enough connection I suppose. Anyway apart from that it seems to work fine. Apart from it's complete refusal to connect to my wi-fi. I've tried add the connection manually but it still says no. Maybe this doesn't work but the project page implies that it does. Any ideas? |
Re: Guide to getting NITdroid to run.
Quote:
http://stlc45xx.garage.maemo.org/ You'll need to get stlc45xx-cal and place it on the FAT partition (/sdcard) on your SD card. It should help, even if rebooting fixes it. |
Re: Guide to getting NITdroid to run.
I followed this and it seemed to work. When I booted the first time it went to a blank black screen until I pulled out the battery. It booted fine after that.
|
Re: Guide to getting NITdroid to run.
Quote:
And I'm probably being pedantic here but "dmesg | tail" is nicer to look at than "dmesg" (in this case) :). |
Re: Guide to getting NITdroid to run.
Quote:
Thanks for the hint. It didn't make any difference, however this morning another new wifi device refused to connect (Dell mini 9) and when I checked the wifi was on channel 13. Since these extra channels don't exist everywhere I'm guessing by default the wifi chipset ignores them. When I changed to channel 1 both devices work fine. |
Re: Guide to getting NITdroid to run.
Has anyone been able to flash NITdriod on the WiMAX tablet? Mine's hardware revision is 1007, and flasher said it flashed the image correctly. When I start the tablet, it shows the Nokia logo, with the picture of a spanner inside the tablet, and does not proceed further. I partitioned my 2G internal card to have 500M vfat, unpartitioned, 500M ext3 all formatted and the android rootfs files copied over.
|
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Dude, are you serious?
http://guug.org/nit/nitdroid/ Quote: For testing and debugging: NITdroid debugging kernel for N770 (2.6.28-rc8-omap 2008Dec10) NITdroid debugging kernel for N8x0 (2.6.28-rc9-omap 2008Dec20) Its right there... keep reading... |
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Its still the same results. I see the Nokia logo, but nothing happens after that. I suspect whether the bootloader is getting invoked, because I can see hardware and nic details when the factory kernel boots in the rd-mode. While loading android, nothing shows up. I am sure that I got all the instructions correct, this is the output of fdisk -l for this partition.
Code:
Device Boot Start End Blocks Id System |
Re: Guide to getting NITdroid to run.
As a followup, I've noticed other weirdness too. A shutdown does not work from the power button, the device goes through a process of closing all apps, and the display blacks out, with the backlight on. $( reboot ) on the shell as root also gives the same results. The firmware was flashed back to the latest Nokia supplied one, RX-48_DIABLO_5.2008.43-7_PR_COMBINED_MR0_ARM.bin, overwriting the filesystem completely (-f with flasher).
I've also observed random problems with the OS after flashing it to the default. GPS stays on, even though there is no system tray notification saying so (I remember that this was not the case when I first started up the device). The browser randomly crashes, and the hardware keyboard refuses to load sometimes. I haven't restored anything from backup and the system is running the OS in the pristine state (MyDocs and ~user weren't populated with any of my stuff). Is there any difference in the core OS between the WiMAX edition and the normal one? I've tried googling around, but apart from vague posts, I haven't seen anything on this topic. Either my searching skills on this forum are lousy, or I am the first person here to see these type of problems. Oh well, scream PEBKAC if you want to :-) I know that this doesn't strictly touch the topic for which this thread was started. Should I move this whole thing to a different thread? |
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Thanks for the tutorial it's really easy. I've gotten past all the steps up to the fourth one. I try to run the nitroid_flasher. I follow all the steps and it says:
Code:
Flashing sequence activated and RD mode being enabled. |
Re: Guide to getting NITdroid to run.
Did you run the ./flasher command prefixed by sudo? You need to be root.
|
Re: Guide to getting NITdroid to run.
hmm that's weird. i ran it with sudo and it gave me the same thing but now it works. Thanks.
|
Re: Guide to getting NITdroid to run.
Quote:
I cleaned up the internal card and reformatted as ext3, and was good to go. I wish I had got some good indication that the OS was spending CPU cycles because of it. |
Re: Guide to getting NITdroid to run.
Just say 'maybe' I've done this wrong and want to start from the beginning again, how can I get my N810 back into its 'normal' form?
|
Re: Guide to getting NITdroid to run.
Quote:
Code:
sudo ./flasher-3.0-static -f -F yourimage.bin --flash-only=kernel --disable-rd-mode -R |
Re: Guide to getting NITdroid to run.
Yes I keep trying to do that but it keeps comign up command not found, very confusing
|
Re: Guide to getting NITdroid to run.
Quote:
Code:
sudo ./flasher-3.0-static -f -k yourimage.bin --disable-rd-mode -R |
Re: Guide to getting NITdroid to run.
Just a quick one Jake, I'm now using your full script, when the line comes up saying 'read action1' how long should that take?
|
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Sorry to keep bugging you Jake, but I'm getting nowhere. I'm copying in what I'm getting in terminal to see if you have any idea as to what's the issue.
Quote:
|
Re: Guide to getting NITdroid to run.
Wow, I've never seen a script echo every line to the console like that. Weird!
|
Re: Guide to getting NITdroid to run.
Hey, download the script to your desktop, then run in the terminal:
cd /home/$USER/Desktop/ chmod +x nitdroid_complete.sh ./nitdroid_complete.sh |
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Quote:
|
Re: Guide to getting NITdroid to run.
Well it's got further this time, I'm now getting the NITdroid logo up but it's just frozen on the screen...not gonna give up...lol
|
All times are GMT. The time now is 20:35. |
vBulletin® Version 3.8.8