MiSTer-devel / Linux-Kernel_MiSTer

Other
14 stars 19 forks source link

Default config results in a kernel where some peripherals don't work #19

Closed NolanNicholson closed 2 years ago

NolanNicholson commented 2 years ago

If the kernel compilation instructions at https://github.com/MiSTer-devel/Main_MiSTer/wiki/Compiling-the-Linux-kernel-for-MiSTer are followed exactly on a clean Ubuntu installation, the resulting zImage_dtb file mostly works, but some peripherals no longer function. Examples of nonworking peripherals include CIFS mounts, the Edimax EW-7811Un, and the Xbox Elite Controller. However, most peripherals work fine.

This appears to be due to some discrepancies between the default settings in this repo (particularly Kconfig and Makefile?) and the settings used to compile release builds of the kernel:

sorgelig commented 2 years ago

you can use export LOCALVERSION=-MiSTer before compiling for the same result. No idea about EW-7811Un and CIFS.. Probably something wrong with modules compilation/adding to image.

NolanNicholson commented 2 years ago

We can add export LOCALVERSION=-MiSTer to the build guide - that is fine.

If you do find out which modules are compiled and added, and how that selection of modules differs from the default config, I'd be happy to get that into the guide as well. As I mentioned, I was able to get a particular wi-fi driver working correctly, but not the same general coverage that the release builds have.

sorgelig commented 2 years ago

May be you can read more about compiling kernel with modules and how they are installed into system. It's general Kernel info, not MiSTer specific.

NolanNicholson commented 2 years ago

I'll educate myself a bit further and explore how I might compile it for more general wi-fi driver support. Thanks for your help!