Vybrid nand flash boot issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vybrid nand flash boot issue

931 Views
jeremyesquirol
Contributor III

Hi,

 

I'm trying to load u-boot, kernel and RFS from sd card to nand flash on PHYcore-Vybrid (PCM052).

I've saved rootfs.jffs2 and uImage files into sd card on fat part. I boot on sd card and copy u-boot, kernel and RFS from u-boot. I've generated the rootfs.jffs2 using the timesys factory (enabling jffs2 RFS on menuconfig).

The u-boot, and kernel seems correctly loaded into flash, but not theRFS.

I used the following commands:

u-boot :

   nand erase 0x40000 0x40000; mw.b 0x80400000 0xff 0x40000; fatload mmc 0:2 0x80400000 u-boot.nand; nb_update 0x80400000 0x40000 0x40000

   

 

kernel using env variable :

update_kernel_from_sd=mw.b $(loadaddr) 0xff 0x400000; mmc rescan; fatload mmc 0:2 ${loadaddr} ${bootfile}; nand erase 0xA0000 0x400000; nand write.i ${loadaddr}  0xA0000 0x400000

run update_kernel_from_sd

   


RFS using env variable :

update_rootfs_from_sd=mw.b ${loadaddr} 0xff 0x8F20000;mmc rescan; fatload mmc 0:2 ${loadaddr} ${filesys}; nand erase 0x4A0000 0x8F20000; nand write.i ${loadaddr} 0x4A0000 0x8F20000

   

I have no error after using these commands. I can boot from nand, when enterring on the u-boot, I set the 'bootcmd'  to boot on NAND. Here are my env variables for nand boot :

bootargs_base=setenv bootargs rw mem=256M console=ttymxc1,115200n8 init=/sbin/init

bootargs_mtd=setenv bootargs ${bootargs} ${mtdparts}

bootargs_nand=setenv bootargs ${bootargs} root=/dev/mtdblock3 rootfstype=jffs2

bootcmd=run bootcmd_nand

bootcmd_nand=run bootargs_base bootargs_nand bootargs_mtd; nand read ${loadaddr} 0x000A0000 0x400000; bootm ${loadaddr}

mtdids=nand0=NAND

mtdparts=mtdparts=NAND:256k(spare),256k(bootloader),128k(env),4m(kernel),-(rootfs)

 

 

When I boot with these parameters, kernel start but I've an ECC error (I don't know the meaning of this error):

uncorrectable error :

mtd_read(0x100 bytes from 0x0) returned ECC error

...

(It seems i'm having some troubles with spam filter so I can't set the entire error message. Complete boot sequence is in attachments.)

 

Could you help me please? Any Idea?

Original Attachment has been moved to: boot_sequence_nand_error.txt.zip

0 Kudos
2 Replies

330 Views
timesyssupport
Senior Contributor II

Hello Jérémy,


Can you please try flashing the RFS using the method described here; this is applicable to the pcm052 hardware as well.


https://linuxlink.timesys.com/docs/projects/engineering/wiki/NAND_Boot_for_Vybrid_Tower#Writing-RFS-...


Thanks,


Timesys Support

330 Views
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you attend this case?

0 Kudos