Skip to content

Commit

Permalink
v7.1
Browse files Browse the repository at this point in the history
+ Odroid N2 | Add support for additional HDMI/monitor features, CEC, WOL and device tree overlays. All credits go to Meveric: https://forum.odroid.com/viewtopic.php?p=323888#p323888
  • Loading branch information
MichaIng committed Mar 10, 2021
1 parent 6ee389d commit 8274830
Showing 1 changed file with 37 additions and 4 deletions.
41 changes: 37 additions & 4 deletions boot_n2.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
ODROIDN2-UBOOT-CONFIG

setenv board "odroidn2"

# Serial console device: /dev/tty1 is appended automatically
setenv condev "console=ttyS0,115200n8"

# Auto-detection of monitor settings based on your screen information
# Auto-detection of monitor settings based on your screen information: "false" or "true"
setenv display_autodetect "true"

# Toggle HDMI output: "false" or "true"
setenv monitor_onoff "false"

# Force SDR or HDR mode: "sdr", "hdr" or "auto"
setenv sdrmode "auto"

# Toggle CEC support: "false" or "true"
setenv cec "true"

# Toggle Wake-On-Lan support: 0=disable, 1=enable
setenv enable_wol "0"

# Device tree overlays
# See /boot/overlays/odroidn2/ for available overlays, e.g.:
# - hktft32: 3.2" TFT from HardKernel
# - hktft35: 3.5" TFT from HardKernel
#setenv overlays "spi0 i2c0 i2c1 uart0"

# HDMI mode resolution configuration
# Symbol | Resolution
# ----------------------+-------------
Expand Down Expand Up @@ -88,6 +108,9 @@ setenv maxcpus "6"
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Apply CEC setting
if test "${cec}" = "true"; then setenv cec_enable "hdmitx=cec3f"; fi

# Apply VU7 settings
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi

Expand All @@ -99,7 +122,7 @@ if test "${max_freq_a53}"; then setenv a53_freq "max_freq_a53=${max_freq_a53}";
setenv bootlabel "DietPi (64-bit)"

# Boot args
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs maxcpus=${maxcpus} voutmode=${voutmode} disablehpd=${disablehpd} ${hid_quirks} ${cmode} overscan=${overscan} cvbscable=${cvbscable} ${a73_freq] ${a53_freq}"
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs maxcpus=${maxcpus} voutmode=${voutmode} disablehpd=${disablehpd} enable_wol=${enable_wol} ${cec_enable} sdrmode=${sdrmode} consoleblank=0 logo=osd0,loaded monitor_onoff=${monitor_onoff} ${hid_quirks} ${cmode} overscan=${overscan} cvbscable=${cvbscable} ${a73_freq] ${a53_freq}"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
Expand All @@ -112,8 +135,18 @@ fatload mmc ${devno}:1 ${k_addr} Image.gz
fatload mmc ${devno}:1 ${dtb_loadaddr} meson64_odroid${variant}.dtb
fatload mmc ${devno}:1 ${initrd_loadaddr} uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel

# Load device tree overlays
if test "${overlays}"; then
setenv dtbo_addr_r "0x11000000"
fdt resize "16384"
for overlay in ${overlays}; do
fatload mmc ${devno}:1 ${dtbo_addr_r} overlays/${board}/${overlay}.dtbo && fdt apply ${dtbo_addr_r}
done
fi

# Unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
# Boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

0 comments on commit 8274830

Please sign in to comment.