al_sw_init=rtl83xx arch=arm autoload=n board=alpine_ubnt board_name=alpine_ubnt boot_instance_active=0 boot_instance_non_active=1 bootargsemmcdual0=run rootargsemmcdual0; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 panic=3 $bootargsextra; printenv bootargs bootargsemmcdual1=run rootargsemmcdual1; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 panic=3 $bootargsextra; printenv bootargs bootargsextra=reboot=cold bootargshd=run rootargshd; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 panic=3 $bootargsextra; printenv bootargs bootargshddual=run rootargshddual; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 panic=3 $bootargsextra; printenv bootargs bootargsnand=run rootargsnand; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 panic=3 $bootargsextra; printenv bootargs bootargsnfs=run rootargsnfs; setenv bootargs $rootargs pci=pcie_bus_perf console=ttyS0,115200 panic=3 $bootargsextra; printenv bootargs bootargsrecovery=setenv bootargs pci=pcie_bus_perf console=ttyS0,115200 panic=3 $bootargsextra; printenv bootargs bootcmd=$al_sw_init; run emmcdualfit bootdelay=2 bootemmcdual=lcd_print "Loading OS...";usb start;ext4load usb 0 $loadaddr_payload select-image-1;if test $? -eq 0; then run bootargsemmcdual1; ext4load usb 0 $loadaddr_payload uImage.1; else run bootargsemmcdual0; ext4load usb 0 $loadaddr_payload uImage.0; fi;bootm $loadaddr_payload - $fdtaddr;lcd_print Failed! bootemmcrecovery=usb start;ext4load usb 0:5 $loadaddr_payload uImage.r;if test $? -eq 0; then run bootargsemmcr; else reset; fi;bootm $loadaddr_payload - $fdtaddr; bootext4=lcd_print "Loading OS...";scsi init; ext4load scsi ${ext4dev}:${ext4part} $loadaddr ${ext4dir}${dt_filename};if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr_dt $loadaddr;if test $? -ne 0; then run fail; exit; fi;fi;ext4load scsi ${ext4dev}:${ext4part} $loadaddr ${ext4dir}uImage;if test $? -ne 0; then run fail; exit; fi;fdt addr $loadaddr_dt;bootm $loadaddr - $fdtaddr;run fail; exit bootnand=lcd_print "Loading OS...";nand set_partition_offset $nand_pt_addr_kernel;nand read $loadaddr $nand_pt_addr_kernel 4;setenvmem filesize $loadaddr;incenv filesize 4;nand read $loadaddr $nand_pt_addr_kernel $filesize;nand set_partition_offset $nand_pt_addr_al_boot;bootm $loadaddr_payload - $fdtaddr;lcd_print Failed! bootnandmulti=run kernel_select;if test $kernel_selected -ne 0; then run bootnand; fi boottftp=lcd_print "Loading OS...";tftpboot $loadaddr ${tftpdir}${dt_filename};if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr_dt $loadaddr;if test $? -ne 0; then run fail; exit; fi;fi;tftpboot $loadaddr ${tftpdir}uImage;if test $? -ne 0; then run fail; exit; fi;fdt addr $loadaddr_dt;bootm $loadaddr - $fdtaddr;run fail; exit bootupd=is_nand_boot; if test $? -eq 0; then run bootupdspi; else; run bootupdnand; fi bootupdnand=lcd_print "Updating al-boot" "to NAND"; tftpboot $loadaddr ${tftpdir}boot.img; if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spread $nand_pt_addr_al_boot $filesize; nand write $loadaddr $nand_pt_addr_al_boot $filesize; lcd_print "Done" bootupdnandy=lcd_print "Updating al-boot" "to NAND"; echo >> Use YModem to upload the boot image binary...;loady $loadaddr;if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spread $nand_pt_addr_al_boot $filesize; nand write $loadaddr $nand_pt_addr_al_boot $filesize; lcd_print "Done" bootupdspi=lcd_print "Updating al-boot" "to SPI"; tftpboot ${loadaddr} ${tftpdir}boot.img; if test $? -ne 0; then run fail; exit; fi;sf probe; sf erase 0 +${filesize}; sf write ${loadaddr} 0 ${filesize}; echo bootupd done;echo Notice: Changes in default environment variables will only take effect once the;echo environment variables are deleted from flash using the 'delenv' script;lcd_print "Done" bootupdspiy=lcd_print "Updating al-boot" "to SPI"; echo >> Use YModem to upload the boot image binary...;loady ${loadaddr};if test $? -ne 0; then run fail; exit; fi;sf probe; sf erase 0 +${filesize}; sf write ${loadaddr} 0 ${filesize}; echo bootupd done;echo Notice: Changes in default environment variables will only take effect once the;echo environment variables are deleted from flash using the 'delenv' script;lcd_print "Done" bootupdy=is_nand_boot; if test $? -eq 0; then run bootupdspiy;else; run bootupdnandy; fi cpu=armv8 cvos_tags=0x01000000 cvos_tags_seed_a=0x01000004 cvos_tags_seed_b=0x01000008 cvos_tags_validate=mw.l ${cvos_tags} 0xcf05cf05 delenv=is_nand_boot; if test $? -eq 0; then run delenvspi; else; run delenvnand; fi delenvnand=lcd_print "Deleting env..."; nand erase ${env_offset} 2000; if test -n ${env_offset_redund}; then nand erase ${env_offset_redund} 2000; fi;lcd_print "Done" delenvspi=lcd_print "Deleting env..."; sf probe; sf erase ${env_offset} +2000;if test -n ${env_offset_redund}; then sf erase ${env_offset_redund} +2000;fi;lcd_print "Done" dt_filename=dt.img dt_is_from_toc=1 dt_location=81000 dtupd=is_nand_boot; if test $? -eq 0; then run dtupdspi; else; run dtupdnand; fi dtupdnand=lcd_print "Updating DT" "to NAND"; tftpboot $loadaddr_dt ${tftpdir}${dt_filename};if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spread ${dt_location} 10000; nand write ${loadaddr_dt} ${dt_location} 10000; lcd_print "Done" dtupdnandy=lcd_print "Updating DT" "to NAND"; echo >> Use YModem to upload the device tree binary...;loady $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;fi;nand set_partition_offset $nand_pt_addr_al_boot;nand erase.spread ${dt_location} 10000; nand write ${loadaddr_dt} ${dt_location} 10000; lcd_print "Done" dtupdspi=lcd_print "Updating DT" "to SPI"; tftpboot $loadaddr_dt ${tftpdir}${dt_filename};if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;fi;sf probe; sf erase ${dt_location} +${filesize}; sf write ${loadaddr_dt} ${dt_location} ${filesize};echo dtupd done;lcd_print "Done" dtupdspiy=lcd_print "Updating DT" "to SPI"; echo >> Use YModem to upload the device tree binary...;loady $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;if test ${dt_is_from_toc} != 1; then; else flash_contents_obj_read_mem $loadaddr $loadaddr_dt;if test $? -ne 0; then run fail; exit; fi;fi;sf probe; sf erase ${dt_location} +${filesize}; sf write ${loadaddr_dt} ${dt_location} ${filesize}; echo dtupd done;lcd_print "Done" dtupdy=is_nand_boot; if test $? -eq 0; then run dtupdspiy; else; run dtupdnandy; fi eepromupd=confirm_msg "Perform EEPROM update? [y/n] ";if test $? -ne 0; then exit; fi;tftpboot ${tftpdir}eeprom.bin;if test $? -ne 0; then exit; fi;i2c probe ${pld_i2c_addr};if test $? -ne 0; then exit; fi;i2c write $fileaddr ${pld_i2c_addr} 0.2 $filesize;if test $? -ne 0; then exit;fi;echo eepromupd done eepromupdy=confirm_msg "Perform EEPROM update? [y/n] ";if test $? -ne 0; then exit; fi;echo >> Use YModem to upload the EEPROM binary...;loady $loadaddr;if test $? -ne 0; then exit; fi;i2c probe ${pld_i2c_addr};if test $? -ne 0; then exit; fi;i2c write $loadaddr ${pld_i2c_addr} 0.2 $filesize;if test $? -ne 0; then exit;fi;echo eepromupdy done emmcdev=sda emmcdualfit=usb start;ext4load usb ${usb_emmc} ${loadaddr_payload} select-image-1;if test $? -eq 0; then run bootargsemmcdual1; ext4load usb ${usb_emmc} ${loadaddr_payload} uImage.1; else run bootargsemmcdual0; ext4load usb ${usb_emmc} ${loadaddr_payload} uImage.0; fi;bootm $fitbootconf;bootm $loadaddr_payload; emmcdualfitrecovery=usb start;ext4load usb ${usb_emmc}:5 ${loadaddr_recovery_payload} uImage.r;run bootargsrecovery;bootm $fitbootconf;echo "Recovery boot failed! Trying TFTP network boot...";setenv serverip 192.168.1.2;setenv ipaddr 192.168.1.30;tftpboot $loadaddr_recovery_payload UISPR-alpinev2-recovery.bin;bootm $fitbootconf;reset env_offset=380000 env_offset_redund=3c0000 eth1addr=d2:21:f9:b8:e3:00 eth2addr=be:81:ba:ba:5d:2d eth3addr=16:5d:de:09:4a:e9 ethact=al_eth3 ethaddr=d0:21:f9:b8:e3:00 ethprime=al_eth3 ext4dev=0 ext4dir=boot/ ext4part=1 fail=echo Failed!; lcd_print "Failed!" fdt_high=0xffffffffffffffff fdtaddr=3a1b5b0 fitbootconf=0x08000004#uisprpro@2 fwupd=tftpboot ${tftpdir}uboot_script_fw_update.bin;source ${loadaddr} hdroot=/dev/sda1 kernel_rename_1=editenv nand_pt_desc_kernel_1;saveenv kernel_rename_2=editenv nand_pt_desc_kernel_2;saveenv kernel_select=setenv kernel_selected 0;setenv bootmenu_0 ${nand_pt_desc_kernel_1}=run kernel_select_1;setenv bootmenu_1 ${nand_pt_desc_kernel_2}=run kernel_select_2;bootmenu kernel_select_1=setenv nand_pt_addr_kernel ${nand_pt_addr_kernel_1};setenv kernel_selected 1 kernel_select_2=setenv nand_pt_desc_kernel ${nand_pt_desc_kernel_2};setenv nand_pt_addr_kernel ${nand_pt_addr_kernel_2};setenv nand_pt_desc_kernel_2 ${nand_pt_desc_kernel_1};setenv nand_pt_addr_kernel_2 ${nand_pt_addr_kernel_1};setenv nand_pt_desc_kernel_1 ${nand_pt_desc_kernel};setenv nand_pt_addr_kernel_1 ${nand_pt_addr_kernel};saveenv;setenv kernel_selected 2 kernelupd=lcd_print "Updating kernel...";tftpboot $loadaddr_payload ${tftpdir}uImage;if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_kernel;mw.l $loadaddr $filesize;incenv filesize 4;nand erase.spread $nand_pt_addr_kernel $filesize;nand write $loadaddr $nand_pt_addr_kernel $filesize;nand set_partition_offset $nand_pt_addr_al_boot;echo kernelupd done;lcd_print "Done" loadaddr=0x08000000 loadaddr_dt=0x04078000 loadaddr_payload=0x08000004 loadaddr_recovery_payload=0x18000004 loadaddr_rootfs_chk=0x07000000 mem=65535k nand_pt_addr_al_boot=0x0 nand_pt_addr_fs=0x01000000 nand_pt_addr_kernel=0x00400000 nand_pt_addr_kernel_1=0x00400000 nand_pt_addr_kernel_2=0x00a00000 nand_pt_desc_kernel_1=Test kernel A nand_pt_desc_kernel_2=Test kernel B nand_pt_size_al_boot=0x00400000 nand_pt_size_fs=0x3f000000 nand_pt_size_kernel=0x00c00000 nfseth=eth1 nfsrootdir=/srv/root/ pld_i2c_addr=57 reboot=cold rootargsemmcdual0=if test -z ${uuid_dual_0}; then setenv rootargs root=/dev/${emmcdev}2 rootfstype=squashfs rootwait; else setenv rootargs root=PARTUUID=${uuid_dual_0} rootfstype=squashfs rootwait; fi rootargsemmcdual1=if test -z ${uuid_dual_1}; then setenv rootargs root=/dev/${emmcdev}3 rootfstype=squashfs rootwait; else setenv rootargs root=PARTUUID=${uuid_dual_1} rootfstype=squashfs rootwait; fi rootargshd=setenv rootargs root=${hdroot} rw rootargshddual=setenv rootargs root=/dev/${hddev}${rootfs_index} rootfstype=squashfs rootwait rootargsnand=setenv rootargs root=ubi0:root rootfstype=ubifs ubi.mtd=3 rootargsnfs=setenv rootargs root=/dev/nfs rw nfsroot=${serverip}:${nfsrootdir},tcp,nolock rw ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${board_name}:${nfseth}:none rootfsupd=lcd_print "Updating rootfs...";tftpboot $loadaddr_rootfs_chk ${tftpdir}rootfs.ubi.md5;if test $? -ne 0; then run fail; exit; fi;tftpboot $loadaddr ${tftpdir}rootfs.ubi;if test $? -ne 0; then run fail; exit; fi;md5sum -v $loadaddr $filesize *$loadaddr_rootfs_chk;if test $? -ne 0; then run fail; exit; fi;nand set_partition_offset $nand_pt_addr_fs;nand erase.spread $nand_pt_addr_fs $nand_pt_size_fs;nand write $loadaddr $nand_pt_addr_fs $filesize;nand set_partition_offset $nand_pt_addr_al_boot;echo rootfsupd done;lcd_print "Done" skip_eth_halt=0 soc=alpine_v2 usb_emmc=0 uuid_dual_0=ee33c697-2253-0b49-97c4-276fbe661045 uuid_dual_1=c50068d3-06a2-d549-8b12-c98661adf2d1 vendor=annapurna-labs Environment size: 12165/262139 bytes