map220v / sm8150-mainline

WIP Mainline kernel for Xiaomi Pad 5
Other
29 stars 15 forks source link

Does the xiaomi keyboard works? And how to adapt kernel to boot from usb #9

Closed catmengi closed 3 months ago

catmengi commented 3 months ago

Is the xiaomi keyboard works? And how to adapt kernel to boot from usb stick(for testing), which drivers i need to compile into kernel?

map220v commented 3 months ago

Xiaomi KB works, you should see it in lsusb. Kernel should be able to boot rootfs or anything else from usb, I have required usb drivers built in kernel instead of modules. If you want to boot linux rootfs you need to add this root=PARTLABEL=linux to boot.img or kernel cmdline, then create partition on usb stick and call it "linux"

catmengi commented 3 months ago

Thanks, sometime i will run my favorite distro there,debian)