ZyXEL NSA320 booted from USB...once!

Install Arch Linux ARM on other devices.

Re: ZyXEL NSA320 booted from USB...once!

Postby ormiller » Fri Oct 12, 2012 3:19 pm

I am also having problems with a 2 TB drive. Do I have to format the ext2 partition with different parameters ?
-> Serial data output about the hard drive .
____________________

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
Device 0 @ 0 0:
Model: WDC WD20EARX-008FB0 Firm: 51.0AB51 Ser#: WD-WCAZAH547172
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

** Unable to read "/uImage" from ide 0:1 **
## Booting image at 02000000 ...
Bad Magic Number
ormiller
 
Posts: 16
Joined: Fri Oct 12, 2012 2:48 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby CharlesB » Fri Oct 12, 2012 4:40 pm

$this->bbcode_second_pass_quote('ormiller', ' ')Do I have to format the ext2 partition with different parameters ?

Nothing special that I know of -- just has to be the 1st partition on the disk (16MB size, close to the beginning of the disk recommended). The fact that the device didn't complain that it couldn't find the partition, but rather stated: $this->bbcode_second_pass_quote('', '*')* Unable to read "/uImage" from ide 0:1 **
makes me think that the filesystem's fine, but maybe you didn't put the uImage file on there (and I expect that the filename is case-sensitive!).

That's my inexperienced take on it -- I'd double-check that file (also make sure it's the size you expect -- roughly 3MB). I assume that you only have the one drive in there, so there's no chance that you have a pair of drives and reversed them.
CharlesB
 
Posts: 34
Joined: Fri Sep 14, 2012 3:53 am

Re: ZyXEL NSA320 booted from USB...once!

Postby WarheadsSE » Fri Oct 12, 2012 6:17 pm

1) the uImage has to on that first partition
2) did you use my install method?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby ormiller » Fri Oct 12, 2012 8:57 pm

I used the method with the script but the filesystems it created were unable to be seen on another computer. gparted said there were 2 a ext2 and a ext3 but the laptop I mounted it to could only see the ext3 and it had problems viewing it. I am guessing there was a problem with the fdisk on the NSA325.
Using Debian squeeze on my laptop and a drive connected via usb drive mate I created a 16m ext2 sda1 and copied ulmage to it.
With the rest of the disk I created an ext3 filesystem and used tar to extract the files from ArchLinuxARM-armv5te-latest.tar.gz to it.

The NSA325 now boots. Thank you,

Now the system reboots after trying to :
$this->bbcode_second_pass_code('', '
\0x1b[0;10m\0x1b[1m\0x1b[34m:: \0x1b[0;10m\0x1b[1mStarting Secure Shell Daemon\0x1b[0;10m \0x1b[s\0x1b[71G \0x1b[0;10m\0x1b[1m\0x1b[34m[\0x1b[0;10m\0x1b[36mBUSY\0x1b[0;10m\0x1b[1m\0x1b[34m]\0x1b[0;10m ssh-keygen: generating new host keys: DSA \0x00\0xfc
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
')

I also noticed beforehand that the ext3 was mounted ext4 Read Only. Should I format it to EXT4?
$this->bbcode_second_pass_code('', '
[ 17.385267] netconsole: network logging started
[ 17.390216] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 17.397162] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 17.413255] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[ 17.420900] EXT4-fs (sda2): INFO: recovery required on readonly filesystem
[ 17.427823] EXT4-fs (sda2): write access will be enabled during recovery
[ 17.473526] EXT4-fs (sda2): recovery complete
[ 17.478385] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 17.486113] VFS: Mounted root (ext3 filesystem) readonly on device 8:2.
[ 17.517943] devtmpfs: mounted
[ 17.521428] Freeing init memory: 172K

INIT: version 2.88 booting


\0x1b[0;10m\0x1b[1m\0x1b[34m > \0x1b[0;10m\0x1b[1mArch Linux ARM
\0x1b[0;10m')
Last edited by WarheadsSE on Fri Oct 12, 2012 8:58 pm, edited 1 time in total.
Reason: adding code tags.
ormiller
 
Posts: 16
Joined: Fri Oct 12, 2012 2:48 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby WarheadsSE » Fri Oct 12, 2012 8:59 pm

You can if you want. The kernel is configured to use the Ext4 module to mount Ext2/3 fileystems.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby ormiller » Fri Oct 12, 2012 9:43 pm

ext4 did not fix the problem.

[ 15.019009] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
[ 15.039906] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
[ 15.139599] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 15.147311] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[ 15.189577] devtmpfs: mounted
ormiller
 
Posts: 16
Joined: Fri Oct 12, 2012 2:48 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby CharlesB » Fri Oct 12, 2012 9:53 pm

Have you actually tried logging in and writing to your filesystem to see if there's really a problem? You'll see those same messages on my boot, but it works fine. I'm guessing that it mounts the FS R/O first, then later remounts it R/W.
CharlesB
 
Posts: 34
Joined: Fri Sep 14, 2012 3:53 am

Re: ZyXEL NSA320 booted from USB...once!

Postby ormiller » Mon Oct 15, 2012 4:28 pm

I am unable to get into the operating system prompt. The box reboots before I can do anything.

Does anybody know the commands to set the environment variables to be able to boot from the NAND and the USB once again ?

Thanks,
ormiller
 
Posts: 16
Joined: Fri Oct 12, 2012 2:48 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby WarheadsSE » Mon Oct 15, 2012 4:30 pm

interrupt uboot
$this->bbcode_second_pass_code('', '
> run to_stock
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby ormiller » Thu Oct 18, 2012 8:22 pm

Found out why my NSA325 won't run the script.
There is no mkfs.ext3 installed on the base OS. I changed the line for fdisk to make a partition that is 1020M that defaulted to /dev/sda2 since I was using a 2TB disk and want my data to be separate from the OS. I changed the line from mkfs.ext3 to mkfs.ext2, and I changed the line for the mount -t ext3 to mount-t ext2 .

I now have a running archlinux OS on my Zyxel NSA325 machine !

Thanks for your help.
ormiller
 
Posts: 16
Joined: Fri Oct 12, 2012 2:48 pm

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 16 guests