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

Yutang Jiang yutang.jiang at nxp.com
Mon Aug 8 07:00:58 EDT 2016


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!



Thanks & Best Regards
Jiang Yutang

-----Original Message-----
From: Yutang Jiang 
Sent: Tuesday, July 26, 2016 11:19 AM
To: 'Zoltan HERPAI'; 'Jonas Gorski'
Cc: Luka Perkov; 'OpenWrt Development List'; 'Conor O'Gorman'
Subject: RE: [PATCH 1/2] layerscape: add ls1043ardb-64b target

Hi Zoltan!


I'm working on fix some conflict issue while upgrade kernel to 4.4. And previously our team have plan to support both 32b and 64b on ls1043, now I'm combining 32b patch with 64b patch to 4.4 kernel openwrt patch, unfortunately, also encounter some conflict, so I need more time to resolve them.

Question 1: yes, I think so. Current phase, I focus on kernel/platform/openwrt target related porting work, u-boot can using our SDK release images temporary.
Question 2: yes, we also plan add others board supporting on openwrt/lede. My colleagues working on some kernel patches upstreaming, after porting ls1043 to openwrt, our test team also will do some features and performance validate work. When encountering difficult problem, I will ask for your advice. Thanks Zoltan for your enthusiasm!


Hi Jonas,

Because ls1043 will both support 32b and 64b, it need different compiler, while update patches, I should reserve subtargets to distinguish them. The update process is a bit slow for more work at hand. Once finish update work, I will send the second version patch immediately.


Thanks & Best Regards
Jiang Yutang

-----Original Message-----
From: Zoltan HERPAI [mailto:wigyori at openwrt.org]
Sent: Monday, July 25, 2016 7:52 PM
To: Yutang Jiang
Cc: Luka Perkov
Subject: Re: [PATCH 1/2] layerscape: add ls1043ardb-64b target

Hi Jiang,

Yutang Jiang wrote:
> Hi Jonas,
>
> Thanks you for your advise!
> It is first time for our team to submit patch to Openwrt, we will following your suggestion to update our patches.
>
> Summary:
> 1.update codebase to 4.4 kernel.
> 2.merge two patches to one and put it on github repository.
> 3.remove README.ls1043ardb, then add this information to the wiki.
> 4.update image build code to Device/* sections 5.find Build/check-size 
> and Device/Build/check_size, replace checkimagesize.sh 6.minimize 
> kernel config.
> 7.replace subtargets with device/profile.
>   
Thanks for sending this patchset to support the Layerscape 1043 boards. 
If any further help is needed with porting to 4.4 or further, how the patches should look or how the image building should work, please send us a line, we're happy to help. I'd have two questions here :)

 - Do you plan to send a package/boot patch for building u-boot for the board? It might be just me but I didn't see it among the patches.
 - May I ask about the interest for NXP in having this board supported in OpenWrt? Is there anything we can help in?

Thanks,
Zoltan H
OpenWrt
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list