Android on Nokia N810 / Not clear with kernel and file system configuration steps

25 views
Skip to first unread message

Anjani Srivastav

unread,
May 14, 2008, 10:30:13 AM5/14/08
to android-...@googlegroups.com
Hi All,

  I am trying to port the android on Nokia N810. I am new into embedded development platform. I am trying my best to understand the given procedure in "http://www.elinux.org/Android_on_OMAP".

As per my understanding, these are the few steps which needs to be done.
1) Get the kernel patch.
2) Get the Android File System(/system and /data)
3) Kernel and File System Configuration on Real Target i.e Nokia N810
4) Integrating the Kernel and File System using scripts,  and starting of android

I think, The first two steps, one can easily get from the given available link.

I am not clear in steps 3 and having some few query.
How to go ahead in configuring the kernel and file system on Real  target(N810)?
In given steps, its mentioned steps wrt Linux-2.6.23 and N810 is having Linux-2.6.21. Which kernel version and final package to take?
Is it possible to keep the original running kernel on N810 active and flashing the new android-kernel(for ex- dual boot) ?

Any help will be highly appreciated. Thanks in Advance.

-- Anjani Srivastav

Georges Toth

unread,
May 14, 2008, 10:54:26 AM5/14/08
to android-...@googlegroups.com

Hi,

Checkout: http://code.google.com/p/android-on-n8xx/

--
regards,

Georges Toth

Anjani

unread,
May 19, 2008, 12:49:21 PM5/19/08
to Android Internals
Hi,

Thanks for providing useful link. Still, I need some clarification
from all expert.
I am getting some issues, while creating tar file for filesystem(File
Sytem - step 5).
I added busybox (ARM-cross-complied) to Android SDK-
emulator(m3-37).After linking this busybox executable to /sbin/tar,
When I am trying to run tar command. Its giving "Tar not found". Why
I am not able to run busybox command inside emulator?
Can we use the available Android file system image ( system.tar.gz &
data.tar.gz.) ?
Is it necessary to purchase Micro SD card? We can not do it on
existing free space in N810.
What is here "userspace_android-m3-rc37a_N8XX.bz2"?

Is their any way to keep the original Kernel as it is, and flashing
the android stuff as dual OS?

-- Anjani

deepak singal

unread,
May 20, 2008, 12:43:04 AM5/20/08
to android-...@googlegroups.com
Hi,

Please try this:

cd /sdcard
busybox tar -cvf system.tar /system
busybox tar -cvf data.tar /data


or

cd /system/bin
ln -s busybox tar
ln -s busybox gzip
cd /sdcard
busybox tar -cvzf system.tar.gz /system
busybox tar -cvzf data.tar.gz /data

Srivastav

unread,
May 20, 2008, 4:31:24 AM5/20/08
to Android Internals
Deepak,

I tried with that command only, getting the same error. I am facing
problem in creating tar of /system and /data. At present, I am
thinking to use the given android file system(system.tar.gz and
data.tar.gz) from "http://elinux.org/Android_on_OMAP".

--anjani

On May 20, 9:43 am, "deepak singal" <deesin...@gmail.com> wrote:
> Hi,
>
> Please try this:
>
> cd /sdcard
> busybox tar -cvf system.tar /system
> busybox tar -cvf data.tar /data
>
> or
>
> cd /system/bin
> ln -s busybox tar
> ln -s busybox gzip
> cd /sdcard
> busybox tar -cvzf system.tar.gz /system
> busybox tar -cvzf data.tar.gz /data
>

deepak singal

unread,
May 20, 2008, 6:04:40 AM5/20/08
to android-...@googlegroups.com

Hi,

Follow the below step:


deepak@ cd <path_to>/android-sdk_version_linux-x86/tools
deepak@ export PATH=${PATH}:<path_to>/android-sdk_version_linux-x86/tools      (Set path to emulator tools)
deepak@ mksdcard -l card 100M card.img                                                             (Create an empty SDcard (image))
deepak@ emulator -sdcard card.img -console -debug-kernel                                   (Start emulator)

The SDK kernel booting and emulator starting.
Wait until the emulator is ready, then send the ARM busybox from the host into the simulated environment:

(please find the attach busybox)

deepak@ adb -d 1 push  <path_to>/busybox  /system/bin/busybox  (open another console(because emulator running in one console))

android# cd /sdcard

android# busybox tar -cvf system.tar /system
android# busybox tar -cvf data.tar /data

deepak@ adb pull /sdcard/data.tar .
deepak@ adb pull /sdcard/system.tar .                                         

regards,
deepak singal

busybox

Srivastav

unread,
May 21, 2008, 5:03:26 AM5/21/08
to Android Internals
Thanks deepak, I got the sytem.tar and data.tar file. I am trying to
port the android stuff on nokia 800 with updated touchscreen patch. I
got the kernel image also.

In the given below steps :
****************************************************************************
#### Format the MicroSD card

1. Insert the MicroSD card into the N8XX
2. Connect the N8XX to your computer via USB
3. Flash the MicroSD card

> df | grep /media/usbdisk-1 # do this to obtain what the usb
device name, which

# may vary depending on the linux
installation
# I will call mine /dev/sdc1

> su
> umount /dev/sdc1

> mkfs.ext2 /dev/sdc1

> mount /dev/sdc1 /media/usbdisk-1

> exit

#### Extract the userspace

