Linux distro on NSA325

Install Arch Linux ARM on other devices.

Re: Linux distro on NSA325

Postby prokrypt » Sun Oct 13, 2013 12:07 am

Oh... btw, the watchdog seems to be gone, but I still have to enable my second drive manually. Hmm...
prokrypt
 
Posts: 31
Joined: Thu Dec 27, 2012 4:45 am

Re: Linux distro on NSA325

Postby WarheadsSE » Sun Oct 13, 2013 12:39 am

Hmm indeed.

I set the GPIO for HDD2 to off..
Nudged. :roll:

Whoops. Fixed in next kernel update.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux distro on NSA325

Postby SomeoneOnLine » Sun Oct 13, 2013 3:58 am

Does archlinuxarm get installed on the left and right sata drive or just the left? At what point can I manage a raid1 array?

~sol
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Re: Linux distro on NSA325

Postby WarheadsSE » Sun Oct 13, 2013 4:29 pm

Left only.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux distro on NSA325

Postby SomeoneOnLine » Mon Oct 14, 2013 6:18 am

Should I expect archlinuxarm to see both drives or just the one in the left drive bay? I can't seem to get it to see both drives. I'm trying to setup a raid1 mirror using both drives. Fdisk only shows sda not sdb.

Also
[root@alarm ~]# fw_setenv bootcmd 'run to_stock'
Cannot parse config file: Invalid argument

So I installed Archlinuxarm on a spare 250gb sata drive I had laying around so I could test and play with it a little. Now I want to install a couple a 1TB drives I have into the 325. When I plug in my flashdrive into the rear usb port to install archlinuxarm into a new 1tb drive in the left bay the box seams like it starts to boot then just powercycles or somethings. If I pop back in the 250gb drive it boots up fine. Its as thought its not even booting up to the usb drive to install archlinuxarm on the new 1tb drive. How can I get it to boot up to the usb flash drive so I can install archlinuxarm on the new drive?

~sol
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Re: Linux distro on NSA325

Postby WarheadsSE » Mon Oct 14, 2013 11:34 am

It does not fall back to the stock behavior if there is no drive.

To change drives, you will need to make the disk from outside the device. Both drives should automatically be powered on starting with 3.11.x-4 of the kirkwood kernel.

Otherwise, this will turn it on:
$this->bbcode_second_pass_code('', '
cd /sys/class/gpio
echo 47 > export
echo 1 > gpio47/value
')

You will need to edit /etc/fw_env.cfg for fw_printenv/setenv to work.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux distro on NSA325

Postby SomeoneOnLine » Mon Oct 14, 2013 4:14 pm

What should I put in /etc/fw_env.cfg For it to boot off USB to reinstall archlinuxarm on a new set of drives? Currently mine is empty.

~sol
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Re: Linux distro on NSA325

Postby WarheadsSE » Mon Oct 14, 2013 4:37 pm

The uboot on the device does not support booting off usb. The stock firmware has some fancy stuff that I essentially hijack.

$this->bbcode_second_pass_code('', '
# MTD device name Device offset Env. size Flash sector size
/dev/mtd1 0x0000 0x20000 0x20000
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux distro on NSA325

Postby SomeoneOnLine » Mon Oct 14, 2013 7:34 pm

When you say
$this->bbcode_second_pass_quote('', 'y')ou will need to make the disk from outside the device.


Do yo mean I will need to clone the 250GB drive that currently has archlinuxarm installed on it to the bigger 1tb drive I would like to have in it from a pc or something outside the nsa325?

If /etc/fw_env.cfg is located on the HD that archlinuxarm is installed on and I add your quoted lines into it then at what point does uboot or whatever access the flashdrive with the archlinuxarm installer on it? Or is it at this point a matter of cloning the smaller drive to a bigger drive from outside the nsa325? Im just trying to understand how I would toggling between stock firmware and archlinuxarm os.

~SOL
SomeoneOnLine
 
Posts: 39
Joined: Wed Sep 04, 2013 6:59 pm

Re: Linux distro on NSA325

Postby WarheadsSE » Mon Oct 14, 2013 7:43 pm

You're basic needs: Pick a method
1) revert to stock with
$this->bbcode_second_pass_code('', '
fw_setenv bootcmd 'run to_stock'
')
2) Clone the drive to the newer one.

I can easily point out which is likely to be problem.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: Google [Bot] and 8 guests