klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.03k stars 475 forks source link

`ata.ko` incorrectly identifies CD in VirtualBox #210

Closed klange closed 2 years ago

klange commented 2 years ago

In VirtualBox, with the Live CD attached as the IDE primary drive and correctly configured as an optical drive, the ata driver is still identifying it has a hard disk, as indicated by the presence of /dev/hda:

screenshot

Attempting to mount the device hangs the mount command, apparently in a loop, likely one of the ATA IO reads.

klange commented 2 years ago

CPU 3 locked up in kernel activity:

screenshot

klange commented 2 years ago

The hda devices identified here is actually the other channel; the CD drive was identified but bad timeout logic prevented the driver from presenting it.

Meanwhile, various issues contributed to the hard loop when trying to mount /dev/hda incorrectly.