For newly created operating systems, one of the main problems is writing drivers for a variety of devices, and that’s why I have this question.

Do you think it’s possible to create a transitional layer to run Linux drivers(or from some other os) for your own kernel without porting each one, or is it pointless because it would require recreating almost the entire Linux kernel?

  • BillibusMaximus
    link
    fedilink
    arrow-up
    3
    ·
    19 days ago

    With the caveat that I’ve done some, but very little, kernel development -

    NDISwrapper allows(allowed? Not sure if it’s still used) Linux to use network drivers written for Windows.

    So that kind of thing is certainly possible.

    You would likely need to implement the relevant parts of the Linux kernel API as part of your translation layer, then map it (with additional translation code for compatibility) to your OS’s native functions.

    But it would certainly be a big undertaking.