1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| dd if=/dev/zero of=/root/disk.img bs=5M count=1024 mkfs.ext4 /root/disk.img
/root/disk.img /var/lib/kvmd/msd ext4 nodev,nosuid,noexec,rw,errors=remount-ro,data=journal,X-kvmd.otgmsd-root=/var/lib/kvmd/msd,X-kvmd.otgmsd-user=kvmd 0 0
kvmd: msd: type: otg
mount /root/disk.img cd /usr/local/lib/python3.10/kvmd-packages/ wget -O /tmp/3.198msd.patch https://github.com/jacobbar/fruity-pikvm/raw/main/patches/3.198msd.patch patch -s -p0 < /tmp/3.198msd.patch
sudo systemctl restart kvmd-otg kvmd
[ 151.1] mass_storage.usb0/lun.0: file too big: /var/lib/kvmd/msd/images/debian-live-12.9.0-amd64-gnome.iso [ 152.2] mass_storage.usb0/lun.0: using only first 1151999 blocks [ 153.3] ISO 9660 Extensions: Microsoft Joliet Level 3 [ 154.4] ISO 9660 Extensions: RRIP_1991A
diff -Nur a/drivers/usb/gadget/function/storage_common.c b/drivers/usb/gadget/function/storage_common.c --- a/drivers/usb/gadget/function/storage_common.c +++ b/drivers/usb/gadget/function/storage_common.c @@ -243,12 +243,6 @@ min_sectors = 1; if (curlun->cdrom) { min_sectors = 300; /* Smallest track is 300 frames */ - if (num_sectors >= 256*60*75) { - num_sectors = 256*60*75 - 1; - LINFO(curlun, "file too big: %s\n", filename); - LINFO(curlun, "using only first %d blocks\n", - (int) num_sectors); - } } if (num_sectors < min_sectors) { LINFO(curlun, "file too small: %s\n", filename);
|