https://turingpi.com logo
#│firmware-dev
Title
# │firmware-dev
c

cfsworks

11/29/2023, 5:24 PM
Wonder if anyone here is familiar with Linux's SCSI subsystem. I'm debugging a problem in the
rockusb
driver (this is what lets the BMC expose RK1's eMMC as
/dev/sda
despite Rockchip devices using a custom USB-MSC/SCSI-derived protocol for eMMC access) that's causing it to misreport the size of the eMMC. It's correct modulo 2^24 sectors, but the most significant byte is off. I just determined that it's because of the
OP_READ_FLASH_INFO
command reading only 3 bytes instead of the whole
flash_info
. In short, I'm wondering if I'm doing something dumb here: