All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] odroidc2: update boot.ini
@ 2016-07-24  5:20 Dagg Stompler
  2016-07-24 13:36 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Dagg Stompler @ 2016-07-24  5:20 UTC (permalink / raw)
  To: buildroot

- fix disablehpd bug (thanks to Thomas for spotting it.)
- change default HDMI mode to 1080p60hz.
- add support for HDMI HotPlug Detection control.
- add support for mason timer.
- add support for headless boot

v1 -> v2:
- bug fix (Thomas Petazzoni).
- add more extensive commit msg (Thomas Petazzoni).

Signed-off-by: Dagg Stompler <daggs@gmx.com>
---
 board/hardkernel/odroidc2/boot.ini | 32 ++++++++++++++++++++++++++++++--
 1 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/board/hardkernel/odroidc2/boot.ini b/board/hardkernel/odroidc2/boot.ini
index 8b67b5e..e909fb4 100644
--- a/board/hardkernel/odroidc2/boot.ini
+++ b/board/hardkernel/odroidc2/boot.ini
@@ -1,16 +1,36 @@
 ODROIDC2-UBOOT-CONFIG
 
 # HDMI mode
-setenv m "720p60hz" # Progressive 60Hz
+setenv m "1080p60hz" # Progressive 60Hz
 
 # HDMI BPP Mode
 setenv m_bpp "32"
 
+# HDMI HotPlug Detection control
+# Allows you to force HDMI thinking that the cable is connected.
+# true = HDMI will believe that cable is always connected
+# false = will let board/monitor negotiate the connection status
+setenv hpd "true"
+
 # Default Console Device Setting
 setenv condev "console=ttyS0,115200n8"	# Serial Console
 
+# Meson Timer
+# 1 - Meson Timer
+# 0 - Arch Timer 
+# Using meson_timer improves the video playback whoever it breaks KVM (virtualization).
+# Using arch timer allows KVM/Virtualization to work however you'll experience poor video
+setenv mesontimer "1"
+
+# Server Mode (aka. No Graphics)
+# Setting nographics to 1 will disable all video subsystem
+# This mode is ideal of server type usage. (Saves ~300Mb of RAM)
+setenv nographics "0"
+
+###########################################
+
 # Boot Arguments
-setenv bootargs "root=/dev/mmcblk0p2 rootwait ro ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop"
+setenv bootargs "root=/dev/mmcblk0p2 rootwait ro ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd}"
 
 # Load Images
 setenv loadaddr "0x11000000"
@@ -18,5 +38,13 @@ setenv dtb_loadaddr "0x10000000"
 fatload mmc 0:1 ${loadaddr} Image
 fatload mmc 0:1 ${dtb_loadaddr} meson64_odroidc2.dtb
 
+if test "${mesontimer}" = "0"; then fdt rm /meson_timer; fdt rm /cpus/cpu at 0/timer; fdt rm /cpus/cpu at 1/timer; fdt rm /cpus/cpu at 2/timer; fdt rm /cpus/cpu at 3/timer; fi
+if test "${mesontimer}" = "1"; then fdt rm /timer; fi
+
+if test "${nographics}" = "1"; then fdt rm /reserved-memory; fdt rm /aocec; fi
+if test "${nographics}" = "1"; then fdt rm /meson-fb; fdt rm /amhdmitx; fdt rm /picdec; fdt rm /ppmgr; fi
+if test "${nographics}" = "1"; then fdt rm /meson-vout; fdt rm /mesonstream; fdt rm /meson-fb; fi
+if test "${nographics}" = "1"; then fdt rm /deinterlace; fdt rm /codec_mm; fi
+
 # Booting
 booti ${loadaddr} - ${dtb_loadaddr}
-- 
2.9.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v2] odroidc2: update boot.ini
  2016-07-24  5:20 [Buildroot] [PATCH v2] odroidc2: update boot.ini Dagg Stompler
@ 2016-07-24 13:36 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-24 13:36 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 24 Jul 2016 08:20:12 +0300, Dagg Stompler wrote:
> - fix disablehpd bug (thanks to Thomas for spotting it.)
> - change default HDMI mode to 1080p60hz.
> - add support for HDMI HotPlug Detection control.
> - add support for mason timer.
> - add support for headless boot
> 
> v1 -> v2:
> - bug fix (Thomas Petazzoni).
> - add more extensive commit msg (Thomas Petazzoni).

I've removed this changelog from the commit log and applied. Thanks a
lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-24 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-24  5:20 [Buildroot] [PATCH v2] odroidc2: update boot.ini Dagg Stompler
2016-07-24 13:36 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.