blob: 147c4170ef54fe55def3bc6d1a9b2dfd9b445c02 [file] [log] [blame]
Holger Brunck9a9b1512022-12-02 18:22:40 +01001altbootcmd=run bootcmd;
2bootlimit=6
3bootnum=1
4bootretry=CONFIG_BOOT_RETRY_TIME
5
6develop=tftp 0x200000 scripts/develop-secu.txt &&
7 env import -t 0x200000 ${filesize} &&
8 saveenv &&
9 reset
10
11fdt_addr=CONFIG_KM_FDT_ADDR
12load=tftpboot ${loadaddr} u-boot-with-nand-spl.sfp
13loadaddr=CONFIG_KM_KERNEL_ADDR
14newenv=nand erase 0x100000 0x40000
15release=run newenv; reset
16socfpga_legacy_reset_compat=1
17update=nand erase 0x0 0x00100000 && nand write ${loadaddr} 0x0 ${filesize}
18
19userload=ubi part nand.ubi &&
20 ubi check rootfs$bootnum &&
21 ubi read $fdt_addr dtb$bootnum &&
22 ubi read $loadaddr kernel$bootnum
23
24userboot=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
29verify=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 */
37rmtu_page=0xFF29000C
38rmtu_reconfig=0xFF290018
39fpga_safebase=0x0
40fpga_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