How to build OpenWRT image for NXP 1012A custom board?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to build OpenWRT image for NXP 1012A custom board?

跳至解决方案
2,607 次查看
devstar1018
Contributor I

Hello. How are you?

Now I am building OpenWRT image for NXP 1012A custom board.

How can I build image for my board?

I read " Porting OpenWrt/LEDE on QorIQ Layerscape ARMv8 Platforms.pdf" already.

By the way, in that documentation, only target, bootloader and firmware parts are descirbed.

There are a lot of parts I have to consider.

Isnt needed to do rest setting?

Above settings, that is, target, bootlaoder and firmware is enough?

And then which model can I refer generally?

There are 2 models, 1012ARDB and 1012FRDB. 

I hope you provide general openwrt image building guide of NXP ARM boards.

I will wait your update.

Best regards.

Sun.

0 项奖励
回复
1 解答
2,523 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Sun MingChen,

You need to customize u-boot, RCW, atf, dts file for you custom board.

u-boot source code in build_dir/target-aarch64_generic_musl/uboot-layerscape-<platform>/uboot-layerscape-lsdk-1903/, you need to modify board/freescale/ls1012ardb/ and include/configs/ls1012ardb.h.

RCW source code in build_dir/target-aarch64_generic_musl/ls-rcw-lsdk-1903/

You need to modify RCW in ls1012ardb/R_SPNH_3508/

ATF source code in build_dir/target-aarch64_generic_musl/tfa-layerscape-<platform>-sdboot/tfa-layerscape-lsdk-1903/

You need to modify /plat/nxp/soc-ls1012/ls1012ardb/ddr_init.c

Linux Kernel source code in build_dir/target-aarch64_generic_musl/linux-layerscape_armv8_64b/linux-<version>/

You need to modify dts file in arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts.

Thanks,

Yiping

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,524 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Sun MingChen,

You need to customize u-boot, RCW, atf, dts file for you custom board.

u-boot source code in build_dir/target-aarch64_generic_musl/uboot-layerscape-<platform>/uboot-layerscape-lsdk-1903/, you need to modify board/freescale/ls1012ardb/ and include/configs/ls1012ardb.h.

RCW source code in build_dir/target-aarch64_generic_musl/ls-rcw-lsdk-1903/

You need to modify RCW in ls1012ardb/R_SPNH_3508/

ATF source code in build_dir/target-aarch64_generic_musl/tfa-layerscape-<platform>-sdboot/tfa-layerscape-lsdk-1903/

You need to modify /plat/nxp/soc-ls1012/ls1012ardb/ddr_init.c

Linux Kernel source code in build_dir/target-aarch64_generic_musl/linux-layerscape_armv8_64b/linux-<version>/

You need to modify dts file in arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts.

Thanks,

Yiping

0 项奖励
回复