Johns-Q / wdmc-gen2

WD My Cloud Gen2 (Kernel / Distribution / Information) drop
GNU Affero General Public License v3.0
44 stars 12 forks source link

Hi #1

Open ghost opened 7 years ago

ghost commented 7 years ago

Can u help me to compile last kernel at moment 4.14rc2 with uImage and uFamdisk... i need tuto or help ty

Johns-Q commented 7 years ago

Sorry I see no problem. Everything works like described.

wget https://git.kernel.org/torvalds/t/linux-4.14-rc3.tar.gz
tar vxf linux-4.14-rc3.tar.gz
cp wdmc-gen2/kernel-4.12.0.config linux-4.14-rc3/.config
cp wdmc-gen2/armada-375-wdmc-gen2.dts linux-4.14-rc3/arch/arm/boot/dts/
cd linux-4.14-rc3/
make zImage     # answer all questions with RETURN
make armada-375-wdmc-gen2.dtb

it compiles without any error, I just answered all config questions with RETURN, which may not be 100% correct.

theonedemon commented 7 years ago

hi, in your sample command make zImage not create file armada-375-wdmc-gen2.dtb

theonedemon commented 7 years ago

before compile:

sudo apt-get install gcc-arm-linux-gnueabihf

this command correct:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- armada-375-wdmc-gen2.dtb
theonedemon commented 7 years ago

i compile kernel

Linux wdmc 4.13.5 #1 SMP Sun Oct 8 16:54:17 EEST 2017 armv7l GNU/Linux

but usb3.0 speed not more than 8mb\s ( usb 2.0 speed ) tested in highspeed cardreader and external hdd with usb3.0

on init system:

[    5.564968] xhci-hcd f1058000.usb3: xHCI Host Controller
[    5.569019] xhci-hcd f1058000.usb3: new USB bus registered, assigned bus number 2
[    5.575358] xhci-hcd f1058000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    5.582670] xhci-hcd f1058000.usb3: irq 38, io mem 0xf1058000
[    5.606526] usb usb2: SerialNumber: f1058000.usb3
[    5.615933] xhci-hcd f1058000.usb3: xHCI Host Controller
[    5.619976] xhci-hcd f1058000.usb3: new USB bus registered, assigned bus number 3
[    5.626316] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.633294] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    5.638808] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.644782] usb usb3: Product: xHCI Host Controller
[    5.648374] usb usb3: Manufacturer: Linux 4.13.5 xhci-hcd
[    5.652501] usb usb3: SerialNumber: f1058000.usb3

and give dmesg error:

[    4.587240] phy phy-f1018400.usb-cluster.0: Looking up phy-supply property in node /soc/internal-regs/usb-cluster@18400 failed
[    5.461409] mdio_bus fixed-0: lookup for GPIO reset failed
[    5.464996] mdio_bus f10c0054.mdio-mii: lookup for GPIO reset failed
theonedemon commented 6 years ago

I create docker-project: https://github.com/theonedemon/wdmc-gen2-imagebuilder Maybe we so quickly fix usb3.0