mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
1cee54ebf3
CONFIG_PMECC_CAP has a higher priority than its ONFI detected parameter and will overwrite it when defined. As per commit49ad40298c
, CONFIG_PMECC_CAP has a default value of 2 if not otherwise stated. This results in the overwriting of the ONFI ECC bits value. The following errors are seen when booting the kernel from the nand flash: Loading Environment from NAND... PMECC: Too many errors NAND read from offset 140000 failed -74 *** Warning - some problems detected reading environment; recovered successfully *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: eth0: ethernet@f8008000 Hit any key to stop autoboot: 0 NAND read: device 0 offset 0x180000, size 0x80000 PMECC: Too many errors NAND read from offset 180000 failed -74 0 bytes read: ERROR NAND read: device 0 offset 0x200000, size 0x600000 PMECC: Too many errors NAND read from offset 200000 failed -74 0 bytes read: ERROR Bad Linux ARM zImage magic! Fix it by setting the right value for ECC bits. Fixes:49ad40298c
("ARM: at91: Convert SPL_GENERATE_ATMEL_PMECC_HEADER to Kconfig") Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
72 lines
1.7 KiB
Text
72 lines
1.7 KiB
Text
CONFIG_ARM=y
|
|
CONFIG_ARCH_AT91=y
|
|
CONFIG_SYS_TEXT_BASE=0x26f00000
|
|
CONFIG_TARGET_SAMA5D2_PTC_EK=y
|
|
CONFIG_SYS_MALLOC_F_LEN=0x2000
|
|
CONFIG_NR_DRAM_BANKS=1
|
|
CONFIG_DEBUG_UART_BOARD_INIT=y
|
|
CONFIG_DEBUG_UART_BASE=0xf801c000
|
|
CONFIG_DEBUG_UART_CLOCK=82000000
|
|
CONFIG_DEBUG_UART=y
|
|
CONFIG_ENV_VARS_UBOOT_CONFIG=y
|
|
CONFIG_FIT=y
|
|
CONFIG_SYS_EXTRA_OPTIONS="SAMA5D2"
|
|
CONFIG_NAND_BOOT=y
|
|
CONFIG_BOOTDELAY=3
|
|
CONFIG_USE_BOOTARGS=y
|
|
CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256K(env_redundant),256k(env),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs"
|
|
CONFIG_CONSOLE_MUX=y
|
|
CONFIG_MISC_INIT_R=y
|
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
|
CONFIG_HUSH_PARSER=y
|
|
CONFIG_CMD_BOOTZ=y
|
|
# CONFIG_CMD_FLASH is not set
|
|
CONFIG_CMD_I2C=y
|
|
# CONFIG_CMD_LOADS is not set
|
|
CONFIG_CMD_MMC=y
|
|
CONFIG_CMD_NAND=y
|
|
CONFIG_CMD_USB=y
|
|
CONFIG_CMD_DHCP=y
|
|
CONFIG_CMD_PING=y
|
|
CONFIG_CMD_EXT4=y
|
|
CONFIG_CMD_FAT=y
|
|
CONFIG_OF_CONTROL=y
|
|
CONFIG_DEFAULT_DEVICE_TREE="at91-sama5d2_ptc_ek"
|
|
CONFIG_ENV_IS_IN_NAND=y
|
|
CONFIG_DM=y
|
|
CONFIG_SPL_DM_SEQ_ALIAS=y
|
|
CONFIG_CLK=y
|
|
CONFIG_CLK_AT91=y
|
|
CONFIG_AT91_UTMI=y
|
|
CONFIG_AT91_H32MX=y
|
|
CONFIG_AT91_GENERIC_CLK=y
|
|
CONFIG_DM_GPIO=y
|
|
CONFIG_ATMEL_PIO4=y
|
|
CONFIG_DM_I2C=y
|
|
CONFIG_SYS_I2C_AT91=y
|
|
CONFIG_I2C_EEPROM=y
|
|
CONFIG_DM_MMC=y
|
|
CONFIG_MMC_SDHCI=y
|
|
CONFIG_MMC_SDHCI_ATMEL=y
|
|
CONFIG_NAND_ATMEL=y
|
|
CONFIG_ATMEL_NAND_HW_PMECC=y
|
|
CONFIG_PMECC_CAP=4
|
|
CONFIG_DM_ETH=y
|
|
CONFIG_MACB=y
|
|
CONFIG_PINCTRL=y
|
|
CONFIG_PINCTRL_AT91PIO4=y
|
|
CONFIG_DM_SERIAL=y
|
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