I am currently working on a LS1046A board that I am adding support to for OpenWRT. Ive already got openwrt working with uboot, atf and rcw. Kernel is starting but it has a kernel panic. I need to make some changes to the dtb and kernel itself for my custom board. But I can not figure out where and how to properly develop in openwrt for the Linux kernel itself. UBoot is pretty easy since its handled as a package and swapping it out works fine. But for Linux it seems OpenWRT pulls a zipped file from the upstream and extracts that. Is there an easy way to make changes in this?
Oh my question is not really about the kernel panic. But more about developing on OpenWRT in general. I know what the issue is and I need to make changes to the devicetree.
But in openwrt/package/firmware/linux-firmware/Makefile the package source is specified as a tar file. I guess it extracts this and then builds the kernel? But I cant find the place the extracts this to. I can only find the precompiled dtb files for the LS1046 platform.
What You mentioned is a linux firmware package where it really just downloads tarball and repackages. Linux kernel is built as a target, in Your case it lives in target/linux/layerscape. Add the dts as a kernel patch in patches-* directory, and Your device recipe in image dir. Supplementary files which end up in root fs can be placed in base-files dir.