2009/7/18 Marcelo <[email protected]>

> On Fri, Jul 17, 2009 at 02:38, bluestar8783<[email protected]> wrote:
>
> >     I use your command to check, it is the same as you said.
> >     So the source code I git is cupcake version.
>
> Then, are you sure you are installing and booting the system image you
> just compiled?  If yes, how do you figure that out?


        I checked the the file:"build.prop" in system folder that I
installed to
        get below info.

ro.build.id=CUPCAKE
ro.build.display.id=freerunner-eng 1.5 CUPCAKE eng.root.20090716.195935
test-keys
ro.build.version.incremental=eng.root.20090716.195935
ro.build.version.sdk=3
ro.build.version.release=1.5



> >     At first I followed the
> > instructions(http://freerunner.android.koolu.com/release-files)
> >     to auto-install "Koolu Beta 7 Release" into NAND flash and Qi.
>
> Ok.  That installs Android 1.0.
>
> >     And then I added my drivers to build the source code of koolu-1.0,
> >     follow the instructions
> > (
> http://wiki.openmoko.org/wiki/Android_on_Freerunner#Installing_Android_on_an_SD_card
> )
> >     to create files and boot from SD card by Qi. It works well.
>
> "It works well" meaning "it boots" right?


         Yes, it boots and I can find my drivers in the new kernel.


> >     And then I git the source code of cupcake(not add my drivers) and do
> the
> > same
> >     method to create files and want to boot from SD card by Qi, but it
> > failed. Skipping
> >     to boot from SD card, it runs from NAND flash, and kernel and rootfs
> > versions
> >     are for "Koolu Beta 7 Release". That's why I think I don't update FR
> to
> > cupcake
> >     version.
>
> The fact that it doesn't boot from the SD card confuses me.  What
> kernel did you put in the SD card? My best guess right now is that you
> need to edit vendor/neo/freerunner/init.rc:
>
>
> http://git.koolu.org/?p=platform/vendor/neo/freerunner.git;a=blob;f=init.rc;h=b862a9a139965091e7ef8de76b625745a29152fc;hb=5ce101aa011643bdc3d06262d59d20c34eec63a2
>
> Change lines 38 and 39.
>
>

     The kernel is create from
out/target/product/freerunner/obj/KERNEL/arch/arm/boot
     , rename to uImage-GTA02.bin, and put in /boot folder in SD card.

     About both lines of init.rc:
       "mount jffs2 m...@system /system
        mount jffs2 m...@system /system ro remount"
     I already modified by following  the instructions
 (
http://wiki.openmoko.org/wiki/Android_on_Freerunner#Installing_Android_on_an_SD_card
)
     and below code in init.rc of SD card to boot

    #mount rootfs rootfs / ro remount
     mount rootfs rootfs / rw remount
    # mount mtd partitions
     # Mount /system rw first to give the filesystem a chance to save a
checkpoint
     #    mount yaffs2 m...@system /system
     #    mount yaffs2 m...@system /system ro remount
    # We chown/chmod /data again so because mount is run as root + defaults
     #mount ext3 /dev/block/mmcblk0p2 /data nosuid nodev
     #chown system system /data
     #chmod 0771 /data
    # Same reason as /data above
     #mount yaffs2 m...@cache /cache nosuid nodev
     #chown system cache /cache
     #chmod 0770 /cache

    Am I wrong?Need I to change vendor/neo/freerunner/init.rc and rebuild
source code?
    Or only change init.rc of SD card to boot? ( I change the same lines in
Koolu-1.0
    to boot and it would work well )


> >     Why does it skip SD card and boot from NAND flash?
> Good question.  Why do you think it's skipping the SD card?
>
>

     When putting the kernel and rootfs of cupcake version in SD card,
     reboot and I would check in Settings->"About Phone"-> Firmware Version
     , Kernel version and Build number. These informations are all for
"Koolu Beta 7
     Release" from NAND flash. It doesn't for files from SD card.(If I
puting kernel
     and rootfs of koolu-1.0 versin in SD card, it boots and I would check
the same
     settings, it would show informations from SD card)



>  Marcelo
> _______________________________________________
> android-freerunner mailing list
> [email protected]
> http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org
>
_______________________________________________
android-freerunner mailing list
[email protected]
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org

Reply via email to