Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
46
target/linux/imx/cortexa9/base-files/etc/board.d/02_network
Normal file
46
target/linux/imx/cortexa9/base-files/etc/board.d/02_network
Normal file
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# Copyright (C) 2013-2015 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
board_config_update
|
||||
|
||||
case "$board" in
|
||||
gw,imx6dl-gw51xx|\
|
||||
gw,imx6dl-gw52xx|\
|
||||
gw,imx6dl-gw5904|\
|
||||
gw,imx6dl-gw5907|\
|
||||
gw,imx6dl-gw5910|\
|
||||
gw,imx6dl-gw5912|\
|
||||
gw,imx6dl-gw5913|\
|
||||
gw,imx6q-gw51xx|\
|
||||
gw,imx6q-gw52xx|\
|
||||
gw,imx6q-gw5904|\
|
||||
gw,imx6q-gw5907|\
|
||||
gw,imx6q-gw5910|\
|
||||
gw,imx6q-gw5912|\
|
||||
gw,imx6q-gw5913|\
|
||||
solidrun,cubox-i/dl|\
|
||||
solidrun,cubox-i/q)
|
||||
ucidef_set_interface_lan 'eth0'
|
||||
;;
|
||||
gw,imx6dl-gw53xx|\
|
||||
gw,imx6dl-gw54xx|\
|
||||
gw,imx6dl-gw552x|\
|
||||
gw,imx6q-gw53xx|\
|
||||
gw,imx6q-gw5400-a|\
|
||||
gw,imx6q-gw54xx|\
|
||||
gw,imx6q-gw552x)
|
||||
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
|
||||
;;
|
||||
wand,imx6dl-wandboard)
|
||||
ucidef_set_interface_wan 'eth0'
|
||||
;;
|
||||
esac
|
||||
|
||||
board_config_flush
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,17 @@
|
||||
. /lib/imx.sh
|
||||
. /lib/functions.sh
|
||||
. /lib/upgrade/common.sh
|
||||
|
||||
move_config() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
imx_sdcard_move_config
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
boot_hook_add preinit_mount_root move_config
|
||||
124
target/linux/imx/cortexa9/base-files/lib/upgrade/platform.sh
Executable file
124
target/linux/imx/cortexa9/base-files/lib/upgrade/platform.sh
Executable file
@@ -0,0 +1,124 @@
|
||||
#
|
||||
# Copyright (C) 2010-2015 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/imx.sh
|
||||
|
||||
RAMFS_COPY_BIN='blkid jffs2reset'
|
||||
|
||||
enable_image_metadata_check() {
|
||||
case "$(board_name)" in
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
enable_image_metadata_check
|
||||
|
||||
platform_check_image() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
gw,imx6dl-gw51xx|\
|
||||
gw,imx6dl-gw52xx|\
|
||||
gw,imx6dl-gw53xx|\
|
||||
gw,imx6dl-gw54xx|\
|
||||
gw,imx6dl-gw551x|\
|
||||
gw,imx6dl-gw552x|\
|
||||
gw,imx6dl-gw553x|\
|
||||
gw,imx6dl-gw5904|\
|
||||
gw,imx6dl-gw5907|\
|
||||
gw,imx6dl-gw5910|\
|
||||
gw,imx6dl-gw5912|\
|
||||
gw,imx6dl-gw5913|\
|
||||
gw,imx6q-gw51xx|\
|
||||
gw,imx6q-gw52xx|\
|
||||
gw,imx6q-gw53xx|\
|
||||
gw,imx6q-gw5400-a|\
|
||||
gw,imx6q-gw54xx|\
|
||||
gw,imx6q-gw551x|\
|
||||
gw,imx6q-gw552x|\
|
||||
gw,imx6q-gw553x|\
|
||||
gw,imx6q-gw5904|\
|
||||
gw,imx6q-gw5907|\
|
||||
gw,imx6q-gw5910|\
|
||||
gw,imx6q-gw5912|\
|
||||
gw,imx6q-gw5913)
|
||||
nand_do_platform_check $board $1
|
||||
return $?;
|
||||
;;
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Sysupgrade is not yet supported on $board."
|
||||
return 1
|
||||
}
|
||||
|
||||
platform_do_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
gw,imx6dl-gw51xx|\
|
||||
gw,imx6dl-gw52xx|\
|
||||
gw,imx6dl-gw53xx|\
|
||||
gw,imx6dl-gw54xx|\
|
||||
gw,imx6dl-gw551x|\
|
||||
gw,imx6dl-gw552x|\
|
||||
gw,imx6dl-gw553x|\
|
||||
gw,imx6dl-gw5904|\
|
||||
gw,imx6dl-gw5907|\
|
||||
gw,imx6dl-gw5910|\
|
||||
gw,imx6dl-gw5912|\
|
||||
gw,imx6dl-gw5913|\
|
||||
gw,imx6q-gw51xx|\
|
||||
gw,imx6q-gw52xx|\
|
||||
gw,imx6q-gw53xx|\
|
||||
gw,imx6q-gw5400-a|\
|
||||
gw,imx6q-gw54xx|\
|
||||
gw,imx6q-gw551x|\
|
||||
gw,imx6q-gw552x|\
|
||||
gw,imx6q-gw553x|\
|
||||
gw,imx6q-gw5904|\
|
||||
gw,imx6q-gw5907|\
|
||||
gw,imx6q-gw5910|\
|
||||
gw,imx6q-gw5912|\
|
||||
gw,imx6q-gw5913)
|
||||
nand_do_upgrade "$1"
|
||||
;;
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
imx_sdcard_do_upgrade "$1"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
platform_copy_config() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
imx_sdcard_copy_config
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
platform_pre_upgrade() {
|
||||
local board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
toradex,apalis_imx6q-eval|\
|
||||
toradex,apalis_imx6q-ixora|\
|
||||
toradex,apalis_imx6q-ixora-v1.1)
|
||||
imx_sdcard_pre_upgrade
|
||||
;;
|
||||
esac
|
||||
}
|
||||
53
target/linux/imx/cortexa9/config-default
Normal file
53
target/linux/imx/cortexa9/config-default
Normal file
@@ -0,0 +1,53 @@
|
||||
CONFIG_AHCI_IMX=y
|
||||
CONFIG_ARM_CPU_SUSPEND=y
|
||||
CONFIG_ARM_GIC=y
|
||||
CONFIG_ARM_IMX6Q_CPUFREQ=y
|
||||
CONFIG_ATA_SFF=y
|
||||
CONFIG_BLK_MQ_PCI=y
|
||||
CONFIG_CLK_IMX6Q=y
|
||||
CONFIG_CLK_IMX6SL=y
|
||||
CONFIG_CLK_IMX6SX=y
|
||||
CONFIG_CMDLINE="pci=nomsi"
|
||||
CONFIG_CMDLINE_EXTEND=y
|
||||
CONFIG_E1000E=y
|
||||
CONFIG_EXTRA_FIRMWARE="imx/sdma/sdma-imx6q.bin"
|
||||
CONFIG_EXTRA_FIRMWARE_DIR="firmware"
|
||||
CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
|
||||
CONFIG_GENERIC_MSI_IRQ=y
|
||||
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
|
||||
CONFIG_GPIOLIB_IRQCHIP=y
|
||||
CONFIG_GPIO_PCA953X=y
|
||||
CONFIG_GPIO_PCA953X_IRQ=y
|
||||
CONFIG_HW_RANDOM_IMX_RNGC=y
|
||||
# CONFIG_INITRAMFS_FORCE is not set
|
||||
CONFIG_MARVELL_PHY=y
|
||||
CONFIG_MICREL_PHY=y
|
||||
# CONFIG_MMC_SDHCI_PCI is not set
|
||||
CONFIG_NET_DSA_MV88E6XXX=y
|
||||
CONFIG_PCI=y
|
||||
CONFIG_PCIEAER=y
|
||||
CONFIG_PCIEPORTBUS=y
|
||||
CONFIG_PCIE_DW=y
|
||||
CONFIG_PCIE_DW_HOST=y
|
||||
CONFIG_PCIE_PME=y
|
||||
CONFIG_PCI_DOMAINS=y
|
||||
CONFIG_PCI_DOMAINS_GENERIC=y
|
||||
CONFIG_PCI_IMX6=y
|
||||
CONFIG_PCI_MSI=y
|
||||
CONFIG_PCI_MSI_IRQ_DOMAIN=y
|
||||
CONFIG_PINCTRL_IMX=y
|
||||
CONFIG_PINCTRL_IMX6Q=y
|
||||
CONFIG_PINCTRL_IMX6SL=y
|
||||
CONFIG_PINCTRL_IMX6SX=y
|
||||
CONFIG_PM_GENERIC_DOMAINS=y
|
||||
CONFIG_PM_GENERIC_DOMAINS_OF=y
|
||||
CONFIG_REGMAP_I2C=y
|
||||
CONFIG_REGULATOR_LTC3676=y
|
||||
CONFIG_RTC_DRV_DS1307=y
|
||||
CONFIG_RTC_DRV_DS1672=y
|
||||
CONFIG_SATA_HOST=y
|
||||
CONFIG_SENSORS_AD7418=y
|
||||
CONFIG_SOC_IMX6=y
|
||||
CONFIG_SOC_IMX6Q=y
|
||||
CONFIG_SOC_IMX6SL=y
|
||||
CONFIG_SOC_IMX6SX=y
|
||||
9
target/linux/imx/cortexa9/target.mk
Normal file
9
target/linux/imx/cortexa9/target.mk
Normal file
@@ -0,0 +1,9 @@
|
||||
ARCH:=arm
|
||||
BOARDNAME:=NXP i.MX with Cortex-A9
|
||||
CPU_TYPE:=cortex-a9
|
||||
CPU_SUBTYPE:=neon
|
||||
KERNELNAME:=zImage dtbs
|
||||
|
||||
define Target/Description
|
||||
Build firmware images for NXP i.MX (Cortex-A9) based boards.
|
||||
endef
|
||||
Reference in New Issue
Block a user