Odroid Go Ultra - clean up

This commit is contained in:
mason 2023-03-23 19:26:09 +00:00
parent d25b132652
commit c1cb923f22
No known key found for this signature in database
GPG key ID: 84D9278A11FA112B
3 changed files with 3 additions and 175 deletions

View file

@ -1,78 +0,0 @@
ODROIDGOU-UBOOT-CONFIG
######################################################################
# #
# PLEASE USE CONFIG.INI INSTEAD. THIS HAS CHANGED!! #
# #
######################################################################
setenv board "odroidgou"
setenv display_autodetect "true"
setenv hdmimode "1080p60hz"
setenv monitor_onoff "false"
setenv overscan "100"
setenv sdrmode "auto"
setenv voutmode "hdmi"
setenv disablehpd "false"
setenv cec "true"
setenv disable_vu7 "true"
setenv enable_wol "0"
setenv panel_type "lcd_0"
setenv outputmode "panel"
if test "${variant}" = "n2_plus"; then
setenv max_freq_a73 "2208"
setenv max_freq_a53 "1908"
else
setenv max_freq_a73 "1800"
setenv max_freq_a53 "1896"
fi
setenv maxcpus "6"
# Set load addresses
setenv dtb_loadaddr "0x10000000"
setenv dtbo_addr_r "0x11000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"
load mmc ${devno}:1 ${loadaddr} config.ini \
&& ini generic ${loadaddr}
if test "x${overlay_profile}" != "x"; then
ini overlay_${overlay_profile} ${loadaddr}
fi
# Default Console Device Setting
setenv condev "console=ttyAML0,115200n8 console=tty0" # on both
### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi
if test "${cec}" = "true"; then setenv cec_enable "hdmitx=cec3f"; fi
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi
# Boot Args
setenv bootargs "root=/dev/mmcblk1p2 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 ${hid_quirks} fbcon=rotate:3 boot_delay=1000 "
# Load kernel, dtb and initrd
load mmc ${devno}:1 ${k_addr} Image.gz
# load mmc ${devno}:1 ${initrd_loadaddr} uInitrd
load mmc ${devno}:1 ${dtb_loadaddr} amlogic/meson64_odroid${variant}.dtb
fdt addr ${dtb_loadaddr}
#if test "x{overlays}" != "x"; then
# fdt resize ${overlay_resize}
# for overlay in ${overlays}; do
# load mmc ${devno}:1 ${dtbo_addr_r} amlogic/overlays/${board}/${overlay}.dtbo \
# && fdt apply ${dtbo_addr_r}
# done
#fi
# unzip the kernel
unzip ${k_addr} ${loadaddr}
# boot
booti ${loadaddr} - ${dtb_loadaddr}

View file

