map220v / sm8150-mainline

WIP Mainline kernel for Xiaomi Pad 5
Other
33 stars 16 forks source link

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

Closed catmengi closed 8 months ago

catmengi commented 8 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 8 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 8 months ago

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