Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

Automated Debian Installer for Zyxel nsa310, 320 and 325 (no replies)

$
0
0
I made an automated installer to install Debian easily on nsa310, 320 and 325 (and probably 310s and 320s too).

It did take some minor ideas from the Arch install script, but is safer, smarter, heavily commented, and sets the stock bootloader to multiboot even if stock bootloader lacks scripting capability.

Tries to boot from Sata 0
Tries to boot from USB 0
Tries to boot from USB 1
Tries to boot from USB 2
Boots its original firmware

If it finds a Debian kernel it loads and boots it, this stops the sequence.

My NSA310 can boot from USB so I guess a NSA320 can too.

You can find it here https://www.dropbox.com/sh/5xodlvxb9u41smt/AACFlcpl14vRQeurbPPnJ5Vza?dl=0

I made this installer to allow less-experienced users to install Openmediavault in their NAS, so the tar packages in my dropbox are from the latest Debian Wheezy by Bodhi with Openmediavault 1.9 preinstalled.

You can change the boot-nsaXXX.tar to a tar containing the contents of the boot partition of any rootfs from bodhi, if you open it you will find also a readme with instructions on how to package the dtb into the zimage (from bodhi).
This is needed for stock uboot to boot such kernels.

You can change the debian-something.tar to another tar containing the rest of the rootfs from bodhi, as long as it is called debianXXXXXXX.tar (XXXXX can be whatever)

the NAS firmwares have bzip2 program too so you can also easily modify the script to have the NAS unzip bodhi's rootfs directly.

If you want to run this on nsa310s or 320s you need to look at the initial model check and add the model name of your NAS, you need to boot the original firmware and write in console
cat /zyxel/mnt/info/modelid
to get the model you can add to the script checks.

If you modify the script feel free to post the modifications below (or a link), so I can include them or make more versions.

Viewing all articles
Browse latest Browse all 3178

Trending Articles