i had added few printk in drivers/net/usb/smsc75xx.c . “git d” shows the git diffs
After building the kernel snap and merging with gadget, smsc75xx (usb2ethernet) driver is loading in target, but i do not see my kernel logs.
file modification to the driver file is not impacting in the target.
did i miss any method for modification of files in kernel and building?
In this article kernel version is “qcomlt-4.14” and to build we used $make defconfig distro.config command which you have wrote in your first snapcraft.yaml file.
But later on, you have changed to kconfigflavour: snapdragon.
My question is are you using some other version of kernel for dragonboard 410c which made to change this parameters ?
debian based kernels usually use config “flavours” which are assembled from a bunch of generic defaults (true for all kernels on all arches for an ubuntu kernel) plus hardware related bits on top … these flavour configs are assembled from bunch of scripts in the debian directory.
so if you use a kernel source tree from kernel.ubuntu.com and just re-build it to make a minor config change, use the kconfigflavour plus kconfg overrides …
upstream or BSP kernels usually ship with a defconfig file … the kernel plugin allows you here as well to assemble a complete config from multiple snippets, but using its internal scriptery instead …
here is an example using kconfigflavour and overrides via kconfig:
while the one below uses a BSP kernel from raspberrypi.org with the default kdefconfig and a bunch of ubuntu core related config snippets i ship as patches: