[lkml]   [2019]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectBug 7805 strikes again?

I was puzzled by strange fact my qemu stopped to boot DVDs I made over years, if I put them in physical drive and try to boot them via qemu.
After a lot of digging I found possible reason: wrongly-set block device size on /dev/sr0

And this lead me to


so I checked if my dmesg had anything related to pktcdvd:

dmesg | grep pkt
[ 7.681270] pktcdvd: pktcdvd0: writer mapped to sr0

blockdev --getsize64 /dev/sr0
pktsetup -d /dev/sr0
pktsetup: Error: Can't tear down packet device '/dev/sr0': Inappropriate ioctl for device

blockdev --getsize64 /dev/sr0

after this I can boot my DVD fully (before it was failing at mounting squashfs images):
qemu-system-x86_64 -enable-kvm -display sdl,gl=on -cdrom /dev/sr0 -m 1G -soundhw es1370 -usbdevice mouse -smp 3 -cpu max

uname -a
Linux slax 5.1.6-x64 #1 SMP PREEMPT Fri May 31 23:49:35 MSK 2019 x86_64 AMD FX(tm)-4300 Quad-Core Processor AuthenticAMD GNU/Linux

Userspace is 32-bit Slackware (mix of many versions).

sg_inq /dev/sr0
standard INQUIRY:
PQual=0 Device_type=5 RMB=1 LU_CONG=0 version=0x05 [SPC-3]
[AERC=0] [TrmTsk=0] NormACA=1 HiSUP=1 Resp_data_format=2
SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 [BQue=0]
EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0
[RelAdr=0] WBus16=0 Sync=0 [Linked=0] [TranDis=0] CmdQue=0
[SPI: Clocking=0x0 QAS=0 IUS=0]
length=96 (0x60) Peripheral device type: cd/dvd
Vendor identification: ASUS
Product identification: DRW-24D5MT
Product revision level: 1.00

 \ /
  Last update: 2019-06-15 18:25    [W:0.044 / U:1.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site