OpenWrt Forum Archive

Topic: oxnas installation on Medion NAS P89626?

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I would like to install OpenWrt on a (Aldi) Medion P89626, but I'm stuck at finding the documentation.

While the downloads seem to be here:
https://downloads.openwrt.org/chaos_cal … s/generic/
https://downloads.openwrt.org/snapshots … s/generic/

and the hardware table for "Medion Akoya P89625 / P89636 / P89626 / P89630 (MD 86407 / MD 86805 / MD 86517 / MD 86587)" also lists my device:
http://wiki.openwrt.org/toh/medion/md86587
I cannot find a README or INSTALL file in the folders or an installation guide on the wiki. Which is a pity as obviously much work has been put into oxnas.


Maybe I'm looking for the wrong thing. As oxnas seems to also allow booting from the harddisk I'm expecting instructions to look like:

dd if=somefile of=/dev/somedevice bs=512 count=somecount seek=someseek

Can someone give me a hint?

Once you found your way into the telnet backdoor of the stock-firmware you can download and flash
http://downloads.openwrt.org/chaos_calm … tramfs.bin
to the partition the original firmware uses for it's kernel.
Looking for it now, I found some quality documentation from http://www.groenholdt.net/index2.html

# grep kernel /proc/mtd
mtd4: 00a00000 00020000 "kernel"

The best is to *first* change the bootloader settings using:

fw_setenv boot_stage2 nand read 64000000 440000 90000\\; go 64000000
fw_setenv bootcmd run boot_stage2
fw_printenv

Check if the boot_stage2 bootloader variable was set correctly!

Then write the stage2-bootloader and the initial openwrt ramdisk-rescue system to the flash:

nandwrite /dev/mtd4 openwrt-15.05-oxnas-stg212-u-boot-initramfs.bin of=/dev/mtd4

Now reboot. Once the OpenWrt rescue system comes up, download http://downloads.openwrt.org/chaos_calm … inized.bin and flash that using

sysupgrade -n openwrt-15.05-oxnas-stg212-ubifs-ubinized.bin

The device should now boot-up with a read/write UBIFS overlay. You'll never need to replace the rescue or bootloader again (hopefully)...

Hi dangole,

thanks for the detailed description!
Unfortunately the command

fw_setenv boot_stage2 nand read 64000000 440000 90000\\; go 64000000

results in:

-sh: go: not found

so maybe some extra quotes need to be used or the forum software changed some of the characters?

Good idea to try to first set the bootloader settings - thanks:)

Greetings,

Hi,

and thanks again! Got a functional samba server on OpenWrt - even preserving the previous data I had on the Medion Life NAS hard disk:)

A terse description how I did get there:

Using one '\' less in fw_setenv boot_stage2 set the variable as expected:

~ # fw_setenv boot_stage2 nand read 64000000 440000 90000\; go 64000000
~ # fw_setenv bootcmd run boot_stage2
~ # fw_printenv 
[..]
boot_stage2=nand read 64000000 440000 90000; go 64000000

Did the nandwrite without the extra argument of=/dev/mtd4

nandwrite /dev/mtd4 openwrt-15.05-oxnas-stg212-u-boot-initramfs.bin

- used the web interface (instead of the command line sysupgrade) to update firmware
- rebooted
- login via http
- setting dhcp client
- allowing ssh login
- reboot

- login via http (different address now)
- updated fw via web interface
- reboot

- install kmod-fs-xfs
- install xfs-fsck   
- install samba36-server
- install luci-app-samba
- reboot

- added the command "mount -t xfs /dev/sda2 /nas" into the web form in system/startup Local Startup
- logged in via ssh
- mkdir /nas
- reboot

- loosely followed the smb documentation at https://wiki.openwrt.org/doc/uci/samba to setup one guest account with share level access and one user account
- checked directory permissions under /nas
- reboot

Done (not claiming done correctly, just claiming works_for_me. For convenience I didn't switch away from XFS). I can access the original files with the samba cifs now:

# reading a 859 MB file from NAS 
dd if=test.ts of=/tmp/test.bin
859399136 Bytes (859 MB) kopiert, 22,0373 s, 39,0 MB/s
# writing a 859 MB file to NAS 
dd if=/tmp/test.bin of=t.bin
859399136 Bytes (859 MB) kopiert, 23,9573 s, 35,9 MB/s
# writing using 1M blocks
dd if=/data/tmp/test.bin of=t.bin bs=1M
859399136 Bytes (859 MB) kopiert, 20,0754 s, 42,8 MB/s

smile

(Last edited by just_me on 15 Nov 2015, 15:45)

The discussion might have continued from here.