Skip to content

Instantly share code, notes, and snippets.

@boretom
boretom / wax206__mtdinfo-a-u.txt
Created October 19, 2022 16:40
Netgear WAX206 mtdinfo
Count of MTD devices: 21
Present MTD devices: mtd0, mtd1, mtd2, mtd3, mtd4, mtd5, mtd6, mtd7, mtd8, mtd9, mtd10, mtd11, mtd12, mtd13, mtd14, mtd15, mtd16, mtd17, mtd18, mtd19, mtd20
Sysfs interface supported: yes
mtd0
Name: Preloader
Type: nand
Eraseblock size: 131072 bytes, 128.0 KiB
Amount of eraseblocks: 4 (524288 bytes, 512.0 KiB)
Minimum input/output unit size: 2048 bytes
@boretom
boretom / wax206__fw_printenv.txt
Created October 19, 2022 16:38
Netgear WAX206 fw_printenv
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