2
votes

I've a Leopard board with Ti DM365 processor. Problem is that,I tried to flash the bootloader(uboot) to nand and landed up in corrupting the NAND. Now, i can't use NAND to bring up the board. So, i decided to use the SD Card.

I did the required partitioning on the SD Card for bootloader / kernel / rootfs

Now, when em restarting the board ...it says...uncompressing the kernel...etc..etc.. but when it tries to look for rootfs...prompt says.."can't find NAND"

I think (em a complete newbie in this field..) Kernel looks into NAND for the "rootfs" instead of SD Card, thats why it is giving that sort of error...

So now I've to configure the kernel in such a way that it should look into SD Card for the "rootfs" instead of looking into NAND (which is corrupted in my case.)

Can any one help me.

Please forgive me if the information is not enough and please ask for more info in needed. As em a newbie... i dunno what other information i can give...

Thanks!

1
This looks more like a unix.SE sort of question. - Lev Levitsky
Oh...I didn't know that there is a dedicated section for UNIX/LINUX. Thanks..!! - mujahid
@LevLevitsky disagree - these are kernel compile-time configuration issues, ie programming (porting) rather than usage. - Chris Stratton
Do you have uboot on the sdcard? If so you may be able to fix the nand from within uboot without booting the kernel. - Chris Stratton
@Chris I thought it was about configuring the bootloader. - Lev Levitsky

1 Answers

1
votes

I think you need to make changes in DTS file to create partition for rootfs in the SDcard.

Following is the code snippet from mpc8313erdb.dts where rootfs is present in NAND.

    nand@1,0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "fsl,mpc8313-fcm-nand",
                     "fsl,elbc-fcm-nand";
        reg = <0x1 0x0 0x40000>;

        dtb-0@0 {
            reg = <0x0 0x20000>;
        };

        kernel-0@20000 {
            reg = <0x20000 0x400000>;
        };

        rootfs-0@420000 {
            reg = <0x420000 0x099e0000>;

Look for the above file under the following location. linux/arch/powerpc/boot/dts/[board_name].dts

Check the following link to see the complete DTS file. http://lxr.free-electrons.com/source/arch/powerpc/boot/dts/mpc8313erdb.dts