Commit 09308e8e4953886951a3b5921d6944584e997dc0
Committed by
Stefano Babic
1 parent
4d64050b06
Exists in
master
and in
50 other branches
mx28evk: Add 'nandboot' environment command
This reads the kernel, ftd and boot into ubifs filesystem. While on that, the SD firmware filename definition has been moved next to the other SD related commands. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Showing 1 changed file with 17 additions and 1 deletions Side-by-side Diff
include/configs/mx28evk.h
... | ... | @@ -162,7 +162,6 @@ |
162 | 162 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
163 | 163 | "update_nand_full_filename=u-boot.nand\0" \ |
164 | 164 | "update_nand_firmware_filename=u-boot.sb\0" \ |
165 | - "update_sd_firmware_filename=u-boot.sd\0" \ | |
166 | 165 | "update_nand_firmware_maxsz=0x100000\0" \ |
167 | 166 | "update_nand_stride=0x40\0" /* MX28 datasheet ch. 12.12 */ \ |
168 | 167 | "update_nand_count=0x4\0" /* MX28 datasheet ch. 12.12 */ \ |
... | ... | @@ -190,6 +189,23 @@ |
190 | 189 | "nand write ${loadaddr} ${fcb_sz} ${filesize} ; " \ |
191 | 190 | "nand write ${loadaddr} ${fw_off} ${filesize} ; " \ |
192 | 191 | "fi\0" \ |
192 | + "nandargs=setenv bootargs console=${console_mainline},${baudrate} " \ | |
193 | + "rootfstype=ubifs ubi.mtd=6 root=ubi0_0 ${mtdparts}\0" \ | |
194 | + "nandboot=" /* Boot from NAND */ \ | |
195 | + "mtdparts default; " \ | |
196 | + "run nandargs; " \ | |
197 | + "nand read ${loadaddr} kernel 0x00400000; " \ | |
198 | + "if test ${boot_fdt} = yes; then " \ | |
199 | + "nand read ${fdt_addr} fdt 0x00080000; " \ | |
200 | + "bootm ${loadaddr} - ${fdt_addr}; " \ | |
201 | + "else " \ | |
202 | + "if test ${boot_fdt} = no; then " \ | |
203 | + "bootm; " \ | |
204 | + "else " \ | |
205 | + "echo \"ERROR: Set boot_fdt to yes or no.\"; " \ | |
206 | + "fi; " \ | |
207 | + "fi\0" \ | |
208 | + "update_sd_firmware_filename=u-boot.sd\0" \ | |
193 | 209 | "update_sd_firmware=" /* Update the SD firmware partition */ \ |
194 | 210 | "if mmc rescan ; then " \ |
195 | 211 | "if tftp ${update_sd_firmware_filename} ; then " \ |