|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 12:15PM |
Registered: 11 years ago Posts: 14 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 02:56PM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 03:06PM |
Registered: 11 years ago Posts: 14 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 03:30PM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 03:39PM |
Registered: 11 years ago Posts: 14 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 04:32PM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 05:14PM |
Registered: 11 years ago Posts: 14 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 05:24PM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 20, 2015 07:45PM |
Registered: 11 years ago Posts: 14 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S September 21, 2015 01:49AM |
Registered: 10 years ago Posts: 298 |
> ./mkenvimage -s 131072 -o uboot.environment.img > uboot.environment >>
>Quote
uboot.2014.07-tld-2.environment (the
> content of the default envs in text
> format)
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S October 16, 2015 06:11AM |
Registered: 11 years ago Posts: 94 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S October 17, 2015 01:01AM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2014.07 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S October 25, 2015 05:11PM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 November 13, 2015 03:53AM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 November 21, 2015 07:45AM |
Registered: 10 years ago Posts: 25 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 November 21, 2015 01:45PM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 November 21, 2015 05:34PM |
Admin Registered: 14 years ago Posts: 19,931 |
Quote
Note 1: The NetgearStora, Sheevaplug , NSA320, and NSA310 u-boot have not been tested in actual hardware. Please report your finding if you install (please try UART booting first) one of these images in your box.
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 December 14, 2015 04:15AM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 03, 2016 02:22AM |
Registered: 9 years ago Posts: 3 |
dev: size erasesize name mtd0: 00100000 00020000 "uboot" mtd1: 00080000 00020000 "uboot_env" mtd2: 00080000 00020000 "key_store" mtd3: 00080000 00020000 "info" mtd4: 00a00000 00020000 "etc" mtd5: 00a00000 00020000 "kernel_1" mtd6: 02fc0000 00020000 "rootfs1" mtd7: 00a00000 00020000 "kernel_2" mtd8: 02fc0000 00020000 "rootfs2"
/dev/mtd0 0xc0000 0x20000 0x20000If I then run fw_printenv, I get the following output
Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb
stdout=serial,lcd
stderr=serial,lcd
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0
boot_extlinux=sysboot ${devtype} ${devnum}:${bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
If I change /etc/fw_env.config into
/dev/mtd1 0x0 0x20000 0x20000fw_printenv does not give the "Bad CRC" warning, and the output is the same as when using printenv in actual uboot.
Sending boot image... 0 % [......................................................................] ... 99 % [....................................] [Type Ctrl-\ + c to quit] U-Boot 2015.10-tld-1 (Nov 06 2015 - 16:19:43 -0800) ZyXEL NSA310 1-Bay Power Media Server SoC: Kirkwood 88F6281_A1 DRAM: 256 MiB (ECC not enabled) WARNING: Caches not enabled NAND: 128 MiB *** Warning - bad CRC, using default environment
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 03, 2016 08:01AM |
Admin Registered: 14 years ago Posts: 19,931 |
> dev: size erasesize name > mtd0: 00100000 00020000 "uboot" > mtd1: 00080000 00020000 "uboot_env" > mtd2: 00080000 00020000 "key_store" > mtd3: 00080000 00020000 "info" > mtd4: 00a00000 00020000 "etc" > mtd5: 00a00000 00020000 "kernel_1" > mtd6: 02fc0000 00020000 "rootfs1" > mtd7: 00a00000 00020000 "kernel_2" > mtd8: 02fc0000 00020000 "rootfs2" >>
> /dev/mtd0 0xc0000 0x20000 0x20000 >> If I then run fw_printenv, I get the following
> Warning: Bad CRC, using default environment
> bootargs=
> bootcmd=
> bootdelay=2
> baudrate=115200
> stdin=serial,cros-ec-keyb
> stdout=serial,lcd
> stderr=serial,lcd
> ethaddr=00:00:11:22:33:44
> eth1addr=00:00:11:22:33:45
> eth3addr=00:00:11:22:33:46
> eth5addr=00:00:11:22:33:47
> ipaddr=1.2.3.4
> host_boot=if host dev ${devnum}; then setenv
> devtype host; run scan_dev_for_boot_part; fi
> boot_prefixes=/ /boot/
> boot_scripts=boot.scr.uimg boot.scr
> boot_script_dhcp=boot.scr.uimg
> boot_targets=host1 host0
> boot_extlinux=sysboot ${devtype}
> ${devnum}:${bootpart} any ${scriptaddr}
> ${prefix}extlinux/extlinux.conf
> scan_dev_for_extlinux=if test -e ${devtype}
> ${devnum}:${bootpart}
> ${prefix}extlinux/extlinux.conf; then echo Found
> ${prefix}extlinux/extlinux.conf; run
> boot_extlinux; echo SCRIPT FAILED: continuing...;
> fi
> boot_a_script=load ${devtype}
> ${devnum}:${bootpart} ${scriptaddr}
> ${prefix}${script}; source ${scriptaddr}
> scan_dev_for_scripts=for script in
> ${boot_scripts}; do if test -e ${devtype}
> ${devnum}:${bootpart} ${prefix}${script}; then
> echo Found U-Boot script ${prefix}${script}; run
> boot_a_script; echo SCRIPT FAILED: continuing...;
> fi; done
> scan_dev_for_boot=echo Scanning ${devtype}
> ${devnum}:${bootpart}...; for prefix in
> ${boot_prefixes}; do run scan_dev_for_extlinux;
> run scan_dev_for_scripts; done
> scan_dev_for_boot_part=part list ${devtype}
> ${devnum} -bootable devplist; env exists devplist
> || setenv devplist 1; for bootpart in ${devplist};
> do if fstype ${devtype} ${devnum}:${bootpart}
> bootfstype; then run scan_dev_for_boot; fi; done
> bootcmd_host1=setenv devnum 1; run host_boot
> bootcmd_host0=setenv devnum 0; run host_boot
> distro_bootcmd=for target in ${boot_targets}; do
> run bootcmd_${target}; done
> bootm_size=0x10000000
> kernel_addr_r=0x1000000
> fdt_addr_r=0xc00000
> ramdisk_addr_r=0x2000000
> scriptaddr=0x1000
> pxefile_addr_r=0x2000
>
> If I change /etc/fw_env.config into
> /dev/mtd1 0x0 0x20000 0x20000 >> fw_printenv does not give the "Bad CRC" warning,
> Sending boot image... > 0 % > [................................................. > .....................] > ... > 99 % [....................................] > [Type Ctrl-\ + c to quit] > > > U-Boot 2015.10-tld-1 (Nov 06 2015 - 16:19:43 > -0800) > ZyXEL NSA310 1-Bay Power Media Server > > > SoC: Kirkwood 88F6281_A1 > DRAM: 256 MiB (ECC not enabled) > WARNING: Caches not enabled > NAND: 128 MiB > *** Warning - bad CRC, using default environment >
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 03, 2016 08:12AM |
Registered: 9 years ago Posts: 3 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 03, 2016 08:56AM |
Admin Registered: 14 years ago Posts: 19,931 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 03, 2016 10:13AM |
Registered: 9 years ago Posts: 3 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 12, 2016 03:01PM |
Registered: 9 years ago Posts: 8 |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 12, 2016 11:34PM |
Admin Registered: 14 years ago Posts: 19,931 |
Quote
B. Flashing default u-boot envs image
r1. There must be only one partition among all partitions from all drives that contains the kernel files. The 2 kernel files are /boot/uImage and /boot/uInitrd.
r2. The partition that contains the 2 kernel files must be partition 1 in a disk drive
r3. The partition that contains the rootfs must be labeled rootfs
r4. The rootfs partition is recommended to be type Ext3 (this is not a hard requirement, ext4 should boot OK, but Ext3 will ensure no problem).
So the bottom line is if you have only one rootfs in a single Ext3 partition, which is labeled as rootfs, then you're all set.
fw_printenvor
printenvin serial console. And I'll take a look.
|
Emil
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 13, 2016 04:08AM |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 13, 2016 06:23AM |
Admin Registered: 14 years ago Posts: 19,931 |
cat /proc/cmdline cat /proc/mtd fw_printenv mtdparts
|
Emil
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 14, 2016 10:23AM |
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 14, 2016 12:34PM |
Admin Registered: 14 years ago Posts: 19,931 |
fw_setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),3M@1M(kernel),-@4M(rootfs)'
|
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 January 14, 2016 01:16PM |
Registered: 9 years ago Posts: 8 |
NSA310> printenv CONTRY_TYPE=FF FEATURE_BIT=00 MODEL_ID=A203 PRODUCT_NAME=NSA-310 VENDOR_NAME=ZyXEL Communications Corp. arcNumber=4022 baudrate=115200 bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 rootfstype=ext4 bootcmd=run scan_usb; run usb_boot bootdelay=3 ethact=egiga0 ethaddr=XX:XX:XX:XX:XX:XX filesize=2bec30 kernel_addr=480000 load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-nsa310.dtb load_uImage=ext2load usb 0:1 0x800000 /boot/uImage load_uInitrd=ext2load usb 0:1 0x1100000 /boot/uInitrd mailline=Linux yes nandEcc=1bit nandEnvBase=100000 scan_usb=usb start stderr=serial stdin=serial stdout=serial usb_boot=run load_dtb; run load_uImage; run load_uInitrd; bootm 0x800000 0x1100000 0x1c00000 Environment size: 756/131068 bytes