WP76xx kernel module update

Hi Jyijyi,
I would like to compile and update one kernel module into mangOH Red board with WP7608. Could you please provide compilation procedure for Linux kernel module?.
I am using Release 16. I am trying to include CONFIG_USB_LAN78XX and gpio module CONFIG_GPIO_MAX732X.

Thanks,
Raghavan.

You can open the menuconfig and add those configurations and then type make

Hi Jyijyi,

I have downloaded Linux Distro Source from below link:
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-latest-release-components/#sthash.GIxEVxr2.dpbs

Compilation steps:

  1. untar Legato-Dist-Source-mdm9x28-SWI9X07Y_02.37.07.00.tar
  2. It creates one folder “yocto” which has kernel, lk, meta layers and etc.
  3. run make command. This takes 3 hours.
    Could you please provide next steps after this.

Thanks,
Raghavan K.

Can you open the menuconfig from the yocto source?

Hi Jyijyi,
I have downloaded Linux Distro Source from below link:
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-latest-release-components/#sthash.GIxEVxr2.dpbs

Compilation steps:

  1. untar Legato-Dist-Source-mdm9x28-SWI9X07Y_02.37.07.00.tar
  2. It creates one folder “yocto” which has kernel, lk, meta layers and etc.
  3. run make command. This takes 3 hours.
    Could you please provide next steps after this.

Thanks,
Raghavan K.


# cd yocto
# make dev
build_bin# bitbake linux-quic -c menuconfig

Hi Jyijyi,

Compilation steps:
cd yocto
make dev
build_bin# bitbake linux-quic -c menuconfig
I selected the gpio-max732x as a built-in kernel module. I can see CONFIG_GPIO_MAX732X=y in “./build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/build/.config” file as well.
After this i have done following.

  1. Open another Linux terminal in Linux machine

  2. cd yocto

  3. make

  4. Update the image in target board by “swiflash -m “WP76XX” -i yocto_wp76xx.4k.cwe”

    I have included one debug print in driver’s probe function. But that debug print is not appearing.

Other way:
I configured as CONFIG_GPIO_MAX732X=m as well. I can not find gpio-max732x.ko file. Where can i find that?

Thanks,
Raghavan.

HI Jyijyi,
I have compiled as kernel built-in module. And I can see debug prints in dmesg. Not in boot up console logs.

If I compile as lodable module(option m, instead of y), where can I find .ko file?

Thanks,
Raghavan K.

You can search it in module

find / -name xxx.ko