I have a Marvell Armada 38x dev board with full bsp support(uboot, kernel patches and buildroot). I try to add it into the OpenWrt mainline. I follow the target "mvebu"(Armada 370) in OpenWrt and add some config files, Makefiles and patches in the new target folder "target/linux/armada38x". The kernel version is 3.10.39 for armada38x while OpenWrt only supports 3.10.36 for now.
target/linux/armada38x/config-3.10 (using the default kernel config file armada38x_defconfig)
target/linux/armada38x/patches-3.10 (using all the armada38x patches from Marvell)
target/linux/generic/config-3.10 (not altered, using the default one in OpenWrt)
target/linux/generic/patches-3.10 (removed since some patches confict with armada38x patches)
BTW, I use the external toolchain provided by Marvell when doing make menuconfig.
# make menuconfig (already altered Config.in to support armada38x)
# make target/linux/{clean,compile} QUILT=1 V=99
The kernel source 3.10.39 are downloaded, extracted and patched successfully. The kernel config fails. After "scripts/kconfig/conf --silentoldconfig Kconfig", it always reminds me "Restart config..." with so many kernel options marked with "(NEW)" to be determined "[Y/n/?]".
Q1: Why are there so many [new] kernel options to be configured manually? When the kernel needs to "Restart config"?
Q2: How to generate a default kernel config file like "target/linux/generic/config-3.10"? If I need to add kernel 3.4 support in OpenWrt, a "target/linux/generic/config-3.4" will be needed.
Q3: Are there any docs about adding a new target from scratch in OpenWrt besides the "add a new platform" and "add a new device" wiki in OpenWrt?
Appreciate for your help.