This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NAND is not booting consistently after nand concatenation

Other Parts Discussed in Thread: AM3703

Hi,

I'm working with am35xx custom board.It has two 2GB ( 8bit )nand.

I'm using android filesystem( rowboat gingerbread ) to boot.Before nand concatenation, nand boot is working fine.

Then I concatenated nand.So that I got second nand is appended with 1st nand's filesystem partition like below.

Creating 5 MTD partitions on "am3517_lgvg_concat":
0x000000000000-0x000000080000 : "xloader-nand"
0x000000080000-0x000000400000 : "uboot-nand"
0x000000400000-0x000000480000 : "params-nand"
0x000000480000-0x000000e80000 : "linux-nand"
0x000000e80000-0x000040000000 : "File-System"
After this, I wrote filesystem into nand's mtd4 partition by following commands.
flash_erase /dev/mtd/mtd4 0 8076
mkdir /mnt/nand
mount -o rw -t yaffs2 /dev/block/mtdblock4 /mnt/nand
busybox tar xvf rootfs.tar -C /mnt/nand
sync
umount /mnt/nand
NAND bootargs:
setenv bootargs mem=256M console=ttyO2,115200n8 androidboot.console=ttyO2 root=/dev/mtdblock4 rw rootfstype=yaffs2 init=/init vram=32M omapfb.vram=0:16M
mmc init;fatload mmc 0 0x82000000 uImage;bootm 0x82000000

For first nand boot, no issues.But if I boot once again with the same bootargs, it is not booting.
It is giving error as
Failed to execute /init. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
After that no data are there in nand particular nand address.Everything got erased.
If I use jffs2 filesystem , it is not booting even for the first time.It is giving error as
D/dalvikvm(  949): DexOpt: --- BEGIN 'core.jar' (bootstrap=1) ---
D/dalvikvm( 1058): creating instr width table
E/dalvikvm( 1058): unable to mmap DEX cache: Invalid argument
E/dalvikvm( 1058): Optimization failed
W/dalvikvm( 949): DexOpt: --- END 'core.jar' --- status=0xff00, process failed
Please help me on this.

Regards,
RajeeSankar
  • HI Rajeeshankar,

    We too facing same problem?

    Processor : AM3703

    Two Nand's:

    512MiB for booting , MLO, u-boot.bin, UImage

    2GiB for storage purpose : added UBIFS image

    Unable to mount filesytem in /dev/mtd5 partition:

    Cat /proc/mtd

    partitions are all getting created, how you explained same way?

    so have got solution for your issue?

    Help me?

    Regards,

    santosh vastrad