Welcome! Log In Create A New Profile

Advanced

Noobi with Zyxel 325 v2

Posted by Duck 
Noobi with Zyxel 325 v2
November 18, 2023 05:40PM
Hello everyone, I apologize for my bad English, which is why I'm translating the whole thing with the translator.

I've been trying to install a new Ubuntu on my old Zyxel 325 v2 for well over 24 hours now.

However, I don't know much about it and the German tutorials I find are now very outdated, which is why I'm coming to you.

my last tutorial I followed was this one (http://www.linuxu3er.de/boot-vom-usb-port.html)
but without success.

I wanted to ask if I could... Can anyone guide me through step by step if I get stuck?

First of all, I think I'm missing the right approach.

So far I've done everything via the UART interface, but unfortunately I can't even get the USB stick to work or start things from it.
I think the first sensible step would be to update the BIOS version or am I wrong?
Which post with an explanation would be the right one that I could follow?

I hope it's okay for me to make such a request. I would just like to use the old Nas as an additional backup to my unraid server and wouldn't like to throw it away.
Anyone can throw it away and buy new xD

MFG: Duck
Re: Noobi with Zyxel 325 v2
November 18, 2023 06:53PM
Duck,

See this post. It also appicable to the NSA325v2.

https://forum.doozan.com/read.php?3,134562,134565#msg-134565

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Noobi with Zyxel 325 v2
November 19, 2023 02:12PM
So I did the following steps and I'm not sure if that's right and above all I don't know what I have to do now.

Make an USB Stick with Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2
Formate with Gparte to ext3 name: rootfs

Than i have bevor install all this:
apt-get install libubootenv-tool
apt-get install u-boot-tools

That one hasnt work but i think it wars not so importend.
deb https://security.debian.org/debian-security bullseye-security main contrib non-free

Install Debian onto the Stick:
mkdir /media/sdb
mount /dev/sdb1 /media/sdb
cd /media/sdb
mv /home/icke/Downloads/Debian* /media/sdb
tar -xjf Debian*
rm Debian*

Than the part that i dont have understand:
cd /media/sdb1/boot
cp -a zImage-5.13.6-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage
sync

It has look like that alle fine...he dont have say that is going somthing wrong.

after that i have put the USB Stick into the Board and have make the following steps.

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'
printenv
boot

And then unfortunately I didn't know what to do anymore :(

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 512MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....base e8000000, size 128MB
PEX1_IO ....base f2100000, size   1MB
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size  16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- DB-88F6282A-BP                                                                                        Soc: MV88F6282 Rev 1 LE

 Detected Tclk 200000000 and SysClk 533333333
Marvell USB EHCI Host controller #0: d003a740
        [BlueDBG] reseting SoC Pex[0]  0 ...
PEX0 interface detected Link X1
        [BlueDBG] reseting SoC Pex[1]  0 ...
        [BlueDBG] reseting SoC Pex[1]  1 ...
        [BlueDBG] reseting SoC Pex[1]  2 ...
        [BlueDBG] reseting SoC Pex[1]  3 ...
        [BlueDBG] reseting SoC Pex[1]  4 ...
        [BlueDBG] reseting SoC Pex[1]  5 ...
        [BlueDBG] reseting SoC Pex[1]  6 ...
        [BlueDBG] reseting SoC Pex[1]  7 ...
        [BlueDBG] reseting SoC Pex[1]  8 ...
        [BlueDBG] reseting SoC Pex[1]  9 ...
        [BlueDBG] reseting SoC Pex[1]  10 ...
PEX1 interface detected no Link.
pci 0000:00:01.0: PME# supported from D0 D3hot
pci 0000:00:01.0: PME# disabled
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
NET: Registered protocol family 1
cpufreq: Init kirkwood cpufreq driver
XOR registered 4 channels
XOR 2nd invalidate WA enabled
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
gpio_dev = fd00000
LED_SET_CTL_IOC_NUM= 6702
High gpio polarity = 50
High gpio polarity = 70
Enable Interrupt
mv88f6281_wdt: Watchdog Timer timeout = 8 sec.
mv88f6281_wdt: HW Watchdog timeout    = 15 sec.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 990
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
Wake up disk0......
Wake up disk1......
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
EnablePowerSaving
PowerSavingTime = 15
No found HD
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 1 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0

mvFpRuleDb (d10a0000): 16384 entries, 65536 bytes
Counter=0, opIdx=6, overhead=16
Counter=1, opIdx=2, overhead=0
Counter=2, opIdx=1, overhead=18
Counter=3, opIdx=2, overhead=0
NAND device: Manufacturer ID: 0x92, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bi                                                                                      t)
Scanning device for bad blocks
Bad eraseblock 100 at 0x000000c80000
Bad eraseblock 200 at 0x000001900000
Bad eraseblock 1023 at 0x000007fe0000
9 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 9 MTD partitions on "nand_mtd":
0x000000000000-0x000000100000 : "uboot"
0x000000100000-0x000000180000 : "uboot_env"
0x000000180000-0x000000200000 : "key_store"
0x000000200000-0x000000280000 : "info"
0x000000280000-0x000000c80000 : "etc"
0x000000c80000-0x000001680000 : "kernel_1"
0x000001680000-0x000004640000 : "rootfs1"
0x000004640000-0x000005040000 : "kernel_2"
0x000005040000-0x000008000000 : "rootfs2"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
rtc-pcf8563 0-0051: chip found, driver version 0.4.3
rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
ip6tnl0: Disabled Privacy Extensions
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 0-0051: setting system clock to 2023-11-19 19:31:53 UTC (1700422313)
Freeing init memory: 2872K
*** Stage 1: Setup system and device drivers ***
usb 1-1: new high speed USB device using ehci_marvell and address 2
In hub_port_init, and number is 1, retry 0, port 1 .....
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
## Error: "ethaddr" not defined
BusyBox v1.17.2 (2017-06-23 10:40:08 CST) multi-call binary.