@ -1,91 +0,0 @@
[generic]
; Auto Detection of Monitor settings based on your Screen information
display_autodetect=true
; HDMI Mode
; Resolution Configuration
; Symbol | Resolution
; ----------------------+-------------
; "480x272p60hz" | 480x272 Progressive 60Hz
; "480x320p60hz" | 480x320 Progressive 60Hz
; "480p60hz" | 720x480 Progressive 60Hz
; "576p50hz" | 720x576 Progressive 50Hz
; "720p60hz" | 1280x720 Progressive 60Hz
; "720p50hz" | 1280x720 Progressive 50Hz
; "1080p60hz" | 1920x1080 Progressive 60Hz
; "1080p50hz" | 1920x1080 Progressive 50Hz
; "1080p30hz" | 1920x1080 Progressive 30Hz
; "1080p24hz" | 1920x1080 Progressive 24Hz
; "1080i60hz" | 1920x1080 Interlaced 60Hz
; "1080i50hz" | 1920x1080 Interlaced 50Hz
; "2160p60hz" | 3840x2160 Progressive 60Hz
; "2160p50hz" | 3840x2160 Progressive 50Hz
; "2160p30hz" | 3840x2160 Progressive 30Hz
; "2160p25hz" | 3840x2160 Progressive 25Hz
; "2160p24hz" | 3840x2160 Progressive 24Hz
; "smpte24hz" | 3840x2160 Progressive 24Hz SMPTE
; "2160p60hz420" | 3840x2160 Progressive 60Hz YCbCr 4:2:0
; "2160p50hz420" | 3840x2160 Progressive 50Hz YCbCr 4:2:0
; "640x480p60hz" | 640x480 Progressive 60Hz
; "800x480p60hz" | 800x480 Progressive 60Hz
; "800x600p60hz" | 800x600 Progressive 60Hz
; "1024x600p60hz" | 1024x600 Progressive 60Hz
; "1024x768p60hz" | 1024x768 Progressive 60Hz
; "1280x800p60hz" | 1280x800 Progressive 60Hz
; "1280x1024p60hz" | 1280x1024 Progressive 60Hz
; "1360x768p60hz" | 1360x768 Progressive 60Hz
; "1440x900p60hz" | 1440x900 Progressive 60Hz
; "1600x900p60hz" | 1600x900 Progressive 60Hz
; "1600x1200p60hz" | 1600x1200 Progressive 60Hz
; "1680x1050p60hz" | 1680x1050 Progressive 60Hz
; "1920x1200p60hz" | 1920x1200 Progressive 60Hz
; "2560x1080p60hz" | 2560x1080 Progressive 60Hz
; "2560x1440p60hz" | 2560x1440 Progressive 60Hz
; "2560x1600p60hz" | 2560x1600 Progressive 60Hz
; "3440x1440p60hz" | 3440x1440 Progressive 60Hz
hdmimode=1080p60hz
; Monitor output
; Controls if HDMI PHY should output anything to the monitor
monitor_onoff=false
; Overscan percentage
; This value scales down the actual screen size by the percentage below
; valid range is 80 to 100
overscan=100
; SDR/HDR Configuration
; This forces SDR or HDR modes
; valid options are: sdr hdr auto
sdrmode=auto
; voutmode : hdmi or dvi
; hdmi / dvi
voutmode=hdmi
; HPD enable/disable option
; false / true
disablehpd=false
; Enable/Disable CEC
cec=true
; Hardkernel ODROID-VU7 support
; By default VU7 support is disabled
disable_vu7=true
; Maximum CPU frequency of ARM A73
; N2: 500/667/1000/1200/1398/1512/1608/1704/1800 (Stock)/1908/2004
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908/2016/2100/2208 (Stock)/2304/2400
max_freq_a73=1908
; Maximum CPU frequency of ARM A53
; N2: 100/250/500/667/1000/1200/1398/1512/1608/1704/1896 (Stock)/1992
; N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908 (Stock)/2016
max_freq_a53=1800
; Maximum number of CPU cores
maxcpus=6
; Wake-On-Lan support (0=disable, 1=enable)
; enable_wol=1

View file

@ -3,15 +3,12 @@
PKG_UBOOT="$(get_build_dir u-boot)"
source ${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/options
FIP_DIR="${ROOT}/build.${DISTRO}-${DEVICE}.aarch64/amlogic-boot-fip-"*
echo ${FIP_DIR}
FIP_DIR="${ROOT}/build.${DISTRO}-${DEVICE}.aarch64/amlogic-boot-fip-*"
case "${PKG_SOC}" in
s922x)
echo "uboot: encrypting uboot.bin with fip..."
cp -av u-boot.bin ${ROOT}/build.${DISTRO}-${DEVICE}.aarch64/amlogic-boot-fip-e96b6a694380ff07d5a9e4be644ffe254bd18512/u-boot.bin
# cp -av u-boot.bin ${FIP_DIR}*/u-boot.bin
echo "uboot: encrypting u-boot.bin with fip..."
cp -av u-boot.bin ${FIP_DIR}/
cd ${FIP_DIR}
./build-fip.sh ${BOOT_FIP} u-boot.bin ${INSTALL}/usr/share/bootloader/
;;