D-link DNS325: U-boot only initializes one hard drive.
Problem: The DNS325 is a 2-bay NAS. U-boot only sets the first hard drives "GPIO enable" line to high, not the second. This sometimes can cause issues with the Linux kernel in minimal environments where the kernel wont add the drive into the /dev directory automatically.
Solution I've found:
In the file board/d-link/dns325/dns325.c
on line 92, add the following code to enable the second hard drive slot:
kw_gpio_set_value(DNS325_GPIO_SATA1_EN , 1);
(The macro DNS325_GPIO_SATA1_EN
is already defined in board/d-link/dns325/dns325.h
)
I tested this solution myself on real hardware, and confirmed that once i applied the patch, the second hard drive started working as expected.