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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,634 Views
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 Kudos
1 Solution
1,550 Views
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

View solution in original post

0 Kudos
1 Reply
1,551 Views
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 Kudos