[OLPC-devel] writing nand flash on OLPC

Marcelo Tosatti marcelo at kvack.org
Mon Jul 24 21:16:02 EDT 2006


On Mon, Jul 24, 2006 at 07:36:07AM -0600, Ronald G Minnich wrote:
> Marcelo Tosatti wrote:
> >On Sun, Jul 23, 2006 at 01:19:45PM -0600, Ronald G Minnich wrote:
> >
> >>Would you be able to take in an OLPC-specific .config file? The stream 
> >>kernels still will not kexec.
> >>
> >>Thanks
> >
> >
> >By "stream kernels" I suppose you mean the Fedora ones.
> >
> >I have no problems at all to kexec from/to such kernels... 
> >
> >What problem are you seeing?
> >
> 
> the standard can't mount root on unknown-block blah blah blah.
> 
> Works fine with our olpc-specific kernels, has never worked with the 
> fedora kernels.

Problem is that the standard initrd's dont load cs553x_nand.

Please try http://hera.kernel.org/~marcelo/olpc/olpc-2006_07_23_12_10-ext3.img.bz2

Its olpc-initrd-2.6.17-1.2437.fc6-laptop-run.img initramfs file contains
the following:

echo Loading MTD core
insmod /lib/mtdcore.ko
echo Loading MTD partitioning
insmod /lib/mtdpart.ko

echo Loading MTD block translation layer
insmod /lib/mtd_blkdevs.ko

echo Loading MTD block device driver
insmod /lib/mtdblock.ko

echo Loading MTD char device driver
insmod /lib/mtdchar.ko

# This if loads the hardware specific MTD driver


# olpc_enable_nand is required to properly enable the NAND device which is not 
# done by Insyde BIOS. Should be removed after transition to LinuxBIOS is 
# complete.
insmod /lib/msr.ko
olpc_enable_nand

insmod /lib/cs553x_nand.ko

echo Loading ZLib deflate
insmod /lib/zlib_deflate.ko

echo Loading JFFS
insmod /lib/jffs2.ko

echo Making block devices
mkblkdevs

# Resume from suspend
resume 

echo Creating root device


mkrootdev -t jffs2 -o ro /dev/mtdblock0



More information about the Devel mailing list