Tushar
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 22, 2016 06:19AM |
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 22, 2016 04:26PM |
Admin Registered: 13 years ago Posts: 18,997 |
cd /media/sdb1 ls -l /boot/dtbs
fw_setenv dtb_file '/boot/dts/kirkwood-dockstar.dtb'
fw_setenv dtb_file '/boot/dtbs/kirkwood-dockstar.dtb'
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_paramsneed to change to
set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts $custom_params
Tushar
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 23, 2016 05:10PM |
[root@alarm /]# uname -a Linux alarm 4.4.10-1-ARCH #1 PREEMPT Fri Apr 22 23:34:48 MDT 2016 armv5tel GNU/Linux
[root@alarm /]# find / -name "dtb" [root@alarm /]# find / -name "dtbs"
[root@alarm /]# ls -l /boot/ total 7092 -rw-r--r-- 1 root root 2683848 May 1 19:47 initramfs-linux.img -rw-r--r-- 1 root root 4555112 Apr 23 05:37 uImage
Tushar
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 23, 2016 05:15PM |
[root@alarm boot]# cat /proc/mtd dev: size erasesize name mtd0: 00200000 00020000 "u-boot" mtd1: 00300000 00020000 "uImage" mtd2: 00300000 00020000 "uImage2" mtd3: 00800000 00020000 "failsafe" mtd4: 07000000 00020000 "root" mtd5: 00010000 00008000 "spi0.0"
Tushar
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 23, 2016 05:23PM |
Quote
In the special case when you are booting with a non-FDT kernel, or if you have appended the DTB to uImage. Remove the DTB file env. If not sure please post question before continuing.
fw_setenv dtb_file
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 23, 2016 06:12PM |
Admin Registered: 13 years ago Posts: 18,997 |
> [root@alarm /]# uname -a > Linux alarm 4.4.10-1-ARCH #1 PREEMPT Fri Apr 22 > 23:34:48 MDT 2016 armv5tel GNU/Linux >>
> [root@alarm /]# find / -name "dtb" > [root@alarm /]# find / -name "dtbs" >>
> [root@alarm /]# ls -l /boot/ > total 7092 > -rw-r--r-- 1 root root 2683848 May 1 19:47 > initramfs-linux.img > -rw-r--r-- 1 root root 4555112 Apr 23 05:37 > uImage >>
Tushar
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 24, 2016 03:44PM |
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 26, 2016 02:26AM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
Latest kernel: linux-4.6.0-kirkwood-tld-1-bodhi.tar.bz2 (20 May 2016)
Latest rootfs: Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (20 Feb 2016)
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310 May 29, 2016 04:42PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 05, 2016 06:30PM |
Registered: 8 years ago Posts: 21 |
dev: size erasesize name mtd0: 00200000 00020000 "u-boot" mtd1: 00300000 00020000 "uImage" mtd2: 00300000 00020000 "uImage2" mtd3: 00800000 00020000 "failsafe" mtd4: 07000000 00020000 "root" mtd5: 00010000 00008000 "spi0.0"
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 05, 2016 07:01PM |
Admin Registered: 13 years ago Posts: 18,997 |
> dev: size erasesize name > mtd0: 00200000 00020000 "u-boot" > mtd1: 00300000 00020000 "uImage" > mtd2: 00300000 00020000 "uImage2" > mtd3: 00800000 00020000 "failsafe" > mtd4: 07000000 00020000 "root" > mtd5: 00010000 00008000 "spi0.0" >>
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 07, 2016 10:43PM |
Registered: 9 years ago Posts: 461 |
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 07, 2016 11:18PM |
Admin Registered: 13 years ago Posts: 18,997 |
fw_printenv | grep -i dtb fw_printenv bootcmd fw_printenv mtdpartsDoes it the DTB comes with my Debian rootfs?
ls -l /boot/dts/*e02*Verify which system is booting
uname -a
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 08, 2016 01:52AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2015.10 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 16, 2016 03:06PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 19, 2016 06:02PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 20, 2016 04:55AM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
- The default envs were modified slightly to make it more robust. If you are upgrading u-boot, there is no need to reflash, but worth taking a look at the envs text file to see the differences.
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 27, 2016 03:25AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 June 30, 2016 12:50PM |
Registered: 11 years ago Posts: 16 |
devices='usb mmc ide' bootcmd='run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset' bootcmd_uenv='run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi' uenv_import='echo importing envs ...; env import -t 0x810000' uenv_load='run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; 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' uenv_init_devices='setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;' preboot_nc='setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi' preboot='run preboot_nc' ipaddr='172.16.1.247' serverip='172.16.1.39' devices=mmc usb ide disks=0 1 2 3 4 5 6 7 arcNumber=3542 machid=0xdd6
root# /usr/sbin/flash_erase /dev/mtd0 0xc0000 1 Erasing 128 Kibyte @ c0000 -- 100 % complete root# fw_printenv Warning: Bad CRC, using default environment bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200 root# /usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img Writing data to block 6 at offset 0xc0000 root# fw_printenv <<< output complete environment >>> root# fw_setenv mtdparts 'orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)' root# fw_printenv |grep etha ethact=egiga0 ethaddr=52:3b:20:9c:11:51 root# fw_setenv ethaddr '00:25:31:02:ED:38' Can't overwrite "ethaddr"
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 July 01, 2016 04:34AM |
Admin Registered: 13 years ago Posts: 18,997 |
tools/nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00080000...then i checked for bad blocks
dmesg | grep -i 'bad' [ 1.694843] Scanning device for bad blocks [ 1.704174] Bad eraseblock 100 at 0x000000c80000 [ 1.713970] Bad eraseblock 200 at 0x000001900000and erased the flash
tools/flash_erase /dev/mtd0 0 4 Erasing 128 Kibyte @ 60000 -- 100 % completeand got the following error at writing the new blocks
tools/nandwrite /dev/mtd0 uboot.2016.05-tld-1.nsa320.mtd0.kwb uboot.2016.05-tld-1.nsa320.mtd0.kwb: No such file or directory nandwrite: error!: Data was only partially written due to error error 9 (Bad file descriptor)
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 July 05, 2016 08:02AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 July 11, 2016 12:12AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 July 19, 2016 01:05PM |
Registered: 11 years ago Posts: 16 |
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"
# MTD device name Device offset Env. size Flash sector size Number of sectors # NAND example /dev/mtd1 0x0000 0x20000 0x20000 4
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 July 19, 2016 01:15PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 July 19, 2016 01:38PM |
Registered: 9 years ago Posts: 461 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 July 23, 2016 02:26PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 August 03, 2016 05:00PM |
Registered: 8 years ago Posts: 21 |
Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325 August 03, 2016 05:17PM |
Admin Registered: 13 years ago Posts: 18,997 |