blob: e0395d302cb9c308cbe56f1e7355fcdd129474f5 [file] [log] [blame]
Andrew Davis9d75eee2023-07-25 13:15:21 -05001name_fw_rd=k2-fw-initrd.cpio.gz
2set_rd_spec=setenv rd_spec ${rdaddr}:${filesize}
3init_fw_rd_net=dhcp ${rdaddr} ${tftp_root}/${name_fw_rd}; run set_rd_spec
4init_fw_rd_nfs=nfs ${rdaddr} ${nfs_root}/boot/${name_fw_rd}; run set_rd_spec
5init_fw_rd_ramfs=setenv rd_spec -
6init_fw_rd_ubi=ubifsload ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
7
8dfu_bufsiz=0x10000
9dfu_alt_info_mmc=
10 MLO fat 0 1;
11 u-boot.img fat 0 1;
12 uEnv.txt fat 0 1
13
14bootdir=/boot
15tftp_root=/
16nfs_root=/export
17mem_lpae=1
18uinitrd_fixup=1
19addr_ubi=0x82000000
20addr_secdb_key=0xc000000
21name_kern=zImage
22addr_mon=0x87000000
23addr_non_sec_mon=0x0c097fc0
24addr_load_sec_bm=0x0c09c000
25run_mon=mon_install ${addr_mon}
26run_mon_hs=mon_install ${addr_non_sec_mon} ${addr_load_sec_bm}
27run_kern=bootz ${loadaddr} ${rd_spec} ${fdtaddr}
28init_net=run args_all args_net
29init_nfs=setenv autoload no; dhcp; run args_all args_net
30init_ubi=run args_all args_ubi; ubi part ubifs; ubifsmount ubi:rootfs;
31get_fdt_net=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
32get_fdt_nfs=nfs ${fdtaddr} ${nfs_root}/boot/${name_fdt}
33get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}
34get_kern_net=dhcp ${loadaddr} ${tftp_root}/${name_kern}
35get_kern_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_kern}
36get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}
37get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
38get_mon_nfs=nfs ${addr_mon} ${nfs_root}/boot/${name_mon}
39get_mon_ubi=ubifsload ${addr_mon} ${bootdir}/${name_mon}
40get_fit_net=dhcp ${addr_fit} ${tftp_root}/${name_fit}
41get_fit_nfs=nfs ${addr_fit} ${nfs_root}/boot/${name_fit}
42get_fit_ubi=ubifsload ${addr_fit} ${bootdir}/${name_fit}
43get_fit_mmc=load mmc ${bootpart} ${addr_fit} ${bootdir}/${name_fit}
44get_uboot_net=dhcp ${loadaddr} ${tftp_root}/${name_uboot}
45get_uboot_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_uboot}
46burn_uboot_spi=sf probe; sf erase 0 0x100000; sf write ${loadaddr} 0 ${filesize}
47burn_uboot_nand=nand erase 0 0x100000; nand write ${loadaddr} 0 ${filesize}
48args_all=setenv bootargs console=ttyS0,115200n8 rootwait
49args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
50nfs_options=v3,tcp,rsize=4096,wsize=4096
51get_fdt_ramfs=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
52get_kern_ramfs=dhcp ${loadaddr} ${tftp_root}/${name_kern}
53get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
54get_fit_ramfs=dhcp ${addr_fit} ${tftp_root}/${name_fit}
55get_fs_ramfs=dhcp ${rdaddr} ${tftp_root}/${name_fs}
56get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
57get_ubi_nfs=nfs ${addr_ubi} ${nfs_root}/boot/${name_ubi}
58burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
59init_ramfs=run args_all args_ramfs get_fs_ramfs
60args_ramfs=setenv bootargs ${bootargs} rdinit=/sbin/init rw root=/dev/ram0 initrd=0x808080000,80M
61no_post=1