13 messages in com.googlegroups.android-internals[android-internals] Re: Android on No...
FromSent OnAttachments
Anjani Srivastav14 May 2008 07:29 
Georges Toth14 May 2008 07:54 
Anjani19 May 2008 09:48 
deepak singal19 May 2008 21:42 
Srivastav20 May 2008 01:31 
deepak singal20 May 2008 03:04.busybox
Srivastav21 May 2008 02:03 
deepak singal21 May 2008 02:31 
deepak singal21 May 2008 02:34 
deepak singal21 May 2008 02:40 
Srivastav27 May 2008 01:46 
deepak singal27 May 2008 02:37 
Anjani27 May 2008 03:21 
Subject:[android-internals] Re: Android on Nokia N810 / Not clear with kernel and file system configuration steps
From:deepak singal (dees@gmail.com)
Date:05/21/2008 02:34:56 AM
List:com.googlegroups.android-internals

On Wed, May 21, 2008 at 3:02 PM, deepak singal <dees@gmail.com> wrote:

On Wed, May 21, 2008 at 2:33 PM, Srivastav <ecea@gmail.com> wrote:

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" <dees@gmail.com> wrote:

On Tue, May 20, 2008 at 2:01 PM, Srivastav <ecea@gmail.com> wrote:

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" <dees@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

On Mon, May 19, 2008 at 10:19 PM, Anjani <

sriv@gmail.com>

wrote:

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

On May 14, 7:54 pm, Georges Toth <geor@gmail.com> wrote:

Anjani Srivastav wrote:

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

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.

Hi,

-- regards,

Georges Toth

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 2302KDownload

Hi Srivastav

Try 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

*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

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

************************************************************************************