Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
98 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
ODROID-UBOOT-CONFIG | ||
|
||
#------------------------------------------------------------------------------------------------------ | ||
# | ||
# boot.ini | ||
# | ||
# WARNING DO NOT MODIFY THIS FILE! ALL CHANGES WILL BE LOST WITH THE NEXT UPDATE! | ||
# Set your own settings in config.ini | ||
# | ||
#------------------------------------------------------------------------------------------------------ | ||
|
||
setenv bootlabel "CoreELEC" | ||
setenv max_freq_a73 "1800" | ||
setenv max_freq_a53 "1896" | ||
setenv remotewakeup "0x23dc4db2" | ||
setenv decode_type "0" | ||
setenv remotewakeupmask "0xffffffff" | ||
setenv heartbeat "1" | ||
setenv emmc_timeout "0" | ||
setenv coreelec "quiet" | ||
|
||
setenv rootopt "BOOT_IMAGE=kernel.img boot=UUID=@BOOT_UUID@ disk=UUID=@DISK_UUID@" | ||
setenv consoleopt "console=ttyS0,115200 console=tty0 no_console_suspend" | ||
setenv displayopt "hdmimode=1080p60hz logo=osd0,loaded,0x3d800000 vout=1080p60hz,enable" | ||
|
||
setenv loadaddr 0x11000000 | ||
setenv dtb_mem_addr 0x1000000 | ||
setenv uenv_addr 0x13000000 | ||
|
||
if load mmc ${mmc_dev}:1 ${uenv_addr} config.ini; then env import -t ${uenv_addr} $filesize; fi | ||
|
||
if test "${cec_func_config}" != ""; then setenv cec "hdmitx=cec${cec_func_config}"; fi | ||
if test "${emmc_timeout}" = "1"; then showlogo 1080p60hz 1920 1080 timeout-logo-1080.bmp.gz; sleep 30; mmc dev 1; mmc dev 0; fi | ||
if test "${gpiopower}" != ""; then setenv gpiopower "gpiopower=${gpiopower}"; fi | ||
setenv irsetup "remotewakeup=${remotewakeup} decode_type=${decode_type} remotewakeupmask=${remotewakeupmask}" | ||
if test "${usbopts}" != ""; then setenv usbopts "usbopts=${usbopts}"; fi | ||
if test "${usbpower}" != ""; then setenv usbpower "enable_system_power=${usbpower}"; fi | ||
if test "${modeline}" != ""; then setenv cmode "modeline=${modeline}"; fi | ||
if test "${wol}" != ""; then setenv wol "enable_wol=${wol}"; fi | ||
setenv initargs "${rootopt} ${consoleopt} max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} ${wol} ${cec} ${irsetup} ${usbpower} ${gpiopower} ${usbopts} ${cmode}" | ||
setenv bootargs "${initargs} ${displayopt} ${coreelec}" | ||
|
||
load mmc ${mmc_dev}:1 ${loadaddr} kernel.img | ||
load mmc ${mmc_dev}:1 ${dtb_mem_addr} dtb.img | ||
fdt addr ${dtb_mem_addr} | ||
if test "${heartbeat}" = "0"; then fdt set /leds/blueled linux,default-trigger "none"; fi | ||
booti ${loadaddr} - ${dtb_mem_addr} | ||
bootm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,4 +161,4 @@ | |
ENTWARE_ARCH="aarch64-k3.10" | ||
|
||
# CoreELEC Subdevices | ||
SUBDEVICES="Odroid_N2" | ||
SUBDEVICES="Odroid_N2 Odroid_C4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org) | ||
|
||
PKG_NAME="u-boot-Odroid_C4" | ||
PKG_VERSION="dde2b5a85a08474d4a4e13f8feb9b992b0b305da" | ||
PKG_SHA256="a71493ed7e9dacb7840f544ad67b5883f4d38c0abfc4a55c16081dcdc19dc2ca" | ||
PKG_LICENSE="GPL" | ||
PKG_SITE="https://www.denx.de/wiki/U-Boot" | ||
PKG_URL="https://github.com/CoreELEC/u-boot/archive/$PKG_VERSION.tar.gz" | ||
PKG_DEPENDS_TARGET="toolchain gcc-linaro-aarch64-elf:host gcc-linaro-arm-eabi:host" | ||
PKG_LONGDESC="Das U-Boot is a cross-platform bootloader for embedded systems." | ||
PKG_TOOLCHAIN="manual" | ||
|
||
pre_make_target() { | ||
sed -i "s|arm-none-eabi-|arm-eabi-|g" $PKG_BUILD/Makefile $PKG_BUILD/arch/arm/cpu/armv8/*/firmware/scp_task/Makefile 2>/dev/null || true | ||
} | ||
|
||
configure_package() { | ||
PKG_UBOOT_CONFIG="odroidc4_defconfig" | ||
} | ||
|
||
make_target() { | ||
[ "${BUILD_WITH_DEBUG}" = "yes" ] && PKG_DEBUG=1 || PKG_DEBUG=0 | ||
export PATH=$TOOLCHAIN/lib/gcc-linaro-aarch64-elf/bin/:$TOOLCHAIN/lib/gcc-linaro-arm-eabi/bin/:$PATH | ||
DEBUG=${PKG_DEBUG} CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make mrproper | ||
DEBUG=${PKG_DEBUG} CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make $PKG_UBOOT_CONFIG | ||
DEBUG=${PKG_DEBUG} CROSS_COMPILE=aarch64-elf- ARCH=arm CFLAGS="" LDFLAGS="" make HOSTCC="$HOST_CC" HOSTSTRIP="true" | ||
} | ||
|
||
makeinstall_target() { | ||
: # nothing | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters