Help with flashing android to internal storeage


SNESFAN

Retro game fanatic
Joined
Oct 3, 2008
Messages
3,429
Age
42
Location
Fort Knox, KY. USA
I would like to flash android to the internal storage on my pandora to play around with for a while and would like some assistance if possible. I can't quite make out what needs to be done next but I think I got the idea down, just need some help pulling it together.

I've taken notaz's CM7 pnd build and compiled just android without the pnd

http://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=android_pandora.git;a=summary

had to use this patch for GCC 4.8, but it appears to compile just fine after that.

https://github.com/CyanogenMod/android_external_webkit/commit/1c88029b864c88cc32767eb8d1ffe13e95445af3

For the modifications I know I will at least need to do to get it to boot and act somewhat normally there may be additional stuff needed.

1) turn the system and userdata images into a ubifs images. I know basically nothing about ubifs or how to set it up correctly, but from what I'm reading you have to be pretty exact on the calculations when creating it unlike ext2/3 that seem much simpler in comparison. This is the best rundown I've found but it is still leaving me a bit confused. If someone can fill in the blanks of what it means to pandora hardware it'd apperciate it.

http://free-electrons.com/blog/creating-flashing-ubi-ubifs-images/

2) move mount points around in init.rc so it sees the sdcard as external storeage instead of the /system and /data partitions

I think init.rc will need system mounts moved from sdcard to internal ubifs partition, but since they aren't used I don't see what it needs changed to.

original 

http://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=android_pandora.git;a=blob;f=init.rc;h=eb172d787f1922633f76d7083037f782b390a655;hb=HEAD


# create mountpoints
    mkdir /mnt 0775 root system
    mkdir /mnt/sdcard 0000 system system
    mkdir /mnt/sdcard2 0000 system system

EDIT: ripped off half my post... retyping the rest now

should look something maybe like this maybe? Feel free to correct

#mount and set permissions

   mount ubifs ubi0:system /system

   mount ubifs ubi0:data /data nosuid nodev

   chown system system /data
   chmod 0771 /data

3) create .tar.bz2 (in ubifs format) and flash to device

sudo tar -jcvf android.tar.bz2 system.img userdata.img
 
Last edited by a moderator:
Seems liek a waste of time honestly (unless ofcourse if you plan in upgrading the android version to something past 4.0 that would be great)
 
Will do, but its rather simple

Thanks for the links, I'll look them over
 
Last edited by a moderator:
Back
Top