Closed CFSworks closed 10 months ago
This is the "proper" way to do this, vs. the old hacky approach of switching out the scatter-gather list.
Fixes a bug where the size is not properly reported by the driver.
To test this PR:
tpi advanced -n 1 msd
rockusb
lsmod
modprobe rockusb
cat /sys/class/block/sda/size
n*512/1024/1024/1024
rockusb.ko
For reference, the correct eMMC size values (as determined from /sys/class/block/mmcblk0/size on the RK1 itself, not from the BMC):
/sys/class/block/mmcblk0/size
30777344
61071360
This is the "proper" way to do this, vs. the old hacky approach of switching out the scatter-gather list.
Fixes a bug where the size is not properly reported by the driver.
To test this PR:
tpi advanced -n 1 msd
)rockusb
driver is loaded (lsmod
; thenmodprobe rockusb
if necessary)cat /sys/class/block/sda/size
)n*512/1024/1024/1024
, observe wildly incorrect valuerockusb.ko
file), and repeat above test; observe correct size value