[PATCH] airoha: Add new target platform

Daniel Danzberger daniel at dd-wrt.com
Sun Jul 31 00:04:50 PDT 2022


On Wed, 2022-07-27 at 14:49 +0200, Hauke Mehrtens wrote:
> Hi Daniel,
> 
> Is it possible to buy devices with this SoC in the retail market or on ebay?
Hi, not yet. At least I don't know of any. Maybe @john knows ?
> 
> Why do you select CONFIG_CC_OPTIMIZE_FOR_SIZE ? all other targets except 
> the mediatek/mt7629 use CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE.
I used mt7629 as a reference, but CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE works as well.
Once there is Wifi/Ethernet support, I will do some benchmarks and figure out which option works best.
> 
> > +CONFIG_CHR_DEV_SCH=y
> Why do you need CONFIG_CHR_DEV_SCH?
> 
> > +CONFIG_CLONE_BACKWARDS=y
> > +CONFIG_CMDLINE="rootfstype=squashfs,jffs2"
> > +CONFIG_CMDLINE_FROM_BOOTLOADER=y
> .....
> > +CONFIG_DCACHE_WORD_ACCESS=y
> > +CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
> > +CONFIG_DEBUG_MISC=y
> > +CONFIG_DEFAULT_HOSTNAME="(airoha)"
> 
> Setting CONFIG_DEFAULT_HOSTNAME looks wrong.
> 
> > +CONFIG_DMA_OPS=y
> ....
> > +CONFIG_HANDLE_DOMAIN_IRQ=y
> > +# CONFIG_HARDENED_USERCOPY is not set
> 
> Please activate CONFIG_HARDENED_USERCOPY.
> 
> > +CONFIG_HARDEN_BRANCH_PREDICTOR=y
> > +CONFIG_HARDIRQS_SW_RESEND=y
> ....
> > +CONFIG_NEED_DMA_MAP_STATE=y
> > +CONFIG_NETFILTER=y
> > +CONFIG_NET_FLOW_LIMIT=y
> > +CONFIG_NET_SELFTESTS=y
> 
> Please do not activate these CONFIG_NET options here.
> 
> > +CONFIG_NLS=y
> ....
> > +CONFIG_OF_MDIO=y
> > +CONFIG_OLD_SIGACTION=y
> > +CONFIG_OLD_SIGSUSPEND3=y
> 
> I think we do not need these CONFIG_OLT_* options.
> 
> > +CONFIG_OUTER_CACHE=y
> .....
> > +CONFIG_SRCU=y
> > +CONFIG_STACKTRACE=y
> 
> This should not be activated for only one target.
> 
> > +# CONFIG_SWAP is not set
> > +CONFIG_SWCONFIG=y
> 
> Do you really need CONFIG_SWCONFIG?
I cleaned up the kernel config.
Removed all configs you mentioned and enabled CONFIG_HARDENED_USERCOPY.




More information about the openwrt-devel mailing list