I'm using this and this tutorial but with some modifications to get debian up and running on this devices.
The Medion / ZyXEL firmware has no "flash_erase" so I use flash_eraseall.
Now I'm flashing SPL, U-Boot and env:
Now, we should see this when rebooting:
now we can prepare the the rootfs
(I'm using one ext4 partition labeled "rootfs" and a second partition for swap.
Before we can boot, we have to change the DTB otherwhise the device didn't boot:
So please change "dtb_file as folows:
Now, the device will come up and we are able to login via serial or SSH.
The newer 4.1 Kernel is running fine, I've build the latest 4.1 kernel which runs also fine:
Now, I'm trying to build the 4.4 kernel with the available patches from OpenWrt.
If this is successfull, I'll poast.
The Medion / ZyXEL firmware has no "flash_erase" so I use flash_eraseall.
/usr/sbin # flash_eraseall /dev/mtd0 Erasing 128 Kibyte @ 7fe0000 -- 99 % complete.
Now I'm flashing SPL, U-Boot and env:
nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img Writing data to block 0 nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-1.ox820.mtd0 .img Writing data to block 40000 Writing data to block 60000 Writing data to block 80000 Writing data to block a0000 nandwrite -s 1048576 /dev/mtd0 uboot.2013.10-tld-5.ox820.env ironment.img Writing data to block 100000
Now, we should see this when rebooting:
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12) Boot device: NAND Attempting to set PLLA to 850 MHz ... plla_ctrl0 : 0000020a plla_ctrl1 : 00330000 plla_ctrl2 : 0065008b plla_ctrl3 : 000000f1 PLLA Set U-Boot 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800) OXNAS OX820 DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: dwmac.40400000 Hit any key to stop autoboot: 0
now we can prepare the the rootfs
(I'm using one ext4 partition labeled "rootfs" and a second partition for swap.
Before we can boot, we have to change the DTB otherwhise the device didn't boot:
... running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 221 ms (0 Bytes/s) Found bootable drive on usb 0 loading uImage ... 4102704 bytes read in 525 ms (7.5 MiB/s) loading uInitrd ... 1953812 bytes read in 345 ms (5.4 MiB/s) loading DTB /boot/dts/ox820-pogoplug-pro.dtb ... 7029 bytes read in 238 ms (28.3 KiB/s) ## Booting kernel from Legacy Image at 60500000 ... Image Name: Linux-3.17.0-oxnas-tld-1 Created: 2014-11-01 7:16:44 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4102640 Bytes = 3.9 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 60e00000 ... Image Name: initramfs-3.17.0-oxnas-tld-1 Created: 2014-11-01 7:18:53 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 1953748 Bytes = 1.9 MiB Load Address: 60000000 Entry Point: 60000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 62c00000 Booting using the fdt blob at 0x62c00000 Loading Kernel Image ... OK Loading Ramdisk to 67c4e000, end 67e2afd4 ... OK Loading Device Tree to 67c49000, end 67c4db74 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
So please change "dtb_file as folows:
setenv dtb_file '/boot/dts/ox820-pogoplug-classic.dtb'
Now, the device will come up and we are able to login via serial or SSH.
The newer 4.1 Kernel is running fine, I've build the latest 4.1 kernel which runs also fine:
[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.1.25-oxnas-rm-1 (root@debian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 SMP PREEMPT Sat May 28 13:32:27 CEST 2016 [ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine model: Pogoplug V3 Classic ...
Now, I'm trying to build the 4.4 kernel with the available patches from OpenWrt.
If this is successfull, I'll poast.