1
0

customize-kernel-config.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. [[kernel-custom]]
  4. Customizing the Linux kernel configuration
  5. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6. The Linux kernel configuration can be customized using +make menuconfig+.
  7. OpenADK uses a combination of Linux miniconfig feature and user defined
  8. features to generate a valid Linux configuration for your target.
  9. Some features and drivers are not selectable via +make menuconfig+, either
  10. because your choosen target system does not have support for it or the
  11. option is not implemented, yet. OpenADK uses some kind of abstraction
  12. layer between the real full featured and complicated Linux kernel configuration
  13. and you. It is not perfect and does include a lot of manual work in
  14. +target/linux/config+, but it works in a acceptable way.
  15. If you just want to view the Linux configuration, which is actually
  16. used for your target, you can execute following command:
  17. ---------------
  18. $ make kernelconfig
  19. ---------------
  20. Any changes here will get lost and will not be used to generate a kernel for
  21. your target. If you want to change the existing kernel configuration you need
  22. to follow these steps.
  23. The basic kernel configuration used for your choosen target is concatenated from
  24. following two files:
  25. +target/linux/kernel.config+ and +target/<arch>/kernel/<system>+.
  26. So if you would like to change any basic stuff, just edit the files and recreate your
  27. firmware via:
  28. ---------------
  29. $ make
  30. ---------------
  31. OpenADK automatically recognizes any change and will rebuild the kernel.
  32. The base kernel configuration for your target generated by OpenADK is normally just enough to
  33. bootup the system with support for your board, serial console, network card and boot medium.
  34. (like a hard disk, sd card or flash partition)
  35. If you need to enable some new optional drivers or features, which are not available in
  36. +make menuconfig+, you need to dig in +target/linux/config+. There is the abstraction layer
  37. for the real kernel configuration.