OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 02:10AM |
Registered: 3 years ago Posts: 20 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 02:24AM |
Admin Registered: 13 years ago Posts: 19,106 |
Quote
Updated 25 Aug 2019:
Basic Debian buster Kirkwood rootfs for most Kirwood plugs:
Re: OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 02:26AM |
Admin Registered: 13 years ago Posts: 19,106 |
Quote
- Will booting Debian require an external USB stick or an internal HDD to boot? Or will it fit on the system's internal storage?
Re: OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 03:11AM |
Registered: 3 years ago Posts: 20 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 03:24AM |
Registered: 8 years ago Posts: 38 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 03:35AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 05:11AM |
Admin Registered: 13 years ago Posts: 19,106 |
Quote
If you only install OpenWrt then use their u-boot version.
If you want to run both then use my u-boot version. See here for the installation steps:
Re: OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 05:46AM |
Registered: 3 years ago Posts: 20 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 30, 2021 07:02AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: OpenWRT or Debian on Zyxel NSA325v2 May 11, 2021 01:50AM |
Registered: 3 years ago Posts: 20 |
Re: OpenWRT or Debian on Zyxel NSA325v2 May 11, 2021 04:19AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: OpenWRT or Debian on Zyxel NSA325v2 May 11, 2021 05:48AM |
Registered: 3 years ago Posts: 20 |
Re: OpenWRT or Debian on Zyxel NSA325v2 May 11, 2021 10:21AM |
Registered: 3 years ago Posts: 20 |
Re: OpenWRT or Debian on Zyxel NSA325v2 May 11, 2021 04:54PM |
Admin Registered: 13 years ago Posts: 19,106 |
Quote
https://downloads.lede-project.org/releases/17.01.4/targets/kirkwood/generic/lede-17.01.4-kirkwood-pogo_e02-initramfs-uImage
Re: OpenWRT or Debian on Zyxel NSA325v2 May 12, 2021 02:09AM |
Registered: 3 years ago Posts: 20 |
[91387.374689] usb 1-1.3: Detected FT232RL [91387.379766] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0 pi@pi:~/Downloads/kwboot-tool $ ls -la total 5664 drwxr-xr-x 2 pi pi 4096 May 12 09:03 . drwxr-xr-x 3 pi pi 4096 May 12 08:47 .. -rw-r--r-- 1 pi pi 4063232 May 12 08:51 18.bin -rwxrwxrwx 1 pi pi 15604 May 12 09:03 kwboot -rw-r--r-- 1 pi pi 569104 May 12 08:51 uboot.bin -rw-r--r-- 1 pi pi 569168 May 12 08:51 uboot.img -rw-r--r-- 1 pi pi 569620 May 12 08:51 uboot.kwb pi@pi:~/Downloads/kwboot-tool $ ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.kwb bash: ./kwboot: No such file or directory pi@pi:~/Downloads/kwboot-tool $
Re: OpenWRT or Debian on Zyxel NSA325v2 May 14, 2021 02:07AM |
Registered: 3 years ago Posts: 20 |
Grzegorz
Re: OpenWRT or Debian on Zyxel NSA325v2 April 09, 2023 05:28PM |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 09, 2023 06:28PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 10, 2023 10:13AM |
Registered: 1 year ago Posts: 7 |
root@clever:/media/root/rootfs/boot# cp -a zImage-5.13.6-kirkwood-tld-1 zImage.fdt root@clever:/media/root/rootfs/boot# cat dts/kirkwood-nsa325.dtb >> zImage.fdt root@clever:/media/root/rootfs/boot# mv uImage uImage.orig root@clever:/media/root/rootfs/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage Image Name: Linux-4.12.1-kirkwood-tld-1 Created: Mon Apr 10 13:19:28 2023 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5449838 Bytes = 5322.11 kB = 5.20 MB Load Address: 00008000 Entry Point: 00008000 root@clever:/media/root/rootfs/boot# syncSo I did. Debian does not start. What else do I need to change? urzywałem USB front 3.0 and back USB2.
Re: OpenWRT or Debian on Zyxel NSA325v2 April 10, 2023 01:39PM |
Admin Registered: 13 years ago Posts: 19,106 |
Quote
Yout don't need to change u-boot. Treat OpenWrt u-boot like stock u-boot. And follow this instruction:
Boot Kirkwood rootfs with stock u-boot
https://forum.doozan.com/read.php?2,102054,105374#msg-105374
Re: OpenWRT or Debian on Zyxel NSA325v2 April 16, 2023 03:42PM |
Registered: 1 year ago Posts: 7 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 16, 2023 04:32PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 16, 2023 11:59PM |
Registered: 1 year ago Posts: 7 |
## Error: "setenv" not defined
NSA325> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' NSA325> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' Unknown command 'setenv' - try 'help' NSA325> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' NSA325> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' NSA325> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' NSA325> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset' NSA325> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset' NSA325> printenv baudrate=115200 bootcmd=usb reset; run usb_bootcmd; usb stop; reset bootdelay=3 console=console=ttyS0,115200 ethact=egiga0 ethaddr=5C:F4:AB:48:F2:BC load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi) stderr=serial stdin=serial stdout=serial usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000 usb_bootcmd=run usb_set_bootargs; run usb_boot usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial Environment size: 586/131068 bytes NSA325> boot resetting USB...
Re: OpenWRT or Debian on Zyxel NSA325v2 April 17, 2023 12:08AM |
Admin Registered: 13 years ago Posts: 19,106 |
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Re: OpenWRT or Debian on Zyxel NSA325v2 April 17, 2023 04:55AM |
Registered: 1 year ago Posts: 7 |
U-Boot 2020.04 (Oct 14 2022 - 22:44:41 +0000) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB NAND: 128 MiB MMC: Loading Environment from NAND... OK In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 NSA325> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' NSA325> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' NSA325> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' NSA325> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' NSA325> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' NSA325> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset' NSA325> printenv baudrate=115200 bootcmd=usb reset; run usb_bootcmd; usb stop; reset bootdelay=3 console=console=ttyS0,115200 ethact=egiga0 ethaddr=5C:F4:AB:48:F2:BC load_uimage=ext2load usb 0:1 0x800000 /boot/uImage load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi) stderr=serial stdin=serial stdout=serial usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000 usb_bootcmd=run usb_set_bootargs; run usb_boot usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial Environment size: 637/131068 bytes NSA325> boot resetting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 5449902 bytes read in 246 ms (21.1 MiB/s) 9671091 bytes read in 407 ms (22.7 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.13.6-kirkwood-tld-1 Created: 2023-04-16 20:15:23 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5449838 Bytes = 5.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 02100000 ... Image Name: initramfs-5.13.6-kirkwood-tld-1 Created: 2021-09-24 1:06:32 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9671027 Bytes = 9.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image Loading Ramdisk to 1f1fd000, end 1fb36173 ... OK Starting kernel ...
Re: OpenWRT or Debian on Zyxel NSA325v2 April 17, 2023 02:41PM |
Admin Registered: 13 years ago Posts: 19,106 |
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'Like you already did.
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset' saveenv
Re: OpenWRT or Debian on Zyxel NSA325v2 April 20, 2023 02:11AM |
Registered: 1 year ago Posts: 7 |
Re: OpenWRT or Debian on Zyxel NSA325v2 April 20, 2023 02:15PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: OpenWRT or Debian on Zyxel NSA325v2 May 18, 2023 11:53AM |
Registered: 1 year ago Posts: 7 |
ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB NAND: 128 MiB MMC: Loading Environment from NAND... OK In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 resetting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Wrong Image Format for bootm command Error occured, error code = 112 ERROR: can't get kernel image! stopping USB.. resetting ...
Re: OpenWRT or Debian on Zyxel NSA325v2 May 18, 2023 03:18PM |
Admin Registered: 13 years ago Posts: 19,106 |
printenv