fvdw-sl on WD My Cloud

Re: fvdw-sl on WD My Cloud

Postby matt_max » Thu Sep 01, 2022 3:46 pm

After many hours of hard work :hail @fvdw finally did it - he created his famous fvdw-sl firmware for WD MyCloud v1 :rock :applause
Output from console.
You do not have the required permissions to view the files attached to this post.
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 Sep 01, 2022 4:55 pm

:punk
Yeah finally we could make it work, thanks to matt_max for his help and time to figure out how this box boots and doing the many trials :thumbup .

Well the firmware runs but looking to the serial console output there are still some adaptations required.
Would it be possible to post the boot.log file from sda1.

Ps be aware that if you connect via serial or telnet started from /dev/md0 that you are not inside the chrooted linux system. You must connect via ssh to access the chrooted file system.
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 Sep 01, 2022 4:56 pm

Furthermore, try some features to see what working and what is not
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 Sep 01, 2022 5:02 pm

..you cannot upgrade to 18-2 via internet because 18-2 package needs a patch first to support wd mycloud gen1
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 Sep 01, 2022 5:15 pm

That is the boot.log.
Indeed some features do not work:
  1. I cannot fully turn the nas off - even if I run poweroff
  1. I do not see data partition - only RD1-0
  1. LED doesn't work - I mean it is alway white
You do not have the required permissions to view the files attached to this post.
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 Sep 01, 2022 6:28 pm

Mmm...strange this raid array.
This looks like sda8 is included in the array
Can you post
Code: Select all
gdisk -l /dev/sda

And
Code: Select all
mdadm --detail /dev/md0
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 Sep 01, 2022 6:30 pm

And
Code: Select all
cat /proc/partitions


All comnands from within chrooted file system (so not using serial console but ssh client)
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 Sep 01, 2022 7:13 pm

I also have a question do you still use the config-new.img on partition 7 ?
This config-new sets if I remember wel to load kernel from p6
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 Sep 01, 2022 7:58 pm

That is right - I've put config-new.img on partition 7.
Code: Select all
root@fvdwsl-base:/ # cat /proc/partitions
major minor  #blocks  name

   8        0  488386584 sda
   8        1     524288 sda1
   8        2     524288 sda2
   8        3     524288 sda3
   8        4     786432 sda4
   8        5     786432 sda5
   8        6      10240 sda6
   8        7       2048 sda7
   8        8  484178944 sda8
   8        9     524288 sda9
   8       10     524288 sda10
   9        0     524224 md0

Code: Select all
root@fvdwsl-base:/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10]
md0 : active raid1 sda10[1] sda9[0]
      524224 blocks [2/2] [UU]

unused devices: <none>

Code: Select all
root@fvdwsl-base:/ # mdadm --detail /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Wed Aug 31 19:56:45 2022
     Raid Level : raid1
     Array Size : 524224 (511.94 MiB 536.81 MB)
  Used Dev Size : 524224 (511.94 MiB 536.81 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Sep  1 17:17:39 2022
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 77033c2c:4d816df6:17f1365a:f1692e81
         Events : 0.18

    Number   Major   Minor   RaidDevice State
       0       8        9        0      active sync   /dev/sda9
       1       8       10        1      active sync   /dev/sda10

Code: Select all
root@fvdwsl-base:/ # gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 2402C150-1331-4EA9-A85D-E33EE5ECC194
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2029 sectors (1014.5 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1050623   512.0 MiB   8300
   2         1050624         2099199   512.0 MiB   8300
   3         2099200         3147775   512.0 MiB   8200
   4         3147776         4720639   768.0 MiB   8300
   5         4720640         6293503   768.0 MiB   8300
   6         6293504         6313983   10.0 MiB    8300
   7         6313984         6318079   2.0 MiB     8300
   8         6318080       974675967   461.7 GiB   8300
   9       974675968       975724543   512.0 MiB   FD00
  10       975724544       976773119   512.0 MiB   FD00
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 Sep 01, 2022 8:05 pm

Ok thank you that all as expected.
Then the issue must be in our script to mount volumes. I need to talk with Jocko.
I will be back later this week as probably some more scripts needs to be adapted
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 14 guests