linux4sam / at91bootstrap

Second level bootloader for Microchip SoC (aka AT91)
https://www.linux4sam.org/linux4sam/bin/view/Linux4SAM/AT91Bootstrap4
112 stars 232 forks source link

configs: sam9x60-curiosity: Fix NAND page size and OOB size #170

Closed LeSpocky closed 11 months ago

LeSpocky commented 1 year ago

The raw NAND flash populated on board rev 4 is a Macronix MX30LF4G28AD 4 Gb chip. The same is written in the SAM9X60-Curiosity User's Guide. Tested on that hardware with the following output:

AT91Bootstrap 4.0.6 (2023-08-10 13:12:48)

NAND: ONFI flash detected
NAND: Manufacturer ID: 0xc2 Chip ID: 0xdc
NAND: Page Bytes: 4096, Spare Bytes: 256
NAND: ECC Correctability Bits: 8, ECC Sector Bytes: 512
NAND: Switch to timing mode 3
NAND: Disable On-Die ECC
PMECC: version is: 0x102
PMECC: page_size: 4096, oob_size: 256, pmecc_cap: 8, sector_size: 512
NAND: Initialize PMECC params, cap: 8, sector: 512
NAND: Image: Copy 0xc0000 bytes from 0x40000 to 0x23f00000
NAND: Done to load image

<debug_uart>
serial_atmel serial@fffff200: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19

U-Boot 2023.10-rc1-00202-gf1d96fb362 (Aug 10 2023 - 11:46:37 +0000)

CPU:   SAM9X60 128MiB DDR2 SiP
Crystal frequency:       24 MHz
CPU clock        :      600 MHz
Master clock     :      200 MHz

Model: Microchip SAM9X60 Curiosity
DRAM:  128 MiB
Core:  157 devices, 25 uclasses, devicetree: separate
NAND:  atmel-nand-controller nand-controller: Failed to get R/B gpio (err = -2)
device found, Manufacturer ID: 0xc2, Chip ID: 0xdc
Macronix MX30LF4G28AD
512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 256
512 MiB
LiBinSHA commented 12 months ago

Reviewed and will be merged to v4.0.7

LiBinSHA commented 11 months ago

Thanks, it was merged to abc3eb8cd4f52d3b667c3196be1309d11e7eb226