Dan Folea
NSA325 - Restore to stock firmware April 15, 2020 03:23AM |
Dan Folea
Re: NSA325 - Restore to stock firmware April 30, 2020 11:44PM |
Re: NSA325 - Restore to stock firmware May 01, 2020 01:25AM |
Admin Registered: 13 years ago Posts: 19,107 |
ver printenv
Dan Folea
Re: NSA325 - Restore to stock firmware May 01, 2020 03:51PM |
NSA325> ver U-Boot 2019.01 (Jan 29 2020 - 16:05:35 +0000) ZyXEL NSA325 2-Bay Power Media Server arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 7.5.0 r10911-c155900f66) 7.5.0 GNU ld (GNU Binutils) 2.31.1 NSA325> printenv baudrate=115200 bootargs=console=ttyS0,115200 mtdparts=orion_nand:0x0c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi) bootcmd=setenv bootargs ${console} ${mtdparts} ${bootargs_root}; ubi part root; ubifsmount ubi:rootfs; run ubifinish1 bootdelay=3 console=console=ttyS0,115200 ethact=egiga0 ethaddr=FC:F5:28:31:3D:49 ipaddr=10.0.0.50 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:0x0c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi) serverip=10.0.0.211 stderr=serial stdin=serial stdout=serial ubifinish1=ubifsload 0x800000 ${kernel}; ubifsload 0x700000 ${fdt}; ubifsumount; run ubifinish2 ubifinish2=fdt addr 0x700000; fdt resize; fdt chosen; bootz 0x800000 - 0x700000 Environment size: 673/131068 bytes
Re: NSA325 - Restore to stock firmware May 01, 2020 05:29PM |
Admin Registered: 13 years ago Posts: 19,107 |
Dan Folea
Re: NSA325 - Restore to stock firmware May 01, 2020 06:54PM |
NSA325> boot Partition root not found! UBIFS error (pid: 1): cannot open "ubi:rootfs", error -19 Error reading superblock on volume 'ubi:rootfs' errno=-19! ubifsmount - mount UBIFS volume Usage: ubifsmount <volume-name> - mount 'volume-name' volume UBIFS not mounted, use ubifs mount to mount volume first! ubifsload - load file from an UBIFS filesystem Usage: ubifsload <addr> <filename> [bytes] - load file 'filename' to address 'addr' UBIFS not mounted, use ubifs mount to mount volume first! ubifsload - load file from an UBIFS filesystem Usage: ubifsload <addr> <filename> [bytes] - load file 'filename' to address 'addr' libfdt fdt_check_header(): FDT_ERR_BADMAGIC No FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command. Aborting! No FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command. Aborting! Unknown command 'bootz' - try 'help'
Re: NSA325 - Restore to stock firmware May 01, 2020 09:56PM |
Admin Registered: 13 years ago Posts: 19,107 |
setenv partition 'nand0,2' mtdparts boot
Dan Folea
Re: NSA325 - Restore to stock firmware May 02, 2020 01:13AM |
NSA325> mtdparts device nand0 <orion_nand>, # parts = 3 #: name size offset mask_flags 0: uboot 0x000c0000 0x00000000 0 1: uboot_env 0x00080000 0x000c0000 0 2: ubi 0x07ec0000 0x00140000 0 active partition: nand0,2 - (ubi) 0x07ec0000 @ 0x00140000 defaults: mtdids : mtdparts: mtdparts=orion_nand:0x0c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi) NSA325> boot Partition root not found! UBIFS error (pid: 1): cannot open "ubi:rootfs", error -19 Error reading superblock on volume 'ubi:rootfs' errno=-19! ubifsmount - mount UBIFS volume Usage: ubifsmount <volume-name> - mount 'volume-name' volume UBIFS not mounted, use ubifs mount to mount volume first! ubifsload - load file from an UBIFS filesystem Usage: ubifsload <addr> <filename> [bytes] - load file 'filename' to address 'addr' UBIFS not mounted, use ubifs mount to mount volume first! ubifsload - load file from an UBIFS filesystem Usage: ubifsload <addr> <filename> [bytes] - load file 'filename' to address 'addr' libfdt fdt_check_header(): FDT_ERR_BADMAGIC No FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command. Aborting! No FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command. Aborting! Unknown command 'bootz' - try 'help'
Re: NSA325 - Restore to stock firmware May 02, 2020 01:59AM |
Admin Registered: 13 years ago Posts: 19,107 |
Quote
NSA325> mtdparts
device nand0 <orion_nand>, # parts = 3
#: name size offset mask_flags
0: uboot 0x000c0000 0x00000000 0
1: uboot_env 0x00080000 0x000c0000 0
2: ubi 0x07ec0000 0x00140000 0
bootcmd=setenv bootargs ${console} ${mtdparts} ${bootargs_root}; ubi part root; ubifsmount ubi:rootfs; run ubifinish1
setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; ubi part ubi; ubifsmount ubi:rootfs; run ubifinish1' boot
Dan Folea
Re: NSA325 - Restore to stock firmware May 02, 2020 03:07AM |
NSA325> setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; ubi part ubi; ubifsmount ubi:rootfs; run ubifinish1' NSA325> boot ubi0: attaching mtd3 ubi0: scanning is finished ubi0: attached mtd3 (name "ubi", size 126 MiB) ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 ubi0: VID header offset: 512 (aligned 512), data offset: 2048 ubi0: good PEBs: 1010, bad PEBs: 4, corrupted PEBs: 0 ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128 ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1062167026 ubi0: available PEBs: 990, total reserved PEBs: 20, PEBs reserved for bad PEB handling: 16 UBIFS error (pid: 1): cannot open "ubi:rootfs", error -19 Error reading superblock on volume 'ubi:rootfs' errno=-19! ubifsmount - mount UBIFS volume Usage: ubifsmount <volume-name> - mount 'volume-name' volume UBIFS not mounted, use ubifs mount to mount volume first! ubifsload - load file from an UBIFS filesystem Usage: ubifsload <addr> <filename> [bytes] - load file 'filename' to address 'addr' UBIFS not mounted, use ubifs mount to mount volume first! ubifsload - load file from an UBIFS filesystem Usage: ubifsload <addr> <filename> [bytes] - load file 'filename' to address 'addr' libfdt fdt_check_header(): FDT_ERR_BADMAGIC No FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command. Aborting! No FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command. Aborting! Unknown command 'bootz' - try 'help'
Re: NSA325 - Restore to stock firmware May 02, 2020 03:04PM |
Registered: 6 years ago Posts: 183 |
Re: NSA325 - Restore to stock firmware May 02, 2020 04:11PM |
Admin Registered: 13 years ago Posts: 19,107 |
3. Run the following code for starting the process: # @bootloader run LEDE from usb pendrive usb reset; fatload usb 0 0x800000 lede-kirkwood-pogo_e02-initramfs-uImage; bootm 0x800000
Dan Folea
Re: NSA325 - Restore to stock firmware May 03, 2020 03:23PM |
Re: NSA325 - Restore to stock firmware May 03, 2020 04:15PM |
Admin Registered: 13 years ago Posts: 19,107 |
Quote
2. Or you can attempt to boot Debian on USB
Dan Folea
Re: NSA325 - Restore to stock firmware May 03, 2020 05:28PM |
$ ./kwboot -t -B 115200 /dev/ttyS1 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb Sending boot message. Please reboot the target... / Sending boot image... 0 % [+++++++++++++++++xmodem: Bad message
Re: NSA325 - Restore to stock firmware May 03, 2020 05:33PM |
Admin Registered: 13 years ago Posts: 19,107 |
Dan Folea
Re: NSA325 - Restore to stock firmware May 03, 2020 05:48PM |
Re: NSA325 - Restore to stock firmware May 03, 2020 06:00PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: NSA325 - Restore to stock firmware May 12, 2020 04:44PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: NSA325 - Restore to stock firmware January 26, 2023 06:02AM |
Registered: 1 year ago Posts: 1 |
NSA325> ver ver U-Boot 2020.04 (Jan 03 2023 - 00:24:21 +0000) ZyXEL NSA325 2-Bay Power Media Server arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r20028-43d71ad93e) 11.2.0 GNU ld (GNU Binutils) 2.37 NSA325> printenv printenv baudrate=115200 bootcmd=run setenv bootargs; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000 bootdelay=3 console=console=ttyS0,115200 ethact=egiga0 ethaddr=4C:9E:FF:40:92:69 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi) stderr=serial stdin=serial stdout=serial Environment size: 327/131068 bytes
nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0
Re: NSA325 - Restore to stock firmware January 26, 2023 07:09PM |
Admin Registered: 13 years ago Posts: 19,107 |
> mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)
> nanddump --noecc --omitoob -l 0x80000 -f mtd0 > /dev/mtd0 >
Re: NSA325 - Restore to stock firmware January 28, 2023 04:11AM |
Registered: 2 years ago Posts: 82 |
Re: NSA325 - Restore to stock firmware January 28, 2023 04:21PM |
Admin Registered: 13 years ago Posts: 19,107 |