Created
October 19, 2022 16:38
-
-
Save boretom/4b280e3c56fa97ef2ac83cf75f10bc3a to your computer and use it in GitHub Desktop.
Netgear WAX206 fw_printenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arch=arm | |
atf_filename=trustzone.bin | |
backup_os_need_check=1 | |
baudrate=115200 | |
board=mt7622_evb | |
board_name=mt7622_evb | |
boot0=download_setting kernel;tftpboot ${loadaddr} ${kernel_filename}; bootm | |
boot1=download_setting kernel;tftpboot ${loadaddr} ${kernel_filename};run boot_wr_img;run boot_rd_img;bootm | |
boot10=if dialog "WARNING, this operation will flash all partitions (preloader + atf + uboot + linux)";then download_setting flashimage;tftpboot ${loadaddr} ${flashimage_filename};run wr_flashimage;invaild_env;else echo "operation aborted by user";fi; | |
boot2=run boot_check_backup_os;run boot_rd_img;bootm | |
boot3=download_setting uboot;tftpboot ${loadaddr} ${uboot_filename};run wr_uboot;invaild_env | |
boot4=loadb;run wr_uboot;invaild_env | |
boot5=download_setting atf;tftpboot ${loadaddr} ${atf_filename};run wr_atf | |
boot6=download_setting preloader;tftpboot ${loadaddr} ${preloader_filename};run wr_pl | |
boot7=download_setting hdr;tftpboot ${loadaddr} ${hdr_filename};run wr_rom_hdr | |
boot8=download_setting ctp;tftpboot ${loadaddr} ${ctp_filename};run wr_ctp | |
boot9=run boot_rd_ctp;boot_to_ctp | |
boot_backup_img=run boot_check_os; if test ${check_os_error} = 0; then nand read ${loadaddr} 0x2C0000 0x2600000;nand erase.spread 0x28C0000 0x2600000;nand write ${loadaddr} 0x28C0000 0x2600000 ;fi | |
boot_check_backup_os=setenv skip_load_os 1;nand read ${loadaddr} 0x28C0000 0x2600000;check_image;bootm; setenv skip_load_os 0;if test ${check_os_error} = 1; then echo Bad backup os !!;run boot_backup_img; else setenv backup_os_need_check 0;fi | |
boot_check_os=setenv skip_load_os 1; run boot_rd_img;bootm;setenv skip_load_os 0;if test ${check_os_error} = 1; then echo Bad os !!;fi | |
boot_nmrp_clr_str_blks=nand erase.spread ${stringtableoffset} ${stringtablefreesize} | |
boot_nmrp_wr_str=filesize_check 0x40000;if test ${filesize_result} = good; then str_blks ; if test ${str_blk_crc} = ok;then nand erase.spread ${stringtableoffset} ${filesize};nand write ${loadaddr} ${stringtableoffset} ${filesize};fi;fi | |
boot_rd_ctp=nand read 0x40000000 0x1400000 3000000 | |
boot_rd_img=nand read ${loadaddr} 0x2C0000 0x2600000;check_image | |
boot_restore_img=setenv backup_os_need_check 1; run boot_check_backup_os; if test ${backup_os_need_check} = 0; then nand read ${loadaddr} 0x28C0000 0x2600000;nand erase.spread 0x2C0000 0x2600000;nand write ${loadaddr} 0x2C0000 0x2600000 ;reset;fi | |
boot_version=20210401 | |
boot_wr_img=decrypt_image;if test ${decrypt_result} = good; then filesize_check 0x2600000;if test ${filesize_result} = good; then check_image; setenv skip_load_os 1;bootm;setenv skip_load_os 0;if test ${check_os_error} = 0; then nand erase.spread 0x2C0000 ${filesize};nand write ${loadaddr} 0x2C0000 ${filesize};else echo Bad os !!; fi;fi;fi | |
bootcmd=No | |
bootdelay=3 | |
bootfile=iverson_uImage | |
bootmenu_0=1. System Load Linux to SDRAM via TFTP.=run boot0 | |
bootmenu_1=2. System Load Linux Kernel then write to Flash via TFTP.=run boot1 | |
bootmenu_10=b. System Load SingleImage then write to Flash via TFTP.=run boot10 | |
bootmenu_2=3. Boot system code via Flash.=run boot2 | |
bootmenu_3=4. System Load U-Boot then write to Flash via TFTP.=run boot3 | |
bootmenu_4=5. System Load U-Boot then write to Flash via Serial.=run boot4 | |
bootmenu_5=6. System Load ATF then write to Flash via TFTP.=run boot5 | |
bootmenu_6=7. System Load Preloader then write to Flash via TFTP.=run boot6 | |
bootmenu_7=8. System Load ROM header then write to Flash via TFTP.=run boot7 | |
bootmenu_8=9. System Load CTP then write to Flash via TFTP.=run boot8 | |
bootmenu_9=a. System Load CTP then Boot to CTP (via Flash).=run boot9 | |
bootmenu_delay=30 | |
cpu=armv7 | |
ctp_filename=ctp.bin | |
ethaddr=80:CC:9C:EB:7C:A7 | |
fdt_high=0x6c000000 | |
fenv_model=WAX206 | |
fenv_region=EU | |
flashimage_filename=flashimage.bin | |
gpt_filename=GPT_EMMC | |
hdr_filename=hdr.binary | |
invaild_env=no | |
ipaddr=192.168.1.1 | |
kernel_filename=iverson_uImage | |
loadaddr=0x4007FF28 | |
preloader_filename=preloader_fpga7622_64_ldvt.bin | |
serverip=192.168.1.100 | |
soc=mt7622 | |
stderr=serial | |
stdin=serial | |
stdout=serial | |
stringtablefreesize=0 | |
stringtableoffset=0x5bc0000 | |
uboot_filename=u-boot-mtk.bin | |
vendor=mediatek | |
wr_atf=filesize_check 0x20000;if test ${filesize_result} = good; then mtk_image_blks 131072;nand erase.spread 0x80000 ${filesize} ;mtk_image_blks 2048;nand write ${loadaddr} 0x80000 ${filesize};fi | |
wr_ctp=filesize_check 0xF20000;if test ${filesize_result} = good; then nand erase.spread 0x1400000 3000000 ;nand write ${loadaddr} 0x1400000 3000000;fi | |
wr_flashimage=decrypt_image;if test ${decrypt_result} = good; then filesize_check 0x8000000;if test ${filesize_result} = good; then nand erase.chip ;nand write ${loadaddr} 0x0 8000000;fi;fi | |
wr_pl=filesize_check 0x40000;if test ${filesize_result} = good; then nand erase.spread 0x00000 40000 ;nand write ${loadaddr} 0x00000 40000;fi | |
wr_rom_hdr=filesize_check 0x40000;if test ${filesize_result} = good; then nand erase.spread 0x00000 20000 ;nand write ${loadaddr} 0x00000 20000;fi | |
wr_uboot=filesize_check 0x80000;if test ${filesize_result} = good; then mtk_image_blks 131072;if test ${check_boot_error} = 0;then nand erase.spread 0xC0000 ${filesize} ;nand write ${loadaddr} 0xC0000 ${filesize};fi;fi | |
fenv_factory=off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment