maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   [Android] Another Android port: NITdroid (https://talk.maemo.org/showthread.php?t=25410)

emmaus777 2008-12-17 13:24

Re: Another Android port: NITdroid
 
Yeah! It's working on my N800! Thanks for all the hard work.

solca 2008-12-17 15:20

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by cyrus (Post 250125)
solca:

Where are you building this kernel? Within scratchbox (maemo sdk).

No. For building the kernel you just need an ARM gcc to cross compile it. I normally do:

$ cd <kernel_src_dir>
$ make CROSS_COMPILE=<path_to_cross_gcc>/bin/gcc ARCH=arm menuconfig
$ make CROSS_COMPILE= <path_to_cross_gcc>/bin/gcc ARCH=arm

solca 2008-12-17 15:22

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 250141)
Looks like everything works in N800 now. WiFi and the time too.

I put you in the credits section, hopefully you don't mind :p

mrp 2008-12-17 15:30

Re: Another Android port: NITdroid
 
any progress on 770 section?

solca 2008-12-17 15:30

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by spjndizzy (Post 250155)
Thanks Solca for your hard work. Thanks to Bundyo as well. Its working on my N800. I just need to type in order to enter my ssid for my network.

I look forward to further improvements. It's very impressive so far.

Unless someone have a better solution I see that the Android OpenMoko guys have a software keyboard for theirs phones, they recently post it for inclusion on upstream Android but was rejected as Google is working on a complete input framework that will be released 4Q2008 or 1Q2009.

Will take a look to the OpenMoko work and if it can be integrated into NITdroid for N700/N800 use.

Bundyo 2008-12-17 15:30

Re: Another Android port: NITdroid
 
Umm, Solca, can you take a look at these patches:

http://groups.google.com/group/andro...df0b0996197aa5

Looks like a guy added an onscreen keyboard to all activities, can we get it in our userspace? :)

Bundyo 2008-12-17 15:31

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by mrp (Post 250215)
any progress on 770 section?

Not yet - i need to get the MMC driver working (it is partly)...

solca 2008-12-17 15:41

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 250217)
Umm, Solca, can you take a look at these patches:

http://groups.google.com/group/andro...df0b0996197aa5

Looks like a guy added an onscreen keyboard to all activities, can we get it in our userspace? :)

Good, will take a look at the afternoon, I got to do something in the morning (it's 9:40AM here).

zehjotkah 2008-12-17 15:51

Re: Another Android port: NITdroid
 
is it possible to get the android browser out of android and into maemo?

daperl 2008-12-17 17:22

Re: Another Android port: NITdroid
 
<booming voice>And the OS God looked down upon the tablet and said, "I shall port Android to thee in four days!" And it was so. On the fifth day, audio roamed freely across the speakers. The OS God was pleased.</booming voice>

Truly awe inspiring from all of you.

qole 2008-12-17 18:09

Re: Another Android port: NITdroid
 
First: I confess; I'm an idiot.

With that out of the way, I'll ask a question that is probably obvious to most of you here.

Once I've flashed the Android kernel, maemo is inaccessible until I re-flash the maemo kernel, right? The only way around this would be a bootmenu, and that still needs to be done, right? But once I flash the kernel back to a maemo kernel, I should have access to all my maemo stuff again, right?

zehjotkah 2008-12-17 18:19

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by qole (Post 250292)
First: I confess; I'm an idiot.

With that out of the way, I'll ask a question that is probably obvious to most of you here.

Once I've flashed the Android kernel, maemo is inaccessible until I re-flash the maemo kernel, right? The only way around this would be a bootmenu, and that still needs to be done, right? But once I flash the kernel back to a maemo kernel, I should have access to all my maemo stuff again, right?

you receive a cookie (as in biscuit and snap.. not as in internet and browser...)

pycage 2008-12-17 18:19

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by qole (Post 250292)
But once I flash the kernel back to a maemo kernel, I should have access to all my maemo stuff again, right?

Right. I did the back flashing a few times already. It's just a matter of a second and the tablet runs maemo again, with all your stuff that you had on it before.

maxkilla 2008-12-17 18:33

Re: Another Android port: NITdroid
 
Just me or no bluetooth on n800? Great work so far on getting android up and running....

cyrus 2008-12-17 18:33

Re: Another Android port: NITdroid
 
Has anyone been able to mount their external SD card? If so, how this is done would be greatly appreciated.

pycage 2008-12-17 18:37

Re: Another Android port: NITdroid
 
I just tried the latest version. It works on my N800. :D
Great stuff and thanks for porting Android.

Bundyo 2008-12-17 18:56

Re: Another Android port: NITdroid
 
No bluetooth yet...

DeeJay_XB 2008-12-17 19:11

Re: Another Android port: NITdroid
 
"-Unmount the filesystem with 'cd;umount /mnt'.
-Flash the NITdroid kernel with 'sudo ./flasher -f -k zImage-nitdroid-n8x0 -R'.
-Enjoy! ;)"

