Debian on NSA310S? June 08, 2015 06:51AM |
Registered: 9 years ago Posts: 295 |
by bodhi » Sun May 10, 2015 12:06 am ... ... I have the 320S DTS in my patch at Doozan forum. It was from user chrlee who created and tested it on the actual hardware. -bodhi
[ 0.171082] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 1.910643] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 1.918749] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address ....The MAC adress is set via /etc/network/interfaces (as known on NSA310)
[ 830.299811] ------------[ cut here ]------------ [ 830.304421] WARNING: CPU: 0 PID: 2202 at drivers/power/reset/gpio-poweroff.c:45 SyS_reboot+0x14c/0x1f8() [ 830.313859] Modules linked in: ipv6 adt7475 hwmon_vid evdev orion_wdt hmac mv_cesa uio_pdrv_genirq uio gpio_keys sg sd_mod uas usb_stord [ 830.328993] CPU: 0 PID: 2202 Comm: halt Not tainted 4.0.0-kirkwood-tld-2 #1 [ 830.335916] Hardware name: Marvell Kirkwood (Flattened Device Tree) [ 830.342181] [<c0014fcc>] (unwind_backtrace) from [<c00114dc>] (show_stack+0x10/0x14) [ 830.349903] [<c00114dc>] (show_stack) from [<c001dec4>] (warn_slowpath_common+0x88/0xb0) [ 830.357969] [<c001dec4>] (warn_slowpath_common) from [<c001df7c>] (warn_slowpath_null+0x18/0x20) [ 830.366720] [<c001df7c>] (warn_slowpath_null) from [<c003851c>] (SyS_reboot+0x14c/0x1f8) [ 830.374780] [<c003851c>] (SyS_reboot) from [<c000e060>] (ret_fast_syscall+0x0/0x30)
Re: Debian on NSA310S? June 08, 2015 07:18AM |
Admin Registered: 13 years ago Posts: 19,014 |
Re: Debian on NSA310S? June 14, 2015 09:08AM |
Registered: 9 years ago Posts: 295 |
... [ 0.000000] Linux version 4.0.0-kirkwood-tld-2 (root@tldDebian) (gcc version 4.9.1 (Debian 4.9.1-19) ) #1 PREEMPT Thu Apr 30 10:09:56 PDT 2015 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine model: Zyxel NSA320S [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 65536 ... ... [ 1.895843] libphy: Fixed MDIO Bus: probed [ 1.900252] libphy: orion_mdio_bus: probed [ 1.910617] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 1.918740] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address ....
Re: Debian on NSA310S? June 14, 2015 11:43AM |
Admin Registered: 13 years ago Posts: 19,014 |
> ... > [ 0.000000] Linux version 4.0.0-kirkwood-tld-2 > (root@tldDebian) (gcc version 4.9.1 (Debian > 4.9.1-19) ) #1 PREEMPT Thu Apr 30 10:09:56 PDT > 2015 > [ 0.000000] CPU: Feroceon 88FR131 [56251311] > revision 1 (ARMv5TE), cr=0005397f > [ 0.000000] CPU: VIVT data cache, VIVT > instruction cache > [ 0.000000] Machine model: Zyxel NSA320S > [ 0.000000] Memory policy: Data cache > writeback > [ 0.000000] On node 0 totalpages: 65536 > ... > > ... > [ 1.895843] libphy: Fixed MDIO Bus: probed > [ 1.900252] libphy: orion_mdio_bus: probed > [ 1.910617] mv643xx_eth: MV-643xx 10/100/1000 > ethernet driver version 1.4 > [ 1.918740] mv643xx_eth_port mv643xx_eth_port.0 > eth0: port 0 with MAC address .... > >>
Re: Debian on NSA310S? June 22, 2015 03:50PM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 22, 2015 04:46PM |
Registered: 9 years ago Posts: 295 |
fw_setenv bootcmd 'run bootcmd_usb; run bootcmd_nand; reset' fw_setenv bootcmd_usb 'usb start; run set_bootargs_usb; run usb_boot' fw_setenv set_bootargs_usb 'setenv bootargs console=ttyS0,115200 root=$(usb_root) rootdelay=$(usb_rootdelay) rootfstype=$(usb_rootfstype) mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)' fw_setenv console 'ttyS0,115200' fw_setenv usb_root 'LABEL=rootfs' fw_setenv usb_rootdelay 6 fw_setenv usb_rootfstype ext4 fw_setenv usb_boot 'run usb_load_uimage; run usb_load_uinitrd; bootm 0x800000 0x1100000' fw_setenv usb_load_uimage 'fatload usb 0:1 0x800000 /uImage' fw_setenv usb_load_uinitrd 'fatload usb 0:1 0x1100000 /uInitrd' fw_setenv bootcmd_nand 'run set_bootargs_nand; run nand_load_kernel; bootm 0x2000000' fw_setenv set_bootargs_nand 'setenv bootargs console=$(console) mtdparts=$(mtdparts_zyxel) root=/dev/nfs rw init=/init' fw_setenv mtdparts_zyxel 'nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)' fw_setenv nand_load_kernel 'nand read.e 0x2000000 $(kernel_addr) 0xA00000' fw_setenv bootdelay 5Same changes I've made to the nsa310 environment.
fw_setenv usb_load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' fw_setenv usb_load_uinitrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd' fw_setenv usb_rootfstype ext3
cp -a zImage-3.18.5-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-nsa320s.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.18.5-kirkwood-tld-1 -d /boot/zImage.fdt /boot/uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.18.5-kirkwood-tld-1 -d /boot/initrd.img-3.18.5-kirkwood-tld-1 /boot/uInitrd
if [ -d /sys/class/leds/nsa320s:green:sys ]; then echo default-on > /sys/class/leds/nsa320s:green:sys/trigger # echo none > /sys/class/leds/nsa320s:orange:sys/trigger fi if [ -d /sys/class/leds/nsa320s:green:hdd1 ]; then echo ide-disk1 > /sys/class/leds/nsa320s:green:hdd1/trigger fi if [ -d /sys/class/leds/nsa320s:green:hdd2 ]; then echo ide-disk2 > /sys/class/leds/nsa320s:green:hdd2/trigger fi if [ -d /sys/class/leds/nsa320s:green:usb ]; then echo usb-host > /sys/class/leds/nsa320s\:green\:usb/trigger fi
Re: Debian on NSA310S? June 22, 2015 04:50PM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 22, 2015 05:03PM |
Registered: 9 years ago Posts: 295 |
Re: Debian on NSA310S? June 23, 2015 02:02AM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 23, 2015 06:07AM |
Admin Registered: 13 years ago Posts: 19,014 |
Re: Debian on NSA310S? June 23, 2015 11:17AM |
Registered: 9 years ago Posts: 295 |
Re: Debian on NSA310S? June 23, 2015 02:14PM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 23, 2015 02:34PM |
Registered: 9 years ago Posts: 295 |
fw_setenv serverip (ip address of your machine) fw_setenv ipaddr (ip address reachable in your network) fw_setenv if_netconsole 'ping $serverip' fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 5; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;' fw_setenv preboot 'run if_netconsole start_netconsole'
Re: Debian on NSA310S? June 23, 2015 02:40PM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 23, 2015 03:18PM |
Registered: 9 years ago Posts: 295 |
Re: Debian on NSA310S? June 23, 2015 03:20PM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 23, 2015 03:23PM |
Registered: 9 years ago Posts: 295 |
Re: Debian on NSA310S? June 24, 2015 09:37AM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 24, 2015 11:27AM |
Registered: 9 years ago Posts: 295 |
Re: Debian on NSA310S? June 24, 2015 02:41PM |
Registered: 9 years ago Posts: 118 |
./fw_setenv bootcmd 'run bootcmd_usb; run bootcmd_nand; reset' ./fw_setenv bootcmd_usb 'usb start; run set_bootargs_usb; run usb_boot' ./fw_setenv set_bootargs_usb 'setenv bootargs console=ttyS0,115200 root=$(usb_root) rootdelay=$(usb_rootdelay) rootfstype=$(usb_rootfstype) mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env)' ./fw_setenv console 'ttyS0,115200' ./fw_setenv usb_root 'LABEL=rootfs' ./fw_setenv usb_rootdelay 6 ./fw_setenv usb_boot 'run usb_load_uimage; run usb_load_uinitrd; bootm 0x800000 0x1100000' ./fw_setenv usb_load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' ./fw_setenv usb_load_uinitrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd' ./fw_setenv usb_rootfstype ext3 ./fw_setenv bootcmd_nand 'run set_bootargs_nand; run nand_load_kernel; bootm 0x2000000' ./fw_setenv set_bootargs_nand 'setenv bootargs console=$(console) mtdparts=$(mtdparts_zyxel) root=/dev/nfs rw init=/init' ./fw_setenv mtdparts_zyxel 'nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)' ./fw_setenv nand_load_kernel 'nand read.e 0x2000000 $(kernel_addr) 0xA00000' ./fw_setenv bootdelay 5
cp -a zImage-3.18.5-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-nsa320s.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.18.5-kirkwood-tld-1 -d /boot/zImage.fdt /boot/uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.18.5-kirkwood-tld-1 -d /boot/initrd.img-3.18.5-kirkwood-tld-1 /boot/uInitrd
Re: Debian on NSA310S? June 24, 2015 03:12PM |
Admin Registered: 13 years ago Posts: 19,014 |
cd /media/sdb1/boot cp -a zImage-3.18.5-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-nsa320s.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.18.5-kirkwood-tld-1 -d zImage.fdt uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.18.5-kirkwood-tld-1 -d initrd.img-3.18.5-kirkwood-tld-1 uInitrd sync
Re: Debian on NSA310S? June 24, 2015 03:33PM |
Registered: 9 years ago Posts: 118 |
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_en v),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(r ootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init baudrate=115200 loads_echo=0 rootpath=/srv/ubuntu netmask=255.255.255.0 nandEcc=1bit kernel_addr=C80000 MODEL_ID=AD03 PRODUCT_NAME=STG-315 FEATURE_BIT=00 CONTRY_TYPE=FF VENDOR_NAME=MitraStar Technology Corp. run_diag=yes ethaddr=5C:F4:AB:DF:07:2B if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se tenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole ipaddr=192.168.1.174 serverip=192.168.1.100 bootcmd=run bootcmd_usb; run bootcmd_nand; reset bootcmd_usb=usb start; run set_bootargs_usb; run usb_boot set_bootargs_usb=setenv bootargs console=ttyS0,115200 root=$(usb_root) rootdelay =$(usb_rootdelay) rootfstype=$(usb_rootfstype) mtdparts=orion_nand:0x100000(uboo t),0x80000(uboot_env) console=ttyS0,115200 usb_root=LABEL=rootfs usb_rootdelay=6 usb_boot=run usb_load_uimage; run usb_load_uinitrd; bootm 0x800000 0x1100000 usb_load_uimage=ext2load usb 0:1 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb 0:1 0x1100000 /boot/uInitrd bootcmd_nand=run set_bootargs_nand; run nand_load_kernel; bootm 0x2000000 set_bootargs_nand=setenv bootargs console=$(console) mtdparts=$(mtdparts_zyxel) root=/dev/nfs rw init=/init mtdparts_zyxel=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x 80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_ 2),0x2FC0000(rootfs2) nand_load_kernel=nand read.e 0x2000000 $(kernel_addr) 0xA00000 bootdelay=5 usb_rootfstype=ext3
Re: Debian on NSA310S? June 25, 2015 01:03AM |
Admin Registered: 13 years ago Posts: 19,014 |
Re: Debian on NSA310S? June 25, 2015 02:01AM |
Registered: 9 years ago Posts: 295 |
Re: Debian on NSA310S? June 25, 2015 02:38AM |
Admin Registered: 13 years ago Posts: 19,014 |
Re: Debian on NSA310S? June 25, 2015 02:47AM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 25, 2015 02:52AM |
Registered: 9 years ago Posts: 295 |
Re: Debian on NSA310S? June 25, 2015 02:57AM |
Admin Registered: 13 years ago Posts: 19,014 |
Re: Debian on NSA310S? June 25, 2015 02:59AM |
Registered: 9 years ago Posts: 118 |
Re: Debian on NSA310S? June 25, 2015 04:13AM |
Admin Registered: 13 years ago Posts: 19,014 |