Holger Brunck | 9a9b151 | 2022-12-02 18:22:40 +0100 | [diff] [blame] | 1 | altbootcmd=run bootcmd; |
| 2 | bootlimit=6 |
| 3 | bootnum=1 |
| 4 | bootretry=CONFIG_BOOT_RETRY_TIME |
| 5 | |
| 6 | develop=tftp 0x200000 scripts/develop-secu.txt && |
| 7 | env import -t 0x200000 ${filesize} && |
| 8 | saveenv && |
| 9 | reset |
| 10 | |
| 11 | fdt_addr=CONFIG_KM_FDT_ADDR |
| 12 | load=tftpboot ${loadaddr} u-boot-with-nand-spl.sfp |
| 13 | loadaddr=CONFIG_KM_KERNEL_ADDR |
| 14 | newenv=nand erase 0x100000 0x40000 |
| 15 | release=run newenv; reset |
| 16 | socfpga_legacy_reset_compat=1 |
| 17 | update=nand erase 0x0 0x00100000 && nand write ${loadaddr} 0x0 ${filesize} |
| 18 | |
| 19 | userload=ubi part nand.ubi && |
| 20 | ubi check rootfs$bootnum && |
| 21 | ubi read $fdt_addr dtb$bootnum && |
| 22 | ubi read $loadaddr kernel$bootnum |
| 23 | |
| 24 | userboot=setenv bootargs console=ttyS0,115200 ubi.fm_autoconvert=1 uio_pdrv_genirq.of_id="idq,regbank" |
| 25 | ubi.mtd=1 ubi.block=0,rootfs$bootnum root=/dev/ubiblock0_$ubivolid ro |
| 26 | rootfstype=squashfs init=sbin/preinit; |
| 27 | bootz ${loadaddr} - ${fdt_addr} |
| 28 | |
| 29 | verify=y |
| 30 | |
| 31 | /* |
| 32 | * FPGA Remote Update related environment |
| 33 | * |
| 34 | * Note that since those commands access the FPGA, the HPS-to-FPGA bridges |
| 35 | * MUST have been previously enabled (for example with 'bridge enable'). |
| 36 | */ |
| 37 | rmtu_page=0xFF29000C |
| 38 | rmtu_reconfig=0xFF290018 |
| 39 | fpga_safebase=0x0 |
| 40 | fpga_userbase=0x2000000 |
| 41 | |
| 42 | _fpga_loaduser=echo "Loading FPGA USER image..." && |
| 43 | mw ${rmtu_page} ${fpga_userbase} && |
| 44 | mw ${rmtu_reconfig} 1 |
| 45 | |
| 46 | _fpga_loadsafe=echo "Loading FPGA SAFE image..." && |
| 47 | mw ${rmtu_page} ${fpga_safebase} && |
| 48 | mw ${rmtu_reconfig} 1 |
| 49 | |
| 50 | |