Hi,
I have been struggling with configuring and installing a new kernel in dragonboard 820c running in debian.
I do not have a UART debugger connected.
I am trying to build the kernal in target board (820c) (not cross compiling in host)
I wanted to
- enable CONFIG_TRACING ,CONFIG_CONTEXT_SWITCH_TRACER as well as CONFIG_TRACEPOINTS in the kernal configuration and install the new kernal.
- Build my custom kernel module for profiling application, it needs CONFIG_TRACEPOINTS to be defined
I follow
https://www.96boards.org/documentation/consumer/dragonboard820c/build/linux-kernel.md.html
which tells me how to build the kernel from source.
I did “make defconfig distro.config” and then make menuconfig to enable the TRACING option.
Everything went fine, I could check whether these are enabled in .config.
I built the kernel using "make -j $PROCS Image.gz dtbs KERNELRELEASE=4.14.0-qcomlt-${ARCH}
".
Created boot image using the instructions in
I used root argument as
export cmdline=“root=/dev/disk/by-partlabel/rootfs rw rootwait console=ttyMSM0,115200n8”
.
Everything went fine and I could create boot image,
“I do not have the UART debugger”
How can I install the boot.img which is got created in my target board?
I tried using “sudo dd if=boot.img of=/dev/disk/by-partlabel/boot”
But when I reboot my board it does not detect the mouse and keyboard connected to the USB port. So I do not know whether it is using the new kernel. Could someone please point out the mistake that I did?
(I wanted the board to boot up with the new kernel, so that I can build my custom ko module for my profiling applications. )
(I could build my kernal in host and could install it using fastboot method, but in that case I was missing linux hearders, Even if I install linux headers, using apt-get install, I wonder whether It contains CONFIG_TRACEPOINTS defined, that is the reason why I decided to build my kernel from source in the target and build my ko module using that source )
Your replies will be really helpful.
Thanks.