[SOLVED] ODROID U3 - Change resolution

This forum is for supported devices using an ARMv7 Samsung SoC.

[SOLVED] ODROID U3 - Change resolution

Postby mikmakmuk » Fri Apr 04, 2014 10:16 pm

Hi,

I'm kinda stuck here:

$this->bbcode_second_pass_code('', '
cat /proc/cmdline
console=tty1 console=ttySAC1,115200 mem=2047M fbcon=map:1111111111111111111111111111 console=tty1 console=ttySAC1,115200n8 hdtv_type=hdmi hdtv_format=720p60hz root=/dev/mmcblk0p2 rootwait rw mem=2047M
')

Still, I get a resolution of 1920x1080 on my TV. Looking at the latest Debian Wheezy image from hardkernel.com, the command line parameters for changing the resolution changed. Hence I created my own boot.txt (adaped form here):

$this->bbcode_second_pass_code('', '
setenv fdt_high "0xffffffff"
setenv drm_video_mode "HDMI-A-1:1280x720M@60"
setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000"
setenv bootargs "video=${drm_video_mode} root=/dev/mmcblk0p2 rootwait rw"
boot
')

and compiled it with

$this->bbcode_second_pass_code('', '
mkimage -A arm -C none -T script -n 'Boot script for ODROID-U3: HDMI 720p' -d boot.txt boot.scr
')

and copied boot.scr it to /boot.

Reboot... still running 1080p and /proc/cmdline is unchanged.

$this->bbcode_second_pass_code('', '
cat /proc/cmdline
console=tty1 console=ttySAC1,115200 mem=2047M fbcon=map:1111111111111111111111111111 console=tty1 console=ttySAC1,115200n8 hdtv_type=hdmi hdtv_format=720p60hz root=/dev/mmcblk0p2 rootwait rw mem=2047M
')


I'm unable to determine where or by what hdtv_type=hdmi hdtv_format=720p60hz is set... it's definitely not by the current boot.scr.

The kernel config seems ok:
$this->bbcode_second_pass_code('', '
zless /proc/config.gz | grep CMDLINE
CONFIG_CMDLINE="console=tty1 console=ttySAC1,115200 mem=2047M fbcon=map:1111111111111111111111111111"
# CONFIG_CMDLINE_FROM_BOOTLOADER is not set
CONFIG_CMDLINE_EXTEND=y
# CONFIG_CMDLINE_FORCE is not set
')

Kernel version:
$this->bbcode_second_pass_code('', '
uname -a
Linux shamrokkV 3.8.13.19-2-ARCH #3 SMP PREEMPT Mon Mar 31 17:26:34 MDT 2014 armv7l GNU/Linux
')

:( This is driving me nuts...

Has someone a tip?
Last edited by mikmakmuk on Mon Apr 07, 2014 5:50 am, edited 1 time in total.
mikmakmuk
 
Posts: 6
Joined: Fri Apr 04, 2014 9:58 pm

Re: ODROID U3 - Change resolution

Postby pepedog » Fri Apr 04, 2014 11:56 pm

Hmm, wonder what package odroid-boot-scr does?
https://github.com/archlinuxarm/PKGBUIL ... /genscr.sh
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ODROID U3 - Change resolution

Postby mikmakmuk » Sat Apr 05, 2014 6:17 am

Well, the script creates a bunch of outdated non-working boot.scr's...

So the packge itself should be flagged as outdated (btw, it is even incorrect as $ram is never set as uboot environment variable...)

Just to be clear, even without any boot.scr in /boot, I get
$this->bbcode_second_pass_code('', '
cat /proc/cmdline
console=tty1 console=ttySAC1,115200 mem=2047M fbcon=map:1111111111111111111111111111 console=tty1 console=ttySAC1,115200n8 hdtv_type=hdmi hdtv_format=720p60hz root=/dev/mmcblk0p2 rootwait rw mem=2047M
')

So I wonder where in the archlinux odroid image these kernel parameters are set? I did not find it...

I'm using this image.
mikmakmuk
 
Posts: 6
Joined: Fri Apr 04, 2014 9:58 pm

Re: ODROID U3 - Change resolution

Postby mikmakmuk » Sat Apr 05, 2014 3:33 pm

So I'm trying to debug this behavior but I'm unable to find the uboot package that is used in the official archlinux odroid-u2 image.

The alarm repository contains uboot packages for cubox-i, beagleboard, pandaboard, etc, but not for odroid...

In the forums I found other people asking the same question, without any luck.

Hence my question, does anyone know where the uboot package for odroid is?
mikmakmuk
 
Posts: 6
Joined: Fri Apr 04, 2014 9:58 pm

Re: ODROID U3 - Change resolution

Postby pepedog » Sat Apr 05, 2014 4:18 pm

When I was doing my own thing, I did this
$this->bbcode_second_pass_code('', 'mkdir ~/odroid_u2
cd ~/odroid_u2
git clone https://github.com/hardkernel/u-boot.git
cd u-boot
make smdk4412_config
wget http://myplugbox.com/od/od-uboot-gcc47.patch
patch -Np1 -i od-uboot-gcc47.patch
cc mkbl2.c -o mkbl2
make
cd sd_fuse
./sd_fusing.sh /dev/sdX')
Don't know if it works still
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ODROID U3 - Change resolution

Postby mikmakmuk » Sat Apr 05, 2014 5:24 pm

Aha, thanks! One step closer to solve this mystery.

$this->bbcode_second_pass_code('', '
git clone git@github.com:hardkernel/u-boot.git
[...]
grep -r hdtv_format *
common/cmd_bootscan.c: " hdtv_format=720p60hz"
')

So the hardcoded boot arguments are comming from here. Now I just have to figure out why I can't override them... there have been a lot of changes in the recent months in common/cmd_bootscan.c, so maybe something broke. Need to read the code...
mikmakmuk
 
Posts: 6
Joined: Fri Apr 04, 2014 9:58 pm

[SOLVED] ODROID U3 - Change resolution

Postby mikmakmuk » Mon Apr 07, 2014 5:46 am

I mark this as solved, although I could not identify the reason why it works now. Installed the arch image on a spare SD card and created a boot.scr with the latest version of resolution parameters (video=Bla). Settings still worked after upgrading to newest kernel and user space programs. So I have no clue why the kernel arguments were ignored on my emmc card. Reflashed the emmc card and resolution settings work there too.

Anyway, thanks for the hints where to look at!
mikmakmuk
 
Posts: 6
Joined: Fri Apr 04, 2014 9:58 pm


Return to Samsung

Who is online

Users browsing this forum: No registered users and 3 guests