Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

revive Medion oxnas stg-212 (15 replies)

$
0
0
Hey guys, as i didn't succeed on openwrt-forums for now and you really seem familiar to my device, maybe someone is able to help me reviving my Medion NAS? :-) For now i think my problem could be mtd-related and there is no place to uncompress Linux?

I tried to "factory reset" my Medion NAS running OpenWrt for oxnas by re-flashing openwrt-oxnas-stg212-squashfs-ubinized.bin. Device didn't come up again, so i checked with serial and got:

Starting kernel ...

Uncompressing Linux...

XZ-compressed data is corrupt

 -- System halted


After digging for 48 hours now i managed to update u-boot, but didn't manage to get any further booting at least into rescue or something else. Guess it's a pretty easy task for someone who knows what to do, but i'm simply failing starting kernel from 0x62000000 - at least that's what i'm thinking... My logs so far:

Stage-1 Bootloader Thu Nov 24 19:20:59 CST 2011
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-Boot 1.1.2 (Jun 24 2011 - 09:41:57)

U-Boot code: 60D00000 -> 60D1A94C  BSS: -> 60D1F004
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot:  0


$ printenv
bootdelay=2
baudrate=115200
autoload=n
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
ethaddr=00:11:41:30:3A:12
boot_openwrt=nand read 0x64000000 0x440000 0x90000 ; go 64000000
filesize=85390
fileaddr=64000000
netmask=255.255.0.0
ipaddr=192.168.50.100
serverip=192.168.50.59
boot_stage2=nand read 0x64000000 0x440000 0x90000 ; go 64000000
bootcmd=run boot_stage2
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes

Environment size: 639/131068 bytes


$ run boot_stage2

NAND read: device 0 offset 0x440000, size 0x90000
 589824 bytes read: OK
## Starting application at 0x64000000 ...


U-Boot 2014.10 (Dec 08 2017 - 09:01:13) for OXNAS

DRAM:  128 MiB
NAND:  128 MiB
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=1", size 114 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 911, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 5, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 76/43, WL threshold: 4096, image sequence number: 1342704460
UBI: available PEBs: 0, total reserved PEBs: 911, PEBs reserved for bad PEB handling: 19
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
IDE:   SATA PHY not ready for device 0
SATA PHY not ready for device 1
ide_preinit failed
Hit any key to stop autoboot:  0


OX820 # printenv
autoload=no
baudrate=115200
boot_dhcp=run load_kernel_dhcp && run boot_kernel;
boot_kernel=bootm 0x62000000;
boot_openwrt=nand read 0x62000000 0x42000000 0x90000 ; go 62000000
boot_rescue=run load_kernel_rescue && run boot_kernel;
boot_stage2=nand read 64000000 440000 90000; go 64000000
boot_ubi=run load_kernel_ubi && run boot_kernel;
bootargs=console=ttyS0,115200n8 earlyprintk=serial
bootcmd=run boot_stage2
bootdelay=1
console=console=ttyS0,115200n8 earlyprintk=serial
ethact=dwmac.40400000
ethaddr=00:25:31:01:66:5F
fileaddr=64000000
filesize=420000
ipaddr=192.168.50.100
load_kernel_dhcp=dhcp 0x62000000 oxnas-rescue.bin;
load_kernel_rescue=nand read 0x62000000 0x4e0000 0x400000;
load_kernel_ubi=ubi readvol 0x62000000 kernel;
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
normalboot=run boot_ubi; run boot_rescue; run boot_dhcp;
serverip=192.168.50.59
stderr=serial
stdin=serial
stdout=serial

Environment size: 988/16379 bytes


OX820 # run boot_ubi
Read 0 bytes from volume kernel to 62000000
No size specified -> Using max size (1806336)
## Loading kernel from FIT Image at 62000000 ...
   Using 'config@1' configuration
   Trying 'kernel@1' kernel subimage
     Description:  ARM OpenWrt Linux-3.14.26
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x620000e4
     Data Size:    1722608 Bytes = 1.6 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x60008000
     Entry Point:  0x60008000
     Hash algo:    crc32
     Hash value:   6611a8c8
     Hash algo:    sha1
     Hash value:   490849128e3c6fafd1fc54d5284bd978e626bcbc
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 62000000 ...
   Using 'config@1' configuration
   Trying 'fdt@1' fdt subimage
     Description:  ARM OpenWrt pogoplug-pro device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x621a4b0c
     Data Size:    6993 Bytes = 6.8 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   15dce0d6
     Hash algo:    sha1
     Hash value:   08c70cb4db38f437b6000b26305b49052be3345a
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x621a4b0c
   Loading Kernel Image ... OK
   Loading Device Tree to 67e1d000, end 67e21b50 ... OK

Starting kernel ...

Uncompressing Linux...

XZ-compressed data is corrupt

 -- System halted

Any help much appreciated! I'm able to tftp via LAN and already managed to flash and rescue like 4 years ago after compiling my own openwrt for that device, but almost forgot everything in the last 4 years... :-/ THX i.a.!

Viewing all articles
Browse latest Browse all 3178

Trending Articles