Most Popular Posts

Sunday 8 April 2012

Flashing your NSA310 with Debian Squeeze to run Sabnzbd, Sickbeard & CouchPotato - Part 2

Welcome to Part 2 of this blog post, if you missed part 1 here is the link:

http://ixrv.blogspot.co.uk/2012/04/flashing-your-nsa310-with-debian.html

Otherwise lets get started.

You Will Need:
* A working USB to TTL Converter (See part 1)
* A USB flash drive formatted with the FAT16 Filesystem (I tried 3 USB drives before I found one that works so bear this in mind)
* Your linux image and Ramdisk files
* A suitable size hard disk to use for your NAS

NOTE: I initially tried a 2TB Samsung HD203WI which didnt work but my Samsung HD103UJ did work.

First visit this link and download the 2 files uImage & Debian Installation Ramdisk:

http://forum.nas-central.org/viewtopic.php?f=249&t=5145

Now format your USB flash drive to FAT16 and drop the 2 files on there, make note of what you called them as you will need to reference them shortly. I left mine as the default uImage-3.2 and initrd.gz and they were fine.

Now:
1) Insert your USB drive into the back of your NAS
2) Connect your USB to TTL Cable to the serial header
3) Insert your hard disk into the NAS
4)  if you haven't already done so, fire up putty with the following settings and power on your NAS
Dont forget to change your COM port to the correct one!

5) Power on your NAS and when uBoot fires up and says "Hit Any key to stop autoboot" then do just that

6) now type the following:

setenv mainlineLinux yes
setenv arcNumber 4022
saveenv
reset

7) Once reset stop the boot process again and this type type:

usb start
fatload usb 0 0x800000 uImage-3.2
fatload usb 0 0xb00000 initrd.gz
set env bootargs 'console=ttyS0,115200 root=/dev/ram initrd=0xb00000,0x900000 ramdisk=32768'
bootm 0x800000

What we have basically done here is start the USB bus, load up the linux image and ramdisk to seperate memory addresses, set some boot arguments to use the ramdisk as the root and then boot from the linux image in memory

If you get disconnected dont worry! just reconnect :)

Now with any luck Linux will begin to boot, if it doesn't then try using another hard drive

8) Follow  the linux install through setting your hostname, configuring your domain name etc up until  you get to the remote installation password, Set this password and confirm it then close your console window.

9) Open putty again and connect via SSH to the IP address/hostname you set on your NAS.

10) you will now see the following:

* Choose "Start Installer"
* Select Debian Archive mirror country (The country you are in or nearest to is usally best)
* Select Debian Archive mirror
* Enter proxy details if applicable
* It will then say "No Kernel Modules Found", click ignore and continue
* It will then download some additional components which shouldnt take too long
* Set your location
* Set the root password
* Setup a user account and password
* It will then load a few more components and you will see this:

11)
Press continue and then you will see:

12)
If you don't then hit escape and execute a shell from the menu and type the following commands:
mknod /dev/sda b 8 0
mknod /dev/sd1 b 8 1
mknod /dev/sd2 b 8 2

13) All being well you will be asked which partitioning scheme to use:
I selected the top option "all files in one partition", you will then be asked to confirm:
Select finish partitioning and write changes to disk and then yes to the warning, now depending on the size of the disk this may take a while, you will also see this screen:
this is fine, just let it do its thing....

14) Now at some point you will be asked to participate in package survey:
this bit is up to you, choose yes/no

15) Now we come to the good bit, choosing what we want our little box of tricks to do for us:
I chose only File Server & SSH Server, that will be enough to run Sab,SB & CP, again I will leave it up to you

16) Next it will ask you to configure your workgroup/domain and warn you that no boot loader is installed which is fine and then it will finish off the installation:

once it is done you will get:

Dont worry!  that's fine, now onto part 3.... verifying the installation and flashing to the NAND :-O

Seriously though, it is easy and if you screw up then uBoot is here to save you, you just have to do the whole of part 2 again :P

Part 3







No comments:

Post a Comment