Monday, September 13, 2010

Building RootFS succeeded, but needs MMC driver support!

A very good article found on Balau's website for creating this RootFS:

Though final CPIO usage described by Balau failed, I could use another command described here:


Tried to copy rootfs directly to the second partition of the mmc card, only to realise that kernel cannot read mmcblk0p2 unless a driver for that exists!

In order to create the Rootfs, all that was done is to download busybox source and build it for arm using arm-none-linux-gnu-eabi- CROSS COMPILER ONLY! (arm-none-eabi- fails to build!)

This resulted in a directory called _install which contained the basic files in the rootfs. These files are to be copied directly onto 2nd MMC partition and change permissions to 'execute'able for all the files.

A careful analysis of MX31 BSP revealed that we need to add an additional function call support under MACHINE_START called init_machine that is used to do platform initialization. This is where all basic drivers are initialized and registered to the platform framework.
Single stepping the current image also confirmed this initialization to be done. Else we end up in an idle loop that loops infinitely!

Next steps, add this function and initialize/register the MMC driver and see what happens



No comments:

Post a Comment