On 10/21/24 21:09, Philippe Mathieu-Daudé wrote:
Hi Guenter,

On 21/10/24 11:02, Guenter Roeck wrote:

Unrelated to this, but I found that the sd emulation in 9.1 is also broken
for loongarch and sifive_u, and partially for ast2600-evb (it has two
controllers, with one of them no longer working). That is too much for me
to track down quickly, so this is just a heads-up.

Please Cc me with reproducer or assign Gitlab issues to me,
I'll have a look.


The problem is caused by commit e32ac563b8 ("hw/sd/sdcard: Fix handling of 
disabled
boot partitions"). Reverting it fixes the problem.

The problem only affects the sd card with index 2, or in other words it is only 
seen
with "-drive file=<rootfs>,format=raw,if=sd,index=2".

The Linux boot log says

[   11.201043] List of all partitions:
[   11.201364] b300           14336 mmcblk0
[   11.201414]  driver: mmcblk
[   11.201649] b308            1024 mmcblk0boot0
[   11.201678]  (driver?)
[   11.202100] b310            1024 mmcblk0boot1
[   11.202129]  (driver?)

and I am trying to boot from b300 (i.e., I have "root=b300" in the Linux 
command line).

This happens with both ast2600-evb and fuji-bmc machines.

Given that the patch is supposed to fix a problem, I am not sure what I would 
have
to change to get it back to working. All I can say is that it used to work but 
doesn't
anymore.

Guenter


Reply via email to