Advertisement
zmatt

building custom beaglebone kernel

Aug 30th, 2018
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. (note: you probably want the repository for the -ti kernel series)
  2. 13:30:22 < zmatt> https://github.com/RobertCNelson/bb-kernel for the -bone kernel series, https://github.com/RobertCNelson/ti-linux-kernel-dev/ for the -ti kernel series
  3. 13:30:35 < zmatt> select branch for the exact series desired
  4. 13:30:52 < zmatt> copy system.sh.sample to system.sh and tweak contents to taste
  5. 13:31:57 < zmatt> then run ./build_deb.sh to build a debian package
  6. 13:32:14 < zmatt> it'll give you an opportunity to tweak the kernel config (by running make menuconfig)
  7.  
  8. 13:31:14 < lyb> bb-kernel is empty nowadays
  9. 13:31:22 < zmatt> no it's not, you just didn't pick a branch
  10.  
  11. 13:56:14 < zmatt> tip: you may want to append a line to version.sh in the build repo to give your custom kernel a suffix that distinguishes it from the normal one, e.g.: BUILD+=-custom1
  12.  
  13. (about modifying the kernel)
  14. 13:36:12 < zmatt> yeah in that case just first build an unmodified kernel, then make changes in the KERNEL subdirectory it creates (the patched kernel tree) and run tools/rebuild_deb.sh
  15. 13:36:26 < zmatt> don't run ./build_deb.sh again since that will recreate a clean tree
  16. (note: same if you just want to rebuild the package with changes to the kernel config)
  17.  
  18. (how to add your patches to the repo itself so they are applied when doing a clean rebuild)
  19. 21:24:54 < __jojo__> Would it allow me to apply my patch on the top ?
  20. 21:26:43 < zmatt> yes, what I do is I create a directory patches/local with my custom patches, and add the following line to patch.sh: dir 'local'
  21. (note: the build script will already preserve any kernel config changes you make by updating patches/defconfig for you)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement