I recently (successfully) rebuilt my kernel for my wp7603-1 on a MangOH Red. The documentation is all over the place, so I thought I’d summarize what I did for future travelers (and myself when I forget how I got this all working). I did this to get bluetooth drivers running.
- Use leaf to get the appropriate kernel sources.
leaf getsrc swi-linux
- Go to the newly created swi-linux-src directory in your leaf directory.
make build_binwhich builds a kernel using some proprietary blobs us laypeople don’t have access to.
- Activate the yocto tools by running
. ./poky/oe-init-build-env build_bin/. Note: it is extremely important that you specify this pre-existing build directory, otherwise you will end up building a for a qemu target (the MangOH guides are incorrect here).
- Configure your kernal as required
bitbake linux-quic -c menuconfig. Note: for wp76xx targets the kernel is
linux-yocto. Also, depending on your configuration this may open another tab/window rather show
menuconfigin your current terminal. This took me a while to realize.
- Build the kernel
bitbake -f linux_quic
- Package everything up (I think?)
- Navigate to the output directory
- Flash the image
swiflash -m wp76xx -i yocto_wp76xx.4k.cwe