how to flash the kernel?? if i type sudo./flasher..... nothing happens :(

i've Extracted the NITdroid files to the ext3 partition...but cannot flash...

jogorman 2008-12-17 19:35

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by DeeJay_XB (Post 250323)
how to flash the kernel?? if i type sudo./flasher..... nothing happens :(

You need to have the flasher application downloaded onto your linux system, then run that.

Vid 2008-12-17 19:35

Re: Another Android port: NITdroid
 
You have two options for flashing a kernel. From a Linux host, follow the instructions at http://wiki.maemo.org/Flasher There's a link to the flasher-3.0 tool embedded in the instructions, but it's http://tablets-dev.nokia.com/d3.php if you just want to get flashing ;)

If you want to flash from the tablet itself, you must be running diablo. Use the `fiasco-flasher' tool from a root shell, but be warned that I don't know a way to enable R&D mode using this tool. Without R&D mode your tablet will reboot every 5 minutes or so, and I think you'll want to find a Linux host to reflash the kernel about 5 min after Android boots the first time!

DeeJay_XB 2008-12-17 19:44

Re: Another Android port: NITdroid
 
but i only have vista sp1 ... :(

DeeJay_XB 2008-12-17 19:53

Re: Another Android port: NITdroid
 
ok i've flashed from n800 using fiasco flasher but now n800 won't boot anymore..just reboots itself over and over...now i'm flashing with nokia internet tablet software update wizard :P

edit: can i install/flash using a live cd with linux??

Vid 2008-12-17 19:58

Re: Another Android port: NITdroid
 
You're going to need a Linux host if you want to try NITdroid, both to flash the kernel in R&D mode and also to restore the Maemo kernel without erasing your device. You can get the job done using Knoppix (http://www.knopper.net/knoppix/index-en.html), but you'll need to downlad the flasher and kernel every time you reboot. Xubuntu is a small Linux distribution that will fit into ~10GB of space on your hard disk, and is easy to install in a dual-boot configuration. Check out http://www.xubuntu.org/ for more info, and to download the installation media.

Benson 2008-12-17 20:06

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Vid (Post 250346)
You're going to need a Linux host if you want to try NITdroid, both to flash the kernel in R&D mode and also to restore the Maemo kernel without erasing your device. You can get the job done using Knoppix (http://www.knopper.net/knoppix/index-en.html), but you'll need to downlad the flasher and kernel every time you reboot.

Well, technically... if you download it once onto a thumb drive, or (usually) even onto your hard drive, you can then access it each time.

maxkilla 2008-12-17 20:06

Re: Another Android port: NITdroid
 
if you can boot from usb try http://unetbootin.sourceforge.net/ it will download and make a linux usb stick for you..

fpp 2008-12-17 20:45

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 250219)
Not yet - i need to get the MMC driver working (it is partly)...

Hah, can't wait for that one - I even got a new battery for my dusty 770 in anticipation :-)

DeeJay_XB 2008-12-17 21:32

Re: Another Android port: NITdroid
 
ok..i've used the latest knoppix and i've followed the steps on guug but now my n800 keeps flashing a robot and reboots and flashing and not flashing and turns off and on the lcd and the the robot flashes this is dooing for the past 15minutes...is something wrong or is this normal??

edit: the partition for the extracted files is on internal sd and partition 3 (linux with ext3 filesystem) with aprox. 300MB space...
edit1: now it stopped restarting and it's only blinking the robot...(time passed 5 min since it started to blink the robot...)

Bundyo 2008-12-17 21:45

Re: Another Android port: NITdroid
 
300MB is too small partition i think. Try to connect with adb to it (You will need linux though).

soupus 2008-12-17 23:50

Re: Another Android port: NITdroid
 
Maybe I'm missing something: Where do I get the sound-less copy of the files? I only see links to the regular rootfs and kernel on the page... I tried yet again unsuccessfully with those downloaded filies. :'(

Pycage? How did you get it to work?

Bundyo 2008-12-17 23:59

Re: Another Android port: NITdroid
 
The last version of the userspace files is soundless. so if you didn't download them soon, do so.

soupus 2008-12-18 01:13

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 250447)
The last version of the userspace files is soundless. so if you didn't download them soon, do so.

Got it to work. I made a silly error that I would rather not repeat. :)

Thanks guys! Works juuust great. Can't wait for a keyboard!

Thesandlord 2008-12-18 03:35

Re: Another Android port: NITdroid
 
Here is a MicroB vs Android demo. I made this to appease the General in another thread...

http://www.youtube.com/watch?v=RbzuG0HxhEQ

cyrus 2008-12-18 04:06

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Thesandlord (Post 250501)
Here is a MicroB vs Android demo. I made this to appease the General in another thread...

http://www.youtube.com/watch?v=RbzuG0HxhEQ

How do you get flash in the Android browser? For instance to visit sites like Youtube.

Thesandlord 2008-12-18 05:05

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by cyrus (Post 250508)
How do you get flash in the Android browser? For instance to visit sites like Youtube.

Not yet, Adobe is working on it. I disabled flash in MicroB.

Bundyo 2008-12-18 06:22

Re: Another Android port: NITdroid
 
About the keyboard - Solca, there are three patches with overall 5 files and it compiles without a problem, however i discovered that i compiled the normal userspace. How one can include your vendor directory in the compilation? :)

By the way, the WebKit included in the Android is from February...

solca 2008-12-18 07:04

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by Bundyo (Post 250525)
About the keyboard - Solca, there are three patches with overall 5 files and it compiles without a problem, however i discovered that i compiled the normal userspace. How one can include your vendor directory in the compilation? :)

Sorry, I couldn't check this and I'm off bed now.

For compiling NITdroid you need (from memory):

$ cd <android_src_dir>
$ . build/envsetup.sh
$ choosecombo
<select device>
<select release>
<select nit>
$ m

m is the alias for make, if you have more cores you can enable parallel compiling with something like 'm -j5' (j5 to fill a quad core).

rwijnhov 2008-12-18 07:22

Re: Another Android port: NITdroid
 
could someone make a step by step instruction on how to put this on an n810 in noob style?

Thesandlord 2008-12-18 07:38

Re: Another Android port: NITdroid
 
noob friendly, as in no command line? Ok, because solca has better things to do (like fix the time), I'll do it on the weekend.

But, this is it in a nutshell.

You need:

Linux with gparted plus whatever it wants you to install.
Tablet running Maemo.
Free space on your memory card

First, plug in the tablet. The internel card should pop up as a drive.
Next, open gparted
Then, unmount drive.
Then, shrink the FAT32 partition, create a "unallocated" partition, then create a ext3 partition. so (fat,unallocated,ext3)
Then, copy the tar.bz2 file into the ext3 section
Open a terminal, and "change directory" into the card. Usually "cd /media/disk/"
type "sudo tar -xjvpf rootfs_nitdroid.tar.bz2"
Then, off the tablet and pull the charging cord from the tablet.
Hold down the home and switch buttons, and plug in the charger.
The tablet is now in USB update mode.
Download flasher-3.0
make sure the kernel image is in the same directory as the flasher.
Open terminal, and go to where the flasher is.
type "sudo ./flasher -f -k zImage-nitdroid-n8x0 -R" or "sudo ./flasher-3.0 -f -k zImage-nitdroid-n8x0 -R"

DONE!

pycage 2008-12-18 07:42

Re: Another Android port: NITdroid
 
Quote:

Originally Posted by soupus (Post 250445)
Pycage? How did you get it to work?

Nothing special. I used a card reader to partion a 1 GB SD card (/dev/sdc in my case) with cfdisk on Ubuntu Linux, like this:
1. FAT32 - 512 MB
2. Linux - 256 MB
3. Linux - 256 MB

Then I formatted partition 1 with
Code:

mkfs.vfat /dev/sdc1
and partition 3 with
Code:

mkfs.ext3 /dev/sdc3
Then I pulled out the SD card and put it in the card reader again. The two formatted partitions where mounted automatically. I became root and changed directory to the third partiton. There I extracted the rootfs. Next I unmounted the partitions and put the SD card back into my N800 (internal slot next to the battery).

I connected the switched off N800 with the USB cable to the computer and started the flasher as root:
Code:

flasher-3.0-static -f -k <kernelfile> -R
That's all.

Bundyo 2008-12-18 07:52

Re: Another Android port: NITdroid
 
Removed, since looks like its not working :)


All times are GMT. The time now is 05:52.

vBulletin® Version 3.8.8