Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 15, 2015 07:12PM |
Registered: 11 years ago Posts: 19 |
U-Boot 2014.04.R3-1 (May 26 2014 - 19:45:55) Arch Linux ARM Pogo E02 gcc (GCC) 4.8.2 20131219 (prerelease) GNU ld (GNU Binutils) 2.24
PogoE02> printenv baudrate=115200 bootcmd=usb start; setenv letter 9;for type in usb; do for disk in 0 1 2 3; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done; bootdelay=3 bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr}; bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr}; console=ttyS0 ethact=egiga0 ethaddr=XXXX REDACTED XXXX fdt_addr=0x800000 fdt_file=/boot/dtbs/kirkwood-pogo_e02.dtb if_netconsole=ping $serverip importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi; loadaddr=0x810000 loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file} loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage} loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage} mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs) preboot=run if_netconsole start_netconsole setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts} start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; uimage=/boot/uImage zimage=/boot/zImage Environment size: 1664/131068 bytes
busybox wget
? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootm - boot application image from memory bootp - boot image via network using BOOTP/TFTP protocol bootz - boot Linux zImage image from memory chpart - change active partition cmp - memory compare coninfo - print console devices and information cp - memory copy crc32 - checksum calculation dhcp - boot image via network using DHCP/TFTP protocol echo - echo args to console editenv - edit environment variable env - environment handling commands exit - exit script ext2load- load binary file from a Ext2 filesystem ext2ls - list files in a directory (default /) ext4load- load binary file from a Ext4 filesystem ext4ls - list files in a directory (default /) false - do nothing, unsuccessfully fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) fdt - flattened device tree utility commands go - start application at address 'addr' help - print command description/usage iminfo - print header information for application image imxtract- extract a part of a multi-image itest - return true/false on integer compare load - load binary file from a filesystem loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loadx - load binary file over serial line (xmodem mode) loady - load binary file over serial line (ymodem mode) loop - infinite loop on address range ls - list files in a directory (default /) md - memory display mii - MII utility commands mm - memory modify (auto-incrementing address) mtdparts- define flash/nand partitions mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nfs - boot image via network using NFS protocol nm - memory modify (constant address) ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables reset - Perform RESET of the CPU run - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables setexpr - set environment variable as the result of eval expression showvar - print local hushshell variables sleep - delay execution for some time source - run script from memory test - minimal test like /bin/sh tftpboot- boot image via network using TFTP protocol true - do nothing, successfully ubi - ubi commands ubifsload- load file from an UBIFS filesystem ubifsls - list files in a directory ubifsmount- mount UBIFS volume ubifsumount- unmount UBIFS volume usb - USB sub-system usbboot - boot from USB device version - print monitor, compiler and linker version
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 15, 2015 10:43PM |
Registered: 9 years ago Posts: 429 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 15, 2015 10:47PM |
Registered: 11 years ago Posts: 19 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 16, 2015 12:17AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 20, 2015 02:48AM |
Registered: 9 years ago Posts: 4 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 20, 2015 05:32AM |
Admin Registered: 13 years ago Posts: 18,997 |
mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
fw_setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 20, 2015 06:34AM |
Registered: 9 years ago Posts: 4 |
> mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage) > ,32M(rootfs),-(data) >
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 20, 2015 06:44AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 20, 2015 07:29AM |
Registered: 9 years ago Posts: 4 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 20, 2015 08:04AM |
Registered: 9 years ago Posts: 4 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 June 20, 2015 10:25AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 NSA320 Error: unrecognized/unsupported machine ID (r1 = 0x00000f74 June 28, 2015 12:22PM |
Registered: 9 years ago Posts: 42 |
** ext2fs_devread() read outside partition sectori fixed this by tar'ing the HD's content, making a new part scheme with a 3GB ext2 primary partition named "rootfs" again, and untaring the aformentioned contents there. The rest of the HD and the second drive slot may stay empty for now.
U-Boot 2011.12 (May 03 2012 - 17:04:23) ZyXEL NSA320 2-Bay Power Media Server arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: WDC WD20EARS-00MVWB0 Firm: 51.0AB51 Ser#: WD-WCAZA7723695 Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512) Loading file "/boot/uImage" from ide device 0:1 (hda1) 2822232 bytes read Loading file "/boot/uInitrd" from ide device 0:1 (hda1) 6114335 bytes read ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.17.0-kirkwood-tld-1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2822168 Bytes = 2.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.17.0-kirkwood-tld-1 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6114271 Bytes = 5.8 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...and then the serial console logs(i removed some whitespace):
Uncompressing Linux... done, booting the kernel. Error: unrecognized/unsupported machine ID (r1 = 0x00000f74). Available machine support: ID (hex).NAME ffffffff.Generic DT based system ffffffff.Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
NSA320> printenv printenv arcNumber=3956 baudrate=115200 boot_sata1=mw 0x800000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts; ide reset; ext2load ide 0:1 0x800000 /boot/uImage; ext2load ide 0:1 0x01100000 /boot/uInitrd; bootm 0x00800000 0x01100000 boot_sata2=mw 0x800000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sdb1 rootdelay=10 $mtdparts; ide reset; ext2load ide 1:1 0x800000 /boot/uImage; ext2load ide 1:1 0x01100000 /boot/uInitrd; bootm 0x00800000 0x01100000 bootcmd=run boot_sata1; run boot_sata2; run bootcmd_usb; usb stop; run bootcmd_rescue; reset bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot; bootdelay=10 console=ttyS0,115200 ethact=egiga0 ethaddr=b0:b2:dc:ee:d4:f2 if_netconsole=ping $serverip ipaddr=10.9.1.208 mainlineLinux=yes mtddevname=key_store mtddevnum=2 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2) ncip=10.9.1.200 netmask=255.255.255.0 partition=nand0,2 preboot=run if_netconsole start_netconsole serverip=10.9.1.200 set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=nc stdin=nc stdout=nc usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi; usb_device=0:1 usb_init=usb start usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage usb_root=LABEL=USBROOT usb_rootdelay=10 usb_rootfstype=ext2 Environment size: 1759/131068 bytes
Re: 2014.07 NSA320 Error: unrecognized/unsupported machine ID (r1 = 0x00000f74 June 28, 2015 02:04PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
4b. Boot with DTB file embedded in the kernel image (no U-Boot envs change needed)
Generate the uImage and uInitrd:
cd /boot
cp -a zImage-3.17.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.17.0-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.17.0-kirkwood-tld-1 -d /boot/initrd.img-3.17.0-kirkwood-tld-1 /boot/uInitrd
Re: 2014.07 NSA320 Error: unrecognized/unsupported machine ID (r1 = 0x00000f74 June 28, 2015 03:18PM |
Registered: 9 years ago Posts: 42 |
Re: 2014.07 NSA320 Error: unrecognized/unsupported machine ID (r1 = 0x00000f74 June 28, 2015 05:16PM |
Admin Registered: 13 years ago Posts: 18,997 |
/media/sdb1/bootI've updated the instruction slightly to take that into account in later kernel release (i.e. 3.18, 4.0), but did not update previous one.
NSA320 uboot and debian success, some last thoughts... July 10, 2015 04:40PM |
Registered: 9 years ago Posts: 42 |
echo heartbeat >/sys/class/leds/nsa320:orange:sys/trigger echo usb-host > /sys/class/leds/nsa320:green:usb/trigger echo ide-disk1 > /sys/class/leds/nsa320:green:hdd1/trigger echo ide-disk2 > /sys/class/leds/nsa320:green:hdd2/triggerIs there a reason why this isnt enabled by default?
echo timer > /sys/class/leds/nsa320:red:copy/triggerWhen i just installed munin-node(to report system internals to some other linux box), i found that the folder /sys/class/hwmon is empty, and sensors-detect (run as root) from the package lm-sensors doesnt find any sensors.
Re: NSA320 uboot and debian success, some last thoughts... July 10, 2015 07:02PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: NSA320 uboot and debian success, some last thoughts... July 11, 2015 12:19AM |
Registered: 9 years ago Posts: 42 |
Re: NSA320 uboot and debian success, some last thoughts... July 11, 2015 02:34AM |
Admin Registered: 13 years ago Posts: 18,997 |
lsmodif nsa3xx-hwmon is not in the list then
modprobe nsa3xx-hwmon
Re: NSA320 uboot and debian success, some last thoughts... July 11, 2015 02:25PM |
Registered: 11 years ago Posts: 91 |
This DTS just describes the features that work with the current kernel drivers. New drivers still need writing to support the temperature sensor, the power on behaviour control and the buzzer
Re: NSA320 uboot and debian success, some last thoughts... July 11, 2015 02:38PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: NSA320 uboot and debian success, some last thoughts... July 11, 2015 11:02PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: NSA320 uboot and debian success, some last thoughts... July 12, 2015 04:22AM |
Registered: 11 years ago Posts: 91 |
nsa3xx-hwmon { compatible = "gpio-hwmon; pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act>; pinctrl-names = "default"; mcu-data { gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; }; mcu-clk { gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; }; mcu-act { gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; }; };
Re: NSA320 uboot and debian success, some last thoughts... July 12, 2015 01:37PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 July 12, 2015 02:02PM |
Registered: 9 years ago Posts: 9 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 July 12, 2015 03:25PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: NSA320 uboot and debian success, some last thoughts... July 12, 2015 03:59PM |
Registered: 9 years ago Posts: 42 |
Re: NSA320 uboot and debian success, some last thoughts... July 12, 2015 05:23PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 July 13, 2015 03:02PM |
Registered: 9 years ago Posts: 9 |
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320 July 13, 2015 05:12PM |
Admin Registered: 13 years ago Posts: 18,997 |