Thx matt_max for the info. In principle we could make an adapted fvdw-sl image to put in /dev/md0 but it will require a lot of adaptations in the firmware setup. I rather prefer to change the partition structure and root file system loading. For that the way to go seems to be adapting the script in partition 7 (part 8 is same as 7 only used as backup when part 7 is corrupt.
Now about partition 7 and 8, indeed they contain data used by barebox to boot the device. However there is more inside then the script yu posted.
It contains an additional 44 bytes in which info is stored to check crc. Editing the file will result in crc check error when barebox reads the content of this partition
hex-output-part7-content.JPG
Even changing a single byte in this script will require update of crc check values.
I am not sure if barebox write at each boot to partition 7 and 8 before starting the device. If that is the case adapting partition 7 or 8 is useless as it will be overwritten at each boot. In that case we will have to modify the file /usr/share/k1m0.env in the rootfs of barebox in flash.
For the moment I suggest to leave that alone. Lets first try to adapt part 7 assuming part 7 is not overwritten at each boot.
In that case we can modify the script in partition 7 but we will need to update the crc check values as well.
I found a guide here
link how to do that. I will need to read that in detail and try to adapt the image of partition 7. After that you can put the new image in partition 7 and we will see if barebox complains or not.
I suggest that using your linux pc you make partition images of all partitions on the wd cloud disk (except partition 4) using dd command that will enable us to roll back if we make an error.
You do not have the required permissions to view the files attached to this post.