Re: NSA 325 V2 Debian Is Possible! November 17, 2014 03:45PM |
Admin Registered: 13 years ago Posts: 19,107 |
cat /sys/class/leds/nsa325:green:sata1/trigger cat /sys/class/leds/nsa325:green:sata2/trigger
ls -lR /media/sdb1
Re: NSA 325 V2 Debian Is Possible! November 22, 2014 12:45PM |
Registered: 10 years ago Posts: 51 |
[none] nand-disk timer oneshot ide-disk1 ide-disk2 heartbeat gpio default-oncat /sys/class/leds/nsa325:green:sata2/trigger
[none] nand-disk timer oneshot ide-disk1 ide-disk2 heartbeat gpio default-on
Re: NSA 325 V2 Debian Is Possible! November 22, 2014 12:51PM |
Admin Registered: 13 years ago Posts: 19,107 |
echo ide-disk1 > /sys/class/leds/nsa325:green:sata1/trigger echo ide-disk2 > /sys/class/leds/nsa325:green:sata2/trigger
Re: NSA 325 V2 Debian Is Possible! November 22, 2014 02:23PM |
Registered: 10 years ago Posts: 51 |
Re: NSA 325 V2 Debian Is Possible! November 22, 2014 06:17PM |
Admin Registered: 13 years ago Posts: 19,107 |
echo ide-disk1 > /sys/class/leds/nsa325:red:sata1/trigger echo ide-disk2 > /sys/class/leds/nsa325:red:sata2/trigger
Re: NSA 325 V2 Debian Is Possible! November 23, 2014 06:16AM |
Registered: 10 years ago Posts: 51 |
if [ -d /sys/class/leds/nsa325:green:sys ]; then echo default-on > /sys/class/leds/nsa325:green:sys/trigger echo none > /sys/class/leds/nsa325:orange:sys/trigger fi if [ -d /sys/class/leds/nsa325:green:sata1 ]; then echo ide-disk1 > /sys/class/leds/nsa325:green:sata1/trigger fi if [ -d /sys/class/leds/nsa325:green:sata2 ]; then echo ide-disk2 > /sys/class/leds/nsa325:green:sata2/trigger fi exit 0
Re: NSA 325 V2 Debian Is Possible! November 23, 2014 01:03PM |
Admin Registered: 13 years ago Posts: 19,107 |
cat /etc/rc.local
logger -s -i "End of rc.local" exit 0
logread | grep "rc.local"
Re: NSA 325 V2 Debian Is Possible! November 23, 2014 01:58PM |
Registered: 10 years ago Posts: 51 |
#!/bin/sh -e # Initialize LED Triggers if [ -d /sys/class/leds/nsa325:green:sys ]; then echo default-on > /sys/class/leds/nsa325:green:sys/trigger echo none > /sys/class/leds/nsa325:orange:sys/trigger fi if [ -d /sys/class/leds/nsa325:green:sata1 ]; then echo ide-disk1 > /sys/class/leds/nsa325:green:sata1/trigger fi if [ -d /sys/class/leds/nsa325:green:sata2 ]; then echo ide-disk2 > /sys/class/leds/nsa325:green:sata2/trigger fi exit 0
Re: NSA 325 V2 Debian Is Possible! November 23, 2014 02:33PM |
Admin Registered: 13 years ago Posts: 19,107 |
logger -s -i "End of rc.local" exit 0
cat /var/log/message
Re: NSA 325 V2 Debian Is Possible! November 23, 2014 02:39PM |
Registered: 10 years ago Posts: 51 |
Re: NSA 325 V2 Debian Is Possible! November 23, 2014 03:33PM |
Admin Registered: 13 years ago Posts: 19,107 |
bobafetthotmail
Re: NSA 325 V2 Debian Is Possible! November 24, 2014 03:17AM |
Re: NSA 325 V2 Debian Is Possible! November 24, 2014 03:58PM |
Registered: 10 years ago Posts: 51 |
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file exec 1>&2 # send stdout to the same log file set -x # tell sh to display commands before executionAfter reboot no log was created.
+ [ -d /sys/class/leds/nsa325:green:sys ] + echo default-on + echo none + [ -d /sys/class/leds/nsa325:green:sata1 ] + echo ide-disk1 + [ -d /sys/class/leds/nsa325:green:sata2 ] + echo ide-disk2 + exit 0
Re: NSA 325 V2 Debian Is Possible! November 24, 2014 04:37PM |
Admin Registered: 13 years ago Posts: 19,107 |
-rwxr-xr-x 1 root root 1338 Sep 1 00:52 /etc/rc.local
Re: NSA 325 V2 Debian Is Possible! November 24, 2014 05:02PM |
Registered: 10 years ago Posts: 51 |
Re: NSA 325 V2 Debian Is Possible! November 24, 2014 05:42PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: NSA 325 V2 Debian Is Possible! November 30, 2014 10:19AM |
Registered: 10 years ago Posts: 51 |
Re: NSA 325 V2 Debian Is Possible! November 30, 2014 03:19PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: NSA 325 V2 Debian Is Possible! December 01, 2014 01:13PM |
Registered: 10 years ago Posts: 51 |
Eddie87
Re: NSA 325 V2 Debian Is Possible! December 26, 2014 05:04AM |
Re: NSA 325 V2 Debian Is Possible! December 26, 2014 06:04AM |
Admin Registered: 13 years ago Posts: 19,107 |
Eddie87
Re: NSA 325 V2 Debian Is Possible! December 26, 2014 06:24AM |
Re: NSA 325 V2 Debian Is Possible! December 26, 2014 02:44PM |
Admin Registered: 13 years ago Posts: 19,107 |
Eddie87
Re: NSA 325 V2 Debian Is Possible! December 29, 2014 08:26AM |
Re: NSA 325 V2 Debian Is Possible! December 29, 2014 11:12AM |
Admin Registered: 13 years ago Posts: 19,107 |
Eddie87
Re: NSA 325 V2 Debian Is Possible! December 30, 2014 01:51PM |
/bin/sh: can't access tty; job control turned off (initramfs)"
cd /boot mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.17.0-kirkwood-tld-1 -d /boot/vmlinuz-3.17.0-kirkwood-tld-1 /boot/uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.17.0-kirkwood-tld-1 -d /boot/initrd.img-3.17.0-kirkwood-tld-1 /boot/uInitrd fw_setenv load_dtb 'ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexnet.dtb' fw_setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd' fw_setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' fw_setenv usb_boot 'run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi'
arcNumber=4495 baudrate=115200 bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot; bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=10 console=ttyS0,115200 device=0:1 ethact=egiga0 ethaddr=b6:d0:5e:0f:a1:17 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking machid=0x831 mainlineLinux=yes mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mmc_init=mmc rescan mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd mmc_root=/dev/mmcblk0p1 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole rootdelay=10 rootfstype=ext3 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 serverip=192.168.0.220 set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x810000 uenv_load=usb start; mmc rescan; ide reset; setenv uenv_loaded 0; for devtype in usb mmc ide; do for disknum in 0; do run uenv_read_disk; done; done uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_root=/dev/sda1
Re: NSA 325 V2 Debian Is Possible! December 30, 2014 09:22PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: NSA 325 V2 Debian Is Possible! December 31, 2014 02:47AM |
Admin Registered: 13 years ago Posts: 19,107 |
Quote
1. I've tried both methods of booting neither being successful. When I don't change the 3.16.x uboot environment and instead make a new uImage from the kirkwood-nsa325.dtb file I can boot into linux off the usb stick.
2. However, this only works when no hard drives are connected, if I connect a hard drive to the first sata port I get the above error. Once booted without a hard drive I can connect a single drive to the first sata port and access it. However, the second sata port is still disabled.
Quote
/bin/sh: can't access tty; job control turned off
(initramfs)"
Eddie87
Re: NSA 325 V2 Debian Is Possible! January 02, 2015 07:31PM |
Re: NSA 325 V2 Debian Is Possible! January 02, 2015 07:51PM |
Admin Registered: 13 years ago Posts: 19,107 |