Debian on WD My Cloud EX4 April 08, 2023 12:46AM |
Registered: 2 years ago Posts: 1 |
U-Boot 1.1.4 (Aug 14 2013 - 09:24:12) Marvell version: 3.5.9.LIGHTNING-4A.01
U-Boot code: 00600000 -> 0067FFF9 BSS: -> 006CFB00 Soc: 88F6282 A1CPU running @ 2000Mhz L2 running @500Mhz SysClock = 500Mhz , TClock = 200Mhz DRAM (DDR3) CAS Latency = 7 tRP = & tRAS = 19 tRCD=7 DRAM CS[0] base 0x00000000 size 256MB DRAM CS[1] base 0x10000000 size 256MB DRAM total size 512MB 16bit width addresses 8M - 0M are saved for the U-Boot usage. NAND: 256 MB CPU : Marvell Feroceon (rev 1)
bootargs=root=/dev/ram console=ttyS0,115200 max_loop=32 :::DB88FXX81:egiga0:noneprintenv bootcmd returns:
bootcmd=nand read.e 0xa00000 0x100000 0x500000;nand read.e 0xf00000 0x600000 0x5 00000;bootm 0xa00000 0xf00000
Re: WD My Cloud EX4 help request April 08, 2023 01:14AM |
Admin Registered: 14 years ago Posts: 19,549 |
Quote
https://forum.doozan.com/read.php?2,12096
Linux Kernel 6.2.x Kirkwood package and rootfs for GoFlex Home/Net, Pogoplug E02/Mobile/V4, iConnect, Dockstar, Sheevaplug, NSA320, NSA320S, NSA325, NSA310S, NSA310, Topkick, Netgear Stora, ASUS-M25, Iomega ix4-200d, QiZhiTong 501mv2, HP Thin Client T5325, LG N1T1, Linksys EA4500, Lenovo/Iomega ix2-ng, Toshiba Canvio Home NAS, Lenovo Iomega EZ, Dell KACE M300, Freecom Silverstore HNCN2, DNS-320-B1, Medion P89634, Netgear Ready NAS Duo v2, Lenovo/Iomega ix2-dl, CTera C200 V1, Synology DS413j (work in progress), and all other Kirkwood plugs that are already in the mainline.
Re: WD My Cloud EX4 help request March 30, 2025 06:15PM |
Registered: 25 days ago Posts: 15 |
Re: WD My Cloud EX4 help request March 30, 2025 08:58PM |
Admin Registered: 14 years ago Posts: 19,549 |
help printenv bdinfo mii info mdio list md.l 0xF1010000 8 md.l 0xF1010100 1 md.l 0xF1010140 1Note that some commands above might fail (not available in this stock u-boot build).
dmesg ethtool eth0
Re: WD My Cloud EX4 help request March 31, 2025 07:22PM |
Registered: 25 days ago Posts: 15 |
console=ttyS0,115200 max_loop=32 :::DB88FXX81:egiga0:nonewhich I thought the last bit may help with the ethernet but it did not, as the bootlogs indicate it was not recognized by the kernel and it would be passed to userspace.
Re: WD My Cloud EX4 help request March 31, 2025 10:00PM |
Admin Registered: 14 years ago Posts: 19,549 |
> console=ttyS0,115200 max_loop=32 > :::DB88FXX81:egiga0:none >> which I thought the last bit may help with the
Re: WD My Cloud EX4 help request March 31, 2025 10:49PM |
Admin Registered: 14 years ago Posts: 19,549 |
kirkwood-wd-ex4.dtb kirkwood-wd-ex4.dts
setenv bootcmd 'setenv ipaddr 192.168.0.154; setenv serverip 192.168.0.110;tftp 0x00a00000 uImage;tftp 02000000 uInitrd; bootm 0x00a00000 0x02000000"with
0x800000 for uImage 0x2100000 for uInitrd
Re: WD My Cloud EX4 help request March 31, 2025 11:54PM |
Registered: 25 days ago Posts: 15 |
Re: WD My Cloud EX4 help request April 01, 2025 12:56AM |
Admin Registered: 14 years ago Posts: 19,549 |
setenv bootargs 'root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial' setenv bootcmd 'setenv ipaddr 192.168.0.154; setenv serverip 192.168.0.110;tftp 0x800000 uImage;tftp 0x2100000 uInitrd; bootm 0x800000 0x2100000' boot
Re: WD My Cloud EX4 help request April 01, 2025 11:59AM |
Registered: 25 days ago Posts: 15 |
Re: WD My Cloud EX4 help request April 01, 2025 02:09PM |
Admin Registered: 14 years ago Posts: 19,549 |
[ 13.602158][ T178] EXT4-fs (sda1): mounted filesystem 65b0aaad-8deb-4da3-96d8-67262cb74c1a ro with ordered data mode. Quota mode: none. [ 13.889997][ T1] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 [ 13.898326][ T1] CPU: 0 UID: 0 PID: 1 Comm: init Not tainted 6.13.8-kirkwood-tld-1 #1 d786cb445a55a57f0ba1beeb464768952359b8d7 [ 13.909926][ T1] Hardware name: Marvell Kirkwood (Flattened Device Tree) [ 13.916855][ T1] Call trace: [ 13.916866][ T1] unwind_backtrace from show_stack+0x10/0x14 [ 13.925989][ T1] show_stack from panic+0xf0/0x340 [ 13.931026][ T1] panic from do_exit+0x25c/0x9ec [ 13.935899][ T1] do_exit from sys_exit_group+0x0/0x14 [ 13.941290][ T1] sys_exit_group from sys_exit_group+0x10/0x14 [ 13.947364][ T1] sys_exit_group from ret_fast_syscall+0x0/0x44 [ 13.953524][ T1] Exception stack(0xa0819fa8 to 0xa0819ff0) [ 13.959247][ T1] 9fa0: 011115a0 00000004 00000001 00000000 00000001 01111190 [ 13.968077][ T1] 9fc0: 011115a0 00000004 00000001 000000f8 00000000 76f9bd80 00000000 004ec4a8 [ 13.976905][ T1] 9fe0: 004edacc 7efa69e8 004668c4 76e9e544 [ 13.982631][ T1] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100 ]---
Bytes transferred = 5776275 (582393 hex) ## Booting image at 00800000 ... Image Name: Linux-6.13.8-kirkwood-tld-1 Created: 2025-04-01 4:27:48 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6010125 Bytes = 5.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-6.6.3-kirkwood-tld-1 Created: 2025-03-30 20:45:40 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5776211 Bytes = 5.5 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK
Re: WD My Cloud EX4 help request April 01, 2025 04:27PM |
Admin Registered: 14 years ago Posts: 19,549 |
Re: WD My Cloud EX4 help request April 01, 2025 06:36PM |
Registered: 25 days ago Posts: 15 |
Re: WD My Cloud EX4 help request April 01, 2025 07:17PM |
Admin Registered: 14 years ago Posts: 19,549 |
ethtool -s eth0 autoneg off
rename /end0=eth0 auto lo eth0 iface lo inet loopback iface eth0 inet dhcp
ethtool eth0 ethtool eth1 lspci lspci -v lsusb lsusb -v lsblk
Re: WD My Cloud EX4 help request April 01, 2025 11:37PM |
Registered: 25 days ago Posts: 15 |
Re: WD My Cloud EX4 help request April 02, 2025 01:54AM |
Admin Registered: 14 years ago Posts: 19,549 |
[ 4.839159][ T55] ata1.00: ATA-8: WDC WD2500AAKX-083CA1, 19.01H19, max UDMA/100 [ 4.846623][ T55] ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 4.859035][ T55] ata1.00: configured for UDMA/100 [ 4.874516][ T12] scsi 0:0:0:0: Direct-Access ATA WDC WD2500AAKX-0 1H19 PQ: 0 ANSI: 5 [ 4.884609][ T63] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB) [ 4.894106][ T63] sd 0:0:0:0: [sda] Write Protect is off [ 4.899752][ T63] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 4.909764][ T63] sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes [ 4.980402][ T63] sda: sda1 [ 4.983855][ T63] sd 0:0:0:0: [sda] Attached SCSI disk
root@debian:~# lspci 00:01.0 PCI bridge: Marvell Technology Group Ltd. Device 6282 (rev 01) 00:02.0 PCI bridge: Marvell Technology Group Ltd. Device 6282 (rev 01) 01:00.0 SCSI storage controller: Marvell Technology Group Ltd. 88SX7042 PCI-e 4-port SATA-II (rev 02) 02:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)And to answer your question before, the USB 3.0 controller is on the PCIe bus. Using the right definition in the DTS activated the controller.
[ 4.365853][ T1] Scanning device for bad blocks [ 4.526094][ T1] 3 fixed-partitions partitions found on MTD device orion_nand [ 4.533551][ T1] Creating 3 MTD partitions on "orion_nand": [ 4.539417][ T1] 0x000000000000-0x000000100000 : "uboot" [ 4.545677][ T1] 0x000000100000-0x000000500000 : "uImage" [ 4.551925][ T1] 0x000000500000-0x000020000000 : "root" [ 4.557508][ T1] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0xfb00000
setenv bootargs 'root=LABEL=rootfs console=ttyS0,115200 earlyprintk=serial'
[ 5.858994][ T1] rtc-mv f1010300.rtc: internal RTC not tickingThis box probably use a different RTC chip. Stock bootlog might have this info.
Re: WD My Cloud EX4 help request April 02, 2025 12:34PM |
Registered: 25 days ago Posts: 15 |
Re: WD My Cloud EX4 help request April 02, 2025 02:38PM |
Admin Registered: 14 years ago Posts: 19,549 |
Re: WD My Cloud EX4 help request April 02, 2025 04:09PM |
Registered: 25 days ago Posts: 15 |
[ 260.744801][ C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 261.778001][ C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down [ 261.785400][ C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 262.818045][ C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
Re: Debian on WD My Cloud EX4 April 02, 2025 06:10PM |
Admin Registered: 14 years ago Posts: 19,549 |
Quote
I tried again with a dumb switch connected directly to the router and directly to the router it's self and got the exact same messages repeating in the log
Re: WD My Cloud EX4 help request April 03, 2025 12:51AM |
Admin Registered: 14 years ago Posts: 19,549 |
Quote
Remaining minor issues:
1. MTDs
[ 4.365853][ T1] Scanning device for bad blocks
[ 4.526094][ T1] 3 fixed-partitions partitions found on MTD device orion_nand
[ 4.533551][ T1] Creating 3 MTD partitions on "orion_nand":
[ 4.539417][ T1] 0x000000000000-0x000000100000 : "uboot"
[ 4.545677][ T1] 0x000000100000-0x000000500000 : "uImage"
[ 4.551925][ T1] 0x000000500000-0x000020000000 : "root"
[ 4.557508][ T1] mtd: partition "root" extends beyond the end of device "orion_nand" -- size truncated to 0xfb00000
I need to look at the stock u-boot envs to see what it should be.
Re: Debian on WD My Cloud EX4 April 04, 2025 07:51AM |
Registered: 25 days ago Posts: 15 |
Re: Debian on WD My Cloud EX4 April 07, 2025 09:03PM |
Registered: 25 days ago Posts: 15 |
Marvell>> printenv baudrate=115200 loads_echo=0 ipaddr=2.66.66.200 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes stdin=serial stdout=serial stderr=serial console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0xff00000@0x100000(root) mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes MALLOC_len=1 ethprime=egiga0 netbsd_en=no vxworks_en=no bootargs_root=root=/dev/nfs rw bootargs_end=:::RD88FXX81:eth0:none image_name=uImage bootcmd=nand read.e 0xa00000 0x100000 0x500000;nand read.e 0xf00000 0x600000 0x500000;bootm 0xa00000 0xf00000 bootargs=root=/dev/ram console=ttyS0,115200 max_loop=32 :::DB88FXX81:egiga0:none standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvNetConfig) $(mvPhoneConfig); bootm 0x2000000; lcd0_enable=0 lcd0_params=640x480-16@60 bootdelay=1 disaMvPnp=no ethaddr=00:50:43:00:02:02 ethmtu=1500 eth1addr=00:50:43:00:02:02 eth1mtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 nandEcc=1bit pcieTune=no pcieTune1=no ethact=egiga0 Environment size: 1289/131068 bytes Marvell>>
Re: Debian on WD My Cloud EX4 April 07, 2025 09:26PM |
Admin Registered: 14 years ago Posts: 19,549 |
> mtdparts=nand_mtd:0xc0000@0(uboot)ro,0xff00000@0x100000(root)
Re: Debian on WD My Cloud EX4 April 08, 2025 12:31AM |
Admin Registered: 14 years ago Posts: 19,549 |
Re: Debian on WD My Cloud EX4 April 10, 2025 02:41PM |
Registered: 25 days ago Posts: 15 |
Re: Debian on WD My Cloud EX4 April 10, 2025 03:50PM |
Admin Registered: 14 years ago Posts: 19,549 |
Re: Debian on WD My Cloud EX4 April 10, 2025 05:47PM |
Admin Registered: 14 years ago Posts: 19,549 |
Bytes transferred = 5776275 (582393 hex) ## Booting image at 00800000 ... Image Name: Linux-6.13.8-kirkwood-tld-1 Created: 2025-04-10 19:34:15 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 706 Bytes = 0.7 kB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK
Re: Debian on WD My Cloud EX4 April 10, 2025 07:38PM |
Registered: 25 days ago Posts: 15 |
Re: Debian on WD My Cloud EX4 April 10, 2025 09:30PM |
Admin Registered: 14 years ago Posts: 19,549 |