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

Debian Stretch on Sata disk in WD MyCloud EX2 Ultra (no replies)

$
0
0
In this forum I have found several interesting threads about modifications of this NAS.

I have an USB stick attached where initrd and kernel 4.9.y are stored and a serial cable connected where I can boot from USB with the rest of Debian in a file system on Disk.

This system is pretty small and has excellent benchmarks for reading and writing via samba and nfs. The small footprint leaves enough RAM for efficient disk caching without need for swap.

Now, I would like to get a permanent solution where initrd and kernel no longer are on USB but on a small boot partition on disk.

Unfortunately the original uBoot from WD seems not to support Sata and also lacks saveenv which in the long term might be useful.

Therefore I would like to generate a new uBoot which would read kernel and initrd from bootP on sda1. This could be tested first using kwboot and then flashed once into mtd0: (An even more sophisticated approach would also change the primary boot order and other $bootargs).

This brings the important advantage that future updates of the LTS kernel 4.9.xx which is supported for many years can be installed without any further writing to the flash memory.
Do you think that this approach is possible and how should I proceed?

Viewing all articles
Browse latest Browse all 3247

Trending Articles