bodhi Wrote: ------------------------------------------------------- > 2. List the mtds root@Aspire-3820TG:~# ls -lh /media/alex/rootfs/boot/mtd/ insgesamt 118M -rw-r--r-- 1 root root 256K Apr 6 01:28 mtd1.backup -rw-r--r-- 1 root root 3,5M Apr 6 01:28 mtd2.backup -rw-r--r-- 1 root root 8,0K Apr 6 01:28 mtd3.data -rw-r--r-- 1 root root 10M Apr 6 01:28 mtd4.backup -rw-r--r-- 1 rby alexinc - Rescue System
bodhi Wrote: ------------------------------------------------------- P> Boot with HDD SPL and u-boot. It does not matter > which u-boot is on HDD. > > Once you are at the u-boot prompt, follow this > instruction to flash stock SPL and stock u-boot to > NAND > > QuoteWiki thread > > Unbrick a Pogoplug Pro v3 OXNAS by flashing u-boot > in serial consolby alexinc - Rescue System
I think both, spl and u-boot got loaded from hdd and weren't written to NAND. Before erasing NAND i could boot into u-boot without any disk connected at all, but that doesn't work now. If i got you right, i should boot from that rescue disk then and switch disks (hotplug) while box is still running in original u-boot? But how should i read from the newly connected hdd with rootfs, ifby alexinc - Rescue System
bodhi Wrote: ------------------------------------------------------- > Very nice! Did you just flash it to NAND and do > reset? i just tried once again, but as you can see, it fails flashing... booting without hdd doesn't do anything afterwards, so no spl and/or u-boot on nand. > I don't see USB in the list of commands. But does > not matter, the HDD rootfs can beby alexinc - Rescue System
Attempting to set PLLA to 725MHz ... plla_ctrl0 : 0x0000011A plla_ctrl1 : 0x003A0000 plla_ctrl2 : 0x007300D0 plla_ctrl3 : 0x000000B6 PLLA Set Setup memory, testing Reading disk 0, Image 0 Sector : 0x0000009A Hdr len: 0x0001F854 Hdr CRC: 0x55B449B2 OK Initialising disks SATA PHY not ready for device 1 Detecting SATA busses: Bus 0: Found first device OK Device 0by alexinc - Rescue System
this github has all the stock mtds included and creates the recovery hdd out of them. this hdd should write those mtds in their belonging sectors. the disc gets generated by build.sh ( https://github.com/jedie/NAS7820-Tools/blob/master/flash-recovery-hdd/MedionNAS/build.sh ) which calculates and generates the u-boot envs, the mtds and their sectors. so we need to flash those mtds to nand. btw.by alexinc - Rescue System
that's what i already tried using https://github.com/jedie/NAS7820-Tools/tree/master/flash-recovery-hdd/MedionNAS but it fails too. it boots from the created hdd, but fails to read the belonging sectors or whatever. of course i would try going back to original too, if there's a working way to do so. i'm still up for anything, except throwing it to the bin after all this lifetime i&by alexinc - Rescue System
at least at work i didn't manage to connect to openwrt for now. would the belonging ip to connect to be that one defined in u-boot env "ethaddr" or is it 192.168.1.1 (like i found googleing for openwrt initramfs images)? not seeing if it hangs again, doesn't make it easier... ;-) then i'm almost out of ideas what to try next. i can boot rescue hdd, change between u-booby alexinc - Rescue System
thanks, but that's basically what i already did in my last post and what keeps hanging at "Starting kernel ..." U-Boot SPL 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) Boot device: SATA Attempting to set PLLA to 800 MHz ... plla_ctrl0 : 0000030a plla_ctrl1 : 00400000 plla_ctrl2 : 007f0068 plla_ctrl3 : 00000193 PLLA Set Bus 0: OK Device 0: reading bootaby alexinc - Rescue System
bodhi Wrote: ------------------------------------------------------- > > it's just funny, that everywhere > > gets written the device is unbrickable > > That statement is only about Cloudengine Pogo V3 > Pro/Classic. i thought pogoplug classic shares the same base? > Also, if you look at how OpenWrt load and boot its > kernel, it is different . If yoby alexinc - Rescue System
bodhi Wrote: ------------------------------------------------------- > I forgot, if you have tried flashing OpenWrt > u-boot to NAND? so i have flashed spl from your latest u-boot and u-boot from openwrt without any success. if i'm right first thing loading should be spl, right? so already writing spl to nand fails somehow? i also tried writing uboot.spl.2013.10.ox820.mtd0.img toby alexinc - Rescue System
bodhi Wrote: ------------------------------------------------------- > The u-boot you are running is SATA boot build. The > image header is not the same as NAND built > u-boot. > > I forgot, if you have tried flashing OpenWrt > u-boot to NAND? Yesterday i changed u-boot from Rescue disk /boot partition with your latest one, which comes with envs including usb boot. Iby alexinc - Rescue System
daviddyer Wrote: ------------------------------------------------------- > These boxes are at least 10 years old. > > The power supply materials are not as good as > those in the box. Most of the times, the capacitor > fails. > > Just try with a good 12V/1A power supply. If you > don't use hard drive, just boot from usb flash > drive, 12V/1A is good eby alexinc - Rescue System
daviddyer Wrote: ------------------------------------------------------- > Well, when decompression starts, it will use a lot > more power, if the power supply is not good, > system might die. > > I had a few failed boxes, after I changed the > power supply, they came back to life. sounds interesting as i simply can't find any other solution anymore. for now iby alexinc - Rescue System
just for the record, booting with latest u-boot from rescue disk and latest rootfs from usb doesn't work either and i didn't managed to write u-boot to nand again as of yet... is changing power supply a realistic scenario? U-Boot SPL 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) Boot device: SATA Attempting to set PLLA to 800 MHz ... plla_ctrl0 : 0000030a plla_ctrl1 : 004by alexinc - Rescue System
nand is empty now, no u-boot on it and booting only possible throught rescue sata. i couldn't perform u-boot install with usb, as it always timeout while writing (seems a known problem with external devices). so i decided going with ide, when booting from rescue disk anyways. everything seems to run smooth, but rebooting without disk doesn't load anything... U-Boot SPL 2013.10-ga72ebby alexinc - Rescue System
so i cleared ubifs now, besides the last volume that doesn't get erased for whatever reason!? OX820 # ubi info layout Volume information dump: vol_id 2147479551 reserved_pebs 2 alignment 1 data_pad 0 vol_type 3 name_len 13 usable_leb_size 129024 used_ebs 2 used_bby alexinc - Rescue System
can't say enough thanks for the time you already spent with me, but still no success... :-/ OX820 # printenv SET_dtb=fdt addr ${fdtaddr} ; fdt header autoload=no baudrate=115200 bootcmd=run ideboot bootdelay=3 bootdev=usb bootnew=bootm 60000000 - 61000000 bootold=bootm 60000000 console=console=ttyS0,115200n8 device=0:1 dtb_file=/boot/dts/ox820-stg212.dtb ethact=mii0 ethaddrby alexinc - Rescue System
so trying tftp openwrt again (https://archive.openwrt.org/releases/17.01.7/targets/oxnas/generic/lede-17.01.7-oxnas-stg212-u-boot-initramfs.bin): OX820 # tftp 64000000 initramfs.bin Using mii0 device TFTP from server 192.168.50.59; our IP address is 192.168.50.100 Filename 'initramfs.bin'. Load address: 0x64000000 Loading: ########################################################by alexinc - Rescue System
I'm really, really, really trying that hard, but always failing! It's frustrating! I've tried the USB boot with older 3.17.0, changing addresses, kernels between pgogplug-classic and stg-212, different u-boot and envs, tftp uImage and uInitrd and whatever i came across in this forum... :'( I can jump from u-boot to u-boot without any trouble (so booting from ide/usb workby alexinc - Rescue System
QuoteFor testing, we can force the kernel to relocate back to 60000000 by playing with the load adresses (i.e load uImage at 10MB location 60A00000) and move the DTB further out. Do something like that. And keep moving it to 15MB, 20MB,.... to test. IIRC, the kernel load address was intentionally "played" by kref so that there is no relocation during decompression. As i found in hby alexinc - Rescue System
What gave me hope was https://forum.doozan.com/read.php?2,16044,23122#msg-23122 and the following comment by FileDescriptor, that he revived his Medion STG212 with that installer... so there should be one way somehow, but FileDescriptor doesn't seem to be registrated in here anymore. :-( hunting for more information continuous...by alexinc - Rescue System
i also tried with "original" pogoplug-classic kernel 3.17, as i read that eith 4.x kernels and original u-boot there#s not enough space anymore, but same problem... :-/ what i'm wondering, if everything is booted and loaded from sata, why uncompression error? shouldn't it load linux from rootfs then without uncompression? to boot from sata i had to change rootfs to ext2, whichby alexinc - Rescue System
once again, thanks for your ongoing support! as expected i also didn't succeed with 4.4.201 U-Boot 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) for OXNAS DRAM: 128 MiB IDE: Bus 0: OK Device 0: Model: ST1500DL003-9VT16L Firm: CC4A Ser#: 5YD5WQJS Type: Hard Disk Supports 48-bit addressing Capacity: 1430799.3 MB = 1397.2 GB (-1364690by alexinc - Rescue System
Alright, after quite a messy time of try and error and getting back to real life things, i'm still trying to fight this box down once more. this time with the help of @schnee rescue hdd installer i'm getting to boot from hdd. i changed kernel and uImage from pogoplug-classic to stg212, but still without success. as it still fails to decompress kernel, do i somehow need to erase completby alexinc - Rescue System
still no success... :-( i even miserably fail in getting an debian rescue-hdd working, after reading hours of hours in here with creating partitions, different kernels, envs, "magic" startup code on first sectors, etc, etc by jumping between all the old posts from shv, WarheadsSE and yours of course. It's getting more and more confusing - although everyone writes it's unbriby alexinc - Rescue System
bodhi Wrote: ------------------------------------------------------- > > setenv mtdparts > 'mtdparts=41000000.nand:14m(boot),-(ubi)' > thanks, this helps saving the env in stage2. for sure, over the years i was also messing with envs, but starting point of all the mess was trying to update a self compiled openwrt (14.x or 15.x) to 17.x which seemed very rare back inby alexinc - Rescue System
you're right, missed the most important part... ;-) so here the whole deal once again (for having everything in one place) 1st bootloader: Attempting to set PLLA to 750MHz ... plla_ctrl0 : 0x0000000A plla_ctrl1 : 0x000F0000 plla_ctrl2 : 0x001D01A0 plla_ctrl3 : 0x00000017 PLLA Set Setup memory, testing, Image 0 Hdr len: 0x0001A94C Hdr CRC: 0xF0019DAC OK U-Boby alexinc - Rescue System
got a little further, after flashing stg212-u-boot-initramfs.bin from earlier version (https://archive.openwrt.org/chaos_calmer/15.05.1/oxnas/generic/). now i get into 2nd stage u-boot again with way more commands and options: OX820 # help ? - alias for 'help' askenv - get environment variables from stdin base - print or set address offset bdinfo - print Board Info strby alexinc - Rescue System
$ setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(ubi)' $ setenv bootargs 'console=ttyS0,115200 $mtdparts' $ tftpboot 0x64000000 uImage Wait GMAC to reset Wait for PHY reset. PHY is Realtek RTL8211E Wait for link to come up..........Link up Wait for auto-negotiation to complete Link is 1000M TFTP from server 192.168.50.59; our IP address is 192.168.50.100 Filenby alexinc - Rescue System