| Both sides previous revisionPrevious revision | |
| kernel_modules [2026-11-23 00:51 UTC (5 days ago)] – add list of crypto modules, link to the IMX tree on github that init built on, qkb | kernel_modules [2026-11-23 00:54 UTC (5 days ago)] (current) – clarity on dirty suffixes, and more accurate reference to INIT's configs applied qkb |
|---|
| ====== Kernel Modules ====== | ====== Kernel Modules ====== |
| |
| The unit runs ''%%4.9.166-fsl-imx-INIT-004%%'', built from [[https://github.com/nxp-imx/linux-imx|NXP's linux-imx tree]] at tag ''%%v4.9.166%%'', with INIT's patches on top. The running config is ''%%/proc/config.gz%%''. The stock build used OSELAS.Toolchain-2018.12.0 (gcc 8.2.1), per ''%%/proc/version%%''. | The unit runs ''%%4.9.166-fsl-imx-INIT-004%%'', built from [[https://github.com/nxp-imx/linux-imx|NXP's linux-imx tree]] at tag ''%%v4.9.166%%'', with INIT's config and version suffix. The running config is ''%%/proc/config.gz%%''. The stock build used OSELAS.Toolchain-2018.12.0 (gcc 8.2.1), per ''%%/proc/version%%''. |
| |
| The kernel is uniprocessor. ''%%CONFIG_SMP%%'' is not set, so only CPU0 comes up even though the i.MX6DL has two cores. It is a config choice, not a hardware limit, and it changes what ''%%/proc/cpuinfo%%'' and the scheduler look like: | The kernel is uniprocessor. ''%%CONFIG_SMP%%'' is not set, so only CPU0 comes up even though the i.MX6DL has two cores. It is a config choice, not a hardware limit, and it changes what ''%%/proc/cpuinfo%%'' and the scheduler look like: |
| - Set ''%%EXTRAVERSION = -fsl-imx-INIT-004%%'' in the top-level ''%%Makefile%%''. Take the suffix from ''%%uname -r%%'' if yours differs. | - Set ''%%EXTRAVERSION = -fsl-imx-INIT-004%%'' in the top-level ''%%Makefile%%''. Take the suffix from ''%%uname -r%%'' if yours differs. |
| - In ''%%scripts/dtc/dtc-lexer.lex.c%%'' and ''%%scripts/dtc/dtc-lexer.lex.c_shipped%%'', change ''%%YYLTYPE yylloc;%%'' to ''%%extern YYLTYPE yylloc;%%''. | - In ''%%scripts/dtc/dtc-lexer.lex.c%%'' and ''%%scripts/dtc/dtc-lexer.lex.c_shipped%%'', change ''%%YYLTYPE yylloc;%%'' to ''%%extern YYLTYPE yylloc;%%''. |
| - Commit the tree. Uncommitted files add ''%%-dirty%%'' to the version magic. | - Commit the tree if you leave ''%%CONFIG_LOCALVERSION_AUTO%%'' on; uncommitted files add ''%%-dirty%%''. |
| - Build with ''%%make LOCALVERSION= -C . modules%%''. Inside Dockcross you may need ''%%sudo make%%''. | - Build with ''%%make LOCALVERSION= -C . modules%%''. Inside Dockcross you may need ''%%sudo make%%''. |
| - ''%%scp%%'' the module over and ''%%insmod%%'' it. If it refuses, check ''%%dmesg%%''. | - ''%%scp%%'' the module over and ''%%insmod%%'' it. If it refuses, check ''%%dmesg%%''. |
| </code> | </code> |
| |
| The trailing ''%%+%%'' means ''%%CONFIG_LOCALVERSION_AUTO%%'' picked up a git version. ''%%-dirty%%'' means the tree had uncommitted changes. Check: | The suffixes only show up when ''%%CONFIG_LOCALVERSION_AUTO%%'' is on. ''%%+%%'' means it picked up a git version, ''%%-dirty%%'' that the tree had uncommitted changes. Check: |
| |
| * ''%%CONFIG_LOCALVERSION_AUTO=n%%'' in ''%%.config%%''. | * ''%%CONFIG_LOCALVERSION_AUTO=n%%'' in ''%%.config%%''. |
| * ''%%LOCALVERSION=%%'' on the make line. | * ''%%LOCALVERSION=%%'' on the make line. |
| * A clean ''%%git status%%''. | * A clean ''%%git status%%'', if you left ''%%CONFIG_LOCALVERSION_AUTO%%'' on. |
| |