Building the Linux Kernel

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
kolla
Posts: 191
Joined: Sat Jun 13, 2020 7:56 am
Has thanked: 17 times
Been thanked: 33 times

Building the Linux Kernel

Unread post 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
User avatar
wizzo
Scripting Wizard
Posts: 183
Joined: Sat Mar 12, 2022 11:32 am
Has thanked: 15 times
Been thanked: 243 times

Re: Building the Linux Kernel

Unread post 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
kolla
Posts: 191
Joined: Sat Jun 13, 2020 7:56 am
Has thanked: 17 times
Been thanked: 33 times

Re: Building the Linux Kernel

Unread post by kolla »

Thanks a bunch, and for the link - I didn’t expect it to be in that repo, hehe :)
Post Reply