original MAC: C8:6C:87:0A:FE:54 ethaddr=00:19:CB:00:51:81 eth1addr=00:19:CB:00:51:82 ---------------------------------------------------------- I used AA666 NSA320 sources for build on NSA310, parts of this tutorial are taken from his topic(credits to him). ------Compilation from source------- make menuconfig ARCH=arm ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make uImage modules ------Prepare usb stick------ Since uboot on the NSA310 doesn't work with ethernet, it is neccesary to make an usb-stick with the neccesary files. *Get an usb-stick with a size that supports FAT16(<4GB) *Format it to FAT16 *Copy the needed files to the stick ------Start Debian Install------ Uboot: Prepare u-boot for mainline kernel: setenv mainlineLinux yes setenv arcNumber 3339 saveenv reset usb start fatload usb 0 0x800000 uImage fatload usb 0 0xb00000 initrd.gz setenv bootargs 'console=ttyS0,115200 root=/dev/ram initrd=0xb00000,0x900000 ramdisk=32768' bootm 0x800000 ------After install:------ fatload usb 0 0x800000 uImage Next, try to boot and mount root filesystem. If you installed root filesystem into /dev/sda1: setenv bootargs 'console=ttyS0,115200 root=/dev/sda1' bootm 0x800000 ------NAND install:------ Download kernel from usb and save it into nand kernel_2 partition: fatload usb 0 0x800000 uImage nand erase 0x4640000 0x300000 nand write.e 0x800000 0x4640000 0x300000 Following command depands on where you installed Debian. In case if it on sda1: setenv bootargs 'console=ttyS0,115200 root=/dev/sda1' Prepare boot command setenv bootcmd 'nand read.e 0x2000000 0x04640000 0x400000; bootm 0x2000000' saveenv Try to boot boot ------Fix wrong mac address------ Add these lines to /etc/rc.local: ifdown eth1 /sbin/ifconfig eth1 hw ether XX:XX:XX:XX:XX:XX ifup eth1 Where XX:XX:XX:XX:XX:XX is your original mac extracted from uboot's enviroment variables ------Alloc kernel panics------- add these lines in /etc/sysctl.conf: # Set VM min memory vm.min_free_kbytes=8192 ------Ledssssss------- Put these lines in /etc/rc.local to stop blinking once system has booted: #Setup leds echo 1 > /sys/class/leds/nsa320:green:System/brightness ------Shutdown via Powerbutton------- It is possible to shutdown the box by pressing power button. Install input-event-daemon and put following to /etc/input-event-daemon.conf: [Global] listen = /dev/input/event0 [Keys] POWER = shutdown -h now ------Known Bugs------ * Samba crashes whole system * Ethernet leds don't work * All mtd blocks read as bad. The chip is somehow not supported by kernel. If somebody knows a fix, let us know :)