PortuxG20 BCH support

I downloaded the upgrade to add NAND 4-bit BCH ECC support to PortuxG20 from http://armbedded.eu/downloads/PortuxG20 (March 14, 2013), and also the fixed U-Boot (June 27, 2013).

Then, I connected a PortuxG20 to SAM-BA 2.12, and I did the following steps:
- Enable NandFlash
- Send Boot File
- Send U-Boot to address 0x20000 (I tried with both the fixed and the unfixed U-Boot)
- Send the Linux kernel to address 0xA0000

Finally, I restarted the PortuxG20, and I got this message (repeating in a loop):


RomBOOT

AT91Bootstrap 3.4 ( Do 7. Feb 15:21:17 CET 2013 )

Downloading image...
ONFI flash detected
ONFI param page 0x0 valid
ECC_ALGO_BCH, 0x4 bit correction
Nand: Copy 0x40000 bytes from 0x20000 to 0x23f00000
BCH ECC error!
Failed to load image

The Portux I'm using has 64MB of RAM and a NAND of type NQ279.

How can I enable 4-bit ECC support?

Thanks

Re: PortuxG20 BCH support

Have you also downloaded the most recent version of our SAM-BA applets? They have two "Enable NandFlash" commands, one for 4-bit BCH and one for 1-bit Hamming.

Re: PortuxG20 BCH support

No, I did not see that. Now it works. Thanks!

Re: PortuxG20 BCH support

I have a similar problem here. I have the same board but using sam-ba 2.10 with taskit applets.
My PortuxG20 get stucked here:

RomBOOT

AT91Bootstrap 3.4 ( Do 7. Feb 15:21:17 CET 2013 )

Downloading image...
ONFI flash detected
ONFI param page 0x0 valid
ECC_ALGO_BCH, 0x4 bit correction

LED1,LED2,LED3 flashing in a rotational manner. After a while it is booting again.
What went wrong?

Regards

Re: PortuxG20 BCH support

That is really strange. It seems that your bootstrap does not no even try to load U-Boot from NAND flash and just hangs. The reboot comes from the watchdog after 16s. This could happen if you flashed it to NAND instead of DataFlash, but only after a while (until some bits are flipped and bootstrap cannot be read correctly anymore). However, this would not explain the flashing of the LEDs. There is no LED flashing routine in bootstrap. Is that actually the whole output the PortuxG20 gives you? For me, the only explanation would be that bootstrap loads some custom firmware (not from taskit), which flashes the LEDs but does not reset/disable the watchdog, but then I would expect more output on the console.

Either way, you could just try to reprogram the PortuxG20 and make sure, that bootstraps gets programmed into the DataFlash.

Re: PortuxG20 BCH support

A little remark: PortuxG20 has no DataFlash. You have to use the NAND for bootstrap (if no external DataFlash connected to SPI0 CS0 or CS1). Make sure to use the image according to the SD RAM size of your PortuxG20 (there are images for 64M and 128M).

Syndicate content