You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Our current /sys/src/cmd/usb originates from Nix and hasn't been touched in a long time.
Let's pull in USB code from 9legacy and 9front and see if they're a better fit. The kernel code seems pretty uniform, but the userland portions vary, so let's experiment with those.
Ideally, we should be able to copy in the source trees, apply some spatches, and then create build.json files to do the compilation.
#1106 has some build.json files that may be a helpful starting point.
QEMU is the most convenient way to do basic testing. For example, you can boot with a USB drive attached by adding -drive format=raw,file=/tmp/harvey.raw,id=stick,if=none -device usb-storage,drive=stick to the invocation. Make /tmp/harvey.raw an image with a single partition type 0B, format that partition vfat, and you can boot harvey and run usbfat:
The text was updated successfully, but these errors were encountered:
Our current /sys/src/cmd/usb originates from Nix and hasn't been touched in a long time.
Let's pull in USB code from 9legacy and 9front and see if they're a better fit. The kernel code seems pretty uniform, but the userland portions vary, so let's experiment with those.
Ideally, we should be able to copy in the source trees, apply some spatches, and then create build.json files to do the compilation.
#1106 has some build.json files that may be a helpful starting point.
QEMU is the most convenient way to do basic testing. For example, you can boot with a USB drive attached by adding
-drive format=raw,file=/tmp/harvey.raw,id=stick,if=none -device usb-storage,drive=stick
to the invocation. Make /tmp/harvey.raw an image with a single partition type 0B, format that partition vfat, and you can boot harvey and run usbfat:The text was updated successfully, but these errors were encountered: