Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 10, 2015 06:59PM |
Registered: 8 years ago Posts: 427 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 10, 2015 07:53PM |
Admin Registered: 12 years ago Posts: 17,659 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 10, 2015 08:21PM |
Registered: 8 years ago Posts: 427 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 10, 2015 10:26PM |
Admin Registered: 12 years ago Posts: 17,659 |
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 11, 2015 03:02AM |
Registered: 11 years ago Posts: 62 |
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 11, 2015 03:08AM |
Admin Registered: 12 years ago Posts: 17,659 |
PATH=/usr/local/x-tools/arm-2010q1/bin/:$PATH CROSS_COMPILE=arm-none-eabi- make netspace_v2_config
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 11, 2015 04:20AM |
Registered: 11 years ago Posts: 62 |
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 11, 2015 04:32AM |
Admin Registered: 12 years ago Posts: 17,659 |
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 11, 2015 04:42AM |
Admin Registered: 12 years ago Posts: 17,659 |
tftp 0x80000 uboot.2014.07-tld-3.d2net_v2.bin go 0x80000
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 11, 2015 08:33AM |
Registered: 11 years ago Posts: 62 |
> tftp 0x80000 uboot.2014.07-tld-3.d2net_v2.bin > go 0x80000 >>
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 11, 2015 11:58AM |
Registered: 11 years ago Posts: 62 |
ff00003c: 00000121 e3a00000 e59f222c e5921000 !.......,"...... ff00004c: e2013008 e3530000 1a000002 e3811008 .0....S.........
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 11, 2015 04:09PM |
Admin Registered: 12 years ago Posts: 17,659 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 13, 2015 04:15PM |
Registered: 8 years ago Posts: 2 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 13, 2015 05:13PM |
Admin Registered: 12 years ago Posts: 17,659 |
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 19, 2015 02:41PM |
Registered: 11 years ago Posts: 62 |
root@debian:/media/usb# ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2014.07-tld- 3.d2net_v2.kwb Sending boot message. Please reboot the target.../ Sending boot image... 0 % [+xmodem: Protocol error root@debian:/media/usb#
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 19, 2015 03:52PM |
Admin Registered: 12 years ago Posts: 17,659 |
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 21, 2015 06:27PM |
Admin Registered: 12 years ago Posts: 17,659 |
root@debian:/media/usb# ./kwboot -t -B 115200 /dev/ttyACM0 -b uboot.2014.07-tld-3.d2net_v2.kwb -p
Re: 2014.01 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02/Dockstar/iConnect/Stora March 22, 2015 05:38PM |
Registered: 11 years ago Posts: 62 |
> root@debian:/media/usb# ./kwboot -t -B 115200 > /dev/ttyACM0 -b uboot.2014.07-tld-3.d2net_v2.kwb > -p >
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 24, 2015 03:23AM |
Admin Registered: 12 years ago Posts: 17,659 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 25, 2015 10:59PM |
Registered: 12 years ago Posts: 264 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 26, 2015 12:17AM |
Admin Registered: 12 years ago Posts: 17,659 |
devices=usband the other devices won't be scanned, so it will be less noisy. I left the default envs with all devices so it will work on all boxes.
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 26, 2015 04:02PM |
Registered: 12 years ago Posts: 264 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 26, 2015 05:10PM |
Admin Registered: 12 years ago Posts: 17,659 |
cat /proc/cmdline ....... mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) ....
fw_setenv set_rtc 'setenv dnsip 192.168.0.1; setenv gatewayip 192.168.0.1; setenv netmask 255.255.255.0; dns montpelier.caltech.edu ntpserver; sntp $ntpserver'and to set rtc at boot, just add "run set_rtc" to the bootcmd (whatever your bootcmd is, below is only an example)
fw_setenv bootcmd 'run set_rtc; usb start; run usb_bootcmd; usb stop; reset'
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 26, 2015 10:05PM |
Registered: 12 years ago Posts: 264 |
> cat /proc/cmdline > > ....... > mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(root > fs),-(data) .... >
# cat /proc/cmdline console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype= mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) # ls -l /dev/mtd* crw------- 1 root root 90, 0 Dec 31 1969 /dev/mtd0 crw------- 1 root root 90, 1 Dec 31 1969 /dev/mtd0ro crw------- 1 root root 90, 2 Dec 31 1969 /dev/mtd1 crw------- 1 root root 90, 3 Dec 31 1969 /dev/mtd1ro crw------- 1 root root 90, 4 Dec 31 1969 /dev/mtd2 crw------- 1 root root 90, 5 Dec 31 1969 /dev/mtd2ro crw------- 1 root root 90, 6 Dec 31 1969 /dev/mtd3 crw------- 1 root root 90, 7 Dec 31 1969 /dev/mtd3ro # grep mtd /proc/devices 90 mtd #Yet, on wheezy:
$ cat /proc/cmdline console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype= mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) $ ls -l /dev/mtd* crw------- 1 root root 90, 0 Dec 31 1969 /dev/mtd0 crw------- 1 root root 90, 1 Dec 31 1969 /dev/mtd0ro crw------- 1 root root 90, 2 Dec 31 1969 /dev/mtd1 crw------- 1 root root 90, 3 Dec 31 1969 /dev/mtd1ro crw------- 1 root root 90, 4 Dec 31 1969 /dev/mtd2 crw------- 1 root root 90, 5 Dec 31 1969 /dev/mtd2ro crw------- 1 root root 90, 6 Dec 31 1969 /dev/mtd3 crw------- 1 root root 90, 7 Dec 31 1969 /dev/mtd3ro brw-rw---T 1 root disk 31, 0 Dec 31 1969 /dev/mtdblock0 brw-rw---T 1 root disk 31, 1 Dec 31 1969 /dev/mtdblock1 brw-rw---T 1 root disk 31, 2 Dec 31 1969 /dev/mtdblock2 brw-rw---T 1 root disk 31, 3 Dec 31 1969 /dev/mtdblock3 $ grep mtd /proc/devices 90 mtd 31 mtdblock $
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 26, 2015 11:37PM |
Admin Registered: 12 years ago Posts: 17,659 |
modprobe mtdblockor
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 27, 2015 12:12AM |
Registered: 12 years ago Posts: 264 |
t# fdisk -l Disk /dev/sda: 15.2 GiB, 16358768640 bytes, 31950720 sectors Units: sectors of [ 4584.969410] __nand_correct_data: uncorrectable ECC error 1 * 512 = 512 by[ 4584.975701] blk_update_request: I/O error, dev mtdblock1, sector 0 tes Sector size[ 4584.983865] __nand_correct_data: uncorrectable ECC error (logical/physic[ 4584.990010] blk_update_request: I/O error, dev mtdblock1, sector 0 [ 4584.997589] Buffer I/O error on dev mtdblock1, logical block 0, async page read al): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xc3072e18 Device Boot Start End Sectors Size Id Type /dev/sda1 16384 10502143 10485760 5G 83 Linux /dev/sda2 10502144 12075007 1572864 768M 82 Linux swap / Solaris /dev/sda3 12075008 31950719 19875712 9.5G 83 Linux Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock2: 32 MiB, 33554432 bytes, 65536 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock3: 91 MiB, 95420416 bytes, 186368 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes #I remember encountering somewhat the same problem when I was trying to mount the rootfs using UUIDs: The kernel would go pound on every block device it could find, looking for the root partition, and although I knew it wasn't harmful, it was still quite distracting to see all those errors fly by in the boot sequence.
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 27, 2015 03:33PM |
Registered: 12 years ago Posts: 264 |
PogoE02> run usb_init (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found PogoE02> ext2load usb 0:1 0x800000 /boot/uboot-original-mtd0.kwb 524288 bytes read in 331 ms (1.5 MiB/s) PogoE02> go 0x800200 ## Starting application at 0x00800200 ... U-Boot 1.1.4 (Sep 28 2009 - 11:55:23) Cloud Engines v2.0 (3.4.16) ...and, voila, after some boot verbiage on the console, I was dumped into a root shell on the original PogoPlug OS. I suppose I could create an environment variable to do this more easily, or even automatically, but it seems unlikely I'll ever need to boot this OS in the future. This was mostly just a learning exercise.
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 27, 2015 04:16PM |
Admin Registered: 12 years ago Posts: 17,659 |
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 27, 2015 08:10PM |
Registered: 12 years ago Posts: 264 |
root@debian:~# modprobe mtdblock root@debian:~# mount /dev/mtdblock2 /mnt -t jffs2 -r [ 284.354435] jffs2: Empty flash at 0x009ac208 ends at 0x009ac800 [ 284.769108] jffs2: notice: (1466) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. root@debian:~# mount ... /dev/mtdblock2 on /mnt type jffs2 (ro,relatime) root@debian:~# df Filesystem 1K-blocks Used Available Use% Mounted on ... /dev/mtdblock2 32768 12352 20416 38% /mnt root@debian:~#> The official documentation that one can find is: Denx: http://www.denx.de/wiki/view/DULG/UBoot ...
Re: 2014.07 U-Boot for FDT and Non-FDT Kernel - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug March 30, 2015 04:43AM |
Admin Registered: 12 years ago Posts: 17,659 |
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi