Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 02, 2022 01:37PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 02, 2022 01:59PM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 02, 2022 03:31PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 02, 2022 03:37PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
The connector has the following pin map:
5 o <-- RX Data
4 (No pin)
3 o — N/C (3.3V)
2 o — GND
1 o --> TX Data
Quote
On the PCB inside the EX2, there is an (un)populated 5pin header on the back (side opposite the CPU). You can see the header I am talking about in the bottom image on this review: http://www.eteknix.com/western-digital-ex2-2-bay-8tb-my-cloud-nas-review/2/ 59
In my earlier post I mentioned the connection order for the pins.
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 02, 2022 04:19PM |
Registered: 2 years ago Posts: 142 |
Quote
The connector has the following pin map:
5 o <-- RX Data
4 (No pin)
3 o — N/C (3.3V)
2 o — GND
1 o --> TX Data
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 02, 2022 04:39PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 02, 2022 04:44PM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 03:08AM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 05:31AM |
Registered: 2 years ago Posts: 142 |
## Usage # Update Kernel if you have access to shell wget https://raw.githubusercontent.com/vzhilov/WDMC-Ex2-Ultra/master/uImage (--no-check-certificate in case of error?) dd if=/dev/zero of=/dev/mtdblock1 dd if=uImage of=/dev/mtdblock1 # Update ramdisk if you have access to shell wget https://raw.githubusercontent.com/vzhilov/WDMC-Ex2-Ultra/master/uInitrd dd if=/dev/zero of=/dev/mtdblock2 dd if=uInitrd of=/dev/mtdblock2
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 07:22AM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 12:44PM |
Admin Registered: 13 years ago Posts: 18,997 |
dmesg mount cat /proc/mtd
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 12:48PM |
Registered: 2 years ago Posts: 142 |
Booting Linux on physical CPU 0x0 Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Initializing cgroup subsys cpuacct Linux version 3.10.70 (root@build64) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #5 SMP Tue Dec 27 22:04:20 +05 2016 CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: Marvell Armada 385 Development Board bootconsole [earlycon0] enabled Memory policy: ECC disabled, Data cache writealloc On node 0 totalpages: 262144 free_area_init_node: node 0, pgdat c07cc600, node_mem_map c118f000 Normal zone: 1520 pages used for memmap Normal zone: 0 pages reserved Normal zone: 194560 pages, LIFO batch:31 HighMem zone: 528 pages used for memmap HighMem zone: 67584 pages, LIFO batch:15 PERCPU: Embedded 7 pages/cpu @c199d000 s7360 r8192 d13120 u32768 pcpu-alloc: s7360 r8192 d13120 u32768 alloc=8*4096 pcpu-alloc: [0] 0 [0] 1 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260624 Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/ram console=ttyS0,115200 PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) allocated 2097152 bytes of page_cgroup please try 'cgroup_disable=memory' option if you don't want memory cgroups Memory: 1024MB = 1024MB total Memory: 1026024k/1026024k available, 22552k reserved, 270336K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xf0000000 - 0xff000000 ( 240 MB) lowmem : 0xc0000000 - 0xef800000 ( 760 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc0743f38 (7408 kB) .init : 0xc0744000 - 0xc0781cc0 ( 248 kB) .data : 0xc0782000 - 0xc07cdb60 ( 303 kB) .bss : 0xc07cdb60 - 0xc0889210 ( 750 kB) Hierarchical RCU implementation. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. NR_IRQS:16 nr_irqs:16 16 LSP version: linux-3.10.70-2015_T1.1p7 sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms L310 cache controller enabled l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B Console: colour dummy device 80x30 Calibrating delay loop... 2655.84 BogoMIPS (lpj=13279232) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Initializing cgroup subsys memory Initializing cgroup subsys devices Initializing cgroup subsys freezer Initializing cgroup subsys blkio CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0xc05946d8 - 0xc0594730 mvebu-pmsu: Initializing Power Management Service Unit Initializing CPU Reset module CPU1: Booted secondary processor CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 Brought up 2 CPUs SMP: Total of 2 processors activated (5311.69 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4 xor: measuring software checksum speed arm4regs : 2365.600 MB/sec 8regs : 1630.000 MB/sec 32regs : 1658.400 MB/sec xor: using function: arm4regs (2365.600 MB/sec) pinctrl core: initialized pinctrl subsystem regulator-dummy: no parameters NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated bio: create slab <bio-0> at 0 raid6: int32x1 199 MB/s raid6: int32x2 274 MB/s raid6: int32x4 274 MB/s raid6: int32x8 303 MB/s raid6: using algorithm int32x8 (303 MB/s) raid6: using intx1 recovery algorithm mvebu-pcie pcie-controller.5: PCIe0.0: link down mvebu-pcie pcie-controller.5: PCIe1.0: link down mvebu-pcie pcie-controller.5: PCI host bridge to bus 0000:00 pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff] pci_bus 0000:00: root bus resource [bus 00-ff] pci 0000:00:01.0: [11ab:7846] type 01 class 0x060400 pci 0000:00:02.0: [11ab:7846] type 01 class 0x060400 PCI: bus0: Fast back to back transfers disabled pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring PCI: bus1: Fast back to back transfers enabled pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 PCI: bus2: Fast back to back transfers enabled pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02 pci 0000:00:01.0: PCI bridge to [bus 01] pci 0000:00:02.0: PCI bridge to [bus 02] PCI: enabling device 0000:00:01.0 (0140 -> 0143) PCI: enabling device 0000:00:02.0 (0140 -> 0143) mv-vbus-regulator usb3-vbus-gpio.9: could not find pctldev for node /soc/internal-regs/pinctrl/xhci0-vbus-pins, deferring probe platform usb3-vbus-gpio.9: Driver mv-vbus-regulator requests probe deferral SCSI subsystem initialized libata version 3.00 loaded. usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> PTP clock support registered Switching to clocksource armada_370_xp_clocksource NET: Registered protocol family 2 TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 4, 65536 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP: reno registered UDP hash table entries: 512 (order: 2, 16384 bytes) UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. PCI: CLS 64 bytes, default 64 Trying to unpack rootfs image as initramfs... Freeing initrd memory: 2612K (c0f01000 - c118e000) bounce pool size: 64 pages VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) squashfs: version 4.0 (2009/01/31) Phillip Lougher Installing knfsd (copyright (C) 1996 okir@monad.swb.de). fuse init (API version 7.22) SGI XFS with security attributes, large block/inode numbers, no debug enabled msgmni has been set to 1481 async_tx: api initialized (async) Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver mv_xor f1060800.xor: Marvell shared XOR driver mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq ) mv_xor f1060800.xor: freeing 1 in use descriptors! mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c ) mv_xor f1060900.xor: Marvell shared XOR driver mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq ) mv_xor f1060900.xor: freeing 1 in use descriptors! mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c ) Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A console [ttyS0] enabled, bootconsole disabled f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A brd: module loaded loop: module loaded ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs scsi0 : ahci_mv_platform scsi1 : ahci_mv_platform ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58 ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58 armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64 Bad block table found at page 131008, version 0x01 Bad block table found at page 130944, version 0x01 8 ofpart partitions found on MTD device armada-nand Creating 8 MTD partitions on "armada-nand": 0x000000000000-0x000000500000 : "U-Boot" 0x000000500000-0x000000a00000 : "uImage" 0x000000a00000-0x000000f00000 : "uRamdisk" 0x000000f00000-0x00000c800000 : "image.cfs" 0x00000c800000-0x00000d700000 : "rescue fw" 0x00000d700000-0x00000eb00000 : "config" 0x00000eb00000-0x00000f500000 : "reserve1" 0x00000f500000-0x00000ff00000 : "reserve2" SoC: model = 0x6820, revision = 0x4 mvPncVirtBase = 0xf1400000, pncTcamSize = 1024 o 3 Giga ports supported o SKB recycle supported for SWF (Disabled) o NETA acceleration mode 4 o BM supported for CPU: 4 BM pools o PnC supported (Enabled) o RX Queue support: 8 Queues * 256 Descriptors o TX Queue support: 8 Queues * 532 Descriptors o GSO supported o GRO supported o Receive checksum offload supported o Transmit checksum offload supported o Driver ERROR statistics enabled o Driver INFO statistics enabled o Driver DEBUG statistics enabled port #2: is_sgmii=1, is_rgmii=0, phy_addr=0 o Loading network interface(s) for port #2: cpu_mask=0x3, tx_csum_limit=2048 o Port 2 is connected to Linux netdevice o eth0, ifindex = 2, GbE port = 2 giga p=2: mtu=1500, mac=00:50:43:02:02:03 (platform) libphy: orion_mdio_bus: probed mdio_bus f1072004.mdio-mi: cannot get PHY at address 1 ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver ehci-orion: EHCI orion driver orion-ehci f1058000.usb: EHCI Host Controller orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1 orion-ehci f1058000.usb: irq 50, io mem 0xf1058000 orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected xhci-hcd f10f0000.usb3: xHCI Host Controller xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2 xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected xhci-hcd f10f0000.usb3: xHCI Host Controller xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 3-0:1.0: USB hub found hub 3-0:1.0: 1 port detected xhci-hcd f10f8000.usb3: xHCI Host Controller xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4 xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 4-0:1.0: USB hub found hub 4-0:1.0: 1 port detected xhci-hcd f10f8000.usb3: xHCI Host Controller xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 5-0:1.0: USB hub found hub 5-0:1.0: 1 port detected usbcore: registered new interface driver usb-storage mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0 ata2: SATA link down (SStatus 0 SControl 300) ata1: SATA link down (SStatus 0 SControl 300) i2c /dev entries driver armada_thermal f10e4078.thermal: Overheat threshold between 92..107 md: linear personality registered for level -1 md: raid0 personality registered for level 0 md: raid1 personality registered for level 1 md: raid10 personality registered for level 10 md: raid6 personality registered for level 6 md: raid5 personality registered for level 5 md: raid4 personality registered for level 4 device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com dm_crypt using the OCF package. ledtrig-cpu: registered to indicate activity on CPUs armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2 armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1) armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xfffff mvCesaInit: channels=2, session=640, queue=256 armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode cesadev_init(c0763ebc) TCP: cubic registered NET: Registered protocol family 17 8021q: 802.1Q VLAN Support v1.8 VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 registered taskstats version 1 regulator-dummy: disabling xhci0-vbus: 5000 mV input: buttons.4 as /devices/soc.0/internal-regs.1/buttons.4/input/input0 ### dt-test ### No testcase data in device tree; not running tests Freeing unused kernel memory: 244K (c0744000 - c0781000) usb 2-1: new high-speed USB device number 2 using xhci-hcd usb 2-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes usb 2-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes usb-storage 2-1:1.0: USB Mass Storage device detected scsi2 : usb-storage 2-1:1.0 scsi 2:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4 sd 2:0:0:0: [sda] 15131636 512-byte logical blocks: (7.74 GB/7.21 GiB) sd 2:0:0:0: Attached scsi generic sg0 type 0 sd 2:0:0:0: [sda] Write Protect is off sd 2:0:0:0: [sda] Mode Sense: 45 00 00 00 sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sd 2:0:0:0: [sda] Attached SCSI removable disk pool #2: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added eth0: link up eth0: started
/ # mount rootfs on / type rootfs (rw) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=128253,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /run type tmpfs (rw,nosuid,relatime,size=205776k,mode=755) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) /dev/sda1 on /mnt type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=850,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/ # cat /proc/mtd dev: size erasesize name mtd0: 00500000 00020000 "U-Boot" mtd1: 00500000 00020000 "uImage" mtd2: 00500000 00020000 "uRamdisk" mtd3: 0b900000 00020000 "image.cfs" mtd4: 00f00000 00020000 "rescue fw" mtd5: 01400000 00020000 "config" mtd6: 00a00000 00020000 "reserve1" mtd7: 00a00000 00020000 "reserve2"
Quote
Why not using the latest Debian rootfs nad kernel on USB?
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 01:03PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
Linux version 3.10.70 (root@build64) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #5 SMP Tue Dec 27 22:04:20 +05 2016
....
Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/ram console=ttyS0,115200
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 01:05PM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 01:32PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 01:54PM |
Registered: 2 years ago Posts: 142 |
/ # ls /mnt/boot uImage uRamdisk / # ls -l /mnt/boot -rwxr-xr-x 1 root 0 4177681 Nov 3 2022 uImage -rwxr-xr-x 1 root 0 2679866 Nov 3 2022 uRamdisk
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 03:37PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
3. Create uImage with DTB appended. I am using the Zyxel NAS326 as an example here. Please replace armada-380-zyxel-nas326.dtb below with the appropriate DTB name for your box.
cd /media/sdb1/boot
cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt
cat dts/armada-380-zyxel-nas326.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.8-mvebu-tld-1 -d zImage.fdt uImage
Quote
/ # ls /mnt/boot
uImage uRamdisk
/ # ls -l /mnt/boot
-rwxr-xr-x 1 root 0 4177681 Nov 3 2022 uImage
-rwxr-xr-x 1 root 0 2679866 Nov 3 2022 uRamdisk
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 03:39PM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 04:05PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 04:12PM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 04:24PM |
Admin Registered: 13 years ago Posts: 18,997 |
which tar which mkimage
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 04:26PM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 03, 2022 05:21PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 04, 2022 01:14AM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 04, 2022 03:30AM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 04, 2022 03:40AM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 04, 2022 06:36AM |
Registered: 2 years ago Posts: 142 |
>Quote
3. Create uImage with DTB appended. I am
> using the Zyxel NAS326 as an example here. Please
> replace armada-380-zyxel-nas326.dtb below with the
> appropriate DTB name for your box.
>
> cd /media/sdb1/boot
> cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt
> cat dts/armada-380-zyxel-nas326.dtb >> zImage.fdt
> mkimage -A arm -O linux -T kernel -C none -a
> 0x00008000 -e 0x00008000 -n
> Linux-5.13.8-mvebu-tld-1 -d zImage.fdt
> uImage
>Quote
/ # ls /mnt/boot
> uImage uRamdisk
> / # ls -l /mnt/boot
> -rwxr-xr-x 1 root 0 4177681 Nov 3
> 2022 uImage
> -rwxr-xr-x 1 root 0 2679866 Nov 3
> 2022 uRamdisk
/ # dmesg Booting Linux on physical CPU 0x0 Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Initializing cgroup subsys cpuacct Linux version 3.10.70 (root@build64) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #5 SMP Tue Dec 27 22:04:20 +05 2016 CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: Marvell Armada 385 Development Board bootconsole [earlycon0] enabled Memory policy: ECC disabled, Data cache writealloc On node 0 totalpages: 262144 free_area_init_node: node 0, pgdat c07cc600, node_mem_map c118f000 Normal zone: 1520 pages used for memmap Normal zone: 0 pages reserved Normal zone: 194560 pages, LIFO batch:31 HighMem zone: 528 pages used for memmap HighMem zone: 67584 pages, LIFO batch:15 PERCPU: Embedded 7 pages/cpu @c199d000 s7360 r8192 d13120 u32768 pcpu-alloc: s7360 r8192 d13120 u32768 alloc=8*4096 pcpu-alloc: [0] 0 [0] 1 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260624 Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/ram console=ttyS0,115200 PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) allocated 2097152 bytes of page_cgroup please try 'cgroup_disable=memory' option if you don't want memory cgroups Memory: 1024MB = 1024MB total Memory: 1026024k/1026024k available, 22552k reserved, 270336K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xf0000000 - 0xff000000 ( 240 MB) lowmem : 0xc0000000 - 0xef800000 ( 760 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc0743f38 (7408 kB) .init : 0xc0744000 - 0xc0781cc0 ( 248 kB) .data : 0xc0782000 - 0xc07cdb60 ( 303 kB) .bss : 0xc07cdb60 - 0xc0889210 ( 750 kB) Hierarchical RCU implementation. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. NR_IRQS:16 nr_irqs:16 16 LSP version: linux-3.10.70-2015_T1.1p7 sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms L310 cache controller enabled l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B Console: colour dummy device 80x30 Calibrating delay loop... 2655.84 BogoMIPS (lpj=13279232) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Initializing cgroup subsys memory Initializing cgroup subsys devices Initializing cgroup subsys freezer Initializing cgroup subsys blkio CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0xc05946d8 - 0xc0594730 mvebu-pmsu: Initializing Power Management Service Unit Initializing CPU Reset module CPU1: Booted secondary processor CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 Brought up 2 CPUs SMP: Total of 2 processors activated (5311.69 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4 xor: measuring software checksum speed arm4regs : 2365.600 MB/sec 8regs : 1630.000 MB/sec 32regs : 1658.800 MB/sec xor: using function: arm4regs (2365.600 MB/sec) pinctrl core: initialized pinctrl subsystem regulator-dummy: no parameters NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated bio: create slab <bio-0> at 0 raid6: int32x1 199 MB/s raid6: int32x2 274 MB/s raid6: int32x4 274 MB/s raid6: int32x8 303 MB/s raid6: using algorithm int32x8 (303 MB/s) raid6: using intx1 recovery algorithm mvebu-pcie pcie-controller.5: PCIe0.0: link down mvebu-pcie pcie-controller.5: PCIe1.0: link down mvebu-pcie pcie-controller.5: PCI host bridge to bus 0000:00 pci_bus 0000:00: root bus resource [io 0x1000-0xfffff] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff] pci_bus 0000:00: root bus resource [bus 00-ff] pci 0000:00:01.0: [11ab:7846] type 01 class 0x060400 pci 0000:00:02.0: [11ab:7846] type 01 class 0x060400 PCI: bus0: Fast back to back transfers disabled pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring PCI: bus1: Fast back to back transfers enabled pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 PCI: bus2: Fast back to back transfers enabled pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02 pci 0000:00:01.0: PCI bridge to [bus 01] pci 0000:00:02.0: PCI bridge to [bus 02] PCI: enabling device 0000:00:01.0 (0140 -> 0143) PCI: enabling device 0000:00:02.0 (0140 -> 0143) mv-vbus-regulator usb3-vbus-gpio.9: could not find pctldev for node /soc/internal-regs/pinctrl/xhci0-vbus-pins, deferring probe platform usb3-vbus-gpio.9: Driver mv-vbus-regulator requests probe deferral SCSI subsystem initialized libata version 3.00 loaded. usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> PTP clock support registered Switching to clocksource armada_370_xp_clocksource NET: Registered protocol family 2 TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 4, 65536 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP: reno registered UDP hash table entries: 512 (order: 2, 16384 bytes) UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. PCI: CLS 64 bytes, default 64 Trying to unpack rootfs image as initramfs... Freeing initrd memory: 2612K (c0f01000 - c118e000) bounce pool size: 64 pages VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) squashfs: version 4.0 (2009/01/31) Phillip Lougher Installing knfsd (copyright (C) 1996 okir@monad.swb.de). fuse init (API version 7.22) SGI XFS with security attributes, large block/inode numbers, no debug enabled msgmni has been set to 1481 async_tx: api initialized (async) Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver mv_xor f1060800.xor: Marvell shared XOR driver mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq ) mv_xor f1060800.xor: freeing 1 in use descriptors! mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c ) mv_xor f1060900.xor: Marvell shared XOR driver mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq ) mv_xor f1060900.xor: freeing 1 in use descriptors! mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c ) Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A console [ttyS0] enabled, bootconsole disabled f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A brd: module loaded loop: module loaded ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs scsi0 : ahci_mv_platform scsi1 : ahci_mv_platform ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58 ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58 armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64 Bad block table found at page 131008, version 0x01 Bad block table found at page 130944, version 0x01 8 ofpart partitions found on MTD device armada-nand Creating 8 MTD partitions on "armada-nand": 0x000000000000-0x000000500000 : "U-Boot" 0x000000500000-0x000000a00000 : "uImage" 0x000000a00000-0x000000f00000 : "uRamdisk" 0x000000f00000-0x00000c800000 : "image.cfs" 0x00000c800000-0x00000d700000 : "rescue fw" 0x00000d700000-0x00000eb00000 : "config" 0x00000eb00000-0x00000f500000 : "reserve1" 0x00000f500000-0x00000ff00000 : "reserve2" SoC: model = 0x6820, revision = 0x4 mvPncVirtBase = 0xf1400000, pncTcamSize = 1024 o 3 Giga ports supported o SKB recycle supported for SWF (Disabled) o NETA acceleration mode 4 o BM supported for CPU: 4 BM pools o PnC supported (Enabled) o RX Queue support: 8 Queues * 256 Descriptors o TX Queue support: 8 Queues * 532 Descriptors o GSO supported o GRO supported o Receive checksum offload supported o Transmit checksum offload supported o Driver ERROR statistics enabled o Driver INFO statistics enabled o Driver DEBUG statistics enabled port #2: is_sgmii=1, is_rgmii=0, phy_addr=0 o Loading network interface(s) for port #2: cpu_mask=0x3, tx_csum_limit=2048 o Port 2 is connected to Linux netdevice o eth0, ifindex = 2, GbE port = 2 giga p=2: mtu=1500, mac=00:50:43:02:02:03 (platform) libphy: orion_mdio_bus: probed mdio_bus f1072004.mdio-mi: cannot get PHY at address 1 ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver ehci-orion: EHCI orion driver orion-ehci f1058000.usb: EHCI Host Controller orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1 orion-ehci f1058000.usb: irq 50, io mem 0xf1058000 orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected xhci-hcd f10f0000.usb3: xHCI Host Controller xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2 xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected xhci-hcd f10f0000.usb3: xHCI Host Controller xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 3-0:1.0: USB hub found hub 3-0:1.0: 1 port detected xhci-hcd f10f8000.usb3: xHCI Host Controller xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4 xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 4-0:1.0: USB hub found hub 4-0:1.0: 1 port detected xhci-hcd f10f8000.usb3: xHCI Host Controller xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 5-0:1.0: USB hub found hub 5-0:1.0: 1 port detected usbcore: registered new interface driver usb-storage mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0 ata1: SATA link down (SStatus 0 SControl 300) ata2: SATA link down (SStatus 0 SControl 300) i2c /dev entries driver armada_thermal f10e4078.thermal: Overheat threshold between 92..107 md: linear personality registered for level -1 md: raid0 personality registered for level 0 md: raid1 personality registered for level 1 md: raid10 personality registered for level 10 md: raid6 personality registered for level 6 md: raid5 personality registered for level 5 md: raid4 personality registered for level 4 device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com dm_crypt using the OCF package. ledtrig-cpu: registered to indicate activity on CPUs armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2 armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1) armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xfffff mvCesaInit: channels=2, session=640, queue=256 armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode cesadev_init(c0763ebc) TCP: cubic registered NET: Registered protocol family 17 8021q: 802.1Q VLAN Support v1.8 VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 registered taskstats version 1 regulator-dummy: disabling xhci0-vbus: 5000 mV input: buttons.4 as /devices/soc.0/internal-regs.1/buttons.4/input/input0 ### dt-test ### No testcase data in device tree; not running tests Freeing unused kernel memory: 244K (c0744000 - c0781000) usb 2-1: new high-speed USB device number 2 using xhci-hcd usb 2-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes usb 2-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes usb-storage 2-1:1.0: USB Mass Storage device detected scsi2 : usb-storage 2-1:1.0 usb 4-1: new high-speed USB device number 2 using xhci-hcd usb 4-1: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes usb 4-1: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes usb-storage 4-1:1.0: USB Mass Storage device detected scsi3 : usb-storage 4-1:1.0 scsi 2:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4 sd 2:0:0:0: [sda] 15131636 512-byte logical blocks: (7.74 GB/7.21 GiB) sd 2:0:0:0: Attached scsi generic sg0 type 0 sd 2:0:0:0: [sda] Write Protect is off sd 2:0:0:0: [sda] Mode Sense: 45 00 00 00 sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sd 2:0:0:0: [sda] Attached SCSI removable disk scsi 3:0:0:0: Direct-Access PNY USB 2.0 FD 1100 PQ: 0 ANSI: 4 sd 3:0:0:0: [sdb] 7975296 512-byte logical blocks: (4.08 GB/3.80 GiB) sd 3:0:0:0: Attached scsi generic sg1 type 0 sd 3:0:0:0: [sdb] Write Protect is off sd 3:0:0:0: [sdb] Mode Sense: 43 00 00 00 sd 3:0:0:0: [sdb] No Caching mode page found sd 3:0:0:0: [sdb] Assuming drive cache: write through sd 3:0:0:0: [sdb] No Caching mode page found sd 3:0:0:0: [sdb] Assuming drive cache: write through sdb: sdb1 sd 3:0:0:0: [sdb] No Caching mode page found sd 3:0:0:0: [sdb] Assuming drive cache: write through sd 3:0:0:0: [sdb] Attached SCSI removable disk pool #2: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added eth0: link up eth0: started
/ # mount rootfs on / type rootfs (rw) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=128253,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /run type tmpfs (rw,nosuid,relatime,size=205776k,mode=755) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
/ # cat /proc/mtd dev: size erasesize name mtd0: 00500000 00020000 "U-Boot" mtd1: 00500000 00020000 "uImage" mtd2: 00500000 00020000 "uRamdisk" mtd3: 0b900000 00020000 "image.cfs" mtd4: 00f00000 00020000 "rescue fw" mtd5: 01400000 00020000 "config" mtd6: 00a00000 00020000 "reserve1" mtd7: 00a00000 00020000 "reserve2"
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 04, 2022 07:36AM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 04, 2022 11:40AM |
Registered: 2 years ago Posts: 142 |
Re: WD My Cloud Ex2: Kernel v5.10 with Debian Bullseye and OMV November 04, 2022 12:59PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
new uImage, old RamDisk in USB1 + USB2 attached -> Doesn't boot
new uImage, new RamDisk in USB1 + USB2 attached -> Doesn't boot
new uImage, new RamDisk, renamed as uInitrd in USB1 + USB2 attached ->It boots but in WD recovery, no ssh access just web to upload a firmware
new uImage, old RamDisk in USB1+hardrive with rootfs -> Doesn't boot
new uImage, old RamDisk renamed as uInitrd in USB1+hardrive with rootfs ->It boots but in WD recovery, no ssh access just web to upload a firmware
Quote
Checking this:
https://github.com/vzhilov/WDMC-Ex2-Ultra/tree/master/1.UBoot
I have dumped the u-boot and the size is significantly different:
-rwxr-xr-x 1 root 0 5.0M Jan 1 00:03 u-boot.org
vs
-rw-r--r-- 1 root root 933K Nov 4 17:51 u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin
-rw-r--r-- 1 root root 936K Nov 4 17:51 u-boot-a38x-GrandTeton_2014T3_PORQUE-nand.bin
I don't know if I could write it into the nand.