fvdw-sl on WD My Cloud

Re: fvdw-sl on WD My Cloud

Postby fvdw » Wed Aug 24, 2022 10:47 am

matt_max wrote:@fvdw Correct me if I'm wrong - I need to:
  • copy attached uImage to /dev/sda6
  • extract attached lib-config-3-2-archive.tgz and just copy its content to /dev/md0 right?
What about kernel-debian.zip :scratch Copy its content to where? To /boot on /dev/md0?


Assuming the disk is is attached to your linux pc and is recognized as sdb
uImage must be written to sdb6 using dd on your linux pc

The lib archive.
Assemble the array /dev/md0 on your linux pc and mount it on /md0 and put the archive in the root folder (/) =/md0
and extract it in that folder.

The debian kernel goes to /dev/sdb6 just like the own compiled kernel, of course after prforming the trial with own kernel and if we still have the getty issue
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: fvdw-sl on WD My Cloud

Postby matt_max » Wed Aug 24, 2022 11:09 am

Now I understand. When I get back from work I'll test it.
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Re: fvdw-sl on WD My Cloud

Postby matt_max » Wed Aug 24, 2022 4:52 pm

First of all - I hope I did everything well... :?
So after I dd new uImage to /dev/sda6 and copy the contents of lib-config (there were the same files so I've changed originals to xxx.old) to root folder nothing has changed - still stop on T0. Output from console.
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Re: fvdw-sl on WD My Cloud

Postby fvdw » Wed Aug 24, 2022 5:35 pm

:crazy

I don't understand why we get these messages that needed fuction, modules can not be added to sysfs while they exist. Who did load them.??? :thinking

Well lets test the debian kernel. Write to /dev/sdb6 with your linux pc and boot your wd mycloud with it
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: fvdw-sl on WD My Cloud

Postby fvdw » Wed Aug 24, 2022 6:04 pm

The message appear from these two parameters in kernel command line
Code: Select all
debug initcall_debug


In case the debian kernel has same issue then if you have time we are going to try to adapt kernel command line and perform manual boot from barebox command line
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: fvdw-sl on WD My Cloud

Postby matt_max » Wed Aug 24, 2022 7:18 pm

When I dd kernel-debian to /dev/sda6 that is the output from console:
Code: Select all


barebox 2011.06.0 (Dec  9 2013 - 12:04:46)

Board: Mindspeed C2000
c2k_spi_probe
cfi_probe: cfi_flash base: 0xc0000000 size: 0x04000000
## Unknown FLASH on Bank at 0xc0000000 - Size = 0x00000000 = 0 MB
Using ENV from SPI Flash.
p=============================================================================q
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::WWWWWWWWW::::WWWWWWW::::::::WWWWWWW::DDDDDDDDDDDDDDDDD::::::::::::|
|:::::::::::WWWWWWWW::::WWWWWWWW:::::::WWWWWWW::DDDDDDDDDDDDDDDDDDDD::::::::::|
|:::::::::::WWWWWWWW:::WWWWWWWWW::::::WWWWWWW::DDDDDDDDDDDDDDDDDDDDDD:::::::::|
|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::DDDDDDDDDDD::::::::|
|:::::::::::WWWWWWW:::WWWWWWWWWW::::WWWWWWW::DDDDDDDDD:::::::DDDDDDDDD::::::::|
|:::::::::::WWWWWWW::WWWWWWWWWWW:::WWWWWWW::DDDDDDDDD::::::::DDDDDDDDD::::::::|
|:::::::::::WWWWWW::WWWWWW::WWWWW:WWWWWWW::DDDDDDDDDD:::::::DDDDDDDDDD::::::::|
|:::::::::::WWWWWWWWWWWWW:::WWWWWWWWWWWW::DDDDDDDDDD::::::DDDDDDDDDDD:::::::::|
|:::::::::::WWWWWWWWWWWW::::WWWWWWWWWWW::DDDDDDDDDDD:::DDDDDDDDDDDDD::::::::::|
|:::::::::::WWWWWWWWWWW:::::WWWWWWWWWW::DDDDDDDDDDDDDDDDDDDDDDDDDD::::::::::::|
|:::::::::::WWWWWWWWWW::::::WWWWWWWWW::DDDDDDDDDDDDDDDDDDDDDDDDD::::::::::::::|
|:::::::::::WWWWWWWWW:::::::WWWWWWWW::DDDDDDDDDDDDDDDDDDDDDDDD::::::::::::::::|
|:::::::::::WWWWWWWW::::::::WWWWWWW::DDDDDDDDDDDDDDDDDDDD:::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
b=============================================================================d

 0

Copying Barebox from SPI Flash
BB Copying Done
## Starting Barebox at 0x01000000 ...


barebox 2011.06.0-svn10510-dirty3 (Dec  9 2013 - 12:04:00)

Board: Mindspeed C2000
c2k_spi_probe
c2k_otp_probe.
cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
class init complete
tmu init complete
bmu1 init: done
bmu2 init: done
util init complete
GPI1 init complete
GPI2 init complete
HGPI init complete
HIF rx desc: base_va: 03e80000, base_pa: 03e80000
HIF tx desc: base_va: 03e80400, base_pa: 03e80400
HIF init complete
bmu1 enabled
bmu2 enabled
pfe_hw_init: done
pfe_firmware_init
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: class firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: tmu firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 14
pfe_firmware_init: util firmware loaded
miidev_restart_aneg for PHY4
miidev_restart_aneg for PHY0
Using ENV from SPI Flash.
nand_probe: comcerto_nand base: 0xc8300000 size: 0x2048 MB
NAND type unknown: 00,00
No NAND device found!!!
Malloc space: 0x00b00000 -> 0x01000000 (size  5 MB)
Stack space : 0x00af8000 -> 0x00b00000 (size 32 kB)
running /env/bin/init...
Button VAR: btn_status set to 0
[INFO]  Waiting for WD Magic Packet (5 sec): CTRL+C to skip...

Hit any key to stop autoboot:  0
init_sata:
serdes: 24Mhz ref clk
Serdes 1 : CMU OK
Serdes 1 : Lane OK
Serdes 2 : CMU OK
Serdes 2 : Lane OK
cap 0x6f26ff81  port_map 0x3  n_ports 2
SSTS=00000123, loop_count: 0
P#SERR 0x4050002
IS 0x0
Port 0 control: 0x320
Port 0 status: 0x123
SSTS=00000000, loop_count: 0
P#SERR 0x0
IS 0x0
Port 1 control: 0x320
Port 1 status: 0x0
GHC 0x80000000
GHC 0x80000002
ahci_init_one: SUCCESS

SATA Controller Info:
AHCI 0001.0300 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
Enter start port: 0
Port 0 status: 123
cmd_slot = 0xb06000
cmd_tbl_dma = 0xb06500
Exit start port 0
ahci_exec_ata_cmd: 512 byte transferred.
Device support LBA48
pio 0003, udma 007f
ahci_exec_ata_cmd: 0 byte transferred.

SATA Device Info:
Serial Number           :      WD-WX31A258V55J
Product model number    : WDC WD5000LPVX-22V0TT0
Firmware version        : 01.01A01
Capacity                : 976773168 sectors
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 1024 byte transferred.
sataenv: partition 7 loading  size 522
Button VAR: btn_status set to 0
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 10485760 byte transferred.
Success: 20480 sectors read into address 03008000 from sector 0x3292c800
Bad Magic Number

So I assumed that I had to remove old files from lib-config-3-2.zip and now it looks like this:
Code: Select all


barebox 2011.06.0 (Dec  9 2013 - 12:04:46)

Board: Mindspeed C2000
c2k_spi_probe
cfi_probe: cfi_flash base: 0xc0000000 size: 0x04000000
## Unknown FLASH on Bank at 0xc0000000 - Size = 0x00000000 = 0 MB
Using ENV from SPI Flash.
p=============================================================================q
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::WWWWWWWWW::::WWWWWWW::::::::WWWWWWW::DDDDDDDDDDDDDDDDD::::::::::::|
|:::::::::::WWWWWWWW::::WWWWWWWW:::::::WWWWWWW::DDDDDDDDDDDDDDDDDDDD::::::::::|
|:::::::::::WWWWWWWW:::WWWWWWWWW::::::WWWWWWW::DDDDDDDDDDDDDDDDDDDDDD:::::::::|
|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::DDDDDDDDDDD::::::::|
|:::::::::::WWWWWWW:::WWWWWWWWWW::::WWWWWWW::DDDDDDDDD:::::::DDDDDDDDD::::::::|
|:::::::::::WWWWWWW::WWWWWWWWWWW:::WWWWWWW::DDDDDDDDD::::::::DDDDDDDDD::::::::|
|:::::::::::WWWWWW::WWWWWW::WWWWW:WWWWWWW::DDDDDDDDDD:::::::DDDDDDDDDD::::::::|
|:::::::::::WWWWWWWWWWWWW:::WWWWWWWWWWWW::DDDDDDDDDD::::::DDDDDDDDDDD:::::::::|
|:::::::::::WWWWWWWWWWWW::::WWWWWWWWWWW::DDDDDDDDDDD:::DDDDDDDDDDDDD::::::::::|
|:::::::::::WWWWWWWWWWW:::::WWWWWWWWWW::DDDDDDDDDDDDDDDDDDDDDDDDDD::::::::::::|
|:::::::::::WWWWWWWWWW::::::WWWWWWWWW::DDDDDDDDDDDDDDDDDDDDDDDDD::::::::::::::|
|:::::::::::WWWWWWWWW:::::::WWWWWWWW::DDDDDDDDDDDDDDDDDDDDDDDD::::::::::::::::|
|:::::::::::WWWWWWWW::::::::WWWWWWW::DDDDDDDDDDDDDDDDDDDD:::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
b=============================================================================d

 1

Copying Barebox from SPI Flash
BB Copying Done
## Starting Barebox at 0x01000000 ...


barebox 2011.06.0-svn10510-dirty3 (Dec  9 2013 - 12:04:00)

Board: Mindspeed C2000
c2k_spi_probe
c2k_otp_probe.
cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
class init complete
tmu init complete
bmu1 init: done
bmu2 init: done
util init complete
GPI1 init complete
GPI2 init complete
HGPI init complete
HIF rx desc: base_va: 03e80000, base_pa: 03e80000
HIF tx desc: base_va: 03e80400, base_pa: 03e80400
HIF init complete
bmu1 enabled
bmu2 enabled
pfe_hw_init: done
pfe_firmware_init
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: class firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: tmu firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 14
pfe_firmware_init: util firmware loaded
miidev_restart_aneg for PHY4
miidev_restart_aneg for PHY0
Using ENV from SPI Flash.
nand_probe: comcerto_nand base: 0xc8300000 size: 0x2048 MB
NAND type unknown: 00,00
No NAND device found!!!
Malloc space: 0x00b00000 -> 0x01000000 (size  5 MB)
Stack space : 0x00af8000 -> 0x00b00000 (size 32 kB)
running /env/bin/init...
Button VAR: btn_status set to 0
[INFO]  Waiting for WD Magic Packet (5 sec): CTRL+C to skip...

Hit any key to stop autoboot:  0
init_sata:
serdes: 24Mhz ref clk
Serdes 1 : CMU OK
Serdes 1 : Lane OK
Serdes 2 : CMU OK
Serdes 2 : Lane OK
cap 0x6f26ff81  port_map 0x3  n_ports 2
SSTS=00000123, loop_count: 0
P#SERR 0x4050002
IS 0x0
Port 0 control: 0x320
Port 0 status: 0x123
SSTS=00000000, loop_count: 0
P#SERR 0x0
IS 0x0
Port 1 control: 0x320
Port 1 status: 0x0
GHC 0x80000000
GHC 0x80000002
ahci_init_one: SUCCESS

SATA Controller Info:
AHCI 0001.0300 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part
Enter start port: 0
Port 0 status: 123
cmd_slot = 0xb06000
cmd_tbl_dma = 0xb06500
Exit start port 0
ahci_exec_ata_cmd: 512 byte transferred.
Device support LBA48
pio 0003, udma 007f
ahci_exec_ata_cmd: 0 byte transferred.

SATA Device Info:
Serial Number           :      WD-WX31A258V55J
Product model number    : WDC WD5000LPVX-22V0TT0
Firmware version        : 01.01A01
Capacity                : 976773168 sectors
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 1024 byte transferred.
sataenv: partition 7 loading  size 522
Button VAR: btn_status set to 0
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 512 byte transferred.
ahci_exec_ata_cmd: 10485760 byte transferred.
Success: 20480 sectors read into address 03008000 from sector 0x3292c800
Bad Magic Number

Of course as soon as I put original file onto /dev/sda6 everything back to normal.
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Re: fvdw-sl on WD My Cloud

Postby fvdw » Wed Aug 24, 2022 7:57 pm

Sorry oops my fault, I should have sent you the partition image, the file I sent was an extracted version
Attached the right one

Code: Select all
dd if=kernel-debian.img of=/dev/sdb6
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: fvdw-sl on WD My Cloud

Postby matt_max » Thu Aug 25, 2022 6:04 am

Output from console with new kernel-debian. Lots of errors but system finally started. No ethernet interface (only loopback).
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Re: fvdw-sl on WD My Cloud

Postby fvdw » Thu Aug 25, 2022 7:33 am

Well the kernel output itself is ok and this kernel uses 4k pagesize
Code: Select all
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 59904

[    0.000000] Memory: 44MB 192MB = 236MB total

:thumbup
So with this kernel we should be able to run fvdw-sl binaries.

Loading the wd firmware gives some errors probably because kernel modules that are not build in cannot be loaded because the is linux 3.2.68.. while modules are for 3.2.26.
The modules should be updated, we can do this by using files from the rootfs of the debian package. Later today I have some time to look into that

Remains curious that a kernel compiled from gpl source code of WD doesn't run.
For the moment we stick with the debian kernel
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: fvdw-sl on WD My Cloud

Postby fvdw » Thu Aug 25, 2022 1:21 pm

attached an archive to be extracted in root folder (/) of wd root file system in /dev/md0

Code: Select all
cd /
tar -xzvf lib-modules-firmware-jessie-archive.tgz


It contains the kernel modules needed by jessie kernel,
By extracting it should overwrite the file file in /lib/modules /lib/firmware /lib/modprobe.d

Hopefully now the debian kernel will get ethernet interface active
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 10 guests