diff options
author | Simon Shields <simon@lineageos.org> | 2018-07-06 16:44:23 +1000 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-03-28 01:15:29 +0100 |
commit | 9ad1e54f5ea49afea945e122f6636cb33c91bd15 (patch) | |
tree | e7fab3cca7fde011510c6aa58547b568f674b2f4 /include | |
parent | 769ef5cc08d8c9d6aaad1b5470bd687f40bca54e (diff) | |
download | u-boot-midas-9ad1e54f5ea49afea945e122f6636cb33c91bd15.tar.gz u-boot-midas-9ad1e54f5ea49afea945e122f6636cb33c91bd15.tar.bz2 u-boot-midas-9ad1e54f5ea49afea945e122f6636cb33c91bd15.zip |
midas: read command line from FIT image
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/midas.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/configs/midas.h b/include/configs/midas.h index 866e774c50..681e9c47b9 100644 --- a/include/configs/midas.h +++ b/include/configs/midas.h @@ -77,11 +77,11 @@ "mmc dev 1 && mmc read 0x50000000 0x1 0x1000 &&" \ "mmc dev 0 1 && mmc write 0x50000000 0x0 0x1000;\0" \ "bootimage=" /* Boot loaded image */ \ - "if test ${fit_config} = \"\"; then; bootm 0x50000000; else; bootm 0x50000000#${fit_config}${lcd_overlay}; fi\0" \ + "run setbootargs; if test ${fit_config} = \"\"; then; bootm 0x50000000; else; bootm 0x50000000#${fit_config}${lcd_overlay}; fi\0" \ "mmcboot=" /* Command to boot OS from eMMC */ \ - "run setbootargs; read mmc 0 boot 0x50000000 0x0 end && run bootimage; run fastboot\0" \ + "read mmc 0 boot 0x50000000 0x0 end && run bootimage; run fastboot\0" \ "mmcrecovery=" /* Command to boot recovery from eMMC */ \ - "run setbootargs; read mmc 0 recovery 0x50000000 0x0 end && run bootimage; run fastboot\0" \ + "read mmc 0 recovery 0x50000000 0x0 end && run bootimage; run fastboot\0" \ "autoboot=run mmcboot\0" /* Run on normal boot */ \ "recoveryboot=run mmcrecovery\0" /* Run on recovery keycombo/INFORM3 value */ \ "fastboot=fastboot 0; run autoboot\0" /* Run on fastboot keycombo/INFORM3 value */ \ @@ -93,8 +93,8 @@ "run readsb20 && run checksb20 && mmc dev 0 1 && mmc write 0x50000000 0x0 0x1000 && run clearsb20\0" \ "mmcupdate=if run dommcupdate; then echo Bootloader upgrade succeeded; else echo Bootloader upgrade failed.; fi\0" \ "bootargs=console=ttySAC2,115200\0" \ - "selinuxmode=permissive\0" \ - "setbootargs=setenv bootargs ${bootargs} androidboot.mode=${bootmode} androidboot.hardware=midas androidboot.selinux=${selinuxmode} androidboot.revision=${board_rev} androidboot.serialno=${serial#}\0" \ + "readfitbootargs=fdt addr 0x50000000; fdt get value newargs / cmdline && setenv bootargs ${bootargs} ${newargs}\0" \ + "setbootargs=run readfitbootargs; setenv bootargs ${bootargs} androidboot.mode=${bootmode} androidboot.revision=${board_rev} androidboot.serialno=${serial#}\0" \ #include <linux/sizes.h> |