> cp android-sdk_m3-rc37a/tools/lib/images/ramdisk.img ramdisk.gz

> gunzip ramdisk.gz
> cd /media/usbdisk-1

> cpio -iv < $ANDDIR/ramdisk

> mkdir dev/log
> touch dev/log/main

> touch dev/log/events
> touch dev/log/radio

### Extract system.tar from the sdcard image

> su
> mkdir card

> mount -o card.img card
> tar -xvf card/system.tar -C /media/usbdisk-1

#### Apply the file system patch (will be available shortly)

> cd /media/usbdisk-1

> cat $ANDDIR/userspace_android-m3-rc37a_N8XX.bz2 | patch -p1
************************************************************************************
1) Please Confirm, Is it neccary to purchase MicroSD card for android
porting on Nokia N8XX?
2) Why data.tar file is not extracted from sdcard image ? That steps
is missing here?
3) What is here "userspace_android-m3-rc37a_N8XX.bz2 " ?

-- Anjani

On May 20, 3:04 pm, "deepak singal" <deesin...@gmail.com> wrote:
> busybox
> 2302KDownload

deepak singal

unread,
May 21, 2008, 5:32:00 AM5/21/08
to android-...@googlegroups.com
Hi Srivastav


Try given below steps :
 
*********************************************

deepak singal

unread,
May 21, 2008, 5:35:19 AM5/21/08
to android-...@googlegroups.com
tar -xvf card/data.tar -C /media/usbdisk-1
 
chmod -R 777 /media/usbdisk-1/data/*
 
chmod -R 777 /media/usbdisk-1/data/*
 
rm -rf /media/usbdisk-1/tmp/*


          OR



 /media/usbdisk-1
 
tar -xvf card/data.tar -C /media/usbdisk-1
 
chmod -R 777 /media/usbdisk-1/data/*
 
chmod -R 777 /media/usbdisk-1/data/*
 
rm -rf /media/usbdisk-1/tmp/*
 
#### Apply the file system patch (will be available shortly)

> cd /media/usbdisk-1

deepak singal

unread,
May 21, 2008, 5:41:17 AM5/21/08
to android-...@googlegroups.com

          cd /media/usbdisk-1
 
      tar -xvf data.tar /media/usbdisk-1/
          tar -xvf system.tar /media/usbdisk-1/
   chmod -R 777 /media/usbdisk-1/data/*
 
    chmod -R 777 /media/usbdisk-1/data/*
 
    rm -rf /media/usbdisk-1/tmp/*
 
#### Apply the file system patch (will be available shortly)

> cd /media/usbdisk-1

 
> cat $ANDDIR/userspace_android-m3-rc37a_N8XX.bz2 | patch -p1
************************************************************************************


Srivastav

unread,
May 27, 2008, 4:47:05 AM5/27/08
to Android Internals
Hi All,

I configured and compiled the android-kernel image and created the
filesystem for N800.On device, I flashed the android kernel image and
the android file system into internal memory card(/media/mmc2).When I
am trying to run init binary for running android, I am getting the
following error:

--------------------------------
init: HOW ARE YOU GENTLEMEN
init: reading config file
Segmentation fault
--------------------------------

Its giving segmentation fault while initilising the device.

I got stuck up with the above issue since 2 days. Any ideas from the
team to resolve this will be highly appreciated.

--Anjani

deepak singal

unread,
May 27, 2008, 5:38:01 AM5/27/08
to android-...@googlegroups.com
Hi Anjani,


Please try below step:

execute a.sh

/*****************a.sh***************/


echo ""
echo "=================="
echo " Initing Android Start "
echo "=================="
echo ""
export PATH=/sbin:/system/sbin:/system/bin:$PATH
export LD_LIBRARY_PATH=/system/lib
export ANDROID_BOOTLOGO=1
export ANDROID_ROOT=/system
export ANDROID_ASSETS=/system/app
export ANDROID_DATA=/data
export EXTERNAL_STORAGE=/sdcard
export DRM_CONTENT=/data/drm/content
umask 000
chroot /android_file_system_path /system/bin/sh

/********************end_a.sh***********/

After that execute the init

#./init &


deepak singal

Anjani

unread,
May 27, 2008, 6:22:18 AM5/27/08
to Android Internals
Thanks a lot , Deepak.At last, I am able to bring up the android
screen on Nokia N800. Touchscreen is not working right now. I think,
the available patch for touchscreen will be useful. I will get back to
you, if I will stuck somewhere.
--Anjani
On May 27, 2:38 pm, "deepak singal" <deesin...@gmail.com> wrote:
> Hi Anjani,
>
> Please try below step:
>
> execute a.sh
>
> /*****************a.sh***************/
>
> echo ""
> echo "=================="
> echo " Initing Android Start "
> echo "=================="
> echo ""
> export PATH=/sbin:/system/sbin:/system/bin:$PATH
> export LD_LIBRARY_PATH=/system/lib
> export ANDROID_BOOTLOGO=1
> export ANDROID_ROOT=/system
> export ANDROID_ASSETS=/system/app
> export ANDROID_DATA=/data
> export EXTERNAL_STORAGE=/sdcard
> export DRM_CONTENT=/data/drm/content
> umask 000
> chroot /android_file_system_path /system/bin/sh
>
> /********************end_a.sh***********/
>
> After that execute the init
>
> #./init &
>
> deepak singal
>
Reply all
Reply to author
Forward
0 new messages