GoFlexHome Maybe Bricked November 19, 2016 08:13PM |
Registered: 7 years ago Posts: 3 |
Re: GoFlexHome Maybe Bricked November 20, 2016 12:56AM |
Admin Registered: 13 years ago Posts: 18,575 |
Re: GoFlexHome Maybe Bricked November 20, 2016 05:14PM |
Registered: 7 years ago Posts: 3 |
[root@alarm ~]# grep -a --null-data U-Boot /dev/mtd0ro Warning: U-Boot configured device %s at address %llx, but the device tree has it address %llx. U-Boot** Invalid partition type "%.32s" (expect "U-Boot") U-Boot BUG at %s:%d! U-Boot 2014.04.R2-1 (May 15 2014 - 14:36:05) Arch Linux ARM
pi@raspberrypi ~ $ su root Password: root@raspberrypi:/home/pi# fdisk -l Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram1: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram2: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram3: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram4: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram5: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram6: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram7: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram8: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram9: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram10: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram11: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram12: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram13: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram14: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/ram15: 4 MiB, 4194304 bytes, 8192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/mmcblk0: 7.3 GiB, 7860125696 bytes, 15351808 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 Disklabel type: dos Disk identifier: 0x000da055 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 8192 2121093 2112902 1G e W95 FAT16 (LBA) /dev/mmcblk0p2 2121728 15286271 13164544 6.3G 85 Linux extended /dev/mmcblk0p3 15286272 15351807 65536 32M 83 Linux /dev/mmcblk0p5 2129920 3178495 1048576 512M 83 Linux /dev/mmcblk0p6 3186688 3309567 122880 60M c W95 FAT32 (LBA) /dev/mmcblk0p7 3317760 15286271 11968512 5.7G 83 Linux Partition table entries are not in disk order. Disk /dev/sda: 15 GiB, 16079781888 bytes, 31405824 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 Disklabel type: dos Disk identifier: 0xd1888880 Device Boot Start End Sectors Size Id Type /dev/sda1 2048 31404031 31401984 15G 83 Linux root@raspberrypi:/media/pi# umount rootfs root@raspberrypi:/media/pi# mkfs.ext3 /dev/sda1 mke2fs 1.42.12 (29-Aug-2014) /dev/sda1 contains a ext3 file system labelled 'rootfs' last mounted on /media/pi/rootfs on Mon Nov 21 09:43:51 2016 Proceed anyway? (y,n) y Creating filesystem with 3925248 4k blocks and 983040 inodes Filesystem UUID: 6b66842c-3726-4965-b19d-b8651334f0e1 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done root@raspberrypi:/media/pi# e2label /dev/sda1 rootfs root@raspberrypi:/media/pi# mkdir rootfs root@raspberrypi:/media/pi# ls data0 rootfs SETTINGS root@raspberrypi:/media/pi# mount /dev/sda1 /media/pi/rootfs root@raspberrypi:/media/pi# cd rootfs root@raspberrypi:/media/pi/rootfs# wget https://www.dropbox.com/s/qt2v378sm3j0loe/Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2# --2016-11-21 10:38:45-- https://www.dropbox.com/s/qt2v378sm3j0loe/Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 Resolving www.dropbox.com (www.dropbox.com)... 162.125.4.1 Connecting to www.dropbox.com (www.dropbox.com)|162.125.4.1|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://dl.dropboxusercontent.com/content_link/gOnu01fFLRnw7W4UNQTk9cB3iTuCxHrsKUBoSscETbXrHElYmqnynFEVuMgCQYWD/file [following] --2016-11-21 10:38:46-- https://dl.dropboxusercontent.com/content_link/gOnu01fFLRnw7W4UNQTk9cB3iTuCxHrsKUBoSscETbXrHElYmqnynFEVuMgCQYWD/file Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 45.58.75.165 Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|45.58.75.165|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 143314034 (137M) [application/octet-stream] Saving to: ‘Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2’ Debian-4.4.0-kirkwo 100%[=====================>] 136.67M 3.31MB/s in 47s 2016-11-21 10:39:34 (2.90 MB/s) - ‘Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2’ saved [143314034/143314034] root@raspberrypi:/media/pi/rootfs# tar -xjf Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 root@raspberrypi:/media/pi/rootfs# ls bin etc media root sys boot home mnt run tmp Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 lib opt sbin usr dev lost+found proc srv var root@raspberrypi:/media/pi/rootfs# cd boot root@raspberrypi:/media/pi/rootfs/boot# cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt root@raspberrypi:/media/pi/rootfs/boot# cat dts/kirkwood-goflexhome.dtb >> zImage.fdt root@raspberrypi:/media/pi/rootfs/boot# mv uImage uImage.orig root@raspberrypi:/media/pi/rootfs/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage bash: mkimage: command not found root@raspberrypi:/media/pi/rootfs/boot# apt-get install u-boot-tools Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: u-boot-tools 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 69.8 kB of archives. After this operation, 202 kB of additional disk space will be used. Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main u-boot-tools armhf 2014.10+dfsg1-5+rpi1 [69.8 kB] Fetched 69.8 kB in 0s (74.8 kB/s) Selecting previously unselected package u-boot-tools. (Reading database ... 116795 files and directories currently installed.) Preparing to unpack .../u-boot-tools_2014.10+dfsg1-5+rpi1_armhf.deb ... Unpacking u-boot-tools (2014.10+dfsg1-5+rpi1) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up u-boot-tools (2014.10+dfsg1-5+rpi1) ... root@raspberrypi:/media/pi/rootfs/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage Image Name: Linux-4.4.0-kirkwood-tld-1 Created: Mon Nov 21 11:05:50 2016 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3165437 Bytes = 3091.25 kB = 3.02 MB Load Address: 00008000 Entry Point: 00008000 root@raspberrypi:/media/pi/rootfs/boot# sync
Re: GoFlexHome Maybe Bricked November 20, 2016 06:26PM |
Admin Registered: 13 years ago Posts: 18,575 |
Quote
I then also updated the uEnv.txt as you suggested to see if I could get it to work on my goFlex with the @old@ uboot. No joy for either.
Quote
root@raspberrypi:/media/pi/rootfs# cd boot
root@raspberrypi:/media/pi/rootfs/boot# cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt
root@raspberrypi:/media/pi/rootfs/boot# cat dts/kirkwood-goflexhome.dtb >> zImage.fdt
root@raspberrypi:/media/pi/rootfs/boot# mv uImage uImage.orig
root@raspberrypi:/media/pi/rootfs/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage
bash: mkimage: command not found
root@raspberrypi:/media/pi/rootfs/boot# apt-get install u-boot-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
u-boot-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 69.8 kB of archives.
After this operation, 202 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main u-boot-tools armhf 2014.10+dfsg1-5+rpi1 [69.8 kB]
Fetched 69.8 kB in 0s (74.8 kB/s)
Selecting previously unselected package u-boot-tools.
(Reading database ... 116795 files and directories currently installed.)
Preparing to unpack .../u-boot-tools_2014.10+dfsg1-5+rpi1_armhf.deb ...
Unpacking u-boot-tools (2014.10+dfsg1-5+rpi1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up u-boot-tools (2014.10+dfsg1-5+rpi1) ...
root@raspberrypi:/media/pi/rootfs/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage
Image Name: Linux-4.4.0-kirkwood-tld-1
Created: Mon Nov 21 11:05:50 2016
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3165437 Bytes = 3091.25 kB = 3.02 MB
Load Address: 00008000
Entry Point: 00008000
root@raspberrypi:/media/pi/rootfs/boot# sync
U-Boot 2014.04.R2-1 (May 15 2014 - 14:36:05) Arch Linux ARM
cd /media/pi/rootfs/boot cp -a uImage uImage.goflex_home mv uImage.orig uImage sync
Re: GoFlexHome Maybe Bricked November 21, 2016 09:48PM |
Registered: 7 years ago Posts: 3 |
Re: GoFlexHome Maybe Bricked November 21, 2016 11:02PM |
Admin Registered: 13 years ago Posts: 18,575 |
cp -a uboot.2016.05-tld-1.environment /media/sdb1/boot/uEnv.txt3. Modify this uEnv.txt to set the DTB to goflexHome to have the following settings:
arcNumber=3338 dtb_file=/boot/dts/kirkwood-goflexhome.dtb ethaddr=xxxxx ipaddr=yyyyyy serverip=zzzzzwhere xxxx is the GoFlexHome MAC address, yyyyy is the GoFlexHome IP address, zzzzz is your laptop/PC/another-Linux-box IP address.
B. Flashing default u-boot envs image
fw_setenv arcNumber '3338' fw_setenv dtb_file '/boot/dts/kirkwood-goflexhome.dtb' fw_setenv ethaddr 'xxxxx' fw_setenv ipaddr 'yyyyyy' fw_setenv serverip 'zzzzz'