[OpenWrt-Devel] [PATCH 1/2] layerscape: add ls1043ardb-64b target

Yutang Jiang yutang.jiang at nxp.com
Mon Aug 8 08:41:34 EDT 2016

Hi yousong,

  Thank you!
  Now I using "make kernel_menuconfig CONFIG_TARGET=subtarget" generate the subtarget config-default. Last time, Jonas give me same hint, but I fail to understand this script, thank you Jonas!

  Recently, I will make more test and then send v2 patch.

Thanks & Best Regards
Jiang Yutang

-----Original Message-----
From: Yousong Zhou [mailto:yszhou4tech at gmail.com] 
Sent: Monday, August 08, 2016 7:18 PM
To: Yutang Jiang
Cc: Jonas Gorski; Luka Perkov; OpenWrt Development List; Zoltan HERPAI
Subject: Re: [OpenWrt-Devel] [PATCH 1/2] layerscape: add ls1043ardb-64b target

On 8 August 2016 at 19:00, Yutang Jiang <yutang.jiang at nxp.com> wrote:
> Hi Jonas,
>   Sorry for so late update. Now I almost finish the issues of update to 4.4 and 32b/64b merge, also update Device/* sections and device/profile, But blocking by minimize kernel config:( .
>   Previously, I just have a compiled .config file and copy it to target/linux/layerscape-64b/ls1043ardb/config-default as default kernel config, it too large indeed. I try to run "make kernel_defconfig ONFIG_TARGET=subtarget " or "make kernel_defconfig" but get Error. I once copy the freescale.config from our SDK2.0 release as config-default, it can create a .config file by run " ./scripts/kconfig/merge_config.sh arch/arm64/configs/defconfig arch/arm64/configs/freescale.config ", but also failed, and I also try to other two methods:(1) run " make ARCH=arm64 savedefconfig" in kernel folder and then copy defconfig as config-default, (2) run " sed -i '/#/d' .config " and "sed -i '/^$/d' .config " in kernel folder to delete those not used options and then copy .config as config-default. These minimize methods all lead to manual select kernel options while make -j1 V=s:
> make[5]: Entering directory `/home/jyt/openwrt/project-github.openwrt.git/openwrt-1/build_dir/target-aarch64_armv8-a_musl-1.1.14/linux-layerscape_64b/linux-4.4.14'
> scripts/kconfig/conf  --silentoldconfig Kconfig
> net/sched/Kconfig:44: warning: menuconfig statement without prompt
> .config:2434:warning: override: MTD_CFI_NOSWAP changes choice state
> .config:3263:warning: override: PREEMPT_VOLUNTARY changes choice state
> .config:3906:warning: override: SLUB changes choice state
> *
> * Restart config...
> *
> *
> * General setup
> *
> Cross-compiler tool prefix (CROSS_COMPILE) [] Compile also drivers 
> which will not load (COMPILE_TEST) [N/y/?] n Local version - append to 
> kernel release (LOCALVERSION) [] Automatically append version 
> information to the version string (LOCALVERSION_AUTO) [N/y/?] n 
> Default hostname (DEFAULT_HOSTNAME) [(none)] (none) Support for paging 
> of anonymous memory (swap) (SWAP) [Y/n/?] y System V IPC (SYSVIPC) 
> [Y/n/?] y POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y Enable 
> process_vm_readv/writev syscalls (CROSS_MEMORY_ATTACH) [N/y/?] n open 
> by fhandle syscalls (FHANDLE) [N/y/?] n uselib syscall (USELIB) 
> [N/y/?] n Auditing support (AUDIT) [Y/n/?] y Enable system-call 
> auditing support (AUDITSYSCALL) [N/y/?] (NEW)
> I wonder how to conveniently minimize a compiled kernel .config to a config-4.4 or config-default that can be used by a target? Anyone can give me some hint? Thanks!

Hi, Yutang

I have once made a bump from 4.1 to 4.4 for malta [1], you can give the following command a try.

       make kernel_menuconfig CONFIG_TARGET=subtarget_platform

[1] malta: move to 4.4 kernel,

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list