Hi,
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.
- Run
make build_bin
which 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 islinux-quic
rather thanlinux-yocto
. Also, depending on your configuration this may open another tab/window rather showmenuconfig
in your current terminal. This took me a while to realize. - Build the kernel
bitbake -f linux_quic
- Package everything up (I think?)
bitbake mdm9x28-image-minimal
- Navigate to the output directory
cd tmp/deploy/images/swi-mdm9x28-wp
- Flash the image
swiflash -m wp76xx -i yocto_wp76xx.4k.cwe
Cheers,
Ben