|
Re: How to unbrick GoFlex Home? July 14, 2018 04:29AM |
Registered: 7 years ago Posts: 20 |
|
Re: How to unbrick GoFlex Home? July 14, 2018 11:58AM |
Registered: 12 years ago Posts: 1,303 |
[root@debian:/root 1%] # fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 if_netconsole=ping $serverip led_error=orange blinking led_exit=green off led_init=green blinking load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage machid=0x831 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize 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; 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_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_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=3338 serverip=192.168.1.87 preboot=run if_netconsole start_netconsole ipaddr=192.168.1.89 start_netconsole=setenv ncip $serverip; setenv bootdelay 3; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; dtb_file=/boot/dts/kirkwood-goflexhome.dtb ethaddr=00:10:75:09:0b:3a [root@debian:/root 2%] # [root@debian:/root 3%] # cat /etc/debian_version buster/sid [root@debian:/root 4%] # uname -a Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel GNU/Linux [root@debian:/root 5%] # cat /boot/uEnv.txt dtb_file=/boot/dts/kirkwood-goflexhome.dtb devices=usb ide disks=0 1 2 3 4 5 6 7 [root@debian:/root 6%] #
|
Re: How to unbrick GoFlex Home? July 14, 2018 04:43PM |
Admin Registered: 14 years ago Posts: 19,932 |
|
Re: How to unbrick GoFlex Home? July 17, 2018 05:01PM |
Registered: 7 years ago Posts: 20 |
ubuntu@ubuntu:~/Downloads$ sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -b '/home/ubuntu/Downloads/uboot.2017.07-tld-1.goflexhome.mtd0.kwb' Sending boot message. Please reboot the target.../ Sending boot image... 0 % [+xmodem: Protocol error
|
Re: How to unbrick GoFlex Home? July 17, 2018 05:54PM |
Admin Registered: 14 years ago Posts: 19,932 |
sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -b /home/ubuntu/Downloads/uboot.2017.07-tld-1.goflexhome.mtd0.kwb -p
|
Re: How to unbrick GoFlex Home? July 18, 2018 11:45AM |
Registered: 7 years ago Posts: 20 |
> sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -b > /home/ubuntu/Downloads/uboot.2017.07-tld-1.goflexhome.mtd0.kwb > -p >
Sending boot message. Please reboot the target...\
Sending boot image...
0 % [......................................................................]
/* Removed for brevity */
99 % [....................................]
[Type Ctrl-\ + c to quit]
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Reset IDE: ide_preinit failed
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Reset IDE: ide_preinit failed
device ide 0:1
** Bad device ide 0 **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
** Bad device usb 0 **
Unknown command 'bootm0x800000' - try 'help'
resetting ...
-- NAS EXPLORER --
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** QSI BOARD: NAS-PLUG LE
U-Boot 1.1.4 (Sep 26 2011 - 13:01:13) Marvell version: 3.4.27
QSI NAS version: 1.0.6
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00
Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz
DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:NAND READID : MID=0x98, DID=0xda
256 MB
*** Warning - bad CRC or NAND, using default environment
Flash: 0 kB
CPU : Marvell Feroceon (Rev 1)
Streaming disabled
Write allocate disabled
USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0
Using egiga0 device
TFTP from server 169.254.254.254; our IP address is 169.254.254.253
Filename 'uImage'.
Load address: 0x2000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
## Booting image at 02000000 ...
Bad Magic Number
Unknown command '<NULL>' - try 'help'
NAS>>
|
Re: How to unbrick GoFlex Home? July 19, 2018 12:15AM |
Admin Registered: 14 years ago Posts: 19,932 |
Quote
Updated 24 Jul 2017:
Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:
- tarball size: 188M
- install size: 488M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
md5:
bf3d29569943875df348fb5ca03b348c
sha256:
4ed5714fdb123cdb40e973f3d0754e91cd199b75a9874018f2b5dc9cfa8ae8bb
|
Re: How to unbrick GoFlex Home? July 19, 2018 04:05PM |
Registered: 7 years ago Posts: 20 |
Quote
bodhi
A. Flashing Instruction:
Installation is the same for each u-Boot image, the instruction below is written to include all boxes. So choose the platform name that you are installing for, and copy/paste the appropriate commands.
If you are running kernel that do not provide mtd-utils and uboot-tools (fw_setenv, fw_printenv, flash_erase, nandwrite), you can download the NAND and U-Boot tools binaries here in this thread.
1. uBoot envs config should be defined as followed in your /etc/fw_env.config
cat /etc/fw_env.config
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
- And your mtd partitions should be:
…
|
Re: How to unbrick GoFlex Home? July 19, 2018 04:43PM |
Admin Registered: 14 years ago Posts: 19,932 |
|
Re: How to unbrick GoFlex Home? July 20, 2018 04:10PM |
Registered: 7 years ago Posts: 20 |
root@debian:~# fw_printenv mtdparts Warning: Bad CRC, using default environment ## Error: "mtdparts" not defined
dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00600000 00020000 "uImage" mtd2: 0d800000 00020000 "root"
root@debian:~# nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0 -bash: nanddump: command not foundI've searched the bin and sbin folders in / , /usr and /usr/local but haven't found these commands. Should they be installed via apt-get?
|
Re: How to unbrick GoFlex Home? July 20, 2018 05:09PM |
Admin Registered: 14 years ago Posts: 19,932 |
Quote
uboot.2016.05-tld-1.environment (the content of the default envs in text format)
mtdparts=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)'
Quote
If you are running kernel that do not provide mtd-utils and uboot-tools (fw_setenv, fw_printenv, flash_erase, nandwrite), you can download the NAND and U-Boot tools binaries here in this thread.
apt-get install mtd-utils
|
Re: How to unbrick GoFlex Home? July 21, 2018 12:08PM |
Registered: 7 years ago Posts: 20 |
|
Re: How to unbrick GoFlex Home? July 21, 2018 05:24PM |
Admin Registered: 14 years ago Posts: 19,932 |
Quote
Rescue Systems
Rescue System V2 (Original)
MacPlug & SMBPLug
Rescue System Pogo V3
Rescue System V4, using a custom LEDE firmware (BETA)
Rescue System for Pogo E02 using LEDE
|
Re: How to unbrick GoFlex Home? August 02, 2018 06:04AM |
Registered: 8 years ago Posts: 337 |
|
Re: How to unbrick GoFlex Home? August 08, 2018 06:06AM |
Admin Registered: 14 years ago Posts: 19,932 |
|
Re: How to unbrick GoFlex Home? August 10, 2018 11:37AM |
Registered: 8 years ago Posts: 337 |
cd /tmp mkdir usb mount /dev/sda1 /tmp/usb wget http://plugapps.com/os/pogoplug/uboot/nanddump chmod +x nanddump ./nanddump -nf usb/mtd0 /dev/mtd0 ./nanddump -nf usb/mtd1 /dev/mtd1 ./nanddump -nf usb/mtd2 /dev/mtd2 umount /dev/sda1
|
Re: How to unbrick GoFlex Home? August 11, 2018 01:05AM |
Admin Registered: 14 years ago Posts: 19,932 |
cat /proc/mtd
cd /tmp mkdir usb mount /dev/sda1 /tmp/usb cd /tmp/usb
nanddump --noecc --omitoob -f mtd0 /dev/mtd0 nanddump --noecc --omitoob -f mtd1 /dev/mtd1 ... so on
cat /proc/mtdIf they match with stock OS, then go ahead. If not, you will need to adjust the mtds to the stock definition, reboot. And verify
flash_erase /dev/mtd0 nandwrite -on /dev/mtd0 mtd0 flash_erase /dev/mtd1 nandwrite -on /dev/mtd1 mtd1 ..... so on
|
Re: How to unbrick GoFlex Home? August 11, 2018 02:46AM |
Registered: 8 years ago Posts: 337 |
> cat /proc/mtd >
|
Re: How to unbrick GoFlex Home? August 11, 2018 02:49AM |
Admin Registered: 14 years ago Posts: 19,932 |
> > cat /proc/mtd > >>
|
Re: How to unbrick GoFlex Home? August 11, 2018 07:20AM |
Registered: 8 years ago Posts: 337 |
|
Re: How to unbrick GoFlex Home? August 11, 2018 07:42AM |
Registered: 8 years ago Posts: 337 |
> cat /proc/mtd >> If they match with stock OS, then go ahead. If
|
Re: How to unbrick GoFlex Home? August 11, 2018 11:39AM |
Admin Registered: 14 years ago Posts: 19,932 |
fw_printenv
|
Re: How to unbrick GoFlex Home? August 11, 2018 12:46PM |
Registered: 8 years ago Posts: 337 |
> fw_printenv >
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; 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
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
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)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage
ethaddr=00:10:75:2C:A9:58
|
Re: How to unbrick GoFlex Home? August 11, 2018 01:44PM |
Admin Registered: 14 years ago Posts: 19,932 |
printenv
fw_printenv
|
Re: How to unbrick GoFlex Home? August 11, 2018 02:04PM |
Registered: 8 years ago Posts: 337 |
> fw_printenv >
baudrate=115200 loads_echo=0 ipaddr=169.254.254.253 serverip=169.254.254.254 rootpath=/mnt/ARM_FS/ netmask=255.255.0.0 run_diag=yes CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; ethmtu=1500 usb0Mode=host nandEcc=1bit netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no ethact=egiga0 rtc_mode=active vm_ver_smt=1.1.3 pcba_sn=JA8P05390 console=console=ttyS0,115200 rtc_tz=PST ntp_default=pool.ntp.org smt_tag=10:08:28:06:07:50:25 ethaddr=00:10:75:28:CC:00 explrpk=PGBW-DQHB-MXJU-KKDK explrsn=NA1Y6EYJ asm1_tag=10:08:28:06:09:49:06 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no enaAutoRecovery=no pcieTune=no filesize=33AA2E bootargs=console=ttyS0,115200 root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand bootargs_root=ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc console2=console=ttyS0,115200 bootcmd=nand read.e 0x800000 0x100000 0x600000; setenv bootargs $(console2) $(bootargs_root); bootm 0x800000
|
Re: How to unbrick GoFlex Home? August 12, 2018 04:24AM |
Admin Registered: 14 years ago Posts: 19,932 |
|
Re: How to unbrick GoFlex Home? August 12, 2018 05:22AM |
Registered: 8 years ago Posts: 337 |
|
Re: How to unbrick GoFlex Home? August 12, 2018 07:51AM |
Admin Registered: 14 years ago Posts: 19,932 |
|
Re: How to unbrick GoFlex Home? August 12, 2018 08:10AM |
Registered: 8 years ago Posts: 337 |
|
Re: How to unbrick GoFlex Home? August 12, 2018 11:30AM |
Registered: 8 years ago Posts: 337 |