First impressions on new Android rootfs

Sean McNeil sean at mcneil.com
Thu Dec 4 05:28:28 CET 2008


Marco Trevisan (Treviño) wrote:
> Rui Castro wrote:
>   
>> The workaround to boot the uImage-tracking kernel from uBoot (setenv
>> bootcmd setenv ... ; saveenv) works, but when I poweroff neo and try
>> to boot again it doesn't work anymore; I have to do the hack again.
>> Maybe I'm doing something stupid here. It's the first time I mess with
>> uBoot shell.
>>     
>
> Are you editing NOR or NAND uBoot? You have write access only to NAND...
>
>   
>> I tried to make a jffs2 image from koolu source code, but I had no
>> luck. I compiled the sources successfully with "make
>> PRODUCT_TARGET=freerunner", then I tried to create a jffs2 image
>> following a very simplistic and probably wrong approach:
>>
>> 1. Created a directory newandroidfs,
>> 2. Extracted the contents of out/target/product/freerunner/ramdisk.img
>> to that directory, using file-roller,
>> 3. copied the files under out/target/product/freerunner/system to /system,
>> 4. created a symlink /etc to /system/etc and a directory /sdcard (like
>> I saw in Sean's image)
>> 5. and created a jffs2 image with the contents of the directory
>> newandroidfs using the command "mkfs.jffs2 --pad=0x700000 -o
>> newandroidfs.jffs2 -e 0x20000 -n -dnewandroidfs/"
>>
>> Outcome of all this, red light flashing!!! It's kernel panic, right? :(
>>     
>
> It should be...
> Btw another way for getting working images, I guess that should be using
> the Sean's image as base and then putting there only the files you've
> changed with your patches after a recompilation...
> Would it work?
>
>   
>> If someone (have no ideia who :) ) did a simple tutorial about how to
>> produce the precious jffs2 image, that would make the testing of new
>> features a lot simpler.
>>     
>
> I'm asking this too :P
>   

I use a script to copy out of the opensource build into my NFS mounted 
area. Once there, I use another script to create the jffs2 image. You'll 
probably need to modify them to your environment.

Sean

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cp_android_OS
Url: http://lists.openmoko.org/pipermail/community/attachments/20081204/7fe978c7/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mkjffs2
Url: http://lists.openmoko.org/pipermail/community/attachments/20081204/7fe978c7/attachment-0001.txt 


More information about the community mailing list