4 ms·
Not OP and haven’t ported linux in a while but: Obviously some details are going to depend on the device, but it’s essentially: - set up a (cross) compiler -
by davemp 3y ago
Not OP and haven’t ported linux in a while but:
Obviously some details are going to depend on the device, but it’s essentially:
- set up a (cross) compiler
- configure&compile the kernel
- write the device tree (so the kernel knows what/where everything is)
- compile the boot loader (with the device tree)
- cross compile the minimum userspace for the system to function
- bundle everything so you can install/flash it.
Yocto [0] is what most people use to manage all those steps atm.
> And I guess it's mostly about the kernel?
Afaik it’s mostly writing the device tree (though it’s often provided in a board support package) and setting up the toolchain.
[0]: https://www.yoctoproject.org/ https://www.yoctoproject.org/
- markus_zhang 3y agoThanks! These are all strangers to me I think, except the cross compiling part. But it's good to know some pointers and go from there.
- markus_zhang 3y agoStupid question: which jobs port Linux or other OS or other sys software for a majority of their time?
- davemp 3y agoEmbedded systems or firmware dev
- markus_zhang 3y agoThanks! Gonna take a look of job description and skill requirements.