OpenWRT i.MX8 Customize

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

OpenWRT i.MX8 Customize

Jump to solution
529 Views
Tad
Contributor I

Hi everyone:

I found the OpenWRT for imx8 on github, And I have customize board with i.MX8M Plus, How can I do make the customize target profile? I see the target/imx folder but I don't get it how to safe make the new subtarget

imx openwrt source code:

https://github.com/nxp-imx/imx_openwrt/

reference:

https://www.nxp.com.cn/docs/zh/training-reference-material/TIP-5G-IOT-OPENWRT-2.pdf

 

 

Tags (3)
0 Kudos
1 Solution
444 Views
yuantian
NXP Employee
NXP Employee
Hi Tad,
You can add a new .mk file to add the new subtarget.
Take the imx8 for example: target/linux/imx/image/imx8.mk.
But I don't think you need to add a new subtarget.
You really need to add a new device or called profile for your customized board.
If this is the case, you can add a new device item in
target/linux/imx/image/imx8.mk.
Take imx8mplus for example:
17 define Device/imx8mplus
18 DEVICE_VENDOR := NXP
19 DEVICE_MODEL := IMX8MPLUS
20 DEVICE_VARIANT := SD Card Boot
21 PLAT := iMX8MP
22 SOC_TYPE := iMX8M
23 DEVICE_TYPE := flash_evk
24 ENV_NAME:=imx8mp-sdboot
25 DEVICE_PACKAGES += \
26 atf-imx8mp \
27 firmware-imx \
28 imx-mkimage \
29 u-boot-imx8mp
30 DEVICE_DTS := freescale/imx8mp-evk
31 IMAGE/sdcard.img := \
32 imx-compile-dtb $$(DEVICE_DTS) | \
33 imx-create-flash $$(PLAT) $$(DEVICE_TYPE) | \
34 imx-clean | \
35 imx-append-sdhead $(1) | pad-to 32K | \
36 imx-append-boot $$(SOC_TYPE) | pad-to 4M | \
37 imx-append $$(ENV_NAME)-uboot-env.bin | pad-to $(IMX_SD_KERNELPART_OFFSET)M | \
38 imx-append-kernel $$(DEVICE_DTS) | pad-to $(IMX_SD_ROOTFSPART_OFFSET)M | \
39 append-rootfs | pad-to $(IMX_SD_IMAGE_SIZE)M
40 endef
41 TARGET_DEVICES += imx8mplus

View solution in original post

0 Kudos
2 Replies
445 Views
yuantian
NXP Employee
NXP Employee
Hi Tad,
You can add a new .mk file to add the new subtarget.
Take the imx8 for example: target/linux/imx/image/imx8.mk.
But I don't think you need to add a new subtarget.
You really need to add a new device or called profile for your customized board.
If this is the case, you can add a new device item in
target/linux/imx/image/imx8.mk.
Take imx8mplus for example:
17 define Device/imx8mplus
18 DEVICE_VENDOR := NXP
19 DEVICE_MODEL := IMX8MPLUS
20 DEVICE_VARIANT := SD Card Boot
21 PLAT := iMX8MP
22 SOC_TYPE := iMX8M
23 DEVICE_TYPE := flash_evk
24 ENV_NAME:=imx8mp-sdboot
25 DEVICE_PACKAGES += \
26 atf-imx8mp \
27 firmware-imx \
28 imx-mkimage \
29 u-boot-imx8mp
30 DEVICE_DTS := freescale/imx8mp-evk
31 IMAGE/sdcard.img := \
32 imx-compile-dtb $$(DEVICE_DTS) | \
33 imx-create-flash $$(PLAT) $$(DEVICE_TYPE) | \
34 imx-clean | \
35 imx-append-sdhead $(1) | pad-to 32K | \
36 imx-append-boot $$(SOC_TYPE) | pad-to 4M | \
37 imx-append $$(ENV_NAME)-uboot-env.bin | pad-to $(IMX_SD_KERNELPART_OFFSET)M | \
38 imx-append-kernel $$(DEVICE_DTS) | pad-to $(IMX_SD_ROOTFSPART_OFFSET)M | \
39 append-rootfs | pad-to $(IMX_SD_IMAGE_SIZE)M
40 endef
41 TARGET_DEVICES += imx8mplus

0 Kudos
509 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Tad!
Thank you for contacting NXP Support!

NXP doesn't support openWRT, but you can consult the information by following the links:


Best Regards!

Chavira

0 Kudos