Hi Peter,

On Fri, May 29, 2009 at 17:25, Peter Strapp <[email protected]> wrote:

> I have been working on extracting the file system from a Koolu
> build and getting it running from an SD card.

 You mean entirely from the SD card?

 I appreciate your effort, but isn't it a *ton* easier to
 download the source and modify the handful of lines that you
 have to modify in vendor/neo/freerunner/init.rc and compile?

 Am I missing something?

 If there's real interest in this I would appreciate it very much
 if you can cook up a patch for the source.  Again, unless I'm
 missing something, it should be enough to patch
 vendor/neo/freerunner/Android.mk to use an alternative version
 of init.rc in "sd-only" mode.  I'd go even one step further, I
 would create a init.rc.template that has placeholders for
 whatever fields need to be changed and they are filled in during
 the build process.

> http://activationrecord.net/radekp/openmoko/android/. However,
> I don't know what config was used to build that kernel.

 You can look at the config used to build the kernel under
 kernel/arch/arm/configs/gta02_android_defconfig.  If you do as I
 suggest, a simple "make" will compile the kernel using that
 configuration.

 I recommend strongly against removing the ramdisk from the
 kernel.  What that buys you is that you don't have to fool with
 the command line to specify the root device.

 I would further suggest you add an early boot hook that
 *searches* for the system partition (sh script will do, but you
 have to put it in the ramdisk) using whatever heuristic you deem
 useful.  I would go with looking for a partition with something
 significant in it, e.g. bin/dalvikvm or build.prop (anything
 that *has* to be there for Android to work).  You can get a good
 idea of what that something might be if you do a minimal build.

 Another option is to patch init to read another kernel command
 line parameter and mount whatever that says as /system.  On the
 plus side, this is faster.  On the downside this required manual
 configuration.  You could do both!  Look at the command line
 first and if that fails, fallback to searching.

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

Reply via email to