Skip to content

ealain/alpine-nas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Alpine Linux on WD My Cloud NAS

Device reference: WDBCTL0030HWT-EESN

Device components

Board reference: WD_Glacier_DB-88F6720-V2

Disclaimer

I am not responsible for any damage or waranty loss. This is not supported by Western Digital.

Instructions lead to data loss. Consider backing up data. Think twice before running scripts.

Big picture

  1. Trial and error show that the bootloader looks for two files on partition 3 (and then partition 5 if the first startup fails):
  • uImage (kernel and dtb files),
  • uRamdisk (compressed ramdisk).
  1. /linuxrc (initrd) is executed, /bin/busybox takes over, reads /etc/inittab and executes /etc/rc.sh,
  2. special filesystems are mounted and scripts/system_init from image.cfs is run.

For more, see partitions.

Alpine Linux installation

Dependencies

Configure the boot partition

  1. Create an ext2 partition with number 3 (U-Boot looks in 3 and then 5)
Number  Start (sector)    End (sector)   Size      Code  Name
   3            2048          264191   128.0 MiB   8300  Linux filesystem
mke2fs -t ext2 -m 0 <device>
  1. Generate uImage and uRamdisk (optionally edit the kernel configuration in config and the init script for initramfs)
make
  1. Copy the files to the folder /boot
mount /dev/sdb3 /mnt
cp uImage /mnt/boot/
cp uRamdisk /mnt/boot/
umount /mnt
  1. Boot the device

Install the system

Instructions in root/README.md.

Debugging tools

  • SATA to USB adapter (partition and write to the hard drive)
  • UART to USB adapter and soldering material for a U-Boot prompt

Next steps

  • lock the root account
  • configure the partition to save data
  • set up rsync

Caveats

  • the hard drive does not automatically go to standby mode

Credits

About

Install Alpine Linux on WD My Cloud NAS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published