From 98ef7f7f13d49f3660218ff2cfb310a91cab814c Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 17 May 2022 09:30:12 -0500 Subject: Create an mLinux with SD card Bootstrap and U-BOot with USB --- .../at91bootstrap/at91bootstrap-3.8.12/README-SD | 44 ++++++++++++++++++++++ .../at91bootstrap/at91bootstrap-3.8.12/defconfig | 30 ++++++++++----- 2 files changed, 64 insertions(+), 10 deletions(-) create mode 100644 recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/README-SD (limited to 'recipes-bsp/at91bootstrap') diff --git a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/README-SD b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/README-SD new file mode 100644 index 0000000..060f3cb --- /dev/null +++ b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/README-SD @@ -0,0 +1,44 @@ +This procedure from (on May 16, 2022): + +https://www.linux4sam.org/bin/view/Linux4SAM/SDCardBootNotice + + +For SD card boot, there are several files in the first partition: + +BOOT.BIN (at91bootstrap) +u-boot.bin (U-Boot) +uImage (kernel) + + +To make the SD card as root on a Linux PC: + +dd if=/dev/zero of=/dev/sdx bs=10M count=1 + +fdisk /dev/sdx + +Command (m for help): p +Disk /dev/sdx: 2002 MB, 2002780160 bytes +11 heads, 10 sectors/track, 35560 cylinders +Units = cylinders of 110 * 512 = 56320 bytes +Sector size (logical/physical): 512 bytes / 512 bytes +I/O size (minimum/optimal): 512 bytes / 512 bytes +Disk identifier: 0x00000000 + + Device Boot Start End Blocks Id System + +Command (m for help): n +Command action + e extended + p primary partition (1-4) +p +Partition number (1-4): 1 +First cylinder (1-35560, default 1): +Using default value 1 +Last cylinder, +cylinders or +size{K,M,G} (1-35560, default 35560): +64M + +Command (m for help): t +Selected partition 1 +Hex code (type L to list codes): 6 +Changed system type of partition 1 to 6 (FAT16) + + diff --git a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig index ba0a902..32f9575 100644 --- a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig +++ b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/defconfig @@ -19,9 +19,10 @@ CONFIG_AT91SAM9X5EK=y # 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_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 @@ -29,9 +30,12 @@ CONFIG_AT91SAM9X5EK=y # 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 @@ -108,6 +112,7 @@ CPU_HAS_SPI1=y # 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 @@ -119,7 +124,7 @@ CONFIG_HAS_HW_INFO=y # CONFIG_TWI3 is not set # CONFIG_MACB is not set # CONFIG_AES is not set -CONFIG_LOAD_HW_INFO=y +# CONFIG_LOAD_HW_INFO is not set CPU_HAS_TWI0=y CPU_HAS_TWI1=y CPU_HAS_TWI2=y @@ -156,14 +161,19 @@ CONFIG_DDR2=y # 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 +# CONFIG_NANDFLASH is not set +CONFIG_SDCARD=y +CONFIG_MEMORY="sdcard" # -# NAND flash configuration +# 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 @@ -184,7 +194,7 @@ 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_PROJECT="sdcard" CONFIG_LOAD_UBOOT=y # CONFIG_LOAD_LINUX is not set # CONFIG_LOAD_ANDROID is not set @@ -200,9 +210,9 @@ CONFIG_JUMP_ADDR="0x2EF00000" CONFIG_IMG_SIZE="0x00080000" CONFIG_IMAGE_NAME="u-boot.bin" CONFIG_DEBUG=y -CONFIG_DEBUG_INFO=y +# CONFIG_DEBUG_INFO is not set # CONFIG_DEBUG_LOUD is not set -CONFIG_DEBUG_VERY_LOUD=y is not set +CONFIG_DEBUG_VERY_LOUD=y CONFIG_THUMB=y # CONFIG_DISABLE_WATCHDOG is not set -- cgit v1.2.3