[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#845611: linux-image-4.8.0-1-marvell: hard drive not detected on LinkStation Pro (LS-GL)



Dear Ryan,

On Fri, Nov 25, 2016 at 4:24 PM, Ryan Tandy <ryan@nardis.ca> wrote:
>
> [  611.971107] scsi host0: sata_mv
> [  611.984111] scsi host1: sata_mv
> [  611.984881] ata1: SATA max UDMA/133 irq 30
> [  611.984916] ata2: SATA max UDMA/133 irq 30
> [  612.302763] ata1: SATA link down (SStatus 0 SControl 300)
> [  612.778697] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [  612.787074] ata2.00: ATA-7: SAMSUNG SP2504C, VT100-41, max UDMA7
> [  612.787118] ata2.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
> [  612.819082] ata2.00: configured for UDMA/133

Looks like your LS-GL really uses the 2nd SATA port.
Though my LS-GL works fine with current DTS.
So it need the following patch to be applied.

diff --git a/arch/arm/boot/dts/orion5x-linkstation-lsgl.dts
b/arch/arm/boot/dts/orion5x-linkstation-lsgl.dts
index 1cf644b..51dc734 100644
--- a/arch/arm/boot/dts/orion5x-linkstation-lsgl.dts
+++ b/arch/arm/boot/dts/orion5x-linkstation-lsgl.dts
@@ -82,6 +82,10 @@
     gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
 };

+&sata {
+    nr-ports = <2>;
+};
+
 &ehci1 {
     status = "okay";
 };


On Sat, Nov 26, 2016 at 1:10 AM, Ryan Tandy <ryan@nardis.ca> wrote:
>
> kurobox_pro-setup.c, AFAIK, used to be used on several related platforms.
> The kurobox pro and LS-GL are nearly identical.

Yes. So maybe the easiest way for you is:
- start your device by kernel 4.3 first.
- confirm your have flash-kernel and linux-image-4.8.0-1-marvell installed.
- cp /usr/lib/linux-image-4.8.0-1-marvell/orion5x-kuroboxpro.dtb
/etc/flash-kernel/dtbs/orion5x-linkstation-lsgl.dtb
- flash-kernel --force 4.8.0-1-marvell
- check the log of above command, it should use
/etc/flash-kernel/dtbs/orion5x-linkstation-lsgl.dtb for building
uImage.buffalo, the kernel image for booting
- reboot and see the result

If the above steps works for you, I can submit the above patch to
kernel upstream, and include it into Stretch release.
So I'm looking forward to your result. Thank you!

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 4096R/6C6ACD6417B3ACB1


Reply to: