Page 1 of 1

Building the Linux Kernel

Posted: Wed Sep 14, 2022 1:35 pm
by kolla
I finally got around to upgrade my MiSTer from old 4.19 to latest with 5.15.1, and everything works as intended.

Once upon a time I made a docerfile for building the 4.19 kernel, so I could build the kernel with the features I need, this is of course way outdated now, but I haven't really found "the recipy" for how to the current kernel is built, what cross-toolchain is used etc (though from /proc/version, I do get some hints). I would love to update the dockfile for the new kernel.

In case anyone wonders why I need "my own" kernel:
* IPv6
* NFS server - I use this to re-export cloud mounts to the Minimig

Re: Building the Linux Kernel

Posted: Wed Sep 14, 2022 2:04 pm
by wizzo
Here's my dockerfile you can check out:

https://github.com/wizzomafizzo/mrext/b ... Dockerfile

I just do the build environment and leave the clone and makes in another build script. I'm sure you could just do an arm image instead of the cross compiler but I tried to keep as close to the official docs as possible.

https://github.com/MiSTer-devel/Main_Mi ... for-MiSTer

Re: Building the Linux Kernel

Posted: Wed Sep 14, 2022 2:32 pm
by kolla
Thanks a bunch, and for the link - I didn’t expect it to be in that repo, hehe :)