prepare a usb or hdd with 2 partitions the first ext2, the second whatever you want your rootfs as (i use ext4 at the moment)

This assumes an ext2 partition on the disk for boot no directories files in the root
of the ext2 partition and the root partition is labeled rootfs.

download the sata-debian-uboot.tar.gz from this post
extract it to a fat 32 formated usb
in uboot type resetenv
then reset the device
after reboot type saveenv (in uboot)
reset again
let the device boot normal
after it finishes and reboot uboot variables are set for sata boot of debian

The second works for usb:

download the usb-debian-uboot.tar.gz from this post
extract it to a fat 32 formated usb
in uboot type resetenv
then reset the device
after reboot type saveenv (in uboot)
reset again
let the device boot normal
after it finishes and reboot uboot variables are set for usb boot of debian.

It only changes uboot variables to allow booting of debian on nsa325 v1 & v2.
This also works if you want your boot files on usb and your rootfs on a different drive.
If you want to name your rootfs different edit the usb_key_func.sh.2 script in the downloaded tar file.

Thanks WarheadsSE iv already figured it all out and have debian running. I edited the arch script and added the correct uboot settings.

edit1:

I have 2 versions of the arch script 1 for booting from first sata:
This assumes an ext2 partition on the disk for boot no directories files in the root
of the partition and the root partition is labeled rootfs

download the sata-debian-uboot.tar.gz from this post
extract it to a fat 32 formated usb
in uboot type resetenv
then reset the device
after reboot type saveenv (in uboot)
reset again
let the device boot normal
after it finishes and reboot uboot variables are set for sata boot of debian

The second hopefully works for usb:

download the usb-debian-uboot.tar.gz from this post
extract it to a fat 32 formated usb
in uboot type resetenv
then reset the device
after reboot type saveenv (in uboot)
reset again
let the device boot normal
after it finishes and reboot uboot variables are set for usb boot of debian.

It only changes uboot variables to allow booting of debian on nsa325 v1 & v2.

IT DOES NOT FLASH ANYTHING!!

edit2:
just tested on my own nsa325 v2 usb booting is persistant after reboot.

Buttzy10169 Wrote:
-------------------------------------------------------
> Thanks WarheadsSE iv already figured it all out
> and have debian running. I edited the arch script
> and added the correct uboot settings.
>
> edit1:
>
> I have 2 versions of the arch script 1 for booting
> from first sata:
> This assumes an ext2 partition on the disk for
> boot no directories files in the root
> of the partition and the root partition is labeled
> rootfs
>

> download the sata-debian-uboot.tar.gz from this
> post
> extract it to a fat 32 formated usb
>
> in uboot type resetenv
> then reset the device
>
> after reboot type saveenv (in uboot)
> reset again
> let the device boot normal
>
> after it finishes and reboot uboot variables are
> set for sata boot of debian
>

>
> The second hopefully works for usb:
>

> download the usb-debian-uboot.tar.gz from this
> post
> extract it to a fat 32 formated usb
>
> in uboot type resetenv
> then reset the device
>
> after reboot type saveenv (in uboot)
> reset again
> let the device boot normal
>
> after it finishes and reboot uboot variables are
> set for usb boot of debian.
>

>
> It only changes uboot variables to allow booting
> of debian on nsa325 v1 & v2.
>
> IT DOES NOT FLASH ANYTHING!!
>
> edit2:
> just tested on my own nsa325 v2 usb booting is
> persistant after reboot.

NICE! Thanks for all your help in getting it up and going. I now have deb7 rootfs and boot on my usb flash drive and created a raid1 using the left and right drives. where most of my data will live. Now time to organize everything again.

QuoteShould I expect drive and panel leds to work? on the power button and led just below that are on. power = blue and system status or led just below power is orage and usb is green when I have a usb device plugged in.

