Welcome to the Tiny Core Linux Wiki at tinycorelinux.net!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:custom_kernel [2019/04/14 08:45]
TomyTurbos Readability, update info on patching
wiki:custom_kernel [2019/04/14 08:48] (current)
TomyTurbos
Line 16: Line 16:
  
   - Get the sources for the version of the standard Linux kernel that you are going to base your kernel on   - Get the sources for the version of the standard Linux kernel that you are going to base your kernel on
- 
   - Get the patches you intend to apply - both TC kernel patches and possibly others (in my case the RT-patches)   - Get the patches you intend to apply - both TC kernel patches and possibly others (in my case the RT-patches)
- 
   - Unpack the linux sources and cd into the top level directory of the source package   - Unpack the linux sources and cd into the top level directory of the source package
- 
   - Apply the patches using (in most cases) "patch -p1 < patchfile" for each patch file   - Apply the patches using (in most cases) "patch -p1 < patchfile" for each patch file
- 
   - NOTE: "patch -p1 < patchfile" is deprecated. Use "git am patchfile" per https://kernelnewbies.org/KernelBuild   - NOTE: "patch -p1 < patchfile" is deprecated. Use "git am patchfile" per https://kernelnewbies.org/KernelBuild
- 
   - Move the kernel config file from the standard TC kernel into the same directory and rename it to ".config"   - Move the kernel config file from the standard TC kernel into the same directory and rename it to ".config"
- 
   - Do "make oldconfig" and answer all questions, in case you have no clue on the answer just provide the default ones (i.e. just hit Return)   - Do "make oldconfig" and answer all questions, in case you have no clue on the answer just provide the default ones (i.e. just hit Return)
- 
   - Do "make menuconfig" and make any changes you need to the configuration   - Do "make menuconfig" and make any changes you need to the configuration
- 
   - Do "make bzImage" to build the kernel itself   - Do "make bzImage" to build the kernel itself
- 
   - Do "make modules" to build the loadable modules   - Do "make modules" to build the loadable modules
- 
   - Do "make INSTALL_MOD_PATH=/path modules_install firmware_install" where /path is a path to a directory where you expect to find the modules.   - Do "make INSTALL_MOD_PATH=/path modules_install firmware_install" where /path is a path to a directory where you expect to find the modules.
  
Print/export