We are trying to bring up a Marvell switch on our customized board. We make a change like the following diff in arch/arm64/configs/tegra_defconfig and rebuild the kernel Image file.
However, after we replace the kernel Image file under /boot and reboot system, system cannot boot up to Desktop and repeat the following display error dmesg. Xavier NX Dev Kit has the same issue with similar error log too.
This could be an issue of how the kernel was installed. When you built your new kernel, did you start with a valid initial configuration? One config which is valid is the tegra_defconfig. Another is a copy of the original running system’s “/proc/config.gz”. However, in both cases you would have to make sure your “CONFIG_LOCALVERSION” is correctly set, otherwise you must install all kernel modules too.
In more detail, CONFIG_LOCALVERSION is the suffix you will see in the command “uname -r”. Modules are searched for at “/lib/modules/$(uname -r)/kernel”. If you change the “uname -r” (for example, by omission), then modules will not be found.
Another detail is that if you start with the same configuration, and you only add an option, then most likely you don’t need to rebuild all modules. Some configuration changes though are more invasive, and you would actually want a new “CONFIG_LOCALVERSION” so that you can install new modules for that specific release.
When you do build a new feature into a kernel without it being a module be sure to watch and see if any other features are forcibly enabled. If some other feature is forcibly enabled, and if that feature is in the form of a module, then you’d need to install the new module.
Thank you for your help. We make sure we made proper settings for tegra_defconfig and CONFIG_LOCALVERSION.
After replacing all the kernel modules with the new built ones, we can boot up the device. It turns out that the CONFIG_NET_DSA has sort of dependency with some kernel modules. One critical problem of the boot failure is that none of preset kernel modules can be loaded with the new built kernel Image file.
Thank you again for your analysis about this issue.