Usage: ifconfig [-a] interface [address]

egiga0: link down
egiga0: started
ADDRCONF(NETDEV_UP): egiga0: link is not ready
rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
usb 1-1.2: new high speed USB device using ehci_marvell and address 3
*** Stage 2: Prepare the root file system ***
In hub_port_init, and number is 2, retry 0, port 2 .....
usb 1-1.2: configuration #1 chosen from 1 choice
Mount system partition...
yaffs: dev is 32505862 name is "mtdblock6" ro
yaffs: passed flags ""
scsi2 : SCSI emulation for USB Mass Storage devices
storage_gen_mntfw.sh: no internal disk available
1
WARNING: No valid partition on HDD or no HDD plugged!
WARNING: No valid partition on HDD or no HDD plugged
Boot from RAM disk
egiga0: link up, full duplex, speed 1 Gbps
ADDRCONF(NETDEV_CHANGE): egiga0: link becomes ready
scsi 2:0:0:0: Direct-Access     General  UDisk            5.00 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] 7864320 512-byte logical blocks: (4.02 GB/3.75 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
Mount system disk image ...
yaffs: dev is 32505860 name is "mtdblock4" rw
yaffs: passed flags ""
/etc/zyxel/conf exist..
Start rcS2 of ZyXEL style
Set the phy back to auto-negotiation mode
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] = 4
words[3] = 1e1
:GbitPhy[0x0egiga0: link down
0000001:0x00000004] <= 0x000001e1
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] = 9
words[3] = 300
:GbitPhy[0x00000001:0x00000009] <= 0x00000300
base address = 4014e000
words[0] = phypoke
words[1] = 1
words[2] = 0
words[3] = 9140
:GbitPhy[0x00000001:0x00000000] <= 0x00009140
*** Stage 3: Start services on HDD ***
NTFS driver 2.1.29 [Flags: R/O MODULE].
tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' t                                                                                      aints kernel.
Disabling lock debugging due to kernel taint
Tuxera NTFS driver 3011.12.23 [Flags: R/W MODULE].
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
PPP Deflate Compression module registered
NET: Registered protocol family 24
PPP BSD Compression module registered
modprobe: module fuse not found in modules.dep
egiga0: link up, full duplex, speed 1 Gbps
sda
checking sda
Trying to mount /dev/sda1
EXT3-fs: Unrecognized mount option "iocharset=utf8" or missing value
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Fail to mount /dev/sda1
Press ENTER to continue...
Starting zylogd...
 zylog starts.
Starting uamd...
Starting ZySH daemon and client...
Start NSA-220 system daemon....
 Start ZySH daemon
zyshd: version 2.0.0 (build: 10:45:14 Jun 23 2017)
% zylog init start
cat: can't open '/var/run/syslog-ng.pid': No such file or directory
Try to KILL SIGHUP to syslog-ng: pid=0
syslog-ng not running, start /usr/sbin/syslog-ng
Nov 19 19:32:24 (none) syslog-ng[1394]: syslog-ng starting up; version='2.0.10'
zyio_open_config success. (/etc/__system_default.xml, 0)
zyio_open_config success. (/etc/zyxel/conf/__system_default_device_ha.xml, 0)
/usr/sbin/zic -d /etc /var/zyxel/myzone_rule
/bin/ln -s -f /etc/MyZone /etc/localtime
/bin/hostname NSA325-v2
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
Usage: umount [-hV]
       umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
       umount [-f] [-r] [-n] [-v] special | node...
BusyBox v1.17.2 (2017-06-23 10:40:08 CST) multi-call binary.
I think that is anoth...there was more.
Re: Noobi with Zyxel 325 v2
November 19, 2023 03:52PM
> Make an USB Stick with
> Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2

You can also use the latest rootfs: Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

> Formate with Gparte to ext3 name: rootfs

Don't use GUI. Use command line fdisk to create partition. And then use command line mkfs.ext3 to format it.

mkfs.ext3 -L rootfs /dev/sdb1

>
> Than i have bevor install all this:
> apt-get install libubootenv-tool
> apt-get install u-boot-tools

> That one hasnt work but i think it wars not so
> importend.

This must be done after you have booted the NSA325v2 and logged in.


> deb https://security.debian.org/debian-security
> bullseye-security main contrib non-free

This must be done after you have booted the NSA325v2 and logged in.

=====

At this point you must be the root user (sudo won't work). To become root
su -
>
> Install Debian onto the Stick:
> mkdir /media/sdb
> mount /dev/sdb1 /media/sdb
> cd /media/sdb
> mv /home/icke/Downloads/Debian* /media/sdb
> tar -xjf Debian*
> rm Debian*
>

The above commands were good. But it will work only if you are root while doing it.


> Than the part that i dont have understand:
> cd /media/sdb1/boot
> cp -a zImage-5.13.6-kirkwood-tld-1 zImage.fdt
> cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
> mv uImage uImage.orig
> mkimage -A arm -O linux -T kernel -C none -a
> 0x00008000 -e 0x00008000 -n
> Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage
> sync

The above step is to make a kernel file with the DTB appended. And the DTB file name should be kirkwood-nsa325.dtb. So the cat command above should be:
cat dts/kirkwood-nsa325.dtb  >> zImage.fdt

> It has look like that alle fine...he dont have say
> that is going somthing wrong.
>
> after that i have put the USB Stick into the Board
> and have make the following steps.
>
> 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'
> printenv
> boot


OK. So correct the rootfs as I described above. And then try to boot it with serial console like you did.

Please post the entire serial console log (don't post excerpts).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: