Welcome! Log In Create A New Profile

Advanced

revive Medion oxnas stg-212

Posted by alexinc 
Re: revive Medion oxnas stg-212
November 12, 2022 04:38PM
alexinc,

Try booting Debian rootfs again.

setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(ubi)'
setenv bootargs 'console=ttyS0,115200 $mtdparts'
tftpboot 0x60500000 uImage
bootm 0x60500000

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: revive Medion oxnas stg-212
December 08, 2022 07:48AM
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 unbrickable...

OX820 # setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(ubi)'
OX820 # setenv bootargs 'console=ttyS0,115200 $mtdparts'
OX820 # tftpboot 0x60500000 uImage
Speed: 1000, full duplex
Using dwmac.40400000 device
TFTP from server 192.168.50.59; our IP address is 192.168.50.100
Filename 'uImage'.
Load address: 0x60500000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################################################
         3.4 MiB/s
done
Bytes transferred = 5596715 (55662b hex)
OX820 # bootm 0x60500000
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-5.4.210-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5596651 Bytes = 5.3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux...

uncompression error

 -- System halted

Re: revive Medion oxnas stg-212
December 08, 2022 04:27PM
alexinc,

Try booting kernel 4.4.201.

Quote

Updated 16 Nov 2019:

Kernel linux-4.4.201-oxnas-tld-1 package was uploaded.

New/Update features:

- Pickup security patches from mainline.
- This kernel header now can be installed and used to build modules, without any special tweaks (this issue was described here).

Latest Linux kernel 4.x general release information can be found at:
LinuxChanges log

Download at Dropbox

linux-4.4.201-oxnas-tld-1.bodhi.tar.bz2

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: revive Medion oxnas stg-212
March 17, 2023 12:37PM
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 complete nand?

still any help much appreciated! :)

###pogoplug-classic-kernel + uImage###
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 (-1364690128 x 512)
NAND:  128 MiB   
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0
4102704 bytes read in 760 ms (5.1 MiB/s)
7033 bytes read in 17 ms (403.3 KiB/s)
magic:                  0xd00dfeed
totalsize:              0x1b79 (7033)
off_dt_struct:          0x38
off_dt_strings:         0x18d4
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x2a5
size_dt_struct:         0x189c
number mem_rsv:         0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-3.17.0-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4102640 Bytes = 3.9 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2ab78 ... OK

Starting kernel ...

Uncompressing Linux...

uncompression error

 -- System halted
###stg212-kernel + uImage###
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 bootargs.bin
reading u-boot.img
reading u-boot.img

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 (-1364690128 x 512)
NAND:  128 MiB   
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0
4609927 bytes read in 769 ms (5.7 MiB/s)
9479 bytes read in 23 ms (402.3 KiB/s)
magic:                  0xd00dfeed
totalsize:              0x2507 (9479)
off_dt_struct:          0x38
off_dt_strings:         0x217c
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x38b
size_dt_struct:         0x2144
number mem_rsv:         0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.14.180-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4609863 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2b506 ... OK

Starting kernel ...

Uncompressing Linux...

uncompression error

 -- System halted
OX820 # printenv 
SET_dtb=fdt addr ${fdtaddr} ; fdt header
autoload=no
baudrate=115200
bootcmd=run ideboot
bootdelay=3
bootnew=bootm 60000000 - 61000000
bootold=bootm 60000000
console=console=ttyS0,115200n8
ethact=mii0
ethaddr=74:F0:6D:6A:1D:17
ext2_dtb=ext2load ide 0:2 61000000 /boot/dts/ox820-pogoplug-classic.dtb
ext2_ideboot=run ext2_uimage ; run ext2_dtb ; run SET_dtb ; run bootnew
ext2_uimage=ext2load ide 0:2 60000000 /boot/uImage
ext4_dtb=ext4load ide 0:2 61000000 /boot/dts/ox820-pogoplug-classic.dtb
ext4_ideboot=run ext4_uimage ; run ext4_dtb ; run SET_dtb ; run bootnew
ext4_uimage=ext4load ide 0:2 60000000 /boot/uImage
fdtaddr=61000000
filesize=1b79
ideboot=run ext4_ideboot
idebootold=${loadold} ;${bootold}
imgaddr=60000000
ipaddr=10.0.0.71
keypressed=1
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
netcon=echo switch to net console;setenv stderr nc;setenv stdin nc;setenv stdout nc;echo switch to net console
preboot=run safeboot
serialcon=echo switch to serial console;setenv stderr serial;setenv stdin serial;setenv stdout serial;echo switch to serial console
stderr=serial
stdin=serial
stdout=serial
updboot=bootp;tftp 60000000 u-boot.img;ide write 60000000 400 400

Environment size: 1267/16380 bytes
OX820 # help
?       - alias for 'help'
askenv  - get environment variables from stdin
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootmenu- ANSI terminal bootmenu
bootp   - boot image via network using BOOTP/TFTP protocol
bootvx  - Boot vxWorks from an ELF image
chpart  - change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
dhcp    - boot image via network using DHCP/TFTP protocol
diskboot- boot from IDE device
echo    - echo args to console
editenv - edit environment variable
env     - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls  - list files in a directory (default /)
ext4write- create a file in the root directory
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fatwrite- write file into a dos filesystem
fdt     - flattened device tree utility commands
gettime - get timer val elapsed,
go      - start application at address 'addr'
grepenv - search environment variables
hash    - compute hash message digest
help    - print command description/usage
ide     - IDE sub-system
iminfo  - print header information for application image
imxtract- extract a part of a multi-image
ini     - parse an ini file in memory and merge the specified section into the env
itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
md5sum  - compute MD5 message digest
mdio    - MDIO utility commands
mii     - MII utility commands
mm      - memory modify (auto-incrementing address)
mtdparts- define flash/nand partitions
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
pxe     - commands to get and boot from pxe files
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
setexpr - set environment variable as the result of eval expression
showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
sysboot - command to get and boot from syslinux files
terminal- start terminal emulator
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
time    - run commands and summarize execution time
true    - do nothing, successfully
ubi     - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
unzip   - unzip a memory region
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
zip     - zip a memory region
OX820 #

this kernel seems to be deleted from dropbox?

bodhi Wrote:
-------------------------------------------------------
> alexinc,
>
> Try booting kernel 4.4.201.
>
>
Quote

Updated 16 Nov 2019:
>
> Kernel linux-4.4.201-oxnas-tld-1 package was
> uploaded.
>
> New/Update features:
>
> - Pickup security patches from mainline.
> - This kernel header now can be installed and used
> to build modules, without any special tweaks (this
> issue was described here).
>
> Latest Linux kernel 4.x general release
> information can be found at:
> LinuxChanges log
>
> Download at Dropbox
>
> linux-4.4.201-oxnas-tld-1.bodhi.tar.bz2
Re: revive Medion oxnas stg-212
March 17, 2023 03:22PM
alex,

I think Bitly expired a bunch of my old links. I did delete a lot of uploaded files on my Dropbox, but always keep the interesting version.

Download at Dropbox:

https://www.dropbox.com/s/jcbhzhyig314o60/linux-4.4.201-oxnas-tld-1.bodhi.tar.bz2

And use the same hash in the kernel release thread.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: revive Medion oxnas stg-212
March 18, 2023 08:55AM
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 (-1364690128 x 512)
NAND:  128 MiB   
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0 
4240576 bytes read in 918 ms (4.4 MiB/s)
7224 bytes read in 17 ms (414.1 KiB/s)
magic:                  0xd00dfeed
totalsize:              0x1c38 (7224)
off_dt_struct:          0x38
off_dt_strings:         0x1974
off_mem_rsvmap:         0x28
version:                17
last_comp_version:      16
boot_cpuid_phys:        0x0
size_dt_strings:        0x2c4
size_dt_struct:         0x193c
number mem_rsv:         0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.4.201-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4240512 Bytes = 4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2ac37 ... OK

Starting kernel ...

Uncompressing Linux...

uncompression error

 -- System halted

there must be something wrong with nand (ramfs?) when it comes to uncompression. :-/ i'm trying to upgrade @schnee
rescue hdd now with latest u-boot+rootfs+kernel, but i doubt it may help, as it won't change partitions in nand i guess.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: