All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652
@ 2016-07-23 18:54 Dagg Stompler
  2016-07-23 18:55 ` [Buildroot] [PATCH 2/3] odroidc2: bump kernel to rev 1cb48cebb9d525e524de0ede46710bb29f54d4a6 Dagg Stompler
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Dagg Stompler @ 2016-07-23 18:54 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Dagg Stompler <daggs@gmx.com>
---
 configs/odroidc2_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/odroidc2_defconfig b/configs/odroidc2_defconfig
index 1945983..30fa2d5 100644
--- a/configs/odroidc2_defconfig
+++ b/configs/odroidc2_defconfig
@@ -26,7 +26,7 @@ BR2_LINUX_KERNEL_IMAGE=y
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_CUSTOM_GIT=y
 BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/hardkernel/u-boot.git"
-BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="f416a769454b89c39d5b217d28bd3c9f5d1594df"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="1ec799cec97574a9838bc25b286484e579a41652"
 BR2_TARGET_UBOOT_BOARDNAME="odroidc2"
 
 # Required tools to create the SD image
-- 
2.9.2

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

* [Buildroot] [PATCH 2/3] odroidc2: bump kernel to rev 1cb48cebb9d525e524de0ede46710bb29f54d4a6
  2016-07-23 18:54 [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652 Dagg Stompler
@ 2016-07-23 18:55 ` Dagg Stompler
  2016-07-23 21:27   ` Thomas Petazzoni
  2016-07-23 18:55 ` [Buildroot] [PATCH 3/3] odroidc2: update boot.ini Dagg Stompler
  2016-07-23 21:27 ` [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652 Thomas Petazzoni
  2 siblings, 1 reply; 9+ messages in thread
From: Dagg Stompler @ 2016-07-23 18:55 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Dagg Stompler <daggs@gmx.com>
---
 configs/odroidc2_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/odroidc2_defconfig b/configs/odroidc2_defconfig
index 30fa2d5..43c2787 100644
--- a/configs/odroidc2_defconfig
+++ b/configs/odroidc2_defconfig
@@ -14,7 +14,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14=y
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/hardkernel/linux.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="db9b5cfbd380d2316b7723599ee0c7e9d866db17"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="1cb48cebb9d525e524de0ede46710bb29f54d4a6"
 BR2_LINUX_KERNEL_DEFCONFIG="odroidc2"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_BUILD_DEFAULT_DTS=y
-- 
2.9.2

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

* [Buildroot] [PATCH 3/3] odroidc2: update boot.ini
  2016-07-23 18:54 [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652 Dagg Stompler
  2016-07-23 18:55 ` [Buildroot] [PATCH 2/3] odroidc2: bump kernel to rev 1cb48cebb9d525e524de0ede46710bb29f54d4a6 Dagg Stompler
@ 2016-07-23 18:55 ` Dagg Stompler
  2016-07-23 21:28   ` Thomas Petazzoni
  2016-07-23 21:27 ` [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652 Thomas Petazzoni
  2 siblings, 1 reply; 9+ messages in thread
From: Dagg Stompler @ 2016-07-23 18:55 UTC (permalink / raw)
  To: buildroot

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

diff --git a/board/hardkernel/odroidc2/boot.ini b/board/hardkernel/odroidc2/boot.ini
index 8b67b5e..ba90bb4 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 =${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] 9+ messages in thread

* [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652
  2016-07-23 18:54 [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652 Dagg Stompler
  2016-07-23 18:55 ` [Buildroot] [PATCH 2/3] odroidc2: bump kernel to rev 1cb48cebb9d525e524de0ede46710bb29f54d4a6 Dagg Stompler
  2016-07-23 18:55 ` [Buildroot] [PATCH 3/3] odroidc2: update boot.ini Dagg Stompler
@ 2016-07-23 21:27 ` Thomas Petazzoni
  2 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2016-07-23 21:27 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 23 Jul 2016 21:54:59 +0300, Dagg Stompler wrote:
> Signed-off-by: Dagg Stompler <daggs@gmx.com>
> ---
>  configs/odroidc2_defconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

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

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

* [Buildroot] [PATCH 2/3] odroidc2: bump kernel to rev 1cb48cebb9d525e524de0ede46710bb29f54d4a6
  2016-07-23 18:55 ` [Buildroot] [PATCH 2/3] odroidc2: bump kernel to rev 1cb48cebb9d525e524de0ede46710bb29f54d4a6 Dagg Stompler
@ 2016-07-23 21:27   ` Thomas Petazzoni
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2016-07-23 21:27 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 23 Jul 2016 21:55:00 +0300, Dagg Stompler wrote:
> Signed-off-by: Dagg Stompler <daggs@gmx.com>
> ---
>  configs/odroidc2_defconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

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

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

* [Buildroot] [PATCH 3/3] odroidc2: update boot.ini
  2016-07-23 18:55 ` [Buildroot] [PATCH 3/3] odroidc2: update boot.ini Dagg Stompler
@ 2016-07-23 21:28   ` Thomas Petazzoni
  2016-07-24  4:54     ` daggs
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2016-07-23 21:28 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 23 Jul 2016 21:55:01 +0300, Dagg Stompler wrote:
> Signed-off-by: Dagg Stompler <daggs@gmx.com>

This one would benefit from a more detailed commit log.


>  # 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 =${hpd}"

Is =${hpd} really a valid kernel argument? Seems a bit weird, no?

> +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

Yerk :-/

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

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

* [Buildroot] [PATCH 3/3] odroidc2: update boot.ini
  2016-07-23 21:28   ` Thomas Petazzoni
@ 2016-07-24  4:54     ` daggs
  2016-07-24  7:25       ` Thomas Petazzoni
  0 siblings, 1 reply; 9+ messages in thread
From: daggs @ 2016-07-24  4:54 UTC (permalink / raw)
  To: buildroot

Greetings,

> Hello,
> 
> On Sat, 23 Jul 2016 21:55:01 +0300, Dagg Stompler wrote:
> > Signed-off-by: Dagg Stompler <daggs@gmx.com>
> 
> This one would benefit from a more detailed commit log.
will do.

> 
> 
> >  # 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 =${hpd}"
> 
> Is =${hpd} really a valid kernel argument? Seems a bit weird, no?
good catch, this is a bug on my part, will fix.

> 
> > +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
> 
> Yerk :-/
I don't write the code, I just relay it to buildroot.

> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

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

* [Buildroot] [PATCH 3/3] odroidc2: update boot.ini
  2016-07-24  4:54     ` daggs
@ 2016-07-24  7:25       ` Thomas Petazzoni
  2016-07-24  7:47         ` daggs
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2016-07-24  7:25 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 24 Jul 2016 06:54:52 +0200, daggs wrote:

> > > +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  
> > 
> > Yerk :-/  
> I don't write the code, I just relay it to buildroot.

Where is this code coming from? Any chance we use directly the upstream
version rather than having a copy in Buildroot?

Thanks,

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

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

* [Buildroot] [PATCH 3/3] odroidc2: update boot.ini
  2016-07-24  7:25       ` Thomas Petazzoni
@ 2016-07-24  7:47         ` daggs
  0 siblings, 0 replies; 9+ messages in thread
From: daggs @ 2016-07-24  7:47 UTC (permalink / raw)
  To: buildroot

Greetings,
> Sent: Sunday, July 24, 2016 at 10:25 AM
> From: "Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>
> To: daggs <daggs@gmx.com>
> Cc: buildroot at buildroot.org
> Subject: Re: [Buildroot] [PATCH 3/3] odroidc2: update boot.ini
>
> Hello,
> 
> On Sun, 24 Jul 2016 06:54:52 +0200, daggs wrote:
> 
> > > > +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  
> > > 
> > > Yerk :-/  
> > I don't write the code, I just relay it to buildroot.
> 
> Where is this code coming from? Any chance we use directly the upstream
> version rather than having a copy in Buildroot?

the code can be found at https://github.com/mdrjr/c2_bootini
odroid-scripts is based on that repo.
the problem with that repo is that it is ubuntu orinted, e.g. addinf uinitrd code to buildroot will render the system unbootable (I've wasted a whole day in doing needless kernel and uboot bisections until I've figure it out).
in addition, the two redirection change will render serial usb unworkable when getting to cli (that is how I work and debug the system for now).

Dagg.

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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-23 18:54 [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652 Dagg Stompler
2016-07-23 18:55 ` [Buildroot] [PATCH 2/3] odroidc2: bump kernel to rev 1cb48cebb9d525e524de0ede46710bb29f54d4a6 Dagg Stompler
2016-07-23 21:27   ` Thomas Petazzoni
2016-07-23 18:55 ` [Buildroot] [PATCH 3/3] odroidc2: update boot.ini Dagg Stompler
2016-07-23 21:28   ` Thomas Petazzoni
2016-07-24  4:54     ` daggs
2016-07-24  7:25       ` Thomas Petazzoni
2016-07-24  7:47         ` daggs
2016-07-23 21:27 ` [Buildroot] [PATCH 1/3] odroidc2: bump uboot to rev 1ec799cec97574a9838bc25b286484e579a41652 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.