HW23: Set environnement to boot from ostree image

BugzID: 57825
This commit is contained in:
Alexandre Bard 2019-07-10 08:58:54 +02:00
parent 0fbd99d1de
commit 5b716b4e5f
1 changed files with 11 additions and 22 deletions

View File

@ -214,28 +214,17 @@
"else " \
"booti; " \
"fi;" \
"fi;\0"
/*
#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev}; if mmc rescan; then " \
"if run loadbootscript; then " \
"run bootscript; " \
"else " \
"if test ${sec_boot} = yes; then " \
"if run loadcntr; then " \
"run mmcboot; " \
"else run netboot; " \
"fi; " \
"else " \
"if run loadimage; then " \
"run mmcboot; " \
"else run netboot; " \
"fi; " \
"fi; " \
"fi; " \
"else booti ${loadaddr} - ${fdt_addr}; fi"
*/
"fi;\0" \
"bootcmd=run bootcmd_otenv; run bootcmd_rd_in_mmc\0" \
"bootcmd_otenv=ext4load mmc 0:1 $loadaddr /boot/loader/uEnv.txt; " \
"env import -t $loadaddr $filesize; " \
"setenv bootargs $bootargs root=/dev/ram0 console=$console,115200 " \
"rw ostree_root=/dev/mmcblk0p1\0" \
"bootcmd_rd_in_mmc=ext4load mmc 0:1 $kernel_addr_r /boot$kernel_image; " \
"bootm $kernel_addr_r\0" \
"bootm_size=0x10000000\0" \
"initrd_high=0x8d000000\0" \
"kernel_addr_r=0x90000000\0"
/* Link Definitions */
#define CONFIG_LOADADDR 0x80280000