Regarding the uBoot dump (http://forum.doozan.com/read.php?2,12096,14462#msg-14462). The dump is more than what uBoot image is (should be only 512K). If Marvell padded it then it is 512K, if not then we don't really know the exact size.

I think the 2nd dump command is the right one (one that produces exact 512 KB)

nanddump -nf uboot.mtd0.bak -l 0x80000 /dev/mtd0

The correct sequence is

- execute kwboot command on the host (with option -p). It will start spining the / character clockwise direction.
- reboot the NSA25. You should see the / character starts spinning in counter clockwise direction when it tries to handshake. Wait a few seconds to see if the handshake works, if not then press control-C to abort. Up arrow to recall command and execute it again.
- whenever you see the error (bad modem message or protocol error), up arrow to recall the command and run it again. Repeat this as many times as you can (perhaps 20, 30 times).

Buttzy10169 Wrote:
[...]
> Install debian package "acpid"
[...]
> And the following python script lets you do something with the copy button:
[...]
> If anyone know's a better or more responsive way
> to use the copy button let me know as to use the
> buttons at the moment i have to keep them pressed
> for a second or 2

Also, I have one question: is the serial on the NSA3252 easily accessible?
Also, is it possible to modify its u-boot environment so that if the hdd is present it will load debian, otherwise it will load the original firmware on flash? It's for a friend: I want to show him the power of a custom made NAS, but let him the ability to go back by just removing the hdd.

I think I seen someone before who had some kind of if statement in uboot but you would have to check on that I forget where I seen it was when I first started with goflex net.

As for the serial you will have to disassemble the nas to get at it. I made a small hole at the front on mine and installed a 3.5 mm jack plug attached to the serial for easy access to it. Its on the back of the board so you have to remove it from the case to get to it.

Buttzy10169 Wrote:
-------------------------------------------------------
> I think I seen someone before who had some kind of
> if statement in uboot but you would have to check
> on that I forget where I seen it was when I first
> started with goflex net.

Oh no problem with that, I just mean: is it possible with its stock u-boot or I should compile a new one?

> As for the serial you will have to disassemble the
> nas to get at it. I made a small hole at the front
> on mine and installed a 3.5 mm jack plug attached
> to the serial for easy access to it. Its on the
> back of the board so you have to remove it from
> the case to get to it.

And for uboot its risky compileing and flashing a new one unless you can get uart booting to work or have a jtag. I think its possible with the default uboot but I'm unsure of how an if is written in uboot.

The stock uBoot does not have advance scripting capability, so I don't think "if" statement would work, IIRC what WarheadsSE said.

However, a limited uBoot envs scripting capability would be able to work for this purpose. If you set it up to look for /boot/uImage on HDD first, and it fails, it will execute the next env to look for /boot/uImage on the USB, and then if it fails, it will execute the next one t look for uImage on NAND.

For example:

bootcmd=run hdd_bootcmd; run usb_bootcmd; run stock_bootcmd
hdd_bootcmd=setenv ide1 0:1; run make_hdd_bootargs; run hdd_boot
usb_bootcmd=setenv usb1 0:1; run make_usb_bootargs; run usb_boot
stock_bootcmd=setenv ????; run make_nand_bootargs; run nand_boot

Replace ??? above with correct nand device. And so on… define the rest of the other uBoot envs.

@Bodhi, that's clear, and I admit I kinda already knew this, but ignorantly thought it was available only in custom compiled u-boot - thank you for reminding me the obvious :D
So it seems I have a viable option now.
I saw your signature post (latest uboot builds): are you an u-boot dev or, simpler, do you know if latest u-boots (from official site) come with support for GPT? Last time (it was 6 or 7 months ago), I had to create a hybrid MBR :(

Yes. The 2013.10 uBoot builds for GoFlex Home, GoFlex Net and Pogo E02, that I've uploaded, support GPT booting and other latest features (the official uBoot does provide GPT, I only needed to turn it on).

But we don't have the patch for NSAxxx so I can't build one. I hope eventually we will. If the NSA325 V2 ever available in US then I hope to get my hand on one and build it. There is a basic patch for NSA320 on Peter Schildmann GIT hub.

Buttzy10169 Wrote:
-------------------------------------------------------
> No no soldering on mine anyway it already had
> pins.
>
> And for uboot its risky compileing and flashing a
> new one unless you can get uart booting to work or
> have a jtag. I think its possible with the default
> uboot but I'm unsure of how an if is written in
> uboot.

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.