[PATCH] imx: add imx8 support

Petr Štetiar ynezz at true.cz
Thu Mar 9 03:36:41 PST 2023


Tim Harvey <tharvey at gateworks.com> [2023-03-08 16:20:31]:

Hi Tim,

> Add imx8 support:
>  - add a cortexa53 subtarget
>  - move ARCH, KERNELNAME, and some FEATURES to cortexa7/cortexa9 subtargets
>  - add a small series of backports from 6.2 to fix hang on USB init and
>    add PCIe support

mark those patches clearly as such v6.2 backports, for example:

 0001-v6.2-soc-imx-gpcv2-allow-to-disable-individual-power-doma.patch

> No device-specific targets or firmware images are created yet.

Fine with me, but for the time being we should probably mark this subtarget as
source-only, so we don't waste time on the buildbots as there is not much
usable result yet.

> The resulting openwrt-imx-cortexa53-vmlinux-initramfs has been booted on
> Gateworks Venice boards and the imx8mm-evk using dtb's from $LINUX_DIR
> and verifying usb, pci, mmc, and fec networking work.

Nice, so it boots just fine without any additional post processing/blobs
needed?

As you're not adding bootloader, can add some information about the working
combination in the commit message as well? Simply anything which would help
anyone reproducing the result is welcome.

> -FEATURES:=audio display fpu gpio pcie rtc usb usbgadget squashfs targz nand ubifs boot-part rootfs-part
> +FEATURES:=audio display fpu gpio pcie rtc usb usbgadget squashfs targz boot-part rootfs-part

Is there any specific reason to not have NAND feature available for a53
subtarget? `imx8 NAND` yields bunch of search results, so I'm wondering why
are you bothering with removing this feature, seems like we would likely add
it back in the near future anyway.

> diff --git a/target/linux/imx/cortexa53/target.mk b/target/linux/imx/cortexa53/target.mk
> new file mode 100644
> index 000000000000..b9b32d182905
> --- /dev/null
> +++ b/target/linux/imx/cortexa53/target.mk
> @@ -0,0 +1,8 @@
> +ARCH:=aarch64
> +BOARDNAME:=NXP i.MX with Cortex-A53 (ARM64)
> +CPU_TYPE:=cortex-a53
> +KERNELNAME:=Image dtbs

 FEATURES+=source-only

Cheers,

Petr



More information about the openwrt-devel mailing list