Building OpenWRT for a custom LS1046A

Hi all,

I have a custom LS1046A board that i want to run openwrt on. So far its all working fine, however i seem to be missing functionality for my 2 sfp ports. I am fiddling around with the build system and I have a bit of a difficulty in understanding how it works. I forked OpenWRT and created a branch op top of the OpenWRT24.10 branch. (Not sure if relevant) I have added my changes. My changes are limited to changes in layerscape specific packages to pull from my own repo instead of NXP ones. I run make menuconfig, select my device and run make. The thing I noticed is that it produces a very bare bones build. After adding some stuff for Luci it runs fine and my gigabit ports also work perfect. Just the 2 sfp ports not. I checked and I think i need to enable some extra drivers. Which I expected. But I have a bit of a difficulty in selecting the packages I want(Or the ones I believe I need).

For example i want to add "kmod-fsl-dpaa1-net" but I cant even enable it through make menuconfig as its not visible. The package seems to be meant for TARGET_armsr, but I am using layerscape. I see that the package enables some kernel options such as "CONFIG_FSL_DPAA". But I also spot these options already in the defconfig in layerscape/armv8_64b/. So I dont fully understand if I need both or if the definition in the defconfig is already good enough?

I know the device tree etc is all fine. Since building a barebones Linux all works fine. So it must be something im overlooking in the config for OpenWRT. If anyone has any tips they are very welcome! :slight_smile: I have a feeling im overlooking something simple.