From f5fd6bcf799195e5b869e2a65d27bc1fbd62ccef Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 24 Jun 2022 17:51:01 -0500 Subject: Modify at91bootstrap for SD card build --- .../at91bootstrap/at91bootstrap-3.8.12/README-SD | 3 + .../at91bootstrap/at91bootstrap-3.8.12/defconfig | 238 -------- .../at91bootstrap/at91bootstrap-3.8.12/defconfig-n | 228 ++++++++ .../at91bootstrap-3.8.12/defconfig-sd | 238 ++++++++ recipes-bsp/at91bootstrap/at91bootstrap.inc | 4 +- .../u-boot/u-boot-2016.09.01/config-n.patch | 48 ++ .../u-boot/u-boot-2016.09.01/config-sd.patch | 647 +++++++++++++++++++++ recipes-bsp/u-boot/u-boot-2016.09.01/config.patch | 48 -- .../u-boot/u-boot-2016.09.01/configfactory.patch | 647 --------------------- recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-n.patch | 292 ++++++++++ .../u-boot/u-boot-2016.09.01/mtcdt-sd.patch | 309 ++++++++++ recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt.patch | 292 ---------- recipes-bsp/u-boot/u-boot-2016.09.01/mtcdtsd.patch | 309 ---------- 13 files changed, 1768 insertions(+), 1535 deletions(-) delete mode 100644 recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig create mode 100644 recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig-n create mode 100644 recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig-sd create mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/config-n.patch create mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/config-sd.patch delete mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/config.patch delete mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/configfactory.patch create mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-n.patch create mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch delete mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt.patch delete mode 100644 recipes-bsp/u-boot/u-boot-2016.09.01/mtcdtsd.patch diff --git a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/README-SD b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/README-SD index 4b806c9..c3c104a 100644 --- a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/README-SD +++ b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/README-SD @@ -44,3 +44,6 @@ Changed system type of partition 1 to 6 (FAT16) mkfs.msdos /dev/sdx1 Mount and copy files to FAT16 partition (1). + +The idea is to get /dev/dm-[n] working so that the third partition is +oem, var, and user. diff --git a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig deleted file mode 100644 index 32f9575..0000000 --- a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig +++ /dev/null @@ -1,238 +0,0 @@ -# -# In defiance, this file was edited for -# Multitech systems. -# 2018 Jan 3 18:15CST -# -HAVE_DOT_CONFIG=y -# CONFIG_AT91SAM9260EK is not set -# CONFIG_AT91SAM9261EK is not set -# CONFIG_AT91SAM9263EK is not set -# CONFIG_AT91SAM9RLEK is not set -# CONFIG_AT91SAM9XEEK is not set -# CONFIG_AT91SAM9G10EK is not set -# CONFIG_AT91SAM9G20EK is not set -# CONFIG_AT91SAM9M10G45EK is not set -CONFIG_AT91SAM9X5EK=y -# CONFIG_AT91SAM9N12EK is not set -# CONFIG_SAMA5D3XEK is not set -# CONFIG_SAMA5D3_XPLAINED is not set -# CONFIG_SAMA5D3X_CMP is not set -# CONFIG_SAMA5D4EK is not set -# CONFIG_SAMA5D4_XPLAINED is not set -# CONFIG_SAMA5D2_PTC_EK is not set -# CONFIG_SAMA5D2_XPLAINED is not set -# CONFIG_SAMA5D27_SOM1_EK is not set -# CONFIG_SAMA5D2_LPDDR2SIP_VB is not set -# CONFIG_VINCO is not set -# CONFIG_AT91SAM9X5_ARIA is not set -# CONFIG_AT91SAM9X5_ARIETTA is not set -# CONFIG_SAMA5D3_ACQUA is not set -# CONFIG_SAMA5D2_ROADRUNNER is not set -# CONFIG_CORE9G25 is not set -# CONFIG_SAMA5D3_LINEA is not set -# CONFIG_PICOSAM9G45 is not set -# CONFIG_SAMA5D3_STEPHAN is not set -CONFIG_BOARDNAME="at91sam9x5ek" -AT91SAM9X5=y -CONFIG_MACH_TYPE="3373" -# CONFIG_OVERRIDE_MACH_TYPE is not set -CONFIG_LINK_ADDR="0x300000" -CONFIG_TOP_OF_MEMORY="0x308000" -CONFIG_CRYSTAL_12_000MHZ=y -# CONFIG_CRYSTAL_16_000MHZ is not set -# CONFIG_CRYSTAL_16_36766MHZ is not set -# CONFIG_CRYSTAL_18_432MHZ is not set -# CONFIG_CRYSTAL_24_000MHZ is not set -ALLOW_CRYSTAL_12_000MHZ=y -CONFIG_CRYSTAL="CRYSTAL_12_000MHZ" -# CONFIG_CPU_CLK_166MHZ is not set -# CONFIG_CPU_CLK_180MHZ is not set -# CONFIG_CPU_CLK_200MHZ is not set -# CONFIG_CPU_CLK_240MHZ is not set -# CONFIG_CPU_CLK_266MHZ is not set -# CONFIG_CPU_CLK_332MHZ is not set -# CONFIG_CPU_CLK_348MHZ is not set -# CONFIG_CPU_CLK_396MHZ is not set -CONFIG_CPU_CLK_400MHZ=y -# CONFIG_CPU_CLK_444MHZ is not set -# CONFIG_CPU_CLK_492MHZ is not set -# CONFIG_CPU_CLK_498MHZ is not set -# CONFIG_CPU_CLK_510MHZ is not set -# CONFIG_CPU_CLK_528MHZ is not set -# CONFIG_CPU_CLK_594MHZ is not set -# CONFIG_CPU_CLK_600MHZ is not set -ALLOW_CPU_CLK_400MHZ=y -# DISABLE_CPU_CLK_240MHZ is not set -# CONFIG_BUS_SPEED_83MHZ is not set -# CONFIG_BUS_SPEED_90MHZ is not set -# CONFIG_BUS_SPEED_100MHZ is not set -# CONFIG_BUS_SPEED_116MHZ is not set -# CONFIG_BUS_SPEED_124MHZ is not set -CONFIG_BUS_SPEED_133MHZ=y -# CONFIG_BUS_SPEED_148MHZ is not set -# CONFIG_BUS_SPEED_164MHZ is not set -# CONFIG_BUS_SPEED_166MHZ is not set -# CONFIG_BUS_SPEED_170MHZ is not set -# CONFIG_BUS_SPEED_176MHZ is not set -# CONFIG_BUS_SPEED_200MHZ is not set -SUPPORT_BUS_SPEED_133MHZ=y -# CPU_HAS_TRUSTZONE is not set -# CONFIG_CPU_V7 is not set -# CONFIG_HAS_PMIC_ACT8865 is not set -# CONFIG_SUPPORT_PM is not set -# CONFIG_HAS_ONE_WIRE is not set -# CONFIG_HAS_EEPROM is not set -# CONFIG_HAS_EHT0_PHY is not set -# CONFIG_HAS_EHT1_PHY is not set -# CONFIG_HAS_AUDIO_CODEC is not set -# CONFIG_HAS_HDMI is not set -CORE_ARM926EJS=y -# CORE_CORTEX_A5 is not set -CPU_HAS_SCKC=y -# CPU_HAS_H32MXDIV is not set -CPU_HAS_HSMCI0=y -CPU_HAS_HSMCI1=y -# CPU_HAS_HSMCI2 is not set -# CPU_HAS_MCI0 is not set -# CPU_HAS_MCI1 is not set -# CPU_HAS_SDHC0 is not set -# CPU_HAS_SDHC1 is not set -CPU_HAS_SPI0=y -CPU_HAS_SPI1=y -# CPU_HAS_SPI0_IOSET1 is not set -# CPU_HAS_SPI0_IOSET2 is not set -# CPU_HAS_SPI1_IOSET1 is not set -# CPU_HAS_SPI1_IOSET2 is not set -# CPU_HAS_SPI1_IOSET3 is not set -# CPU_HAS_QSPI0 is not set -# CPU_HAS_QSPI1 is not set -# CPU_HAS_QSPI0_IOSET1 is not set -# CPU_HAS_QSPI0_IOSET2 is not set -# CPU_HAS_QSPI0_IOSET3 is not set -# CPU_HAS_QSPI1_IOSET1 is not set -# CPU_HAS_QSPI1_IOSET2 is not set -# CPU_HAS_QSPI1_IOSET3 is not set -# BOARD_HAS_2_BANKS is not set -CPU_HAS_PIO3=y -# CPU_HAS_L2CC is not set -CPU_HAS_PMECC=y -CONFIG_HAS_HW_INFO=y -# CONFIG_TWI is not set -# CONFIG_TWI0 is not set -# CONFIG_TWI1 is not set -# CONFIG_TWI2 is not set -# CONFIG_TWI3 is not set -# CONFIG_MACB is not set -# CONFIG_AES is not set -# CONFIG_LOAD_HW_INFO is not set -CPU_HAS_TWI0=y -CPU_HAS_TWI1=y -CPU_HAS_TWI2=y -# CPU_HAS_TWI3 is not set -# CPU_HAS_AES is not set -# CPU_HAS_PIO4 is not set - -# -# Memory selection -# -# CONFIG_SDRAM is not set -# CONFIG_SDDRC is not set -CONFIG_DDRC=y -ALLOW_DATAFLASH=y -# ALLOW_FLASH is not set -ALLOW_NANDFLASH=y -ALLOW_SDCARD=y -# ALLOW_PSRAM is not set -# ALLOW_SDRAM_16BIT is not set - -# -# RAM Configuration -# -# CONFIG_RAM_32MB is not set -# CONFIG_RAM_64MB is not set -# CONFIG_RAM_128MB is not set -CONFIG_RAM_256MB=y -# CONFIG_RAM_512MB is not set -# CONFIG_LPDDR1 is not set -# CONFIG_LPDDR2 is not set -# CONFIG_LPDDR3 is not set -CONFIG_DDR2=y -# CONFIG_DDR3 is not set -# CONFIG_SAMA5D2_LPDDR2 is not set -# CONFIG_DATAFLASH is not set -# CONFIG_FLASH is not set -# CONFIG_NANDFLASH is not set -CONFIG_SDCARD=y -CONFIG_MEMORY="sdcard" - -# -# SD Card Configuration -# -CONFIG_AT91_MCI=y -CONFIG_AT91_MCI0=y -# CONFIG_AT91_MCI1 is not set -# CONFIG_AT91_MCI2 is not set -CONFIG_FATFS=y -ALLOW_BOOT_FROM_DATAFLASH_CS0=y -# CONFIG_ENABLE_SW_ECC is not set -CONFIG_USE_PMECC=y -# CONFIG_ON_DIE_ECC is not set - -# -# PMECC Configuration -# -CONFIG_PMECC_AUTO_DETECT=y -# CONFIG_PMECC_CORRECT_BITS_2 is not set -# CONFIG_PMECC_CORRECT_BITS_4 is not set -# CONFIG_PMECC_CORRECT_BITS_8 is not set -# CONFIG_PMECC_CORRECT_BITS_12 is not set -# CONFIG_PMECC_CORRECT_BITS_24 is not set -CONFIG_PMECC_SECTOR_SIZE_512=y -# CONFIG_PMECC_SECTOR_SIZE_1024 is not set -# CONFIG_NANDFLASH_SMALL_BLOCKS is not set -CONFIG_ONFI_DETECT_SUPPORT=y -CONFIG_USE_ON_DIE_ECC_SUPPORT=y -# ALLOW_NANDFLASH_RECOVERY is not set -CONFIG_BOOTSTRAP_MAXSIZE="23000" -CONFIG_PROJECT="sdcard" -CONFIG_LOAD_UBOOT=y -# CONFIG_LOAD_LINUX is not set -# CONFIG_LOAD_ANDROID is not set -# CONFIG_LOAD_1MB is not set -# CONFIG_LOAD_4MB is not set -# CONFIG_LOAD_64KB is not set -CONFIG_IMG_ADDRESS="0x00040000" -CONFIG_JUMP_ADDR="0x2EF00000" - -# -# U-Boot Image Storage Setup -# -CONFIG_IMG_SIZE="0x00080000" -CONFIG_IMAGE_NAME="u-boot.bin" -CONFIG_DEBUG=y -# CONFIG_DEBUG_INFO is not set -# CONFIG_DEBUG_LOUD is not set -CONFIG_DEBUG_VERY_LOUD=y -CONFIG_THUMB=y -# CONFIG_DISABLE_WATCHDOG is not set - -# -# Hardware Initialization Options -# -CONFIG_HW_DISPLAY_BANNER=y -# Indicate ONFI Usage -CONFIG_HW_BANNER="\"\\n\\nAT91Bootstrap \" AT91BOOTSTRAP_VERSION \" (\" COMPILE_TIME \")/MTechONFI\\n\\n\"" -CONFIG_HW_INIT=y -# CONFIG_USER_HW_INIT is not set - -# -# Slow Clock Configuration Options -# -CONFIG_SCLK=y -# CONFIG_SCLK_BYPASS is not set -# CONFIG_BACKUP_MODE is not set - -# -# Board Hardware Information Options -# -# CONFIG_LOAD_ONE_WIRE is not set diff --git a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig-n b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig-n new file mode 100644 index 0000000..ba0a902 --- /dev/null +++ b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig-n @@ -0,0 +1,228 @@ +# +# In defiance, this file was edited for +# Multitech systems. +# 2018 Jan 3 18:15CST +# +HAVE_DOT_CONFIG=y +# CONFIG_AT91SAM9260EK is not set +# CONFIG_AT91SAM9261EK is not set +# CONFIG_AT91SAM9263EK is not set +# CONFIG_AT91SAM9RLEK is not set +# CONFIG_AT91SAM9XEEK is not set +# CONFIG_AT91SAM9G10EK is not set +# CONFIG_AT91SAM9G20EK is not set +# CONFIG_AT91SAM9M10G45EK is not set +CONFIG_AT91SAM9X5EK=y +# CONFIG_AT91SAM9N12EK is not set +# CONFIG_SAMA5D3XEK is not set +# CONFIG_SAMA5D3_XPLAINED is not set +# CONFIG_SAMA5D3X_CMP is not set +# CONFIG_SAMA5D4EK is not set +# CONFIG_SAMA5D4_XPLAINED is not set +# CONFIG_SAMA5D2_PTC is not set +# CONFIG_SAMA5D2_XPLAINED is not set +# CONFIG_SAMA5D27_SOM1_EK is not set +# CONFIG_VINCO is not set +# CONFIG_AT91SAM9X5_ARIA is not set +# CONFIG_AT91SAM9X5_ARIETTA is not set +# CONFIG_SAMA5D3_ACQUA is not set +# CONFIG_SAMA5D2_ROADRUNNER is not set +# CONFIG_CORE9G25 is not set +# CONFIG_SAMA5D3_LINEA is not set +CONFIG_BOARDNAME="at91sam9x5ek" +AT91SAM9X5=y +CONFIG_MACH_TYPE="3373" +CONFIG_LINK_ADDR="0x300000" +CONFIG_TOP_OF_MEMORY="0x308000" +CONFIG_CRYSTAL_12_000MHZ=y +# CONFIG_CRYSTAL_16_000MHZ is not set +# CONFIG_CRYSTAL_16_36766MHZ is not set +# CONFIG_CRYSTAL_18_432MHZ is not set +# CONFIG_CRYSTAL_24_000MHZ is not set +ALLOW_CRYSTAL_12_000MHZ=y +CONFIG_CRYSTAL="CRYSTAL_12_000MHZ" +# CONFIG_CPU_CLK_166MHZ is not set +# CONFIG_CPU_CLK_180MHZ is not set +# CONFIG_CPU_CLK_200MHZ is not set +# CONFIG_CPU_CLK_240MHZ is not set +# CONFIG_CPU_CLK_266MHZ is not set +# CONFIG_CPU_CLK_332MHZ is not set +# CONFIG_CPU_CLK_348MHZ is not set +# CONFIG_CPU_CLK_396MHZ is not set +CONFIG_CPU_CLK_400MHZ=y +# CONFIG_CPU_CLK_444MHZ is not set +# CONFIG_CPU_CLK_492MHZ is not set +# CONFIG_CPU_CLK_498MHZ is not set +# CONFIG_CPU_CLK_510MHZ is not set +# CONFIG_CPU_CLK_528MHZ is not set +# CONFIG_CPU_CLK_594MHZ is not set +# CONFIG_CPU_CLK_600MHZ is not set +ALLOW_CPU_CLK_400MHZ=y +# DISABLE_CPU_CLK_240MHZ is not set +# CONFIG_BUS_SPEED_83MHZ is not set +# CONFIG_BUS_SPEED_90MHZ is not set +# CONFIG_BUS_SPEED_100MHZ is not set +# CONFIG_BUS_SPEED_116MHZ is not set +# CONFIG_BUS_SPEED_124MHZ is not set +CONFIG_BUS_SPEED_133MHZ=y +# CONFIG_BUS_SPEED_148MHZ is not set +# CONFIG_BUS_SPEED_164MHZ is not set +# CONFIG_BUS_SPEED_166MHZ is not set +# CONFIG_BUS_SPEED_170MHZ is not set +# CONFIG_BUS_SPEED_176MHZ is not set +# CONFIG_BUS_SPEED_200MHZ is not set +SUPPORT_BUS_SPEED_133MHZ=y +# CPU_HAS_TRUSTZONE is not set +# CONFIG_CPU_V7 is not set +# CONFIG_HAS_PMIC_ACT8865 is not set +# CONFIG_SUPPORT_PM is not set +# CONFIG_HAS_ONE_WIRE is not set +# CONFIG_HAS_EEPROM is not set +# CONFIG_HAS_EHT0_PHY is not set +# CONFIG_HAS_EHT1_PHY is not set +# CONFIG_HAS_AUDIO_CODEC is not set +# CONFIG_HAS_HDMI is not set +CORE_ARM926EJS=y +# CORE_CORTEX_A5 is not set +CPU_HAS_SCKC=y +# CPU_HAS_H32MXDIV is not set +CPU_HAS_HSMCI0=y +CPU_HAS_HSMCI1=y +# CPU_HAS_HSMCI2 is not set +# CPU_HAS_MCI0 is not set +# CPU_HAS_MCI1 is not set +# CPU_HAS_SDHC0 is not set +# CPU_HAS_SDHC1 is not set +CPU_HAS_SPI0=y +CPU_HAS_SPI1=y +# CPU_HAS_SPI0_IOSET1 is not set +# CPU_HAS_SPI0_IOSET2 is not set +# CPU_HAS_SPI1_IOSET1 is not set +# CPU_HAS_SPI1_IOSET2 is not set +# CPU_HAS_SPI1_IOSET3 is not set +# CPU_HAS_QSPI0 is not set +# CPU_HAS_QSPI1 is not set +# CPU_HAS_QSPI0_IOSET1 is not set +# CPU_HAS_QSPI0_IOSET2 is not set +# CPU_HAS_QSPI0_IOSET3 is not set +# CPU_HAS_QSPI1_IOSET1 is not set +# CPU_HAS_QSPI1_IOSET2 is not set +# CPU_HAS_QSPI1_IOSET3 is not set +CPU_HAS_PIO3=y +# CPU_HAS_L2CC is not set +CPU_HAS_PMECC=y +CONFIG_HAS_HW_INFO=y +# CONFIG_TWI is not set +# CONFIG_TWI0 is not set +# CONFIG_TWI1 is not set +# CONFIG_TWI2 is not set +# CONFIG_TWI3 is not set +# CONFIG_MACB is not set +# CONFIG_AES is not set +CONFIG_LOAD_HW_INFO=y +CPU_HAS_TWI0=y +CPU_HAS_TWI1=y +CPU_HAS_TWI2=y +# CPU_HAS_TWI3 is not set +# CPU_HAS_AES is not set +# CPU_HAS_PIO4 is not set + +# +# Memory selection +# +# CONFIG_SDRAM is not set +# CONFIG_SDDRC is not set +CONFIG_DDRC=y +ALLOW_DATAFLASH=y +# ALLOW_FLASH is not set +ALLOW_NANDFLASH=y +ALLOW_SDCARD=y +# ALLOW_PSRAM is not set +# ALLOW_SDRAM_16BIT is not set + +# +# RAM Configuration +# +# CONFIG_RAM_32MB is not set +# CONFIG_RAM_64MB is not set +# CONFIG_RAM_128MB is not set +CONFIG_RAM_256MB=y +# CONFIG_RAM_512MB is not set +# CONFIG_LPDDR1 is not set +# CONFIG_LPDDR2 is not set +# CONFIG_LPDDR3 is not set +CONFIG_DDR2=y +# CONFIG_DDR3 is not set +# CONFIG_SAMA5D2_LPDDR2 is not set +# CONFIG_DATAFLASH is not set +# CONFIG_FLASH is not set +CONFIG_NANDFLASH=y +# CONFIG_SDCARD is not set +CONFIG_MEMORY="nandflash" +ALLOW_BOOT_FROM_DATAFLASH_CS0=y + +# +# NAND flash configuration +# +# CONFIG_ENABLE_SW_ECC is not set +CONFIG_USE_PMECC=y +# CONFIG_ON_DIE_ECC is not set + +# +# PMECC Configuration +# +CONFIG_PMECC_AUTO_DETECT=y +# CONFIG_PMECC_CORRECT_BITS_2 is not set +# CONFIG_PMECC_CORRECT_BITS_4 is not set +# CONFIG_PMECC_CORRECT_BITS_8 is not set +# CONFIG_PMECC_CORRECT_BITS_12 is not set +# CONFIG_PMECC_CORRECT_BITS_24 is not set +CONFIG_PMECC_SECTOR_SIZE_512=y +# CONFIG_PMECC_SECTOR_SIZE_1024 is not set +# CONFIG_NANDFLASH_SMALL_BLOCKS is not set +CONFIG_ONFI_DETECT_SUPPORT=y +CONFIG_USE_ON_DIE_ECC_SUPPORT=y +# ALLOW_NANDFLASH_RECOVERY is not set +CONFIG_BOOTSTRAP_MAXSIZE="23000" +CONFIG_PROJECT="nandflash" +CONFIG_LOAD_UBOOT=y +# CONFIG_LOAD_LINUX is not set +# CONFIG_LOAD_ANDROID is not set +# CONFIG_LOAD_1MB is not set +# CONFIG_LOAD_4MB is not set +# CONFIG_LOAD_64KB is not set +CONFIG_IMG_ADDRESS="0x00040000" +CONFIG_JUMP_ADDR="0x2EF00000" + +# +# U-Boot Image Storage Setup +# +CONFIG_IMG_SIZE="0x00080000" +CONFIG_IMAGE_NAME="u-boot.bin" +CONFIG_DEBUG=y +CONFIG_DEBUG_INFO=y +# CONFIG_DEBUG_LOUD is not set +CONFIG_DEBUG_VERY_LOUD=y is not set +CONFIG_THUMB=y +# CONFIG_DISABLE_WATCHDOG is not set + +# +# Hardware Initialization Options +# +CONFIG_HW_DISPLAY_BANNER=y +# Indicate ONFI Usage +CONFIG_HW_BANNER="\"\\n\\nAT91Bootstrap \" AT91BOOTSTRAP_VERSION \" (\" COMPILE_TIME \")/MTechONFI\\n\\n\"" +CONFIG_HW_INIT=y +# CONFIG_USER_HW_INIT is not set + +# +# Slow Clock Configuration Options +# +CONFIG_SCLK=y +# CONFIG_SCLK_BYPASS is not set +# CONFIG_BACKUP_MODE is not set + +# +# Board Hardware Information Options +# +# CONFIG_LOAD_ONE_WIRE is not set diff --git a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig-sd b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig-sd new file mode 100644 index 0000000..32f9575 --- /dev/null +++ b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig-sd @@ -0,0 +1,238 @@ +# +# In defiance, this file was edited for +# Multitech systems. +# 2018 Jan 3 18:15CST +# +HAVE_DOT_CONFIG=y +# CONFIG_AT91SAM9260EK is not set +# CONFIG_AT91SAM9261EK is not set +# CONFIG_AT91SAM9263EK is not set +# CONFIG_AT91SAM9RLEK is not set +# CONFIG_AT91SAM9XEEK is not set +# CONFIG_AT91SAM9G10EK is not set +# CONFIG_AT91SAM9G20EK is not set +# CONFIG_AT91SAM9M10G45EK is not set +CONFIG_AT91SAM9X5EK=y +# CONFIG_AT91SAM9N12EK is not set +# CONFIG_SAMA5D3XEK is not set +# CONFIG_SAMA5D3_XPLAINED is not set +# CONFIG_SAMA5D3X_CMP is not set +# CONFIG_SAMA5D4EK is not set +# CONFIG_SAMA5D4_XPLAINED is not set +# CONFIG_SAMA5D2_PTC_EK is not set +# CONFIG_SAMA5D2_XPLAINED is not set +# CONFIG_SAMA5D27_SOM1_EK is not set +# CONFIG_SAMA5D2_LPDDR2SIP_VB is not set +# CONFIG_VINCO is not set +# CONFIG_AT91SAM9X5_ARIA is not set +# CONFIG_AT91SAM9X5_ARIETTA is not set +# CONFIG_SAMA5D3_ACQUA is not set +# CONFIG_SAMA5D2_ROADRUNNER is not set +# CONFIG_CORE9G25 is not set +# CONFIG_SAMA5D3_LINEA is not set +# CONFIG_PICOSAM9G45 is not set +# CONFIG_SAMA5D3_STEPHAN is not set +CONFIG_BOARDNAME="at91sam9x5ek" +AT91SAM9X5=y +CONFIG_MACH_TYPE="3373" +# CONFIG_OVERRIDE_MACH_TYPE is not set +CONFIG_LINK_ADDR="0x300000" +CONFIG_TOP_OF_MEMORY="0x308000" +CONFIG_CRYSTAL_12_000MHZ=y +# CONFIG_CRYSTAL_16_000MHZ is not set +# CONFIG_CRYSTAL_16_36766MHZ is not set +# CONFIG_CRYSTAL_18_432MHZ is not set +# CONFIG_CRYSTAL_24_000MHZ is not set +ALLOW_CRYSTAL_12_000MHZ=y +CONFIG_CRYSTAL="CRYSTAL_12_000MHZ" +# CONFIG_CPU_CLK_166MHZ is not set +# CONFIG_CPU_CLK_180MHZ is not set +# CONFIG_CPU_CLK_200MHZ is not set +# CONFIG_CPU_CLK_240MHZ is not set +# CONFIG_CPU_CLK_266MHZ is not set +# CONFIG_CPU_CLK_332MHZ is not set +# CONFIG_CPU_CLK_348MHZ is not set +# CONFIG_CPU_CLK_396MHZ is not set +CONFIG_CPU_CLK_400MHZ=y +# CONFIG_CPU_CLK_444MHZ is not set +# CONFIG_CPU_CLK_492MHZ is not set +# CONFIG_CPU_CLK_498MHZ is not set +# CONFIG_CPU_CLK_510MHZ is not set +# CONFIG_CPU_CLK_528MHZ is not set +# CONFIG_CPU_CLK_594MHZ is not set +# CONFIG_CPU_CLK_600MHZ is not set +ALLOW_CPU_CLK_400MHZ=y +# DISABLE_CPU_CLK_240MHZ is not set +# CONFIG_BUS_SPEED_83MHZ is not set +# CONFIG_BUS_SPEED_90MHZ is not set +# CONFIG_BUS_SPEED_100MHZ is not set +# CONFIG_BUS_SPEED_116MHZ is not set +# CONFIG_BUS_SPEED_124MHZ is not set +CONFIG_BUS_SPEED_133MHZ=y +# CONFIG_BUS_SPEED_148MHZ is not set +# CONFIG_BUS_SPEED_164MHZ is not set +# CONFIG_BUS_SPEED_166MHZ is not set +# CONFIG_BUS_SPEED_170MHZ is not set +# CONFIG_BUS_SPEED_176MHZ is not set +# CONFIG_BUS_SPEED_200MHZ is not set +SUPPORT_BUS_SPEED_133MHZ=y +# CPU_HAS_TRUSTZONE is not set +# CONFIG_CPU_V7 is not set +# CONFIG_HAS_PMIC_ACT8865 is not set +# CONFIG_SUPPORT_PM is not set +# CONFIG_HAS_ONE_WIRE is not set +# CONFIG_HAS_EEPROM is not set +# CONFIG_HAS_EHT0_PHY is not set +# CONFIG_HAS_EHT1_PHY is not set +# CONFIG_HAS_AUDIO_CODEC is not set +# CONFIG_HAS_HDMI is not set +CORE_ARM926EJS=y +# CORE_CORTEX_A5 is not set +CPU_HAS_SCKC=y +# CPU_HAS_H32MXDIV is not set +CPU_HAS_HSMCI0=y +CPU_HAS_HSMCI1=y +# CPU_HAS_HSMCI2 is not set +# CPU_HAS_MCI0 is not set +# CPU_HAS_MCI1 is not set +# CPU_HAS_SDHC0 is not set +# CPU_HAS_SDHC1 is not set +CPU_HAS_SPI0=y +CPU_HAS_SPI1=y +# CPU_HAS_SPI0_IOSET1 is not set +# CPU_HAS_SPI0_IOSET2 is not set +# CPU_HAS_SPI1_IOSET1 is not set +# CPU_HAS_SPI1_IOSET2 is not set +# CPU_HAS_SPI1_IOSET3 is not set +# CPU_HAS_QSPI0 is not set +# CPU_HAS_QSPI1 is not set +# CPU_HAS_QSPI0_IOSET1 is not set +# CPU_HAS_QSPI0_IOSET2 is not set +# CPU_HAS_QSPI0_IOSET3 is not set +# CPU_HAS_QSPI1_IOSET1 is not set +# CPU_HAS_QSPI1_IOSET2 is not set +# CPU_HAS_QSPI1_IOSET3 is not set +# BOARD_HAS_2_BANKS is not set +CPU_HAS_PIO3=y +# CPU_HAS_L2CC is not set +CPU_HAS_PMECC=y +CONFIG_HAS_HW_INFO=y +# CONFIG_TWI is not set +# CONFIG_TWI0 is not set +# CONFIG_TWI1 is not set +# CONFIG_TWI2 is not set +# CONFIG_TWI3 is not set +# CONFIG_MACB is not set +# CONFIG_AES is not set +# CONFIG_LOAD_HW_INFO is not set +CPU_HAS_TWI0=y +CPU_HAS_TWI1=y +CPU_HAS_TWI2=y +# CPU_HAS_TWI3 is not set +# CPU_HAS_AES is not set +# CPU_HAS_PIO4 is not set + +# +# Memory selection +# +# CONFIG_SDRAM is not set +# CONFIG_SDDRC is not set +CONFIG_DDRC=y +ALLOW_DATAFLASH=y +# ALLOW_FLASH is not set +ALLOW_NANDFLASH=y +ALLOW_SDCARD=y +# ALLOW_PSRAM is not set +# ALLOW_SDRAM_16BIT is not set + +# +# RAM Configuration +# +# CONFIG_RAM_32MB is not set +# CONFIG_RAM_64MB is not set +# CONFIG_RAM_128MB is not set +CONFIG_RAM_256MB=y +# CONFIG_RAM_512MB is not set +# CONFIG_LPDDR1 is not set +# CONFIG_LPDDR2 is not set +# CONFIG_LPDDR3 is not set +CONFIG_DDR2=y +# CONFIG_DDR3 is not set +# CONFIG_SAMA5D2_LPDDR2 is not set +# CONFIG_DATAFLASH is not set +# CONFIG_FLASH is not set +# CONFIG_NANDFLASH is not set +CONFIG_SDCARD=y +CONFIG_MEMORY="sdcard" + +# +# SD Card Configuration +# +CONFIG_AT91_MCI=y +CONFIG_AT91_MCI0=y +# CONFIG_AT91_MCI1 is not set +# CONFIG_AT91_MCI2 is not set +CONFIG_FATFS=y +ALLOW_BOOT_FROM_DATAFLASH_CS0=y +# CONFIG_ENABLE_SW_ECC is not set +CONFIG_USE_PMECC=y +# CONFIG_ON_DIE_ECC is not set + +# +# PMECC Configuration +# +CONFIG_PMECC_AUTO_DETECT=y +# CONFIG_PMECC_CORRECT_BITS_2 is not set +# CONFIG_PMECC_CORRECT_BITS_4 is not set +# CONFIG_PMECC_CORRECT_BITS_8 is not set +# CONFIG_PMECC_CORRECT_BITS_12 is not set +# CONFIG_PMECC_CORRECT_BITS_24 is not set +CONFIG_PMECC_SECTOR_SIZE_512=y +# CONFIG_PMECC_SECTOR_SIZE_1024 is not set +# CONFIG_NANDFLASH_SMALL_BLOCKS is not set +CONFIG_ONFI_DETECT_SUPPORT=y +CONFIG_USE_ON_DIE_ECC_SUPPORT=y +# ALLOW_NANDFLASH_RECOVERY is not set +CONFIG_BOOTSTRAP_MAXSIZE="23000" +CONFIG_PROJECT="sdcard" +CONFIG_LOAD_UBOOT=y +# CONFIG_LOAD_LINUX is not set +# CONFIG_LOAD_ANDROID is not set +# CONFIG_LOAD_1MB is not set +# CONFIG_LOAD_4MB is not set +# CONFIG_LOAD_64KB is not set +CONFIG_IMG_ADDRESS="0x00040000" +CONFIG_JUMP_ADDR="0x2EF00000" + +# +# U-Boot Image Storage Setup +# +CONFIG_IMG_SIZE="0x00080000" +CONFIG_IMAGE_NAME="u-boot.bin" +CONFIG_DEBUG=y +# CONFIG_DEBUG_INFO is not set +# CONFIG_DEBUG_LOUD is not set +CONFIG_DEBUG_VERY_LOUD=y +CONFIG_THUMB=y +# CONFIG_DISABLE_WATCHDOG is not set + +# +# Hardware Initialization Options +# +CONFIG_HW_DISPLAY_BANNER=y +# Indicate ONFI Usage +CONFIG_HW_BANNER="\"\\n\\nAT91Bootstrap \" AT91BOOTSTRAP_VERSION \" (\" COMPILE_TIME \")/MTechONFI\\n\\n\"" +CONFIG_HW_INIT=y +# CONFIG_USER_HW_INIT is not set + +# +# Slow Clock Configuration Options +# +CONFIG_SCLK=y +# CONFIG_SCLK_BYPASS is not set +# CONFIG_BACKUP_MODE is not set + +# +# Board Hardware Information Options +# +# CONFIG_LOAD_ONE_WIRE is not set diff --git a/recipes-bsp/at91bootstrap/at91bootstrap.inc b/recipes-bsp/at91bootstrap/at91bootstrap.inc index 6bd8915..38602ef 100644 --- a/recipes-bsp/at91bootstrap/at91bootstrap.inc +++ b/recipes-bsp/at91bootstrap/at91bootstrap.inc @@ -18,8 +18,10 @@ inherit cml1 deploy # TODO: python2: use python3 inherit python3-dir python3native +DEFCONFIG = "${@oe.utils.conditional('BB_USE_SD', '1', 'file://defconfig-sd', 'file://defconfig-n', d)}" + SRC_URI_append = " \ - file://defconfig \ + ${DEFCONFIG} \ file://onetime-slow-clock-switch.patch \ file://0003-disable-rtc-interrupts.patch \ file://at91sam9x5_4bit_pmecc_header.bin \ diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/config-n.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/config-n.patch new file mode 100644 index 0000000..51fcb1e --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-2016.09.01/config-n.patch @@ -0,0 +1,48 @@ + CONFIG_CMD_SF brings in SPI flash baggage and sets up SPI for the Atmel + AT91SAM9X5EK board, which does not match our usage of pins in the pioA 7 + through pioA 20 region. +====================================================================================== +diff -Naru orig/configs/at91sam9x5ek_nandflash_defconfig new/configs/at91sam9x5ek_nandflash_defconfig +--- orig/configs/at91sam9x5ek_nandflash_defconfig 2022-01-24 16:08:01.151798695 -0600 ++++ new/configs/at91sam9x5ek_nandflash_defconfig 2022-01-24 16:24:37.851818785 -0600 +@@ -1,9 +1,9 @@ + CONFIG_ARM=y + CONFIG_ARCH_AT91=y + CONFIG_TARGET_AT91SAM9X5EK=y +-CONFIG_SPL=y ++CONFIG_SPL=n + CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9X5,SYS_USE_NANDFLASH" +-CONFIG_BOOTDELAY=3 ++CONFIG_BOOTDELAY=0 + CONFIG_HUSH_PARSER=y + CONFIG_SYS_PROMPT="U-Boot> " + CONFIG_CMD_BOOTZ=y +@@ -11,8 +11,8 @@ + # CONFIG_CMD_IMLS is not set + # CONFIG_CMD_FLASH is not set + CONFIG_CMD_MMC=y +-CONFIG_CMD_SF=y +-CONFIG_CMD_USB=y ++# CONFIG_CMD_SF=y is not set ++CONFIG_CMD_USB=n + # CONFIG_CMD_FPGA is not set + # CONFIG_CMD_SETEXPR is not set + CONFIG_CMD_DHCP=y +@@ -23,3 +23,17 @@ + CONFIG_USB=y + CONFIG_USB_STORAGE=y + CONFIG_OF_LIBFDT=y ++ ++CONFIG_OF_CONTROL=n ++CONFIG_CMD_TFTPPUT=y ++CONFIG_CMD_FAT=y ++CONFIG_CMD_NAND=y ++CONFIG_CMD_BOOTZ=y ++CONFIG_CMD_MII=y ++CONFIG_CMD_I2C=y ++ ++# The config option CONFIG_SILENT_CONSOLE can be used to quiet messages ++# on the console. If the option has been enabled, the output can be ++# silenced by setting the environment variable "silent" ++CONFIG_SILENT_CONSOLE=y ++CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC=y diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/config-sd.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/config-sd.patch new file mode 100644 index 0000000..c999469 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-2016.09.01/config-sd.patch @@ -0,0 +1,647 @@ +diff -Naru orig/configs/at91sam9x5ek_nandflash_defconfig new/configs/at91sam9x5ek_nandflash_defconfig +--- orig/configs/at91sam9x5ek_nandflash_defconfig 2022-06-17 18:49:55.855101752 -0500 ++++ new/configs/at91sam9x5ek_nandflash_defconfig 2022-06-17 18:53:11.239097179 -0500 +@@ -1,25 +1,639 @@ ++# ++# Automatically generated file; DO NOT EDIT. ++# U-Boot 2016.09.01 Configuration ++# ++CONFIG_CREATE_ARCH_SYMLINK=y ++# CONFIG_ARC is not set + CONFIG_ARM=y ++# CONFIG_AVR32 is not set ++# CONFIG_BLACKFIN is not set ++# CONFIG_M68K is not set ++# CONFIG_MICROBLAZE is not set ++# CONFIG_MIPS is not set ++# CONFIG_NDS32 is not set ++# CONFIG_NIOS2 is not set ++# CONFIG_OPENRISC is not set ++# CONFIG_PPC is not set ++# CONFIG_SANDBOX is not set ++# CONFIG_SH is not set ++# CONFIG_SPARC is not set ++# CONFIG_X86 is not set ++# CONFIG_XTENSA is not set ++CONFIG_SYS_ARCH="arm" ++CONFIG_SYS_CPU="arm926ejs" ++CONFIG_SYS_SOC="at91" ++CONFIG_SYS_VENDOR="atmel" ++CONFIG_SYS_BOARD="at91sam9x5ek" ++CONFIG_SYS_CONFIG_NAME="at91sam9x5ek" ++ ++# ++# ARM architecture ++# ++CONFIG_CPU_ARM926EJS=y ++CONFIG_SYS_ARM_ARCH=5 ++CONFIG_SYS_CACHE_SHIFT_5=y ++CONFIG_SYS_CACHELINE_SIZE=32 ++# CONFIG_SEMIHOSTING is not set ++# CONFIG_SYS_L2CACHE_OFF is not set ++# CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK is not set + CONFIG_ARCH_AT91=y ++# CONFIG_TARGET_EDB93XX is not set ++# CONFIG_TARGET_VCMA9 is not set ++# CONFIG_TARGET_SMDK2410 is not set ++# CONFIG_TARGET_ASPENITE is not set ++# CONFIG_TARGET_GPLUGD is not set ++# CONFIG_ARCH_DAVINCI is not set ++# CONFIG_KIRKWOOD is not set ++# CONFIG_ARCH_MVEBU is not set ++# CONFIG_TARGET_DEVKIT3250 is not set ++# CONFIG_TARGET_WORK_92105 is not set ++# CONFIG_TARGET_MX25PDK is not set ++# CONFIG_TARGET_ZMX25 is not set ++# CONFIG_TARGET_APF27 is not set ++# CONFIG_TARGET_APX4DEVKIT is not set ++# CONFIG_TARGET_XFI3 is not set ++# CONFIG_TARGET_M28EVK is not set ++# CONFIG_TARGET_MX23EVK is not set ++# CONFIG_TARGET_MX28EVK is not set ++# CONFIG_TARGET_MX23_OLINUXINO is not set ++# CONFIG_TARGET_BG0900 is not set ++# CONFIG_TARGET_SANSA_FUZE_PLUS is not set ++# CONFIG_TARGET_SC_SPS_1 is not set ++# CONFIG_ORION5X is not set ++# CONFIG_TARGET_SPEAR300 is not set ++# CONFIG_TARGET_SPEAR310 is not set ++# CONFIG_TARGET_SPEAR320 is not set ++# CONFIG_TARGET_SPEAR600 is not set ++# CONFIG_TARGET_STV0991 is not set ++# CONFIG_TARGET_X600 is not set ++# CONFIG_TARGET_IMX31_PHYCORE is not set ++# CONFIG_TARGET_MX31ADS is not set ++# CONFIG_TARGET_MX31PDK is not set ++# CONFIG_TARGET_WOODBURN is not set ++# CONFIG_TARGET_WOODBURN_SD is not set ++# CONFIG_TARGET_FLEA3 is not set ++# CONFIG_TARGET_MX35PDK is not set ++# CONFIG_ARCH_BCM283X is not set ++# CONFIG_TARGET_VEXPRESS_CA15_TC2 is not set ++# CONFIG_TARGET_VEXPRESS_CA5X2 is not set ++# CONFIG_TARGET_VEXPRESS_CA9X4 is not set ++# CONFIG_TARGET_BRXRE1 is not set ++# CONFIG_TARGET_BRPPT1 is not set ++# CONFIG_TARGET_CM_T335 is not set ++# CONFIG_TARGET_PEPPER is not set ++# CONFIG_TARGET_AM335X_IGEP0033 is not set ++# CONFIG_TARGET_PCM051 is not set ++# CONFIG_TARGET_DRACO is not set ++# CONFIG_TARGET_THUBAN is not set ++# CONFIG_TARGET_RASTABAN is not set ++# CONFIG_TARGET_ETAMIN is not set ++# CONFIG_TARGET_PXM2 is not set ++# CONFIG_TARGET_RUT is not set ++# CONFIG_TARGET_PENGWYN is not set ++# CONFIG_TARGET_AM335X_BALTOS is not set ++# CONFIG_TARGET_AM335X_EVM is not set ++# CONFIG_TARGET_AM335X_SHC is not set ++# CONFIG_TARGET_AM335X_SL50 is not set ++# CONFIG_TARGET_BAV335X is not set ++# CONFIG_TARGET_TI814X_EVM is not set ++# CONFIG_TARGET_TI816X_EVM is not set ++# CONFIG_TARGET_BCM23550_W1D is not set ++# CONFIG_TARGET_BCM28155_AP is not set ++# CONFIG_TARGET_BCMCYGNUS is not set ++# CONFIG_TARGET_BCMNSP is not set ++# CONFIG_ARCH_EXYNOS is not set ++# CONFIG_ARCH_S5PC1XX is not set ++# CONFIG_ARCH_HIGHBANK is not set ++# CONFIG_ARCH_INTEGRATOR is not set ++# CONFIG_ARCH_KEYSTONE is not set ++# CONFIG_ARCH_MESON is not set ++# CONFIG_ARCH_MX7 is not set ++# CONFIG_ARCH_MX6 is not set ++# CONFIG_ARCH_MX5 is not set ++# CONFIG_TARGET_M53EVK is not set ++# CONFIG_TARGET_MX51EVK is not set ++# CONFIG_TARGET_MX53ARD is not set ++# CONFIG_TARGET_MX53EVK is not set ++# CONFIG_TARGET_MX53LOCO is not set ++# CONFIG_TARGET_MX53SMD is not set ++# CONFIG_OMAP34XX is not set ++# CONFIG_OMAP44XX is not set ++# CONFIG_OMAP54XX is not set ++# CONFIG_AM43XX is not set ++# CONFIG_ARCH_RMOBILE is not set ++# CONFIG_TARGET_S32V234EVB is not set ++# CONFIG_ARCH_SNAPDRAGON is not set ++# CONFIG_ARCH_SOCFPGA is not set ++# CONFIG_TARGET_CM_T43 is not set ++# CONFIG_ARCH_SUNXI is not set ++# CONFIG_TARGET_TS4800 is not set ++# CONFIG_TARGET_VF610TWR is not set ++# CONFIG_TARGET_COLIBRI_VF is not set ++# CONFIG_TARGET_PCM052 is not set ++# CONFIG_ARCH_ZYNQ is not set ++# CONFIG_ARCH_ZYNQMP is not set ++# CONFIG_TEGRA is not set ++# CONFIG_TARGET_VEXPRESS64_AEMV8A is not set ++# CONFIG_TARGET_VEXPRESS64_BASE_FVP is not set ++# CONFIG_TARGET_VEXPRESS64_BASE_FVP_DRAM is not set ++# CONFIG_TARGET_VEXPRESS64_JUNO is not set ++# CONFIG_TARGET_LS2080A_EMU is not set ++# CONFIG_TARGET_LS2080A_SIMU is not set ++# CONFIG_TARGET_LS2080AQDS is not set ++# CONFIG_TARGET_LS2080ARDB is not set ++# CONFIG_TARGET_HIKEY is not set ++# CONFIG_TARGET_LS1012AQDS is not set ++# CONFIG_TARGET_LS1012ARDB is not set ++# CONFIG_TARGET_LS1012AFRDM is not set ++# CONFIG_TARGET_LS1021AQDS is not set ++# CONFIG_TARGET_LS1021ATWR is not set ++# CONFIG_TARGET_LS1043AQDS is not set ++# CONFIG_TARGET_LS1043ARDB is not set ++# CONFIG_TARGET_H2200 is not set ++# CONFIG_TARGET_ZIPITZ2 is not set ++# CONFIG_TARGET_COLIBRI_PXA270 is not set ++# CONFIG_ARCH_UNIPHIER is not set ++# CONFIG_STM32 is not set ++# CONFIG_ARCH_ROCKCHIP is not set ++# CONFIG_TARGET_THUNDERX_88XX is not set ++# CONFIG_TARGET_AT91RM9200EK is not set ++# CONFIG_TARGET_AT91SAM9260EK is not set ++# CONFIG_TARGET_ETHERNUT5 is not set ++# CONFIG_TARGET_SNAPPER9260 is not set ++# CONFIG_TARGET_GURNARD is not set ++# CONFIG_TARGET_AT91SAM9261EK is not set ++# CONFIG_TARGET_PM9261 is not set ++# CONFIG_TARGET_AT91SAM9263EK is not set ++# CONFIG_TARGET_USB_A9263 is not set ++# CONFIG_TARGET_PM9263 is not set ++# CONFIG_TARGET_AT91SAM9M10G45EK is not set ++# CONFIG_TARGET_PM9G45 is not set ++# CONFIG_TARGET_PICOSAM9G45 is not set ++# CONFIG_TARGET_AT91SAM9N12EK is not set ++# CONFIG_TARGET_AT91SAM9RLEK is not set + CONFIG_TARGET_AT91SAM9X5EK=y +-CONFIG_SPL=y +-CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9X5,SYS_USE_NANDFLASH" +-CONFIG_BOOTDELAY=3 ++# CONFIG_TARGET_SAMA5D2_PTC is not set ++# CONFIG_TARGET_SAMA5D2_XPLAINED is not set ++# CONFIG_TARGET_SAMA5D3_XPLAINED is not set ++# CONFIG_TARGET_SAMA5D3XEK is not set ++# CONFIG_TARGET_SAMA5D4_XPLAINED is not set ++# CONFIG_TARGET_SAMA5D4EK is not set ++# CONFIG_TARGET_MA5D4EVK is not set ++# CONFIG_TARGET_MEESC is not set ++# CONFIG_TARGET_CORVUS is not set ++# CONFIG_TARGET_TAURUS is not set ++# CONFIG_TARGET_SMARTWEB is not set ++# CONFIG_TARGET_VINCO is not set ++ ++# ++# ARM debug ++# ++# CONFIG_DEBUG_LL is not set ++ ++# ++# General setup ++# ++CONFIG_LOCALVERSION="" ++CONFIG_LOCALVERSION_AUTO=y ++CONFIG_CC_OPTIMIZE_FOR_SIZE=y ++# CONFIG_DISTRO_DEFAULTS is not set ++# CONFIG_SYS_MALLOC_F is not set ++CONFIG_EXPERT=y ++CONFIG_SYS_MALLOC_CLEAR_ON_INIT=y ++# CONFIG_TOOLS_DEBUG is not set ++# CONFIG_PHYS_64BIT is not set ++ ++# ++# Boot images ++# ++CONFIG_SUPPORT_SPL=y ++# CONFIG_SPL is not set ++# CONFIG_FIT is not set ++# CONFIG_OF_BOARD_SETUP is not set ++# CONFIG_OF_SYSTEM_SETUP is not set ++# CONFIG_OF_STDOUT_VIA_ALIAS is not set ++CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9X5" ++CONFIG_ARCH_FIXUP_FDT=y ++ ++# ++# Boot timing ++# ++# CONFIG_BOOTSTAGE is not set ++CONFIG_BOOTSTAGE_USER_COUNT=20 ++CONFIG_BOOTSTAGE_STASH_ADDR=0 ++CONFIG_BOOTSTAGE_STASH_SIZE=4096 ++ ++# ++# Boot media ++# ++# CONFIG_NAND_BOOT is not set ++# CONFIG_ONENAND_BOOT is not set ++# CONFIG_QSPI_BOOT is not set ++# CONFIG_SATA_BOOT is not set ++# CONFIG_SD_BOOT is not set ++# CONFIG_SPI_BOOT is not set ++CONFIG_BOOTDELAY=0 ++# CONFIG_CONSOLE_RECORD is not set ++# CONFIG_SYS_NO_FLASH is not set ++# CONFIG_VERSION_VARIABLE is not set ++# CONFIG_SILENT_CONSOLE is not set ++ ++# ++# Command line interface ++# ++CONFIG_CMDLINE=y + CONFIG_HUSH_PARSER=y + CONFIG_SYS_PROMPT="U-Boot> " ++ ++# ++# Autoboot options ++# ++CONFIG_AUTOBOOT=y ++# CONFIG_AUTOBOOT_KEYED is not set ++ ++# ++# FASTBOOT ++# ++# CONFIG_FASTBOOT is not set ++ ++# ++# Commands ++# ++ ++# ++# Info commands ++# ++CONFIG_CMD_BDI=y ++CONFIG_CMD_CONSOLE=y ++# CONFIG_CMD_CPU is not set ++# CONFIG_CMD_LICENSE is not set ++ ++# ++# Boot commands ++# ++CONFIG_CMD_BOOTD=y ++CONFIG_CMD_BOOTM=y + CONFIG_CMD_BOOTZ=y ++CONFIG_CMD_BOOTEFI=y ++CONFIG_CMD_ELF=y ++CONFIG_CMD_FDT=y ++CONFIG_CMD_GO=y ++CONFIG_CMD_RUN=y + # CONFIG_CMD_IMI is not set + # CONFIG_CMD_IMLS is not set ++CONFIG_CMD_XIMG=y ++ ++# ++# Environment commands ++# ++# CONFIG_CMD_ASKENV is not set ++CONFIG_CMD_EXPORTENV=y ++CONFIG_CMD_IMPORTENV=y ++CONFIG_CMD_EDITENV=y ++# CONFIG_CMD_GREPENV is not set ++# CONFIG_CMD_SAVEENV is not set ++CONFIG_CMD_ENV_EXISTS=y ++ ++# ++# Memory commands ++# ++CONFIG_CMD_MEMORY=y ++CONFIG_CMD_CRC32=y ++# CONFIG_LOOPW is not set ++# CONFIG_CMD_MEMTEST is not set ++# CONFIG_CMD_MX_CYCLIC is not set ++# CONFIG_CMD_MEMINFO is not set ++ ++# ++# Device access commands ++# ++# CONFIG_CMD_LOADB is not set ++# CONFIG_CMD_LOADS is not set + # CONFIG_CMD_FLASH is not set ++# CONFIG_CMD_ARMFLASH is not set ++# CONFIG_CMD_NAND is not set + CONFIG_CMD_MMC=y +-CONFIG_CMD_SF=y ++# CONFIG_CMD_SF is not set ++# CONFIG_CMD_SPI is not set ++CONFIG_CMD_I2C=y + CONFIG_CMD_USB=y ++# CONFIG_CMD_DFU is not set ++# CONFIG_CMD_USB_MASS_STORAGE is not set + # CONFIG_CMD_FPGA is not set ++# CONFIG_CMD_GPIO is not set ++ ++# ++# Shell scripting commands ++# ++CONFIG_CMD_ECHO=y ++CONFIG_CMD_ITEST=y ++CONFIG_CMD_SOURCE=y + # CONFIG_CMD_SETEXPR is not set ++ ++# ++# Network commands ++# ++CONFIG_CMD_NET=y ++# CONFIG_CMD_TFTPPUT is not set ++# CONFIG_CMD_TFTPSRV is not set ++# CONFIG_CMD_RARP is not set + CONFIG_CMD_DHCP=y ++# CONFIG_CMD_NFS is not set ++# CONFIG_CMD_MII is not set + CONFIG_CMD_PING=y ++# CONFIG_CMD_CDP is not set ++# CONFIG_CMD_SNTP is not set ++# CONFIG_CMD_DNS is not set ++# CONFIG_CMD_LINK_LOCAL is not set ++ ++# ++# Misc commands ++# ++# CONFIG_CMD_CACHE is not set ++# CONFIG_CMD_TIME is not set ++CONFIG_CMD_MISC=y ++# CONFIG_CMD_TIMER is not set ++# CONFIG_CMD_QFW is not set ++ ++# ++# Power commands ++# ++ ++# ++# Security commands ++# ++ ++# ++# Filesystem commands ++# ++# CONFIG_CMD_EXT2 is not set ++CONFIG_CMD_EXT4=y ++CONFIG_CMD_EXT4_WRITE=y + CONFIG_CMD_FAT=y ++CONFIG_CMD_FS_GENERIC=y ++CONFIG_SUPPORT_OF_CONTROL=y ++ ++# ++# Device Tree Control ++# ++# CONFIG_OF_CONTROL is not set ++CONFIG_NET=y ++# CONFIG_NET_RANDOM_ETHADDR is not set ++# CONFIG_NETCONSOLE is not set ++CONFIG_NET_TFTP_VARS=y ++CONFIG_BOOTP_PXE_CLIENTARCH=0x15 ++CONFIG_BOOTP_VCI_STRING="U-Boot.arm" ++ ++# ++# Device Drivers ++# ++ ++# ++# Generic Driver Options ++# ++# CONFIG_DM is not set ++# CONFIG_ADC is not set ++# CONFIG_ADC_EXYNOS is not set ++# CONFIG_ADC_SANDBOX is not set ++# CONFIG_BLOCK_CACHE is not set ++ ++# ++# Clock ++# ++# CONFIG_CPU is not set ++ ++# ++# Hardware crypto devices ++# ++# CONFIG_FSL_CAAM is not set ++ ++# ++# Demo for driver model ++# ++ ++# ++# DFU support ++# ++# CONFIG_DFU_TFTP is not set ++ ++# ++# DMA Support ++# ++# CONFIG_TI_EDMA3 is not set ++ ++# ++# GPIO Support ++# ++ ++# ++# I2C support ++# ++# CONFIG_SYS_I2C_DW is not set ++# CONFIG_CROS_EC_KEYB is not set ++ ++# ++# LED Support ++# ++ ++# ++# Mailbox Controller Support ++# ++ ++# ++# Memory Controller drivers ++# ++ ++# ++# Multifunction device drivers ++# ++# CONFIG_CROS_EC is not set ++# CONFIG_FSL_SEC_MON is not set ++# CONFIG_MXC_OCOTP is not set ++# CONFIG_NUVOTON_NCT6102D is not set ++# CONFIG_PCA9551_LED is not set ++# CONFIG_WINBOND_W83627 is not set ++ ++# ++# MMC Host controller Support ++# ++ ++# ++# MTD Support ++# ++ ++# ++# NAND Device Support ++# ++# CONFIG_NAND_DENALI is not set ++# CONFIG_NAND_VF610_NFC is not set ++# CONFIG_NAND_PXA3XX is not set ++# CONFIG_NAND_ARASAN is not set ++ ++# ++# Generic NAND options ++# ++ ++# ++# SPI Flash Support ++# + CONFIG_SPI_FLASH=y ++# CONFIG_SPI_FLASH_BAR is not set + CONFIG_SPI_FLASH_ATMEL=y ++# CONFIG_SPI_FLASH_EON is not set ++# CONFIG_SPI_FLASH_GIGADEVICE is not set ++# CONFIG_SPI_FLASH_MACRONIX is not set ++# CONFIG_SPI_FLASH_SPANSION is not set ++# CONFIG_SPI_FLASH_STMICRO is not set ++# CONFIG_SPI_FLASH_SST is not set ++# CONFIG_SPI_FLASH_WINBOND is not set ++CONFIG_SPI_FLASH_USE_4K_SECTORS=y ++# CONFIG_SPI_FLASH_MTD is not set ++# CONFIG_PHYLIB is not set ++# CONFIG_NETDEVICES is not set ++ ++# ++# PCI ++# ++ ++# ++# Pin controllers ++# ++ ++# ++# Power ++# ++ ++# ++# Power Domain Support ++# ++ ++# ++# Remote Processor drivers ++# ++ ++# ++# Reset Controller Support ++# ++ ++# ++# Real Time Clock ++# ++ ++# ++# Serial drivers ++# ++# CONFIG_DEBUG_UART is not set ++# CONFIG_DEBUG_UART_SKIP_INIT is not set ++# CONFIG_FSL_LPUART is not set ++# CONFIG_SYS_NS16550 is not set ++ ++# ++# Sound support ++# ++# CONFIG_SOUND is not set ++ ++# ++# SPI Support ++# ++# CONFIG_FSL_ESPI is not set ++# CONFIG_TI_QSPI is not set ++ ++# ++# SPMI support ++# ++ ++# ++# System reset device drivers ++# ++# CONFIG_DM_THERMAL is not set ++ ++# ++# Timer Support ++# ++ ++# ++# TPM support ++# + CONFIG_USB=y ++ ++# ++# USB Host Controller Drivers ++# ++# CONFIG_USB_XHCI_HCD is not set ++# CONFIG_USB_EHCI_HCD is not set ++# CONFIG_USB_EHCI is not set ++# CONFIG_USB_OHCI_HCD is not set ++# CONFIG_USB_UHCI_HCD is not set ++# CONFIG_USB_DWC3 is not set ++ ++# ++# MUSB Controller Driver ++# ++# CONFIG_USB_MUSB_HOST is not set ++# CONFIG_USB_MUSB_GADGET is not set ++ ++# ++# ULPI drivers ++# ++ ++# ++# USB peripherals ++# + CONFIG_USB_STORAGE=y ++# CONFIG_USB_KEYBOARD is not set ++CONFIG_USB_GADGET=y ++CONFIG_USB_GADGET_ATMEL_USBA=y ++# CONFIG_USB_GADGET_BCM_UDC_OTG_PHY is not set ++# CONFIG_USB_GADGET_DWC2_OTG is not set ++# CONFIG_CI_UDC is not set ++CONFIG_USB_GADGET_VBUS_DRAW=2 ++CONFIG_USB_GADGET_DUALSPEED=y ++# CONFIG_USB_GADGET_DOWNLOAD is not set ++ ++# ++# Graphics support ++# ++ ++# ++# TrueType Fonts ++# ++# CONFIG_VIDEO_VESA is not set ++# CONFIG_VIDEO_LCD_ANX9804 is not set ++# CONFIG_VIDEO_LCD_SSD2828 is not set ++# CONFIG_VIDEO_MVEBU is not set ++# CONFIG_PHYS_TO_BUS is not set ++ ++# ++# File systems ++# ++ ++# ++# Library routines ++# ++# CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED is not set ++CONFIG_HAVE_PRIVATE_LIBGCC=y ++CONFIG_USE_PRIVATE_LIBGCC=y ++CONFIG_SYS_HZ=1000 ++# CONFIG_USE_TINY_PRINTF is not set ++CONFIG_REGEX=y ++# CONFIG_LIB_RAND is not set ++# CONFIG_CMD_DHRYSTONE is not set ++# CONFIG_RSA is not set ++ ++# ++# Hashing Support ++# ++# CONFIG_SHA1 is not set ++# CONFIG_SHA256 is not set ++# CONFIG_SHA_HW_ACCEL is not set ++ ++# ++# Compression Support ++# ++# CONFIG_LZ4 is not set ++# CONFIG_ERRNO_STR is not set + CONFIG_OF_LIBFDT=y ++# CONFIG_OF_LIBFDT_OVERLAY is not set ++# CONFIG_SPL_OF_LIBFDT is not set ++CONFIG_EFI_LOADER=y ++# CONFIG_UNIT_TEST is not set diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/config.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/config.patch deleted file mode 100644 index 51fcb1e..0000000 --- a/recipes-bsp/u-boot/u-boot-2016.09.01/config.patch +++ /dev/null @@ -1,48 +0,0 @@ - CONFIG_CMD_SF brings in SPI flash baggage and sets up SPI for the Atmel - AT91SAM9X5EK board, which does not match our usage of pins in the pioA 7 - through pioA 20 region. -====================================================================================== -diff -Naru orig/configs/at91sam9x5ek_nandflash_defconfig new/configs/at91sam9x5ek_nandflash_defconfig ---- orig/configs/at91sam9x5ek_nandflash_defconfig 2022-01-24 16:08:01.151798695 -0600 -+++ new/configs/at91sam9x5ek_nandflash_defconfig 2022-01-24 16:24:37.851818785 -0600 -@@ -1,9 +1,9 @@ - CONFIG_ARM=y - CONFIG_ARCH_AT91=y - CONFIG_TARGET_AT91SAM9X5EK=y --CONFIG_SPL=y -+CONFIG_SPL=n - CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9X5,SYS_USE_NANDFLASH" --CONFIG_BOOTDELAY=3 -+CONFIG_BOOTDELAY=0 - CONFIG_HUSH_PARSER=y - CONFIG_SYS_PROMPT="U-Boot> " - CONFIG_CMD_BOOTZ=y -@@ -11,8 +11,8 @@ - # CONFIG_CMD_IMLS is not set - # CONFIG_CMD_FLASH is not set - CONFIG_CMD_MMC=y --CONFIG_CMD_SF=y --CONFIG_CMD_USB=y -+# CONFIG_CMD_SF=y is not set -+CONFIG_CMD_USB=n - # CONFIG_CMD_FPGA is not set - # CONFIG_CMD_SETEXPR is not set - CONFIG_CMD_DHCP=y -@@ -23,3 +23,17 @@ - CONFIG_USB=y - CONFIG_USB_STORAGE=y - CONFIG_OF_LIBFDT=y -+ -+CONFIG_OF_CONTROL=n -+CONFIG_CMD_TFTPPUT=y -+CONFIG_CMD_FAT=y -+CONFIG_CMD_NAND=y -+CONFIG_CMD_BOOTZ=y -+CONFIG_CMD_MII=y -+CONFIG_CMD_I2C=y -+ -+# The config option CONFIG_SILENT_CONSOLE can be used to quiet messages -+# on the console. If the option has been enabled, the output can be -+# silenced by setting the environment variable "silent" -+CONFIG_SILENT_CONSOLE=y -+CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC=y diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/configfactory.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/configfactory.patch deleted file mode 100644 index c999469..0000000 --- a/recipes-bsp/u-boot/u-boot-2016.09.01/configfactory.patch +++ /dev/null @@ -1,647 +0,0 @@ -diff -Naru orig/configs/at91sam9x5ek_nandflash_defconfig new/configs/at91sam9x5ek_nandflash_defconfig ---- orig/configs/at91sam9x5ek_nandflash_defconfig 2022-06-17 18:49:55.855101752 -0500 -+++ new/configs/at91sam9x5ek_nandflash_defconfig 2022-06-17 18:53:11.239097179 -0500 -@@ -1,25 +1,639 @@ -+# -+# Automatically generated file; DO NOT EDIT. -+# U-Boot 2016.09.01 Configuration -+# -+CONFIG_CREATE_ARCH_SYMLINK=y -+# CONFIG_ARC is not set - CONFIG_ARM=y -+# CONFIG_AVR32 is not set -+# CONFIG_BLACKFIN is not set -+# CONFIG_M68K is not set -+# CONFIG_MICROBLAZE is not set -+# CONFIG_MIPS is not set -+# CONFIG_NDS32 is not set -+# CONFIG_NIOS2 is not set -+# CONFIG_OPENRISC is not set -+# CONFIG_PPC is not set -+# CONFIG_SANDBOX is not set -+# CONFIG_SH is not set -+# CONFIG_SPARC is not set -+# CONFIG_X86 is not set -+# CONFIG_XTENSA is not set -+CONFIG_SYS_ARCH="arm" -+CONFIG_SYS_CPU="arm926ejs" -+CONFIG_SYS_SOC="at91" -+CONFIG_SYS_VENDOR="atmel" -+CONFIG_SYS_BOARD="at91sam9x5ek" -+CONFIG_SYS_CONFIG_NAME="at91sam9x5ek" -+ -+# -+# ARM architecture -+# -+CONFIG_CPU_ARM926EJS=y -+CONFIG_SYS_ARM_ARCH=5 -+CONFIG_SYS_CACHE_SHIFT_5=y -+CONFIG_SYS_CACHELINE_SIZE=32 -+# CONFIG_SEMIHOSTING is not set -+# CONFIG_SYS_L2CACHE_OFF is not set -+# CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK is not set - CONFIG_ARCH_AT91=y -+# CONFIG_TARGET_EDB93XX is not set -+# CONFIG_TARGET_VCMA9 is not set -+# CONFIG_TARGET_SMDK2410 is not set -+# CONFIG_TARGET_ASPENITE is not set -+# CONFIG_TARGET_GPLUGD is not set -+# CONFIG_ARCH_DAVINCI is not set -+# CONFIG_KIRKWOOD is not set -+# CONFIG_ARCH_MVEBU is not set -+# CONFIG_TARGET_DEVKIT3250 is not set -+# CONFIG_TARGET_WORK_92105 is not set -+# CONFIG_TARGET_MX25PDK is not set -+# CONFIG_TARGET_ZMX25 is not set -+# CONFIG_TARGET_APF27 is not set -+# CONFIG_TARGET_APX4DEVKIT is not set -+# CONFIG_TARGET_XFI3 is not set -+# CONFIG_TARGET_M28EVK is not set -+# CONFIG_TARGET_MX23EVK is not set -+# CONFIG_TARGET_MX28EVK is not set -+# CONFIG_TARGET_MX23_OLINUXINO is not set -+# CONFIG_TARGET_BG0900 is not set -+# CONFIG_TARGET_SANSA_FUZE_PLUS is not set -+# CONFIG_TARGET_SC_SPS_1 is not set -+# CONFIG_ORION5X is not set -+# CONFIG_TARGET_SPEAR300 is not set -+# CONFIG_TARGET_SPEAR310 is not set -+# CONFIG_TARGET_SPEAR320 is not set -+# CONFIG_TARGET_SPEAR600 is not set -+# CONFIG_TARGET_STV0991 is not set -+# CONFIG_TARGET_X600 is not set -+# CONFIG_TARGET_IMX31_PHYCORE is not set -+# CONFIG_TARGET_MX31ADS is not set -+# CONFIG_TARGET_MX31PDK is not set -+# CONFIG_TARGET_WOODBURN is not set -+# CONFIG_TARGET_WOODBURN_SD is not set -+# CONFIG_TARGET_FLEA3 is not set -+# CONFIG_TARGET_MX35PDK is not set -+# CONFIG_ARCH_BCM283X is not set -+# CONFIG_TARGET_VEXPRESS_CA15_TC2 is not set -+# CONFIG_TARGET_VEXPRESS_CA5X2 is not set -+# CONFIG_TARGET_VEXPRESS_CA9X4 is not set -+# CONFIG_TARGET_BRXRE1 is not set -+# CONFIG_TARGET_BRPPT1 is not set -+# CONFIG_TARGET_CM_T335 is not set -+# CONFIG_TARGET_PEPPER is not set -+# CONFIG_TARGET_AM335X_IGEP0033 is not set -+# CONFIG_TARGET_PCM051 is not set -+# CONFIG_TARGET_DRACO is not set -+# CONFIG_TARGET_THUBAN is not set -+# CONFIG_TARGET_RASTABAN is not set -+# CONFIG_TARGET_ETAMIN is not set -+# CONFIG_TARGET_PXM2 is not set -+# CONFIG_TARGET_RUT is not set -+# CONFIG_TARGET_PENGWYN is not set -+# CONFIG_TARGET_AM335X_BALTOS is not set -+# CONFIG_TARGET_AM335X_EVM is not set -+# CONFIG_TARGET_AM335X_SHC is not set -+# CONFIG_TARGET_AM335X_SL50 is not set -+# CONFIG_TARGET_BAV335X is not set -+# CONFIG_TARGET_TI814X_EVM is not set -+# CONFIG_TARGET_TI816X_EVM is not set -+# CONFIG_TARGET_BCM23550_W1D is not set -+# CONFIG_TARGET_BCM28155_AP is not set -+# CONFIG_TARGET_BCMCYGNUS is not set -+# CONFIG_TARGET_BCMNSP is not set -+# CONFIG_ARCH_EXYNOS is not set -+# CONFIG_ARCH_S5PC1XX is not set -+# CONFIG_ARCH_HIGHBANK is not set -+# CONFIG_ARCH_INTEGRATOR is not set -+# CONFIG_ARCH_KEYSTONE is not set -+# CONFIG_ARCH_MESON is not set -+# CONFIG_ARCH_MX7 is not set -+# CONFIG_ARCH_MX6 is not set -+# CONFIG_ARCH_MX5 is not set -+# CONFIG_TARGET_M53EVK is not set -+# CONFIG_TARGET_MX51EVK is not set -+# CONFIG_TARGET_MX53ARD is not set -+# CONFIG_TARGET_MX53EVK is not set -+# CONFIG_TARGET_MX53LOCO is not set -+# CONFIG_TARGET_MX53SMD is not set -+# CONFIG_OMAP34XX is not set -+# CONFIG_OMAP44XX is not set -+# CONFIG_OMAP54XX is not set -+# CONFIG_AM43XX is not set -+# CONFIG_ARCH_RMOBILE is not set -+# CONFIG_TARGET_S32V234EVB is not set -+# CONFIG_ARCH_SNAPDRAGON is not set -+# CONFIG_ARCH_SOCFPGA is not set -+# CONFIG_TARGET_CM_T43 is not set -+# CONFIG_ARCH_SUNXI is not set -+# CONFIG_TARGET_TS4800 is not set -+# CONFIG_TARGET_VF610TWR is not set -+# CONFIG_TARGET_COLIBRI_VF is not set -+# CONFIG_TARGET_PCM052 is not set -+# CONFIG_ARCH_ZYNQ is not set -+# CONFIG_ARCH_ZYNQMP is not set -+# CONFIG_TEGRA is not set -+# CONFIG_TARGET_VEXPRESS64_AEMV8A is not set -+# CONFIG_TARGET_VEXPRESS64_BASE_FVP is not set -+# CONFIG_TARGET_VEXPRESS64_BASE_FVP_DRAM is not set -+# CONFIG_TARGET_VEXPRESS64_JUNO is not set -+# CONFIG_TARGET_LS2080A_EMU is not set -+# CONFIG_TARGET_LS2080A_SIMU is not set -+# CONFIG_TARGET_LS2080AQDS is not set -+# CONFIG_TARGET_LS2080ARDB is not set -+# CONFIG_TARGET_HIKEY is not set -+# CONFIG_TARGET_LS1012AQDS is not set -+# CONFIG_TARGET_LS1012ARDB is not set -+# CONFIG_TARGET_LS1012AFRDM is not set -+# CONFIG_TARGET_LS1021AQDS is not set -+# CONFIG_TARGET_LS1021ATWR is not set -+# CONFIG_TARGET_LS1043AQDS is not set -+# CONFIG_TARGET_LS1043ARDB is not set -+# CONFIG_TARGET_H2200 is not set -+# CONFIG_TARGET_ZIPITZ2 is not set -+# CONFIG_TARGET_COLIBRI_PXA270 is not set -+# CONFIG_ARCH_UNIPHIER is not set -+# CONFIG_STM32 is not set -+# CONFIG_ARCH_ROCKCHIP is not set -+# CONFIG_TARGET_THUNDERX_88XX is not set -+# CONFIG_TARGET_AT91RM9200EK is not set -+# CONFIG_TARGET_AT91SAM9260EK is not set -+# CONFIG_TARGET_ETHERNUT5 is not set -+# CONFIG_TARGET_SNAPPER9260 is not set -+# CONFIG_TARGET_GURNARD is not set -+# CONFIG_TARGET_AT91SAM9261EK is not set -+# CONFIG_TARGET_PM9261 is not set -+# CONFIG_TARGET_AT91SAM9263EK is not set -+# CONFIG_TARGET_USB_A9263 is not set -+# CONFIG_TARGET_PM9263 is not set -+# CONFIG_TARGET_AT91SAM9M10G45EK is not set -+# CONFIG_TARGET_PM9G45 is not set -+# CONFIG_TARGET_PICOSAM9G45 is not set -+# CONFIG_TARGET_AT91SAM9N12EK is not set -+# CONFIG_TARGET_AT91SAM9RLEK is not set - CONFIG_TARGET_AT91SAM9X5EK=y --CONFIG_SPL=y --CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9X5,SYS_USE_NANDFLASH" --CONFIG_BOOTDELAY=3 -+# CONFIG_TARGET_SAMA5D2_PTC is not set -+# CONFIG_TARGET_SAMA5D2_XPLAINED is not set -+# CONFIG_TARGET_SAMA5D3_XPLAINED is not set -+# CONFIG_TARGET_SAMA5D3XEK is not set -+# CONFIG_TARGET_SAMA5D4_XPLAINED is not set -+# CONFIG_TARGET_SAMA5D4EK is not set -+# CONFIG_TARGET_MA5D4EVK is not set -+# CONFIG_TARGET_MEESC is not set -+# CONFIG_TARGET_CORVUS is not set -+# CONFIG_TARGET_TAURUS is not set -+# CONFIG_TARGET_SMARTWEB is not set -+# CONFIG_TARGET_VINCO is not set -+ -+# -+# ARM debug -+# -+# CONFIG_DEBUG_LL is not set -+ -+# -+# General setup -+# -+CONFIG_LOCALVERSION="" -+CONFIG_LOCALVERSION_AUTO=y -+CONFIG_CC_OPTIMIZE_FOR_SIZE=y -+# CONFIG_DISTRO_DEFAULTS is not set -+# CONFIG_SYS_MALLOC_F is not set -+CONFIG_EXPERT=y -+CONFIG_SYS_MALLOC_CLEAR_ON_INIT=y -+# CONFIG_TOOLS_DEBUG is not set -+# CONFIG_PHYS_64BIT is not set -+ -+# -+# Boot images -+# -+CONFIG_SUPPORT_SPL=y -+# CONFIG_SPL is not set -+# CONFIG_FIT is not set -+# CONFIG_OF_BOARD_SETUP is not set -+# CONFIG_OF_SYSTEM_SETUP is not set -+# CONFIG_OF_STDOUT_VIA_ALIAS is not set -+CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9X5" -+CONFIG_ARCH_FIXUP_FDT=y -+ -+# -+# Boot timing -+# -+# CONFIG_BOOTSTAGE is not set -+CONFIG_BOOTSTAGE_USER_COUNT=20 -+CONFIG_BOOTSTAGE_STASH_ADDR=0 -+CONFIG_BOOTSTAGE_STASH_SIZE=4096 -+ -+# -+# Boot media -+# -+# CONFIG_NAND_BOOT is not set -+# CONFIG_ONENAND_BOOT is not set -+# CONFIG_QSPI_BOOT is not set -+# CONFIG_SATA_BOOT is not set -+# CONFIG_SD_BOOT is not set -+# CONFIG_SPI_BOOT is not set -+CONFIG_BOOTDELAY=0 -+# CONFIG_CONSOLE_RECORD is not set -+# CONFIG_SYS_NO_FLASH is not set -+# CONFIG_VERSION_VARIABLE is not set -+# CONFIG_SILENT_CONSOLE is not set -+ -+# -+# Command line interface -+# -+CONFIG_CMDLINE=y - CONFIG_HUSH_PARSER=y - CONFIG_SYS_PROMPT="U-Boot> " -+ -+# -+# Autoboot options -+# -+CONFIG_AUTOBOOT=y -+# CONFIG_AUTOBOOT_KEYED is not set -+ -+# -+# FASTBOOT -+# -+# CONFIG_FASTBOOT is not set -+ -+# -+# Commands -+# -+ -+# -+# Info commands -+# -+CONFIG_CMD_BDI=y -+CONFIG_CMD_CONSOLE=y -+# CONFIG_CMD_CPU is not set -+# CONFIG_CMD_LICENSE is not set -+ -+# -+# Boot commands -+# -+CONFIG_CMD_BOOTD=y -+CONFIG_CMD_BOOTM=y - CONFIG_CMD_BOOTZ=y -+CONFIG_CMD_BOOTEFI=y -+CONFIG_CMD_ELF=y -+CONFIG_CMD_FDT=y -+CONFIG_CMD_GO=y -+CONFIG_CMD_RUN=y - # CONFIG_CMD_IMI is not set - # CONFIG_CMD_IMLS is not set -+CONFIG_CMD_XIMG=y -+ -+# -+# Environment commands -+# -+# CONFIG_CMD_ASKENV is not set -+CONFIG_CMD_EXPORTENV=y -+CONFIG_CMD_IMPORTENV=y -+CONFIG_CMD_EDITENV=y -+# CONFIG_CMD_GREPENV is not set -+# CONFIG_CMD_SAVEENV is not set -+CONFIG_CMD_ENV_EXISTS=y -+ -+# -+# Memory commands -+# -+CONFIG_CMD_MEMORY=y -+CONFIG_CMD_CRC32=y -+# CONFIG_LOOPW is not set -+# CONFIG_CMD_MEMTEST is not set -+# CONFIG_CMD_MX_CYCLIC is not set -+# CONFIG_CMD_MEMINFO is not set -+ -+# -+# Device access commands -+# -+# CONFIG_CMD_LOADB is not set -+# CONFIG_CMD_LOADS is not set - # CONFIG_CMD_FLASH is not set -+# CONFIG_CMD_ARMFLASH is not set -+# CONFIG_CMD_NAND is not set - CONFIG_CMD_MMC=y --CONFIG_CMD_SF=y -+# CONFIG_CMD_SF is not set -+# CONFIG_CMD_SPI is not set -+CONFIG_CMD_I2C=y - CONFIG_CMD_USB=y -+# CONFIG_CMD_DFU is not set -+# CONFIG_CMD_USB_MASS_STORAGE is not set - # CONFIG_CMD_FPGA is not set -+# CONFIG_CMD_GPIO is not set -+ -+# -+# Shell scripting commands -+# -+CONFIG_CMD_ECHO=y -+CONFIG_CMD_ITEST=y -+CONFIG_CMD_SOURCE=y - # CONFIG_CMD_SETEXPR is not set -+ -+# -+# Network commands -+# -+CONFIG_CMD_NET=y -+# CONFIG_CMD_TFTPPUT is not set -+# CONFIG_CMD_TFTPSRV is not set -+# CONFIG_CMD_RARP is not set - CONFIG_CMD_DHCP=y -+# CONFIG_CMD_NFS is not set -+# CONFIG_CMD_MII is not set - CONFIG_CMD_PING=y -+# CONFIG_CMD_CDP is not set -+# CONFIG_CMD_SNTP is not set -+# CONFIG_CMD_DNS is not set -+# CONFIG_CMD_LINK_LOCAL is not set -+ -+# -+# Misc commands -+# -+# CONFIG_CMD_CACHE is not set -+# CONFIG_CMD_TIME is not set -+CONFIG_CMD_MISC=y -+# CONFIG_CMD_TIMER is not set -+# CONFIG_CMD_QFW is not set -+ -+# -+# Power commands -+# -+ -+# -+# Security commands -+# -+ -+# -+# Filesystem commands -+# -+# CONFIG_CMD_EXT2 is not set -+CONFIG_CMD_EXT4=y -+CONFIG_CMD_EXT4_WRITE=y - CONFIG_CMD_FAT=y -+CONFIG_CMD_FS_GENERIC=y -+CONFIG_SUPPORT_OF_CONTROL=y -+ -+# -+# Device Tree Control -+# -+# CONFIG_OF_CONTROL is not set -+CONFIG_NET=y -+# CONFIG_NET_RANDOM_ETHADDR is not set -+# CONFIG_NETCONSOLE is not set -+CONFIG_NET_TFTP_VARS=y -+CONFIG_BOOTP_PXE_CLIENTARCH=0x15 -+CONFIG_BOOTP_VCI_STRING="U-Boot.arm" -+ -+# -+# Device Drivers -+# -+ -+# -+# Generic Driver Options -+# -+# CONFIG_DM is not set -+# CONFIG_ADC is not set -+# CONFIG_ADC_EXYNOS is not set -+# CONFIG_ADC_SANDBOX is not set -+# CONFIG_BLOCK_CACHE is not set -+ -+# -+# Clock -+# -+# CONFIG_CPU is not set -+ -+# -+# Hardware crypto devices -+# -+# CONFIG_FSL_CAAM is not set -+ -+# -+# Demo for driver model -+# -+ -+# -+# DFU support -+# -+# CONFIG_DFU_TFTP is not set -+ -+# -+# DMA Support -+# -+# CONFIG_TI_EDMA3 is not set -+ -+# -+# GPIO Support -+# -+ -+# -+# I2C support -+# -+# CONFIG_SYS_I2C_DW is not set -+# CONFIG_CROS_EC_KEYB is not set -+ -+# -+# LED Support -+# -+ -+# -+# Mailbox Controller Support -+# -+ -+# -+# Memory Controller drivers -+# -+ -+# -+# Multifunction device drivers -+# -+# CONFIG_CROS_EC is not set -+# CONFIG_FSL_SEC_MON is not set -+# CONFIG_MXC_OCOTP is not set -+# CONFIG_NUVOTON_NCT6102D is not set -+# CONFIG_PCA9551_LED is not set -+# CONFIG_WINBOND_W83627 is not set -+ -+# -+# MMC Host controller Support -+# -+ -+# -+# MTD Support -+# -+ -+# -+# NAND Device Support -+# -+# CONFIG_NAND_DENALI is not set -+# CONFIG_NAND_VF610_NFC is not set -+# CONFIG_NAND_PXA3XX is not set -+# CONFIG_NAND_ARASAN is not set -+ -+# -+# Generic NAND options -+# -+ -+# -+# SPI Flash Support -+# - CONFIG_SPI_FLASH=y -+# CONFIG_SPI_FLASH_BAR is not set - CONFIG_SPI_FLASH_ATMEL=y -+# CONFIG_SPI_FLASH_EON is not set -+# CONFIG_SPI_FLASH_GIGADEVICE is not set -+# CONFIG_SPI_FLASH_MACRONIX is not set -+# CONFIG_SPI_FLASH_SPANSION is not set -+# CONFIG_SPI_FLASH_STMICRO is not set -+# CONFIG_SPI_FLASH_SST is not set -+# CONFIG_SPI_FLASH_WINBOND is not set -+CONFIG_SPI_FLASH_USE_4K_SECTORS=y -+# CONFIG_SPI_FLASH_MTD is not set -+# CONFIG_PHYLIB is not set -+# CONFIG_NETDEVICES is not set -+ -+# -+# PCI -+# -+ -+# -+# Pin controllers -+# -+ -+# -+# Power -+# -+ -+# -+# Power Domain Support -+# -+ -+# -+# Remote Processor drivers -+# -+ -+# -+# Reset Controller Support -+# -+ -+# -+# Real Time Clock -+# -+ -+# -+# Serial drivers -+# -+# CONFIG_DEBUG_UART is not set -+# CONFIG_DEBUG_UART_SKIP_INIT is not set -+# CONFIG_FSL_LPUART is not set -+# CONFIG_SYS_NS16550 is not set -+ -+# -+# Sound support -+# -+# CONFIG_SOUND is not set -+ -+# -+# SPI Support -+# -+# CONFIG_FSL_ESPI is not set -+# CONFIG_TI_QSPI is not set -+ -+# -+# SPMI support -+# -+ -+# -+# System reset device drivers -+# -+# CONFIG_DM_THERMAL is not set -+ -+# -+# Timer Support -+# -+ -+# -+# TPM support -+# - CONFIG_USB=y -+ -+# -+# USB Host Controller Drivers -+# -+# CONFIG_USB_XHCI_HCD is not set -+# CONFIG_USB_EHCI_HCD is not set -+# CONFIG_USB_EHCI is not set -+# CONFIG_USB_OHCI_HCD is not set -+# CONFIG_USB_UHCI_HCD is not set -+# CONFIG_USB_DWC3 is not set -+ -+# -+# MUSB Controller Driver -+# -+# CONFIG_USB_MUSB_HOST is not set -+# CONFIG_USB_MUSB_GADGET is not set -+ -+# -+# ULPI drivers -+# -+ -+# -+# USB peripherals -+# - CONFIG_USB_STORAGE=y -+# CONFIG_USB_KEYBOARD is not set -+CONFIG_USB_GADGET=y -+CONFIG_USB_GADGET_ATMEL_USBA=y -+# CONFIG_USB_GADGET_BCM_UDC_OTG_PHY is not set -+# CONFIG_USB_GADGET_DWC2_OTG is not set -+# CONFIG_CI_UDC is not set -+CONFIG_USB_GADGET_VBUS_DRAW=2 -+CONFIG_USB_GADGET_DUALSPEED=y -+# CONFIG_USB_GADGET_DOWNLOAD is not set -+ -+# -+# Graphics support -+# -+ -+# -+# TrueType Fonts -+# -+# CONFIG_VIDEO_VESA is not set -+# CONFIG_VIDEO_LCD_ANX9804 is not set -+# CONFIG_VIDEO_LCD_SSD2828 is not set -+# CONFIG_VIDEO_MVEBU is not set -+# CONFIG_PHYS_TO_BUS is not set -+ -+# -+# File systems -+# -+ -+# -+# Library routines -+# -+# CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED is not set -+CONFIG_HAVE_PRIVATE_LIBGCC=y -+CONFIG_USE_PRIVATE_LIBGCC=y -+CONFIG_SYS_HZ=1000 -+# CONFIG_USE_TINY_PRINTF is not set -+CONFIG_REGEX=y -+# CONFIG_LIB_RAND is not set -+# CONFIG_CMD_DHRYSTONE is not set -+# CONFIG_RSA is not set -+ -+# -+# Hashing Support -+# -+# CONFIG_SHA1 is not set -+# CONFIG_SHA256 is not set -+# CONFIG_SHA_HW_ACCEL is not set -+ -+# -+# Compression Support -+# -+# CONFIG_LZ4 is not set -+# CONFIG_ERRNO_STR is not set - CONFIG_OF_LIBFDT=y -+# CONFIG_OF_LIBFDT_OVERLAY is not set -+# CONFIG_SPL_OF_LIBFDT is not set -+CONFIG_EFI_LOADER=y -+# CONFIG_UNIT_TEST is not set diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-n.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-n.patch new file mode 100644 index 0000000..4f265df --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-n.patch @@ -0,0 +1,292 @@ +diff -raNu old/include/configs/at91sam9x5ek.h new/include/configs/at91sam9x5ek.h +--- old/include/configs/at91sam9x5ek.h 2017-05-04 13:59:37.381346896 -0500 ++++ new/include/configs/at91sam9x5ek.h 2017-05-11 08:31:30.258358272 -0500 +@@ -9,9 +9,11 @@ + #ifndef __CONFIG_H__ + #define __CONFIG_H__ + ++#include + #include + +-#define CONFIG_SYS_TEXT_BASE 0x26f00000 ++#define USE_MTCDT ++#define CONFIG_SYS_TEXT_BASE 0x2ef00000 + + /* ARM asynchronous clock */ + #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 +@@ -26,6 +28,8 @@ + #define CONFIG_BOARD_EARLY_INIT_F + #define CONFIG_DISPLAY_CPUINFO + ++#define CONFIG_MISC_INIT_R /* enable platform-dependent misc_init_r() */ ++ + /* general purpose I/O */ + #define CONFIG_ATMEL_LEGACY /* required until (g)pio is fixed */ + #define CONFIG_AT91_GPIO +@@ -36,6 +40,8 @@ + #define CONFIG_USART_ID ATMEL_ID_SYS + + /* LCD */ ++/* MTCDT has no LCD */ ++#if !defined(MTCDT) + #define CONFIG_LCD + #define LCD_BPP LCD_COLOR16 + #define LCD_OUTPUT_BPP 24 +@@ -46,7 +52,13 @@ + #define CONFIG_ATMEL_HLCD + #define CONFIG_ATMEL_LCD_RGB565 + #define CONFIG_SYS_CONSOLE_IS_IN_ENV ++#endif /* !defined(MTCDT) */ ++ ++/* check for keypress even if bootdelay is 0 */ ++#define CONFIG_ZERO_BOOTDELAY_CHECK + ++/*STATUS LED*/ ++#define BOOT_STATUS_LED AT91_PIN_PA24 + + /* + * BOOTP options +@@ -60,10 +72,10 @@ + #define CONFIG_SYS_NO_FLASH + + /* +- * Command line configuration. ++ * Defined by .config (configs/at91sam9x5ek) ++ * #define CONFIG_CMD_I2C + */ +-#define CONFIG_CMD_NAND +- ++#define CONFIG_SYS_I2C + /* + * define CONFIG_USB_EHCI to enable USB Hi-Speed (aka 2.0) + * NB: in this case, USB 1.1 devices won't be recognized. +@@ -72,7 +84,7 @@ + /* SDRAM */ + #define CONFIG_NR_DRAM_BANKS 1 + #define CONFIG_SYS_SDRAM_BASE 0x20000000 +-#define CONFIG_SYS_SDRAM_SIZE 0x08000000 /* 128 megs */ ++#define CONFIG_SYS_SDRAM_SIZE 0x10000000 /* 256 megs */ + + #define CONFIG_SYS_INIT_SP_ADDR \ + (CONFIG_SYS_SDRAM_BASE + 4 * 1024 - GENERATED_GBL_DATA_SIZE) +@@ -94,13 +106,30 @@ + /* our CLE is AD22 */ + #define CONFIG_SYS_NAND_MASK_CLE (1 << 22) + #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PD4 +-#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PD5 ++/* MTCDT nand ready is PC31 */ ++#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC31 + + /* PMECC & PMERRLOC */ + #define CONFIG_ATMEL_NAND_HWECC 1 + #define CONFIG_ATMEL_NAND_HW_PMECC 1 +-#define CONFIG_PMECC_CAP 2 ++ ++/* MTCDT: 4-bit PMECC */ ++#define CONFIG_PMECC_CAP 4 + #define CONFIG_PMECC_SECTOR_SIZE 512 ++/* ++ * CONFIG_PMECC_INDEX_TABLE_OFFSET has been replaced by: ++ * ATMEL_PMECC_INDEX_OFFSET_512 and ++ * ATMEL_PMECC_INDEX_OFFSET_1024 ++ * ++ * Which as used depends on: ++ * host->pmecc_sector_size == 512 ++ * ++ * 2012.10: ++ * #define CONFIG_PMECC_INDEX_TABLE_OFFSET 0x8000 ++ * 2016.03 (at91sam9x5.h): ++ * 182:#define ATMEL_PMECC_INDEX_OFFSET_512 0x8000 ++ */ ++ + + #define CONFIG_CMD_NAND_TRIMFFS + +@@ -147,20 +176,36 @@ + #endif + #endif + ++#define CONFIG_SYS_I2C_SOFT ++#define CONFIG_SOFT_I2C ++#define CONFIG_SOFT_I2C_GPIO_SCL AT91_PIN_PA31 ++#define CONFIG_SOFT_I2C_GPIO_SDA AT91_PIN_PA30 ++#define CONFIG_SYS_I2C_SOFT_SPEED 50000 ++#define CONFIG_SYS_I2C_SPEED CONFIG_SYS_I2C_SOFT_SPEED ++/* Values from previous levels of Conduit U-Boot */ ++#define CONFIG_SYS_I2C_SLAVE 0xfe ++#define I2C_RXTX_LEN 128 ++ ++/* I2C eeprom support */ ++#define CONFIG_CMD_EEPROM ++#define CONFIG_SYS_I2C_EEPROM_ADDR 0x56 /* at24c04 */ ++#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* Bytes of address */ ++#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 ++ + #define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */ + + #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE +-#define CONFIG_SYS_MEMTEST_END 0x26e00000 ++#define CONFIG_SYS_MEMTEST_END 0x2ee00000 + + #ifdef CONFIG_SYS_USE_NANDFLASH + /* bootstrap + u-boot + env + linux in nandflash */ + #define CONFIG_ENV_IS_IN_NAND + #define CONFIG_ENV_OFFSET 0xc0000 +-#define CONFIG_ENV_OFFSET_REDUND 0x100000 ++#define CONFIG_ENV_OFFSET_REDUND 0x160000 + #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ +-#define CONFIG_BOOTCOMMAND "nand read " \ +- "0x22000000 0x200000 0x300000; " \ +- "bootm 0x22000000" ++/* MTCDT: read from env variables for boot */ ++#define CONFIG_BOOTCOMMAND "nboot.jffs2 ${loadaddr} 0 ${kernel_addr}; bootm ${loadaddr}" ++ + #elif defined(CONFIG_SYS_USE_SPIFLASH) + /* bootstrap + u-boot + env + linux in spi flash */ + #define CONFIG_ENV_IS_IN_SPI_FLASH +@@ -197,6 +242,9 @@ + "8M(bootstrap/uboot/kernel)ro,-(rootfs) " \ + "root=/dev/mmcblk0p2 " \ + "rw rootfstype=ext4 rootwait" ++#elif defined(USE_MTCDT) ++/* MTCDT uses jffs2 */ ++#define CONFIG_BOOTARGS "mem=256M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2" + #else + #define CONFIG_BOOTARGS \ + "console=ttyS0,115200 earlyprintk " \ +@@ -274,4 +322,21 @@ + + #endif + ++/* MTCDT defaults */ ++#define CONFIG_ENV_OVERWRITE 1 /* Allow Overwrite of serial# & ethaddr */ ++#define CONFIG_ETHADDR 00:08:00:87:00:02 ++#define CONFIG_IPADDR 192.168.2.1 ++#define CONFIG_NETMASK 255.255.255.0 ++#define CONFIG_SERVERIP 192.168.2.2 ++#define CONFIG_HOSTNAME AT91SAM9G25 ++#define CONFIG_LOADADDR 0x22000000 ++ ++/* MTCDT - enable watchdog */ ++#define CONFIG_AT91SAM9_WATCHDOG 1 ++#define CONFIG_HW_WATCHDOG 1 ++#define CONFIG_AT91_HW_WDT_TIMEOUT 16 ++#define CONFIG_EXTRA_ENV_SETTINGS \ ++ "kernel_addr=0x200000\0" \ ++ "" ++ + #endif +diff -raNu old/board/atmel/at91sam9x5ek/at91sam9x5ek.c new/board/atmel/at91sam9x5ek/at91sam9x5ek.c +--- old/board/atmel/at91sam9x5ek/at91sam9x5ek.c 2017-05-05 11:09:53.668926301 -0500 ++++ new/board/atmel/at91sam9x5ek/at91sam9x5ek.c 2017-05-05 17:35:53.342774065 -0500 +@@ -44,7 +44,8 @@ + csa = readl(&matrix->ebicsa); + csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA; + /* NAND flash on D16 */ +- csa |= AT91_MATRIX_NFD0_ON_D16; ++ /* MTCDT: nand flash is set up by bootstrap, so leave it alone here */ ++ /* csa |= AT91_MATRIX_NFD0_ON_D16; */ + + /* Configure IO drive */ + csa &= ~AT91_MATRIX_EBI_EBI_IOSR_NORMAL; +@@ -256,6 +257,9 @@ + + int board_init(void) + { ++ /* Set Status LED High */ ++ at91_set_gpio_output(BOOT_STATUS_LED, 0); ++ + /* arch number of AT91SAM9X5EK-Board */ + gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9X5EK; + +@@ -267,6 +271,7 @@ + #endif + + #ifdef CONFIG_ATMEL_SPI ++ at91_spi0_hw_init(1 << 0); + at91_spi0_hw_init(1 << 4); + #endif + +@@ -283,12 +288,6 @@ + return 0; + } + +-int dram_init(void) +-{ +- gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE, +- CONFIG_SYS_SDRAM_SIZE); +- return 0; +-} + + #if defined(CONFIG_SPL_BUILD) + #include +@@ -362,4 +361,69 @@ + /* DDRAM2 Controller initialize */ + ddr2_init(ATMEL_BASE_DDRSDRC, ATMEL_BASE_CS1, &ddr2); + } ++ + #endif ++ ++/* on-board EEPROM */ ++struct mts_id_eeprom_layout { ++ char vendor_id[32]; ++ char product_id[32]; ++ char device_id[32]; ++ char hw_version[32]; ++ uint8_t mac_addr[6]; ++ char imei[32]; ++ uint8_t capa[32]; ++ uint8_t mac_bluetooth[6]; ++ uint8_t mac_wifi[6]; ++ uint8_t reserved[302]; ++}; ++ ++int board_get_enetaddr(uchar *enetaddr) ++{ ++ struct mts_id_eeprom_layout eeprom_buffer = {0}; ++ ++ if (eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, &eeprom_buffer, sizeof(eeprom_buffer))) { ++ printf("EEPROM: read error\n"); ++ return 0; ++ } ++ ++ if (eeprom_buffer.vendor_id[0] == 0x00 || eeprom_buffer.vendor_id[0] == 0xFF) { ++ printf("EEPROM: uninitialized\n"); ++ return 0; ++ } ++ ++ printf("vendor-id: %s\n", eeprom_buffer.vendor_id); ++ printf("product-id: %s\n", eeprom_buffer.product_id); ++ printf("device-id: %s\n", eeprom_buffer.device_id); ++ printf("hw-version: %s\n", eeprom_buffer.hw_version); ++ printf("mac-addr: %02x:%02x:%02x:%02x:%02x:%02x\n", eeprom_buffer.mac_addr[0], ++ eeprom_buffer.mac_addr[1], ++ eeprom_buffer.mac_addr[2], ++ eeprom_buffer.mac_addr[3], ++ eeprom_buffer.mac_addr[4], ++ eeprom_buffer.mac_addr[5]); ++ ++ memcpy(enetaddr, eeprom_buffer.mac_addr, 6); ++ ++ return 1; ++} ++ ++int misc_init_r(void) ++{ ++ uchar enetaddr[6]; ++ ++ /* set MAC address from EEPROM if read successful */ ++ if (board_get_enetaddr(enetaddr)) { ++ eth_setenv_enetaddr("ethaddr", enetaddr); ++ } ++ ++ return 0; ++} ++ ++int dram_init(void) ++{ ++ gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE, ++ CONFIG_SYS_SDRAM_SIZE); ++ return 0; ++} ++ diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch new file mode 100644 index 0000000..3ccaf87 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch @@ -0,0 +1,309 @@ +diff -Naru orig/include/configs/at91sam9x5ek.h new/include/configs/at91sam9x5ek.h +--- orig/include/configs/at91sam9x5ek.h 2022-06-17 18:30:03.683129650 -0500 ++++ new/include/configs/at91sam9x5ek.h 2022-06-17 19:38:08.647034056 -0500 +@@ -9,9 +9,12 @@ + #ifndef __CONFIG_H__ + #define __CONFIG_H__ + ++#include + #include + +-#define CONFIG_SYS_TEXT_BASE 0x26f00000 ++#define USE_MTCDT ++#define MTCDT ++#define CONFIG_SYS_TEXT_BASE 0x2ef00000 + + /* ARM asynchronous clock */ + #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 +@@ -26,6 +29,9 @@ + #define CONFIG_BOARD_EARLY_INIT_F + #define CONFIG_DISPLAY_CPUINFO + ++#define CONFIG_SYS_USE_MMC ++#define CONFIG_MISC_INIT_R /* enable platform-dependent misc_init_r() */ ++ + /* general purpose I/O */ + #define CONFIG_ATMEL_LEGACY /* required until (g)pio is fixed */ + #define CONFIG_AT91_GPIO +@@ -36,6 +42,8 @@ + #define CONFIG_USART_ID ATMEL_ID_SYS + + /* LCD */ ++/* MTCDT has no LCD */ ++#if !defined(MTCDT) + #define CONFIG_LCD + #define LCD_BPP LCD_COLOR16 + #define LCD_OUTPUT_BPP 24 +@@ -46,7 +54,13 @@ + #define CONFIG_ATMEL_HLCD + #define CONFIG_ATMEL_LCD_RGB565 + #define CONFIG_SYS_CONSOLE_IS_IN_ENV ++#endif /* !defined(MTCDT) */ ++ ++/* check for keypress even if bootdelay is 0 */ ++#define CONFIG_ZERO_BOOTDELAY_CHECK + ++/*STATUS LED*/ ++#define BOOT_STATUS_LED AT91_PIN_PA24 + + /* + * BOOTP options +@@ -60,10 +74,10 @@ + #define CONFIG_SYS_NO_FLASH + + /* +- * Command line configuration. ++ * Defined by .config (configs/at91sam9x5ek) ++ * #define CONFIG_CMD_I2C + */ +-#define CONFIG_CMD_NAND +- ++#define CONFIG_SYS_I2C + /* + * define CONFIG_USB_EHCI to enable USB Hi-Speed (aka 2.0) + * NB: in this case, USB 1.1 devices won't be recognized. +@@ -72,7 +86,7 @@ + /* SDRAM */ + #define CONFIG_NR_DRAM_BANKS 1 + #define CONFIG_SYS_SDRAM_BASE 0x20000000 +-#define CONFIG_SYS_SDRAM_SIZE 0x08000000 /* 128 megs */ ++#define CONFIG_SYS_SDRAM_SIZE 0x10000000 /* 256 megs */ + + #define CONFIG_SYS_INIT_SP_ADDR \ + (CONFIG_SYS_SDRAM_BASE + 4 * 1024 - GENERATED_GBL_DATA_SIZE) +@@ -94,13 +108,30 @@ + /* our CLE is AD22 */ + #define CONFIG_SYS_NAND_MASK_CLE (1 << 22) + #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PD4 +-#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PD5 ++/* MTCDT nand ready is PC31 */ ++#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC31 + + /* PMECC & PMERRLOC */ + #define CONFIG_ATMEL_NAND_HWECC 1 + #define CONFIG_ATMEL_NAND_HW_PMECC 1 +-#define CONFIG_PMECC_CAP 2 ++ ++/* MTCDT: 4-bit PMECC */ ++#define CONFIG_PMECC_CAP 4 + #define CONFIG_PMECC_SECTOR_SIZE 512 ++/* ++ * CONFIG_PMECC_INDEX_TABLE_OFFSET has been replaced by: ++ * ATMEL_PMECC_INDEX_OFFSET_512 and ++ * ATMEL_PMECC_INDEX_OFFSET_1024 ++ * ++ * Which as used depends on: ++ * host->pmecc_sector_size == 512 ++ * ++ * 2012.10: ++ * #define CONFIG_PMECC_INDEX_TABLE_OFFSET 0x8000 ++ * 2016.03 (at91sam9x5.h): ++ * 182:#define ATMEL_PMECC_INDEX_OFFSET_512 0x8000 ++ */ ++ + + #define CONFIG_CMD_NAND_TRIMFFS + +@@ -147,20 +178,36 @@ + #endif + #endif + ++#define CONFIG_SYS_I2C_SOFT ++#define CONFIG_SOFT_I2C ++#define CONFIG_SOFT_I2C_GPIO_SCL AT91_PIN_PA31 ++#define CONFIG_SOFT_I2C_GPIO_SDA AT91_PIN_PA30 ++#define CONFIG_SYS_I2C_SOFT_SPEED 50000 ++#define CONFIG_SYS_I2C_SPEED CONFIG_SYS_I2C_SOFT_SPEED ++/* Values from previous levels of Conduit U-Boot */ ++#define CONFIG_SYS_I2C_SLAVE 0xfe ++#define I2C_RXTX_LEN 128 ++ ++/* I2C eeprom support */ ++#define CONFIG_CMD_EEPROM ++#define CONFIG_SYS_I2C_EEPROM_ADDR 0x56 /* at24c04 */ ++#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* Bytes of address */ ++#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 ++ + #define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */ + + #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE +-#define CONFIG_SYS_MEMTEST_END 0x26e00000 ++#define CONFIG_SYS_MEMTEST_END 0x2ee00000 + + #ifdef CONFIG_SYS_USE_NANDFLASH + /* bootstrap + u-boot + env + linux in nandflash */ + #define CONFIG_ENV_IS_IN_NAND + #define CONFIG_ENV_OFFSET 0xc0000 +-#define CONFIG_ENV_OFFSET_REDUND 0x100000 ++/* #define CONFIG_ENV_OFFSET_REDUND 0x160000 */ + #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ +-#define CONFIG_BOOTCOMMAND "nand read " \ +- "0x22000000 0x200000 0x300000; " \ +- "bootm 0x22000000" ++/* MTCDT: read from env variables for boot */ ++#define CONFIG_BOOTCOMMAND "nboot.jffs2 ${loadaddr} 0 ${kernel_addr}; bootm ${loadaddr}" ++ + #elif defined(CONFIG_SYS_USE_SPIFLASH) + /* bootstrap + u-boot + env + linux in spi flash */ + #define CONFIG_ENV_IS_IN_SPI_FLASH +@@ -192,11 +239,15 @@ + #endif + + #ifdef CONFIG_SYS_USE_MMC ++#define CONFIG_BOOTCOMMAND "load mmc 0:1 ${loadaddr} uImage; bootm ${loadaddr}" + #define CONFIG_BOOTARGS "mem=128M console=ttyS0,115200 " \ + "mtdparts=atmel_nand:" \ + "8M(bootstrap/uboot/kernel)ro,-(rootfs) " \ + "root=/dev/mmcblk0p2 " \ + "rw rootfstype=ext4 rootwait" ++#elif defined(USE_MTCDT) ++/* MTCDT uses jffs2 */ ++#define CONFIG_BOOTARGS "mem=256M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2" + #else + #define CONFIG_BOOTARGS \ + "console=ttyS0,115200 earlyprintk " \ +@@ -264,7 +315,7 @@ + #define CONFIG_SYS_NAND_OOBSIZE 64 + #define CONFIG_SYS_NAND_BLOCK_SIZE 0x20000 + #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0x0 +-#define CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER ++/* # CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER is not defined */ + + #elif CONFIG_SYS_USE_SPIFLASH + #define CONFIG_SPL_SPI_SUPPORT +@@ -274,4 +325,21 @@ + + #endif + ++/* MTCDT defaults */ ++#define CONFIG_ENV_OVERWRITE 1 /* Allow Overwrite of serial# & ethaddr */ ++#define CONFIG_ETHADDR 00:08:00:87:00:02 ++#define CONFIG_IPADDR 192.168.2.1 ++#define CONFIG_NETMASK 255.255.255.0 ++#define CONFIG_SERVERIP 192.168.2.2 ++#define CONFIG_HOSTNAME AT91SAM9G25 ++#define CONFIG_LOADADDR 0x22000000 ++ ++/* MTCDT - enable watchdog */ ++#define CONFIG_AT91SAM9_WATCHDOG 1 ++#define CONFIG_HW_WATCHDOG 1 ++#define CONFIG_AT91_HW_WDT_TIMEOUT 16 ++#define CONFIG_EXTRA_ENV_SETTINGS \ ++ "kernel_addr=0x200000\0" \ ++ "" ++ + #endif +diff -raNu old/board/atmel/at91sam9x5ek/at91sam9x5ek.c new/board/atmel/at91sam9x5ek/at91sam9x5ek.c +--- old/board/atmel/at91sam9x5ek/at91sam9x5ek.c 2017-05-05 11:09:53.668926301 -0500 ++++ new/board/atmel/at91sam9x5ek/at91sam9x5ek.c 2017-05-05 17:35:53.342774065 -0500 +@@ -44,7 +44,8 @@ + csa = readl(&matrix->ebicsa); + csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA; + /* NAND flash on D16 */ +- csa |= AT91_MATRIX_NFD0_ON_D16; ++ /* MTCDT: nand flash is set up by bootstrap, so leave it alone here */ ++ /* csa |= AT91_MATRIX_NFD0_ON_D16; */ + + /* Configure IO drive */ + csa &= ~AT91_MATRIX_EBI_EBI_IOSR_NORMAL; +@@ -256,6 +257,9 @@ + + int board_init(void) + { ++ /* Set Status LED High */ ++ at91_set_gpio_output(BOOT_STATUS_LED, 0); ++ + /* arch number of AT91SAM9X5EK-Board */ + gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9X5EK; + +@@ -267,6 +271,7 @@ + #endif + + #ifdef CONFIG_ATMEL_SPI ++ at91_spi0_hw_init(1 << 0); + at91_spi0_hw_init(1 << 4); + #endif + +@@ -283,12 +288,6 @@ + return 0; + } + +-int dram_init(void) +-{ +- gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE, +- CONFIG_SYS_SDRAM_SIZE); +- return 0; +-} + + #if defined(CONFIG_SPL_BUILD) + #include +@@ -362,4 +361,69 @@ + /* DDRAM2 Controller initialize */ + ddr2_init(ATMEL_BASE_DDRSDRC, ATMEL_BASE_CS1, &ddr2); + } ++ + #endif ++ ++/* on-board EEPROM */ ++struct mts_id_eeprom_layout { ++ char vendor_id[32]; ++ char product_id[32]; ++ char device_id[32]; ++ char hw_version[32]; ++ uint8_t mac_addr[6]; ++ char imei[32]; ++ uint8_t capa[32]; ++ uint8_t mac_bluetooth[6]; ++ uint8_t mac_wifi[6]; ++ uint8_t reserved[302]; ++}; ++ ++int board_get_enetaddr(uchar *enetaddr) ++{ ++ struct mts_id_eeprom_layout eeprom_buffer = {0}; ++ ++ if (eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, &eeprom_buffer, sizeof(eeprom_buffer))) { ++ printf("EEPROM: read error\n"); ++ return 0; ++ } ++ ++ if (eeprom_buffer.vendor_id[0] == 0x00 || eeprom_buffer.vendor_id[0] == 0xFF) { ++ printf("EEPROM: uninitialized\n"); ++ return 0; ++ } ++ ++ printf("vendor-id: %s\n", eeprom_buffer.vendor_id); ++ printf("product-id: %s\n", eeprom_buffer.product_id); ++ printf("device-id: %s\n", eeprom_buffer.device_id); ++ printf("hw-version: %s\n", eeprom_buffer.hw_version); ++ printf("mac-addr: %02x:%02x:%02x:%02x:%02x:%02x\n", eeprom_buffer.mac_addr[0], ++ eeprom_buffer.mac_addr[1], ++ eeprom_buffer.mac_addr[2], ++ eeprom_buffer.mac_addr[3], ++ eeprom_buffer.mac_addr[4], ++ eeprom_buffer.mac_addr[5]); ++ ++ memcpy(enetaddr, eeprom_buffer.mac_addr, 6); ++ ++ return 1; ++} ++ ++int misc_init_r(void) ++{ ++ uchar enetaddr[6]; ++ ++ /* set MAC address from EEPROM if read successful */ ++ if (board_get_enetaddr(enetaddr)) { ++ eth_setenv_enetaddr("ethaddr", enetaddr); ++ } ++ ++ return 0; ++} ++ ++int dram_init(void) ++{ ++ gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE, ++ CONFIG_SYS_SDRAM_SIZE); ++ return 0; ++} ++ diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt.patch deleted file mode 100644 index 4f265df..0000000 --- a/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt.patch +++ /dev/null @@ -1,292 +0,0 @@ -diff -raNu old/include/configs/at91sam9x5ek.h new/include/configs/at91sam9x5ek.h ---- old/include/configs/at91sam9x5ek.h 2017-05-04 13:59:37.381346896 -0500 -+++ new/include/configs/at91sam9x5ek.h 2017-05-11 08:31:30.258358272 -0500 -@@ -9,9 +9,11 @@ - #ifndef __CONFIG_H__ - #define __CONFIG_H__ - -+#include - #include - --#define CONFIG_SYS_TEXT_BASE 0x26f00000 -+#define USE_MTCDT -+#define CONFIG_SYS_TEXT_BASE 0x2ef00000 - - /* ARM asynchronous clock */ - #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 -@@ -26,6 +28,8 @@ - #define CONFIG_BOARD_EARLY_INIT_F - #define CONFIG_DISPLAY_CPUINFO - -+#define CONFIG_MISC_INIT_R /* enable platform-dependent misc_init_r() */ -+ - /* general purpose I/O */ - #define CONFIG_ATMEL_LEGACY /* required until (g)pio is fixed */ - #define CONFIG_AT91_GPIO -@@ -36,6 +40,8 @@ - #define CONFIG_USART_ID ATMEL_ID_SYS - - /* LCD */ -+/* MTCDT has no LCD */ -+#if !defined(MTCDT) - #define CONFIG_LCD - #define LCD_BPP LCD_COLOR16 - #define LCD_OUTPUT_BPP 24 -@@ -46,7 +52,13 @@ - #define CONFIG_ATMEL_HLCD - #define CONFIG_ATMEL_LCD_RGB565 - #define CONFIG_SYS_CONSOLE_IS_IN_ENV -+#endif /* !defined(MTCDT) */ -+ -+/* check for keypress even if bootdelay is 0 */ -+#define CONFIG_ZERO_BOOTDELAY_CHECK - -+/*STATUS LED*/ -+#define BOOT_STATUS_LED AT91_PIN_PA24 - - /* - * BOOTP options -@@ -60,10 +72,10 @@ - #define CONFIG_SYS_NO_FLASH - - /* -- * Command line configuration. -+ * Defined by .config (configs/at91sam9x5ek) -+ * #define CONFIG_CMD_I2C - */ --#define CONFIG_CMD_NAND -- -+#define CONFIG_SYS_I2C - /* - * define CONFIG_USB_EHCI to enable USB Hi-Speed (aka 2.0) - * NB: in this case, USB 1.1 devices won't be recognized. -@@ -72,7 +84,7 @@ - /* SDRAM */ - #define CONFIG_NR_DRAM_BANKS 1 - #define CONFIG_SYS_SDRAM_BASE 0x20000000 --#define CONFIG_SYS_SDRAM_SIZE 0x08000000 /* 128 megs */ -+#define CONFIG_SYS_SDRAM_SIZE 0x10000000 /* 256 megs */ - - #define CONFIG_SYS_INIT_SP_ADDR \ - (CONFIG_SYS_SDRAM_BASE + 4 * 1024 - GENERATED_GBL_DATA_SIZE) -@@ -94,13 +106,30 @@ - /* our CLE is AD22 */ - #define CONFIG_SYS_NAND_MASK_CLE (1 << 22) - #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PD4 --#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PD5 -+/* MTCDT nand ready is PC31 */ -+#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC31 - - /* PMECC & PMERRLOC */ - #define CONFIG_ATMEL_NAND_HWECC 1 - #define CONFIG_ATMEL_NAND_HW_PMECC 1 --#define CONFIG_PMECC_CAP 2 -+ -+/* MTCDT: 4-bit PMECC */ -+#define CONFIG_PMECC_CAP 4 - #define CONFIG_PMECC_SECTOR_SIZE 512 -+/* -+ * CONFIG_PMECC_INDEX_TABLE_OFFSET has been replaced by: -+ * ATMEL_PMECC_INDEX_OFFSET_512 and -+ * ATMEL_PMECC_INDEX_OFFSET_1024 -+ * -+ * Which as used depends on: -+ * host->pmecc_sector_size == 512 -+ * -+ * 2012.10: -+ * #define CONFIG_PMECC_INDEX_TABLE_OFFSET 0x8000 -+ * 2016.03 (at91sam9x5.h): -+ * 182:#define ATMEL_PMECC_INDEX_OFFSET_512 0x8000 -+ */ -+ - - #define CONFIG_CMD_NAND_TRIMFFS - -@@ -147,20 +176,36 @@ - #endif - #endif - -+#define CONFIG_SYS_I2C_SOFT -+#define CONFIG_SOFT_I2C -+#define CONFIG_SOFT_I2C_GPIO_SCL AT91_PIN_PA31 -+#define CONFIG_SOFT_I2C_GPIO_SDA AT91_PIN_PA30 -+#define CONFIG_SYS_I2C_SOFT_SPEED 50000 -+#define CONFIG_SYS_I2C_SPEED CONFIG_SYS_I2C_SOFT_SPEED -+/* Values from previous levels of Conduit U-Boot */ -+#define CONFIG_SYS_I2C_SLAVE 0xfe -+#define I2C_RXTX_LEN 128 -+ -+/* I2C eeprom support */ -+#define CONFIG_CMD_EEPROM -+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x56 /* at24c04 */ -+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* Bytes of address */ -+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 -+ - #define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */ - - #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE --#define CONFIG_SYS_MEMTEST_END 0x26e00000 -+#define CONFIG_SYS_MEMTEST_END 0x2ee00000 - - #ifdef CONFIG_SYS_USE_NANDFLASH - /* bootstrap + u-boot + env + linux in nandflash */ - #define CONFIG_ENV_IS_IN_NAND - #define CONFIG_ENV_OFFSET 0xc0000 --#define CONFIG_ENV_OFFSET_REDUND 0x100000 -+#define CONFIG_ENV_OFFSET_REDUND 0x160000 - #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ --#define CONFIG_BOOTCOMMAND "nand read " \ -- "0x22000000 0x200000 0x300000; " \ -- "bootm 0x22000000" -+/* MTCDT: read from env variables for boot */ -+#define CONFIG_BOOTCOMMAND "nboot.jffs2 ${loadaddr} 0 ${kernel_addr}; bootm ${loadaddr}" -+ - #elif defined(CONFIG_SYS_USE_SPIFLASH) - /* bootstrap + u-boot + env + linux in spi flash */ - #define CONFIG_ENV_IS_IN_SPI_FLASH -@@ -197,6 +242,9 @@ - "8M(bootstrap/uboot/kernel)ro,-(rootfs) " \ - "root=/dev/mmcblk0p2 " \ - "rw rootfstype=ext4 rootwait" -+#elif defined(USE_MTCDT) -+/* MTCDT uses jffs2 */ -+#define CONFIG_BOOTARGS "mem=256M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2" - #else - #define CONFIG_BOOTARGS \ - "console=ttyS0,115200 earlyprintk " \ -@@ -274,4 +322,21 @@ - - #endif - -+/* MTCDT defaults */ -+#define CONFIG_ENV_OVERWRITE 1 /* Allow Overwrite of serial# & ethaddr */ -+#define CONFIG_ETHADDR 00:08:00:87:00:02 -+#define CONFIG_IPADDR 192.168.2.1 -+#define CONFIG_NETMASK 255.255.255.0 -+#define CONFIG_SERVERIP 192.168.2.2 -+#define CONFIG_HOSTNAME AT91SAM9G25 -+#define CONFIG_LOADADDR 0x22000000 -+ -+/* MTCDT - enable watchdog */ -+#define CONFIG_AT91SAM9_WATCHDOG 1 -+#define CONFIG_HW_WATCHDOG 1 -+#define CONFIG_AT91_HW_WDT_TIMEOUT 16 -+#define CONFIG_EXTRA_ENV_SETTINGS \ -+ "kernel_addr=0x200000\0" \ -+ "" -+ - #endif -diff -raNu old/board/atmel/at91sam9x5ek/at91sam9x5ek.c new/board/atmel/at91sam9x5ek/at91sam9x5ek.c ---- old/board/atmel/at91sam9x5ek/at91sam9x5ek.c 2017-05-05 11:09:53.668926301 -0500 -+++ new/board/atmel/at91sam9x5ek/at91sam9x5ek.c 2017-05-05 17:35:53.342774065 -0500 -@@ -44,7 +44,8 @@ - csa = readl(&matrix->ebicsa); - csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA; - /* NAND flash on D16 */ -- csa |= AT91_MATRIX_NFD0_ON_D16; -+ /* MTCDT: nand flash is set up by bootstrap, so leave it alone here */ -+ /* csa |= AT91_MATRIX_NFD0_ON_D16; */ - - /* Configure IO drive */ - csa &= ~AT91_MATRIX_EBI_EBI_IOSR_NORMAL; -@@ -256,6 +257,9 @@ - - int board_init(void) - { -+ /* Set Status LED High */ -+ at91_set_gpio_output(BOOT_STATUS_LED, 0); -+ - /* arch number of AT91SAM9X5EK-Board */ - gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9X5EK; - -@@ -267,6 +271,7 @@ - #endif - - #ifdef CONFIG_ATMEL_SPI -+ at91_spi0_hw_init(1 << 0); - at91_spi0_hw_init(1 << 4); - #endif - -@@ -283,12 +288,6 @@ - return 0; - } - --int dram_init(void) --{ -- gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE, -- CONFIG_SYS_SDRAM_SIZE); -- return 0; --} - - #if defined(CONFIG_SPL_BUILD) - #include -@@ -362,4 +361,69 @@ - /* DDRAM2 Controller initialize */ - ddr2_init(ATMEL_BASE_DDRSDRC, ATMEL_BASE_CS1, &ddr2); - } -+ - #endif -+ -+/* on-board EEPROM */ -+struct mts_id_eeprom_layout { -+ char vendor_id[32]; -+ char product_id[32]; -+ char device_id[32]; -+ char hw_version[32]; -+ uint8_t mac_addr[6]; -+ char imei[32]; -+ uint8_t capa[32]; -+ uint8_t mac_bluetooth[6]; -+ uint8_t mac_wifi[6]; -+ uint8_t reserved[302]; -+}; -+ -+int board_get_enetaddr(uchar *enetaddr) -+{ -+ struct mts_id_eeprom_layout eeprom_buffer = {0}; -+ -+ if (eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, &eeprom_buffer, sizeof(eeprom_buffer))) { -+ printf("EEPROM: read error\n"); -+ return 0; -+ } -+ -+ if (eeprom_buffer.vendor_id[0] == 0x00 || eeprom_buffer.vendor_id[0] == 0xFF) { -+ printf("EEPROM: uninitialized\n"); -+ return 0; -+ } -+ -+ printf("vendor-id: %s\n", eeprom_buffer.vendor_id); -+ printf("product-id: %s\n", eeprom_buffer.product_id); -+ printf("device-id: %s\n", eeprom_buffer.device_id); -+ printf("hw-version: %s\n", eeprom_buffer.hw_version); -+ printf("mac-addr: %02x:%02x:%02x:%02x:%02x:%02x\n", eeprom_buffer.mac_addr[0], -+ eeprom_buffer.mac_addr[1], -+ eeprom_buffer.mac_addr[2], -+ eeprom_buffer.mac_addr[3], -+ eeprom_buffer.mac_addr[4], -+ eeprom_buffer.mac_addr[5]); -+ -+ memcpy(enetaddr, eeprom_buffer.mac_addr, 6); -+ -+ return 1; -+} -+ -+int misc_init_r(void) -+{ -+ uchar enetaddr[6]; -+ -+ /* set MAC address from EEPROM if read successful */ -+ if (board_get_enetaddr(enetaddr)) { -+ eth_setenv_enetaddr("ethaddr", enetaddr); -+ } -+ -+ return 0; -+} -+ -+int dram_init(void) -+{ -+ gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE, -+ CONFIG_SYS_SDRAM_SIZE); -+ return 0; -+} -+ diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdtsd.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdtsd.patch deleted file mode 100644 index 3ccaf87..0000000 --- a/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdtsd.patch +++ /dev/null @@ -1,309 +0,0 @@ -diff -Naru orig/include/configs/at91sam9x5ek.h new/include/configs/at91sam9x5ek.h ---- orig/include/configs/at91sam9x5ek.h 2022-06-17 18:30:03.683129650 -0500 -+++ new/include/configs/at91sam9x5ek.h 2022-06-17 19:38:08.647034056 -0500 -@@ -9,9 +9,12 @@ - #ifndef __CONFIG_H__ - #define __CONFIG_H__ - -+#include - #include - --#define CONFIG_SYS_TEXT_BASE 0x26f00000 -+#define USE_MTCDT -+#define MTCDT -+#define CONFIG_SYS_TEXT_BASE 0x2ef00000 - - /* ARM asynchronous clock */ - #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 -@@ -26,6 +29,9 @@ - #define CONFIG_BOARD_EARLY_INIT_F - #define CONFIG_DISPLAY_CPUINFO - -+#define CONFIG_SYS_USE_MMC -+#define CONFIG_MISC_INIT_R /* enable platform-dependent misc_init_r() */ -+ - /* general purpose I/O */ - #define CONFIG_ATMEL_LEGACY /* required until (g)pio is fixed */ - #define CONFIG_AT91_GPIO -@@ -36,6 +42,8 @@ - #define CONFIG_USART_ID ATMEL_ID_SYS - - /* LCD */ -+/* MTCDT has no LCD */ -+#if !defined(MTCDT) - #define CONFIG_LCD - #define LCD_BPP LCD_COLOR16 - #define LCD_OUTPUT_BPP 24 -@@ -46,7 +54,13 @@ - #define CONFIG_ATMEL_HLCD - #define CONFIG_ATMEL_LCD_RGB565 - #define CONFIG_SYS_CONSOLE_IS_IN_ENV -+#endif /* !defined(MTCDT) */ -+ -+/* check for keypress even if bootdelay is 0 */ -+#define CONFIG_ZERO_BOOTDELAY_CHECK - -+/*STATUS LED*/ -+#define BOOT_STATUS_LED AT91_PIN_PA24 - - /* - * BOOTP options -@@ -60,10 +74,10 @@ - #define CONFIG_SYS_NO_FLASH - - /* -- * Command line configuration. -+ * Defined by .config (configs/at91sam9x5ek) -+ * #define CONFIG_CMD_I2C - */ --#define CONFIG_CMD_NAND -- -+#define CONFIG_SYS_I2C - /* - * define CONFIG_USB_EHCI to enable USB Hi-Speed (aka 2.0) - * NB: in this case, USB 1.1 devices won't be recognized. -@@ -72,7 +86,7 @@ - /* SDRAM */ - #define CONFIG_NR_DRAM_BANKS 1 - #define CONFIG_SYS_SDRAM_BASE 0x20000000 --#define CONFIG_SYS_SDRAM_SIZE 0x08000000 /* 128 megs */ -+#define CONFIG_SYS_SDRAM_SIZE 0x10000000 /* 256 megs */ - - #define CONFIG_SYS_INIT_SP_ADDR \ - (CONFIG_SYS_SDRAM_BASE + 4 * 1024 - GENERATED_GBL_DATA_SIZE) -@@ -94,13 +108,30 @@ - /* our CLE is AD22 */ - #define CONFIG_SYS_NAND_MASK_CLE (1 << 22) - #define CONFIG_SYS_NAND_ENABLE_PIN AT91_PIN_PD4 --#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PD5 -+/* MTCDT nand ready is PC31 */ -+#define CONFIG_SYS_NAND_READY_PIN AT91_PIN_PC31 - - /* PMECC & PMERRLOC */ - #define CONFIG_ATMEL_NAND_HWECC 1 - #define CONFIG_ATMEL_NAND_HW_PMECC 1 --#define CONFIG_PMECC_CAP 2 -+ -+/* MTCDT: 4-bit PMECC */ -+#define CONFIG_PMECC_CAP 4 - #define CONFIG_PMECC_SECTOR_SIZE 512 -+/* -+ * CONFIG_PMECC_INDEX_TABLE_OFFSET has been replaced by: -+ * ATMEL_PMECC_INDEX_OFFSET_512 and -+ * ATMEL_PMECC_INDEX_OFFSET_1024 -+ * -+ * Which as used depends on: -+ * host->pmecc_sector_size == 512 -+ * -+ * 2012.10: -+ * #define CONFIG_PMECC_INDEX_TABLE_OFFSET 0x8000 -+ * 2016.03 (at91sam9x5.h): -+ * 182:#define ATMEL_PMECC_INDEX_OFFSET_512 0x8000 -+ */ -+ - - #define CONFIG_CMD_NAND_TRIMFFS - -@@ -147,20 +178,36 @@ - #endif - #endif - -+#define CONFIG_SYS_I2C_SOFT -+#define CONFIG_SOFT_I2C -+#define CONFIG_SOFT_I2C_GPIO_SCL AT91_PIN_PA31 -+#define CONFIG_SOFT_I2C_GPIO_SDA AT91_PIN_PA30 -+#define CONFIG_SYS_I2C_SOFT_SPEED 50000 -+#define CONFIG_SYS_I2C_SPEED CONFIG_SYS_I2C_SOFT_SPEED -+/* Values from previous levels of Conduit U-Boot */ -+#define CONFIG_SYS_I2C_SLAVE 0xfe -+#define I2C_RXTX_LEN 128 -+ -+/* I2C eeprom support */ -+#define CONFIG_CMD_EEPROM -+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x56 /* at24c04 */ -+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* Bytes of address */ -+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 -+ - #define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */ - - #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE --#define CONFIG_SYS_MEMTEST_END 0x26e00000 -+#define CONFIG_SYS_MEMTEST_END 0x2ee00000 - - #ifdef CONFIG_SYS_USE_NANDFLASH - /* bootstrap + u-boot + env + linux in nandflash */ - #define CONFIG_ENV_IS_IN_NAND - #define CONFIG_ENV_OFFSET 0xc0000 --#define CONFIG_ENV_OFFSET_REDUND 0x100000 -+/* #define CONFIG_ENV_OFFSET_REDUND 0x160000 */ - #define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */ --#define CONFIG_BOOTCOMMAND "nand read " \ -- "0x22000000 0x200000 0x300000; " \ -- "bootm 0x22000000" -+/* MTCDT: read from env variables for boot */ -+#define CONFIG_BOOTCOMMAND "nboot.jffs2 ${loadaddr} 0 ${kernel_addr}; bootm ${loadaddr}" -+ - #elif defined(CONFIG_SYS_USE_SPIFLASH) - /* bootstrap + u-boot + env + linux in spi flash */ - #define CONFIG_ENV_IS_IN_SPI_FLASH -@@ -192,11 +239,15 @@ - #endif - - #ifdef CONFIG_SYS_USE_MMC -+#define CONFIG_BOOTCOMMAND "load mmc 0:1 ${loadaddr} uImage; bootm ${loadaddr}" - #define CONFIG_BOOTARGS "mem=128M console=ttyS0,115200 " \ - "mtdparts=atmel_nand:" \ - "8M(bootstrap/uboot/kernel)ro,-(rootfs) " \ - "root=/dev/mmcblk0p2 " \ - "rw rootfstype=ext4 rootwait" -+#elif defined(USE_MTCDT) -+/* MTCDT uses jffs2 */ -+#define CONFIG_BOOTARGS "mem=256M console=ttyS0,115200 root=/dev/mtdblock8 ro rootfstype=jffs2" - #else - #define CONFIG_BOOTARGS \ - "console=ttyS0,115200 earlyprintk " \ -@@ -264,7 +315,7 @@ - #define CONFIG_SYS_NAND_OOBSIZE 64 - #define CONFIG_SYS_NAND_BLOCK_SIZE 0x20000 - #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0x0 --#define CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER -+/* # CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER is not defined */ - - #elif CONFIG_SYS_USE_SPIFLASH - #define CONFIG_SPL_SPI_SUPPORT -@@ -274,4 +325,21 @@ - - #endif - -+/* MTCDT defaults */ -+#define CONFIG_ENV_OVERWRITE 1 /* Allow Overwrite of serial# & ethaddr */ -+#define CONFIG_ETHADDR 00:08:00:87:00:02 -+#define CONFIG_IPADDR 192.168.2.1 -+#define CONFIG_NETMASK 255.255.255.0 -+#define CONFIG_SERVERIP 192.168.2.2 -+#define CONFIG_HOSTNAME AT91SAM9G25 -+#define CONFIG_LOADADDR 0x22000000 -+ -+/* MTCDT - enable watchdog */ -+#define CONFIG_AT91SAM9_WATCHDOG 1 -+#define CONFIG_HW_WATCHDOG 1 -+#define CONFIG_AT91_HW_WDT_TIMEOUT 16 -+#define CONFIG_EXTRA_ENV_SETTINGS \ -+ "kernel_addr=0x200000\0" \ -+ "" -+ - #endif -diff -raNu old/board/atmel/at91sam9x5ek/at91sam9x5ek.c new/board/atmel/at91sam9x5ek/at91sam9x5ek.c ---- old/board/atmel/at91sam9x5ek/at91sam9x5ek.c 2017-05-05 11:09:53.668926301 -0500 -+++ new/board/atmel/at91sam9x5ek/at91sam9x5ek.c 2017-05-05 17:35:53.342774065 -0500 -@@ -44,7 +44,8 @@ - csa = readl(&matrix->ebicsa); - csa |= AT91_MATRIX_EBI_CS3A_SMC_SMARTMEDIA; - /* NAND flash on D16 */ -- csa |= AT91_MATRIX_NFD0_ON_D16; -+ /* MTCDT: nand flash is set up by bootstrap, so leave it alone here */ -+ /* csa |= AT91_MATRIX_NFD0_ON_D16; */ - - /* Configure IO drive */ - csa &= ~AT91_MATRIX_EBI_EBI_IOSR_NORMAL; -@@ -256,6 +257,9 @@ - - int board_init(void) - { -+ /* Set Status LED High */ -+ at91_set_gpio_output(BOOT_STATUS_LED, 0); -+ - /* arch number of AT91SAM9X5EK-Board */ - gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9X5EK; - -@@ -267,6 +271,7 @@ - #endif - - #ifdef CONFIG_ATMEL_SPI -+ at91_spi0_hw_init(1 << 0); - at91_spi0_hw_init(1 << 4); - #endif - -@@ -283,12 +288,6 @@ - return 0; - } - --int dram_init(void) --{ -- gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE, -- CONFIG_SYS_SDRAM_SIZE); -- return 0; --} - - #if defined(CONFIG_SPL_BUILD) - #include -@@ -362,4 +361,69 @@ - /* DDRAM2 Controller initialize */ - ddr2_init(ATMEL_BASE_DDRSDRC, ATMEL_BASE_CS1, &ddr2); - } -+ - #endif -+ -+/* on-board EEPROM */ -+struct mts_id_eeprom_layout { -+ char vendor_id[32]; -+ char product_id[32]; -+ char device_id[32]; -+ char hw_version[32]; -+ uint8_t mac_addr[6]; -+ char imei[32]; -+ uint8_t capa[32]; -+ uint8_t mac_bluetooth[6]; -+ uint8_t mac_wifi[6]; -+ uint8_t reserved[302]; -+}; -+ -+int board_get_enetaddr(uchar *enetaddr) -+{ -+ struct mts_id_eeprom_layout eeprom_buffer = {0}; -+ -+ if (eeprom_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, &eeprom_buffer, sizeof(eeprom_buffer))) { -+ printf("EEPROM: read error\n"); -+ return 0; -+ } -+ -+ if (eeprom_buffer.vendor_id[0] == 0x00 || eeprom_buffer.vendor_id[0] == 0xFF) { -+ printf("EEPROM: uninitialized\n"); -+ return 0; -+ } -+ -+ printf("vendor-id: %s\n", eeprom_buffer.vendor_id); -+ printf("product-id: %s\n", eeprom_buffer.product_id); -+ printf("device-id: %s\n", eeprom_buffer.device_id); -+ printf("hw-version: %s\n", eeprom_buffer.hw_version); -+ printf("mac-addr: %02x:%02x:%02x:%02x:%02x:%02x\n", eeprom_buffer.mac_addr[0], -+ eeprom_buffer.mac_addr[1], -+ eeprom_buffer.mac_addr[2], -+ eeprom_buffer.mac_addr[3], -+ eeprom_buffer.mac_addr[4], -+ eeprom_buffer.mac_addr[5]); -+ -+ memcpy(enetaddr, eeprom_buffer.mac_addr, 6); -+ -+ return 1; -+} -+ -+int misc_init_r(void) -+{ -+ uchar enetaddr[6]; -+ -+ /* set MAC address from EEPROM if read successful */ -+ if (board_get_enetaddr(enetaddr)) { -+ eth_setenv_enetaddr("ethaddr", enetaddr); -+ } -+ -+ return 0; -+} -+ -+int dram_init(void) -+{ -+ gd->ram_size = get_ram_size((void *) CONFIG_SYS_SDRAM_BASE, -+ CONFIG_SYS_SDRAM_SIZE); -+ return 0; -+} -+ -- cgit v1.2.3