###################################################################################### # # Original materials: Peace_maker / WD Community forum: # https://community.wd.com/t/alternative-firmware-debian-jessie-synology-dsm6/156551/163 # https://www.dropbox.com/sh/9vljhjcf093c60n/AABsxSeLbje0QNp0bhfRNSO6a?dl=0 # ####################################################################################### # Content: gpio_fan_manual.sh - Manual fan control (My work). dts.zip - Device Tree Source for build your own kernel. kernel.config - .config for kernel normal_boot.txt - Boot log of debian uImage/uRamdisk - Kernel and Initial ram drive for boot MCMgen2-jessie-basic-armhf.tar.xz - Debian Jessie image (Rootfs archive) =============================================================== >> Short howto: >> For RAID setup (2nd disk can be added later): # !!! Replace "/dev/sda" to WDMC disk !!! # Run it for both disks if you need raid and replace "missing" in mdadm command to 2nd disk (/dev/sdb) parted --script /dev/sda "mklabel gpt \ mklabel gpt \ mkpart primary 0% 512MB \ mkpart primary 512MB 4096MB \ mkpart primary 4096MB 100% \ set 1 raid on \ set 2 raid on \ set 3 raid on" mdadm --create /dev/md0 --level=1 --metadata=0.9 --raid-devices=2 /dev/sda1 missing mdadm --create /dev/md1 --level=1 --metadata=0.9 --raid-devices=2 /dev/sda2 missing mdadm --create /dev/md2 --level=1 --metadata=0.9 --raid-devices=2 /dev/sda3 missing # For add 2nd disk later (On wdmc) # Format disk and run this: mdadm --manage /dev/md0 --add /dev/sdb1 mdadm --manage /dev/md1 --add /dev/sdb2 mdadm --manage /dev/md2 --add /dev/sdb3 >> Mount partitions and upload rootfs (Already include kernel): mkdir /mnt/root mount /dev/md1 /mnt/root >> Upload rootfs archive to this partition and unpack: cd /mnt/root tar xvf jessie-rootfs.tar.xz >> Use USB-Drive: Format it to FAT32, create folder named "boot" and upload inside uImage and uRamdisk >> Plug USB-Drive to WDMC, power on. If boot success - upload kernel to internal flash: cd /boot (Or any other folder, where placed uImage and uRamdisk) dd if=/dev/zero of=/dev/mtdblock1 # "No space" errors - normal. dd if=/dev/zero of=/dev/mtdblock2 dd if=uImage of=/dev/mtdblock1 dd if=uRamdisk of=/dev/mtdblock2 >> OR: U-Boot command (tftp method + UART): # (You can use "recovery" archive from WDMC Gen1 - its contains preconfigured tftp server for Windows) set ipaddr 192.168.0.2; set serverip 192.168.0.1; tftp 1200000 uImage-4.8.6_ex2u tftp 2000000 uInitrd; bootm 0x1200000 0x2000000 # Default data: Hostname: WDebian User: root Passwd: root ============================================ # Gpio pinouts: 26: USB 1 Power control 27: USB 2 Power control 43: HDD1-LED Red 50: Reset-button (inverted) 52: HDD2-LED Red 53: HDD1-LED Blue (inverted) 54: HDD2-LED Blue (inverted) 55: HDD1 Power 56: HDD2 Power