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
|
||||
}
|
||||
Reference in New Issue
Block a user