Lines Matching +full:mmc +full:- +full:spi +full:- +full:slot

12 - AM335x GP EVM
13 - AM335x EVM SK
14 - Beaglebone White
15 - Beaglebone Black
23 worth noting that aside from things such as NAND or MMC only being
27 - GPIO is only required if DDR3 power is controlled in a way similar to
29 - SPI is only required for SPI flash, or exposing the SPI bus.
32 - I2C, to talk with the PMIC and ensure that we do not run afoul of
48 inserted with the files to write in the first SD slot and that mtdparts
52 Step-1: Building u-boot for NAND boot
56 CONFIG_SYS_NAND_BLOCK_SIZE number of bytes in NAND erase-block
60 Step-2: Flashing NAND via MMC/SD
61 # select BOOTSEL to MMC/SD boot and boot from MMC/SD card
62 U-Boot # mmc rescan
64 U-Boot # nand erase.chip
65 U-Boot # env default -f -a
66 U-Boot # saveenv
68 U-Boot # load mmc 0 0x82000000 MLO
69 U-Boot # nand write 0x82000000 0x00000 0x20000
70 U-Boot # nand write 0x82000000 0x20000 0x20000
71 U-Boot # nand write 0x82000000 0x40000 0x20000
72 U-Boot # nand write 0x82000000 0x60000 0x20000
73 # flash u-boot.img
74 U-Boot # load mmc 0 0x82000000 u-boot.img
75 U-Boot # nand write 0x82000000 0x80000 0x60000
77 U-Boot # load mmc 0 0x82000000 uImage
78 U-Boot # nand write 0x82000000 ${nandsrcaddr} ${nandimgsize}
80 U-Boot # load mmc 0 0x82000000 filesystem.img
81 U-Boot # nand write 0x82000000 ${loadaddress} 0x300000
83 Step-3: Set BOOTSEL pin to select NAND boot, and POR the device.
91 program and boot from NOR. Note that due to how U-Boot is designed we
92 must build a specific version of U-Boot that knows we have NOR flash. This
96 MLO and u-boot.img from a 'am335x_evm_nor' build and also contains the
97 'u-boot.bin' from a 'am335x_evm_norboot' build. When booting from NOR, a
103 U-Boot # mmc rescan
104 U-Boot # load mmc 0 ${loadaddr} u-boot.bin
105 U-Boot # protect off 08000000 +80000
106 U-Boot # erase 08000000 +80000
107 U-Boot # cp.b ${loadaddr} 08000000 ${filesize}
115 OS payload (so as soon as possible) to opt to booting full U-Boot. Also
119 worst-case however.
126 MMC BLOCKS |--------------------------------| LOCATION IN BYTES
127 0x0000 - 0x007F : MBR or GPT table : 0x000000 - 0x020000
128 0x0080 - 0x00FF : ARGS or FDT file : 0x010000 - 0x020000
129 0x0100 - 0x01FF : SPL.backup1 (first copy used) : 0x020000 - 0x040000
130 0x0200 - 0x02FF : SPL.backup2 (second copy used) : 0x040000 - 0x060000
131 0x0300 - 0x06FF : U-Boot : 0x060000 - 0x0e0000
132 0x0700 - 0x08FF : U-Boot Env + Redundant : 0x0e0000 - 0x120000
133 0x0900 - 0x28FF : Kernel : 0x120000 - 0x520000
138 would leave us with an image that if written to MMC will not boot, so
141 and assume a valid partition table already exists and 'mmc dev' has already
147 # Ensure we are able to talk with this mmc device
148 U-Boot # mmc rescan
149 U-Boot # tftp 81000000 am335x/MLO
151 U-Boot # mmc write 81000000 100 100
152 U-Boot # mmc write 81000000 200 100
153 # Write U-Boot to the location set in the config
154 U-Boot # tftp 81000000 am335x/u-boot.img
155 U-Boot # mmc write 81000000 300 400
157 U-Boot # tftp 81000000 am335x/uImage
158 U-Boot # run findfdt
159 U-Boot # tftp ${fdtaddr} am335x/${fdtfile}
160 U-Boot # run mmcargs
161 U-Boot # spl export fdt 81000000 - ${fdtaddr}
162 # Write the updated device tree to MMC
163 U-Boot # mmc write ${fdtaddr} 80 80
164 # Write the uImage to MMC
165 U-Boot # mmc write 81000000 900 2000
176 U-Boot # mmc rescan
178 U-Boot # load mmc 0:1 ${loadaddr} uImage
179 U-Boot # run findfdt
180 U-Boot # load mmc 0:1 ${fdtaddr} ${fdtfile}
181 U-Boot # run mmcargs
182 U-Boot # spl export fdt ${loadaddr} - ${fdtaddr}
189 U-Boot # fatwrite mmc 0:1 0x80f80000 args 8928
200 U-Boot # nand read ${loadaddr} kernel
201 U-Boot # load nand rootfs ${fdtaddr} /boot/am335x-evm.dtb
202 U-Boot # run nandargs
203 U-Boot # spl export fdt ${loadaddr} - ${fdtaddr}
204 U-Boot # nand erase.part u-boot-spl-os
205 U-Boot # nand write ${fdtaddr} u-boot-spl-os