maintainers.adoc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. === Maintainers
  2. ==== How to update the Linux kernel?
  3. ....
  4. # Last point before out patches.
  5. last_mainline_revision=v4.14
  6. next_mainline_revision=v4.15
  7. cd linux
  8. # Create a branch before the rebase.
  9. git branch "lkmc-${last_mainline_revision}"
  10. git remote set-url origin git@github.com:cirosantilli/linux.git
  11. git push
  12. git remote add up git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
  13. git fetch up
  14. git rebase --onto "$next_mainline_revision" "$last_mainline_revision"
  15. ./build -t linux-reconfigure
  16. # Manually fix our kernel modules if necessary.
  17. cd ..
  18. git branch "buildroot-2017.08-linux-${last_mainline_revision}"
  19. git add .
  20. git commit -m "Linux ${next_mainline_revision}"
  21. git push
  22. ....
  23. and update the README!
  24. During update all you kernel modules may break since the kernel API is not stable.
  25. They are usually trivial breaks of things moving around headers or to sub-structs.
  26. The userland, however, should simply not break, as Linus enforces strict backwards compatibility of userland interfaces.
  27. This backwards compatibility is just awesome, it makes getting and running the latest master painless.
  28. This also makes this repo the perfect setup to develop the Linux kernel.
  29. ==== How to downgrade the Linux kernel?
  30. The kernel is not forward compatible, however, so downgrading the Linux kernel requires downgrading the userland too to the latest Buildroot branch that supports it.
  31. The default Linux kernel version is bumped in Buildroot with commit messages of type:
  32. ....
  33. linux: bump default to version 4.9.6
  34. ....
  35. So you can try:
  36. ....
  37. git log --grep 'linux: bump default to version'
  38. ....
  39. Those commits change `BR2_LINUX_KERNEL_LATEST_VERSION` in `/linux/Config.in`.
  40. You should then look up if there is a branch that supports that kernel. Staying on branches is a good idea as they will get backports, in particular ones that fix the build as newer host versions come out.
  41. ==== How to add new Buildroot options?
  42. ....
  43. cd buildroot/output.x86_64~
  44. make menuconfig
  45. ....
  46. Hit `/` and search for the settings.
  47. Save and quit.
  48. ....
  49. diff .config.olg .config
  50. ....
  51. Copy and paste the diff additions to `buildroot_config_fragment`.