Since several days, i'm struggling with the installation of OpenWrt on a ZyXEL NSA325 v1.
I am following the guide provided here:
Problem is that the basic commands, like "usb", "fatload" or "setenv", are not recognized. I always get the same error message in the shell, for example:
root@NSA325:~# usb reset -sh: usb: command not found
I am not a Linux expert (far from it), that's why it's possible i must be doing something stupid...
From what i could figure out, the latest kernel module from the stock OS (firmware v4.81(AAAJ.1)) is already installed:
root@NSA325:~# uname -r 2.6.31.8
I have already tried re-applying the latest stock firmware image, resetting the device to factory settings, but nothing worked.
Does anyone has any ideas on how to get access to these commands, maybe somebody has seen this type of issue before?
I should have probably stated this, thanks for pointing it out.
I get the same error, regardless if i send the command while connected through PuTTy via the serial cable (with a FTDI module) or via SSH...
Thank you, both !
This is also what i'm thinking about, but as i don't really know how to start u-boot, i keep running in circles.
Let me break it down on what i'm doing, maybe it'll be obvious where the mistake is:
I'm successfully connected to the NSA325 box via the serial cable.
I'm sticking in the USB drive (tried with both the front and the back ports), with the u-boot files (latest v18.x) and the OpenWrt image
It then starts the following sequence:
root@NSA325:/# usb 1-1.2: new high speed USB device using ehci_marvell and address 6 In hub_port_init, and number is 2, retry 0, port 2 ..... usb 1-1.2: configuration #1 chosen from 1 choice hotplug1056add: scsi6 : SCSI emulation for USB Mass Storage devices hotplug1057add:8 hotplug1057add:[8/6/80][/devices/platform/ehci_marvell.70059/usb1/1-1/1-1.2/1-1.2:1.0]Mass Storage device:08h/xxh/xxh scsi 6:0:0:0: Direct-Access SanDisk Cruzer Micro 6.51 PQ: 0 ANSI: 0 CCS sd 6:0:0:0: [sdc] 3910655 512-byte logical blocks: (2.00 GB/1.86 GiB) sd 6:0:0:0: [sdc] Write Protect is off sd 6:0:0:0: [sdc] Assuming drive cache: write through sd 6:0:0:0: [sdc] Assuming drive cache: write through
** sdc: sdc1** hotplug_add_storsd 6:0:0:0: Attached scsi generic sg2 type 0 age.sh:devPath=/devices/platform/ehci_marvell.70059/usb1/1-1/1-1.2/1-1.2:1.0 sd 6:0:0:0: [sdc] Assuming drive cache: write through sd 6:0:0:0: [sdc] Attached SCSI removable disk hotplug_add_storage.sh:tried 1,6:0:0:0 6:0:0:0 hotplug_add_storage.sh:tried 1,/dev/sdc hotplug_add_storage.sh:tried 1,/dev/sdc hotplug_add_storage.sh:sdc1,1,* hotplug_add_storage.sh:found USB:/dev/sdc1 hotplug_add_storage.sh:mount /dev/sdc1 /mnt/sdc1 hotplug_add_storage.sh:zyshclient -p 150 -e storage hotplugadd /dev/sdc1 [13610] server write-only FIFO is opened (fd=6) [13610] server read-only FIFO is opened (fd=7) [13610] server error read-only FIFO is opened (fd=8) argc = 2, func = 310 argid[1]: 1196; argv[1]: /dev/sdc1 FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! hotplug_add_storage.sh:zyshclient -p 150 -e media addextshare /dev/sdc1 POLLHUP on 7
** pid = 13610** [13610] is disconnected [13802] server write-only FIFO is opened (fd=6) [13802] server read-only FIFO is opened (fd=7) [13802] server error read-only FIFO is opened (fd=8) argc = 2, func = 419 argid[1]: 1246; argv[1]: /dev/sdc1 POLLHUP on 7
** pid = 13802** [13802] is disconnected hotplug_add_storage.sh:/dev/sdc1:c hard_disk_event USB disk connected setLED COPY GREEN ON led_state_map_addr = 16
When pressing any key after this sequence is ended, it goes back to the Linux shell...
I have also tried with other USB sticks, but it's the same result.
On a similar guide, there's an additional action (press any key on the serial communication to interrupt the boot progress), which i've also tried, without success:
There's progress, i managed to easily interrupt the normal boot process and now, the "usb reset" command is available:
Streaming disabled Write allocate disabled
USB 0: host mode
** [BlueDBG] reseting SoC Pex[0] 0 ...** PEX 0: PCI Express Root Complex Interface PEX 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 ...** PEX 1: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> usb reset (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 0 Storage Device(s) found
But now i'm stuck on that issue where the USB sticks are not detected. I'll try in the upcoming days with an actively powered USB hub.
Thanks again for the big help and for updating the guide. I know this is an old device, but i think it would be a shame not to put to good use the work of the OpenWrt devs and its community.
Just an update here: been struggling with this installation throughout the entire weekend and decided to install U-Boot using another guide, provided here:
It worked right off the bat and then, the OpenWrt installation from a USB stick went through without any errors i could identify. When connected via Serial cable, i see this welcome screen: