sorry for the silence of all these days but I was busy with my real life, work stuff and something else. But hey, I didn’t lost my passion to write about things I do and things that I think may be useful to you.
So, I’m here today to write a little guide on how to install Debian Wheezy 7.x on your ZyXEL NSA320 and boot it up from an external device from USB (I like it this way, so my 2 disks inside will only be my storage and can sleep when needed, so I’ll span their life longer). So, where to start?
Yeah, no matter what, it’s better to make a backup of everything you’ve stored on your NAS. Just to be sure.
To make this you’ll need a USB TTL 3.3V Cable so you can connect to the device once it boots. Just think about it as a BIOS. You have to access a low-level state of you device before the OS boots so, here it is. We’re going to to tweak the U-Boot! Once you’re done, open your RS-232 console (if you’re on Windows I suggest you to use PuTTY with the Serial option select). Choose the COM port assigned by your OS and click Open, normaly it will just not do anything, but once you’ll boot your ZyXEL it will start to write down all the U-Boot messages. To stop the boot process, just press any key until it will stay idle to a simple prompt.
Here remember to type “printenv“ to write down ALL your U-Boot configuration. BACKUP it! You’ll need it later.
REMEMBER: turn off your NAS before you wire it up with your PC!
Yeah, this is the first step. Why? Because the stock U-Boot that is flashed inside the ZyXEL do not support booting from USB so, someone on the net called davygray compiled a special u-boot for us so we can directly flash it. So let’s start by downloading it (click on link 2), once finished uncompress it somewhere in your PC and then, follow up instructions on how to flash U-Boot. Be sure to have a T-FTP server installed as it will be required.
WARNING: this is a very delicate process. Be careful that if something goes wrong you cannot bootup your NAS.
Once you’re logged in, you have to configure some field like ethernet MAC address and so on. Just be sure to write down YOUR MAC address which your ZyXEL unit came with. Otherwise it will not work (or maybe you’ll spoof you MAC address which will NOT be unique anymore).
This is less risky and easier to do. Just simply download the latest version of this prepacked Debian installation (called rootfs) packed with the latest Stable Linux kernel (actually 3.11). Once you finished downloading it, follow the instructions on the topic to extract it. Be sure to format your device with EXT3 file system before extracting your rootfs inside of it. Make it bootable and remember to label it as “USBROOT“. It’s really important to do this, otherwise it will NOT boot.
If all the things will go right you’re done! Once your system will boot up, you’re ready to login with SSH on your NAS with username root and password root.
BE CAREFUL: change it as soon as possible!
That’s it. Pretty easy huh? In fact the only thing which will be difficult is to get that cable to wire up your PC with your NAS but, when you’ll be done, and you’ll configure the netconsole field in you’re U-Boot you can easily administrate it with ncat!
Here you can find an example working. Just a little explain of some fields:
ethaddr: the MAC address of your NAS (the same you got before starting all the process)
ncip: the IP of your network card that you’ll use from your computer, where you’ll use ncat.
usb_custom_params: the “yy:yy:yy:yy:yy:yy“ is the MAC address of your network card that you’ll use from your computer, where you’ll use ncat.
Basically in this configuration it is intended to assign the IP 192.168.1.2 to your NAS, so 192.168.1.3 is the PC where you’re going to use your ncat. Enjoy!
Thanks for reading as always and I hope you’ll like this too. See you again with the next topic, on how to install Arch on your ZyXEL NSA320!