OpenNuvoton / NUC970_U-Boot_v2016.11

U-Boot v2016.11 for NUC970, N9H30, and NUC980
28 stars 45 forks source link

load kernal failed #4

Closed junwushi closed 5 years ago

junwushi commented 6 years ago

Spansion nand falsh type is:S34ML04G200TFI00, display below info: U-Boot 2016.11-gd24f231-dirty (Mar 19 2018 - 11:36:16 +0800)

CPU: NUC972 Board: NUC970 DRAM: 64 MiB NAND: 512 MiB *** Warning - bad CRC, using default environment

In: serial Out: serial Err: serial Net: emac Error: emac address not set.

Hit any key to stop autoboot: 0

Loading from nand0, offset 0x200000 NAND read from offset 200000 failed -74 ** Read error

Booting kernel from Legacy Image at 00007fc0 ...

Image Name: Linux-3.10.108-01403-ge68da90fc9 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3130280 Bytes = 3 MiB Load Address: 00007fc0 Entry Point: 00008000 Verifying Checksum ... Bad Data CRC ERROR: can't get kernel image! =>

and

yachen commented 6 years ago

Hi,

Can you use power on setting to set block size=2k, ecc=4 and test again, thanks.

Sincerely,

Yi-An Chen

junwushi commented 6 years ago

that issue conditions is that set power on PA6/PA7 pin connect to earth for 2k page size,and pa8/pa9 BCH pin opened.

yachen commented 6 years ago

Hi,

I think the reason is because NuWriter tool and IBR (internal boot rom) treat this NAND as 2k+64 while u-boot (and kernel) can correctly identify it as a 2k+128 page size NAND. So while u-boot loads the kernel, it sees ECC un-correctable error and abort. But this issue should be fixed in c7a30813.

Are you testing with HEAD version of this repository?

Sincerely,

Yi-An Chen

junwushi commented 6 years ago

i am just download it from repository with the lastest version at 16/03/2018. NuWriter have need update?

yachen commented 6 years ago

Hmmm. If you use latest NuWriter, please set power on setting to 2K page size and ECC 12. Latest NuWriter does not support set page size only because IBR (Internal Boot ROM) doesn't support ONFI and setting page size or ECC only will confuse IBR for certain NAND types.

Sincerely,

Yi-An Chen

yachen commented 5 years ago

No further response, close.