Stretched display

Moderators: mdrjr, odroid

Stretched display

Unread postby MarcoPio » Wed Mar 01, 2017 12:04 am

Hi guys,
I would like to use C1+ with a special stretched display with 1920x540 resolution.
I was able to getting video using dvi option of boot.ini but none of the resolutions listed in boot.ini is fully satisfactory for my needs.

When I set 1920x1080 ( double height ) I can see the top of the screen and so I cannot see the Navigation bar.

I will appreciate any help.

Thank you

Marco
MarcoPio
 
Posts: 6
Joined: Tue Feb 28, 2017 11:45 pm
languages_spoken: italiano
ODROIDs: C1+ / C2

Re: Stretched display

Unread postby odroid » Wed Mar 01, 2017 11:48 am

Connect you C1+ to a 1920x1080 monitor.
And run ODROID-Utility and find the screen(overscan) adjusting menu to reduce the display area.

BTW, can you give me a link of that stretched display?
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Stretched display

Unread postby MarcoPio » Wed Mar 08, 2017 5:48 pm

Thank you for your kind reply.
My current setting is "1080p50hz".
Adjusting the overscan I can reduce just to 640 without scrambled image (440 from bottom).
So we need just a further little step to the goal.

The display is a custom design from ICS Components http://www.icsco.kr.
The model is JL320AT540B-V0 (based on AUO T320HVN01.2), we have the datasheet so please feel free to ask any info can be meaningful to you.

Marco
MarcoPio
 
Posts: 6
Joined: Tue Feb 28, 2017 11:45 pm
languages_spoken: italiano
ODROIDs: C1+ / C2

Re: Stretched display

Unread postby odroid » Wed Mar 08, 2017 7:33 pm

Uhmm.. You need additional 100pixels should be adjusted.
But it seems to be an overscan limitation. We need to check the HDMI hardware capability.
Give us 1~2 weeks to check it.
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Stretched display

Unread postby odroid » Thu Mar 09, 2017 5:19 pm

Do you have a C2 board?
If yes, try this approach.
http://odroid.com/dokuwiki/doku.php?id= ... utosetting
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Stretched display

Unread postby MarcoPio » Wed Mar 15, 2017 10:27 pm

odroid wrote:Uhmm.. You need additional 100pixels should be adjusted.
But it seems to be an overscan limitation. We need to check the HDMI hardware capability.
Give us 1~2 weeks to check it.


Thank you for kind support. I hope in a solution using C1+.

Marco
MarcoPio
 
Posts: 6
Joined: Tue Feb 28, 2017 11:45 pm
languages_spoken: italiano
ODROIDs: C1+ / C2

Re: Stretched display

Unread postby MarcoPio » Wed Mar 15, 2017 10:32 pm

odroid wrote:Do you have a C2 board?
If yes, try this approach.
http://odroid.com/dokuwiki/doku.php?id= ... utosetting


Unfortunately not.
Do any of the C2 settings shown (custombuild, modeline, customwidth, customheight) can applied also to C1+ ?

Thank you

Marco
MarcoPio
 
Posts: 6
Joined: Tue Feb 28, 2017 11:45 pm
languages_spoken: italiano
ODROIDs: C1+ / C2

Re: Stretched display

Unread postby odroid » Thu Mar 16, 2017 2:11 am

If your display works with C2, we will implement the same mode-line features.
Please try it on C2 first.
User avatar
odroid
Site Admin
 
Posts: 28741
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Stretched display

Unread postby joy » Wed Mar 22, 2017 12:18 pm

Hi MarcoPio,
Can you share the information of your monitor?
Just I wanna look into it briefly.

1. Change hpd option in boot.ini and reboot
Code: Select all
# HDMI Hotplug Force (HPD)
# 1 = Enables HOTPlug Detection
# 0 = Disables HOTPlug Detection and force the connected status
setenv hpd "1"

Code: Select all
# sudo reboot

2. Get edid
Code: Select all
# echo d > /sys/class/amhdmitx/amhdmitx0/edid

Then, you can see edid data using "dmesg".
Code: Select all
# dmesg
.....
.....
.....
[ 1066.006161] 00 ff ff ff ff ff ff 00 05 e3 69 22 3b 00 00 00
[ 1066.006587] 29 17 01 03 80 30 1b 78 2a 43 f5 a7 56 53 9c 26
[ 1066.006963] 10 50 54 bf ef 00 d1 c0 b3 00 95 00 81 80 81 40
[ 1066.007335] 81 c0 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
[ 1066.007705] 45 00 dd 0c 11 00 00 1e 00 00 00 fd 00 32 4c 1e
[ 1066.008072] 53 11 00 0a 20 20 20 20 20 20 00 00 00 fc 00 32
[ 1066.008441] 32 36 39 57 4d 0a 20 20 20 20 20 20 00 00 00 ff
[ 1066.008811] 00 42 45 57 44 41 39 41 30 30 30 30 35 39 01 41

Please share the hex bytes here (128bytes or 256bytes).
joy
 
Posts: 523
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Stretched display

Unread postby MarcoPio » Wed Mar 29, 2017 9:14 pm

Dear Joy,

these are EDID info retrieved :

Code: Select all
<4>[  103.093105@2] 00 ff ff ff ff ff ff 00 3a 85 00 00 00 00 00 00
<4>[  103.093297@2] 01 14 01 03 80 24 1d 78 ea 09 25 a2 57 4b 9a 24
<4>[  103.099115@2] 18 50 54 a5 6b 00 31 4f a9 40 d1 c0 01 01 01 01
<4>[  103.104933@2] 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 40 20
<4>[  103.110751@2] 15 00 15 2c 21 00 00 1e 28 3c 80 a0 70 b0 23 40
<4>[  103.116570@2] 40 20 13 00 d6 2c 11 00 00 1a 00 00 00 fd 00 37
<4>[  103.122388@2] 4b 1e 50 10 00 0a 20 20 20 20 20 20 00 00 00 fc
<4>[  103.128206@2] 00 4e 54 2d 57 48 44 0a 20 20 20 20 20 20 00 46
<4>[  103.134024@2]


Thank you

Best Regards

Marco
MarcoPio
 
Posts: 6
Joined: Tue Feb 28, 2017 11:45 pm
languages_spoken: italiano
ODROIDs: C1+ / C2

Re: Stretched display

Unread postby MarcoPio » Wed May 03, 2017 11:31 pm

odroid wrote:If your display works with C2, we will implement the same mode-line features.
Please try it on C2 first.


Dear Joy,
Now I have a C2, and I tried to apply custom settings.
Unfortunately I was not able to get a working signal. None of my attempts result in something visible : always black.
(conversely the default settings works except that I see just the upper half of the image in my stretched screen)

I have Android 5.1.1 (last update by Odroid Utility).
Surely I am wrong in understanding how to input timing information in boot.ini file.

As attachment
stretched timing par.png
timing info from datasheet
stretched timing par.png (59.35 KiB) Viewed 2337 times
you can find datasheet timing info
Then I also decoded succesfully the EDID by http://www.edidreader.com/
But paramters are not clearly formatted as shown in http://odroid.com/dokuwiki/doku.php?id= ... utosetting so
I am not able to understand my mistake.

Can you kindly help me?

Thank You
Marco
MarcoPio
 
Posts: 6
Joined: Tue Feb 28, 2017 11:45 pm
languages_spoken: italiano
ODROIDs: C1+ / C2

Re: Stretched display

Unread postby joy » Mon May 08, 2017 11:44 am

(Updated)
MarcoPio,
You have the datasheet of your monitor (jl320AT540B).
Could you share the datasheet?
Let's check the modeline and make custombuilt mode first on C2.

---------------------------------------------------------------------------------------------

Hi MarcoPio,
Really sorry for very late response.
I didn't answer for over 1 month so you got C2 board. Sorry.

As I analyzed the edid of your monitor, it doesn't support "1920x540".
But it should display "1920x1080p60hz" or "1920x1200p60hz" on C1+ and C2.
Here is the edid information.
Code: Select all
Extracted contents:
header:          00 ff ff ff ff ff ff 00
serial number:   3a 85 00 00 00 00 00 00 01 14
version:         01 03
basic params:    80 24 1d 78 ea
chroma info:     09 25 a2 57 4b 9a 24 18 50 54
established:     a5 6b 00
standard:        31 4f a9 40 d1 c0 01 01 01 01 01 01 01 01 01 01
descriptor 1:    02 3a 80 18 71 38 2d 40 40 20 15 00 15 2c 21 00 00 1e
descriptor 2:    28 3c 80 a0 70 b0 23 40 40 20 13 00 d6 2c 11 00 00 1a
descriptor 3:    00 00 00 fd 00 37 4b 1e 50 10 00 0a 20 20 20 20 20 20
descriptor 4:    00 00 00 fc 00 4e 54 2d 57 48 44 0a 20 20 20 20 20 20
extensions:      00
checksum:        46

Manufacturer: NTE Model 0 Serial Number 0
Made week 1 of 2010
EDID version: 1.3
Digital display
Maximum image size: 36 cm x 29 cm
Gamma: 2.20
DPMS levels: Standby Suspend Off
Supported color formats: RGB 4:4:4, YCrCb 4:2:2
First detailed timing is preferred timing
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@75Hz
  800x600@60Hz
  800x600@75Hz
  832x624@75Hz
  1024x768@60Hz
  1024x768@75Hz
  1280x1024@75Hz
Standard timings supported:
  640x480@75Hz
  1600x1200@60Hz
  1920x1152@60Hz
Detailed mode: Clock 148.500 MHz, 533 mm x 300 mm
               1920 1984 2016 2200 hborder 0
               1080 1081 1086 1125 vborder 0
               +hsync +vsync
Detailed mode: Clock 154.000 MHz, 470 mm x 300 mm
               1920 1984 2016 2080 hborder 0
               1200 1201 1204 1235 vborder 0
               +hsync -vsync
Monitor ranges: 55-75HZ vertical, 30-80kHz horizontal, max dotclock 160MHz
Monitor name: NT-WHD
      Checksum: 0x46


Let's check it using C2 first. :)
If 1920x540 mode is working by manual mode on C2, I think it's possible to implement 1920x540 on C1+, too.
Before that, we need to find why display only shows black.

1. Auto detection with C2
Did you check C2 display by auto detection?
It's a default display option.
You can find the two binary files, "edid.bin" and "display.bin" in the VFAT file system of your card.
Could you share the files here?

2. Manual mode 1080p60hz or 1920x1200p60hz with C2
Have you set 1080p60hz on C1 or C2?
I found you set 1080p50hz in your earlier post.
Could you set 1080p60hz and 1920x1200p60hz by manual mode and check if it's working?
Just edit "hdmimode" and "display_autodetect" in boot.ini.
Code: Select all
.....
setenv hdmimode "1080p60hz"
# or
setenv hdmimode "1920x1200p60hz"
.....
setenv display_autodetect "false"
.....

(1) 1080p60hz on C2
boot.ini
Code: Select all
ODROIDC2-UBOOT-CONFIG

setenv dtbaddr 0x1000000
setenv loadaddr 0x20000000

# Resolution Configuration
# 'hdmimode' must be one of below to configure display resolution within
# supported by your TV or monitor.
#    Symbol             | Resolution
# ----------------------+-------------
#    "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
#    "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
setenv hdmimode "1080p60hz"

setenv rootopt "root=/dev/mmcblk0p2 rw init=/init rootwait"
setenv consoleopt "console=ttyS0,115200"
setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}"
setenv logoopt "osd1,loaded,${fb_addr},${hdmimode}"
setenv selinuxopt "androidboot.selinux=disabled"

# HDMI/DVI Mode Configuration
# This will enforce the signal type of display
# "hdmi" - For HDMI interface
# "dvi" - For DVI interface
setenv vout_mode "hdmi"

# Display Auto Detection
# "false" or "true"
setenv display_autodetect "false"

# HPD enable/disable option
setenv disablehpd "false"

# Overscan offset configuration
# All offsets are zero and can be tuned by manual or ODROID Utility
setenv overscan_top "0"
setenv overscan_left "0"
setenv overscan_bottom "0"
setenv overscan_right "0"
setenv led_onoff "on"
suspend_hdmiphy=0

# max cpu frequency in dvfs table / in MHz unit
# setenv max_freq "2016"  # 2.016GHz
# setenv max_freq "1944"  # 1.944GHz
# setenv max_freq "1920"  # 1.920GHz
# setenv max_freq "1896"  # 1.896GHz
# setenv max_freq "1752"  # 1.752GHz
# setenv max_freq "1680"  # 1.680GHz
# setenv max_freq "1656"  # 1.656GHz
# setenv max_freq "1536"  # 1.536GHz
setenv max_freq "1536"

# max cpu-cores
# setenv maxcpus "1"
# setenv maxcpus "2"
# setenv maxcpus "3"
setenv maxcpus "4"

# disable vu7
setenv disable_vu7 "false"

# invert touch screen x,y
setenv touch_invert_x "false"
setenv touch_invert_y "false"

# gpio power key : J2 (2x20) Pin#35, GPIOY.BIT3
#setenv gpiopower "214"

# usb timing tweak
setenv usbmulticam "false"

if test "${display_autodetect}" = "true"; then usb pwren; hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} ${cmode} hdmitx=${cecconfig} vout=${vout_mode} disablehpd=${disablehpd} logo=${logoopt} ${androidopt} ${selinuxopt} suspend_hdmiphy=${suspend_hdmiphy} led_onoff=${led_onoff} max_freq=${max_freq} maxcpus=${maxcpus} disable_vu7=${disable_vu7} touch_invert_x=${touch_invert_x} touch_invert_y=${touch_invert_y} usbmulticam=${usbmulticam} gpiopower=${gpiopower}"

save

showlogo ${hdmimode}
#usb pwren

movi read dtb 0 ${dtbaddr}
# load kernel from vat or boot partition.
movi read boot 0 ${loadaddr}
#fatload mmc 0:1 ${loadaddr} Image_android
booti ${loadaddr} - ${dtbaddr}


(2) 1920x1200p60hz on C2
boot.ini
Code: Select all
ODROIDC2-UBOOT-CONFIG

setenv dtbaddr 0x1000000
setenv loadaddr 0x20000000

# Resolution Configuration
# 'hdmimode' must be one of below to configure display resolution within
# supported by your TV or monitor.
#    Symbol             | Resolution
# ----------------------+-------------
#    "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
#    "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
setenv hdmimode "1920x1200p60hz"

setenv rootopt "root=/dev/mmcblk0p2 rw init=/init rootwait"
setenv consoleopt "console=ttyS0,115200"
setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}"
setenv logoopt "osd1,loaded,${fb_addr},${hdmimode}"
setenv selinuxopt "androidboot.selinux=disabled"

# HDMI/DVI Mode Configuration
# This will enforce the signal type of display
# "hdmi" - For HDMI interface
# "dvi" - For DVI interface
setenv vout_mode "hdmi"

# Display Auto Detection
# "false" or "true"
setenv display_autodetect "false"

# HPD enable/disable option
setenv disablehpd "false"

# Overscan offset configuration
# All offsets are zero and can be tuned by manual or ODROID Utility
setenv overscan_top "0"
setenv overscan_left "0"
setenv overscan_bottom "0"
setenv overscan_right "0"
setenv led_onoff "on"
suspend_hdmiphy=0

# max cpu frequency in dvfs table / in MHz unit
# setenv max_freq "2016"  # 2.016GHz
# setenv max_freq "1944"  # 1.944GHz
# setenv max_freq "1920"  # 1.920GHz
# setenv max_freq "1896"  # 1.896GHz
# setenv max_freq "1752"  # 1.752GHz
# setenv max_freq "1680"  # 1.680GHz
# setenv max_freq "1656"  # 1.656GHz
# setenv max_freq "1536"  # 1.536GHz
setenv max_freq "1536"

# max cpu-cores
# setenv maxcpus "1"
# setenv maxcpus "2"
# setenv maxcpus "3"
setenv maxcpus "4"

# disable vu7
setenv disable_vu7 "false"

# invert touch screen x,y
setenv touch_invert_x "false"
setenv touch_invert_y "false"

# gpio power key : J2 (2x20) Pin#35, GPIOY.BIT3
#setenv gpiopower "214"

# usb timing tweak
setenv usbmulticam "false"

if test "${display_autodetect}" = "true"; then usb pwren; hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} ${cmode} hdmitx=${cecconfig} vout=${vout_mode} disablehpd=${disablehpd} logo=${logoopt} ${androidopt} ${selinuxopt} suspend_hdmiphy=${suspend_hdmiphy} led_onoff=${led_onoff} max_freq=${max_freq} maxcpus=${maxcpus} disable_vu7=${disable_vu7} touch_invert_x=${touch_invert_x} touch_invert_y=${touch_invert_y} usbmulticam=${usbmulticam} gpiopower=${gpiopower}"

save

showlogo ${hdmimode}
#usb pwren

movi read dtb 0 ${dtbaddr}
# load kernel from vat or boot partition.
movi read boot 0 ${loadaddr}
#fatload mmc 0:1 ${loadaddr} Image_android
booti ${loadaddr} - ${dtbaddr}


3. 1920x540 using custom built mode on C2
I will check 1920x540 modeline and try to implement using "custom built" on C2.
Using "custom built mode", kernel modification is NOT needed so it's easy way now.
Let's try first this way. (then check with C1+)
Please give me a couple of days.
ASAP, I will share the result here.
joy
 
Posts: 523
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: Stretched display

Unread postby joy » Mon May 08, 2017 2:51 pm

Dear MarcoPio,

Via Internet, I got one modeline of 1920x540p60hz.
( http://forums.entechtaiwan.com/index.ph ... 847.0;wap2 )

I don't have a native 1920x540 monitor,
but, just I've built display setting and tested 1920x540p60hz with one of my monitor.
On ODROID-C2 with Android 5.1.1, it's working well.
You can test it using boot.ini that I attached here.

I'm not sure it works with your monitor as well
but please try this boot.ini first,
and then we need to check the monitor specification.

Thanks!

And here is the boot.ini I modified.
Try this.
Code: Select all
# setenv hdmimode "1080p60hz"
setenv hdmimode "custombuilt"

setenv modeline "1920,540,74250,33700,60,1920,2008,2052,2200,540,542,547,562,1,1,1"
setenv customwidth "1920"
setenv customheight "540"


Code: Select all
ODROIDC2-UBOOT-CONFIG

setenv dtbaddr 0x1000000
setenv loadaddr 0x20000000

# Resolution Configuration
# 'hdmimode' must be one of below to configure display resolution within
# supported by your TV or monitor.
#    Symbol             | Resolution
# ----------------------+-------------
#    "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
#    "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
# setenv hdmimode "1080p60hz"

setenv hdmimode "custombuilt"
setenv modeline "1920,540,74250,33700,60,1920,2008,2052,2200,540,542,547,562,1,1,1"
setenv customwidth "1920"
setenv customheight "540"

setenv rootopt "root=/dev/mmcblk0p2 rw init=/init rootwait"
setenv consoleopt "console=ttyS0,115200"
setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}"
setenv logoopt "osd1,loaded,${fb_addr},${hdmimode}"
setenv selinuxopt "androidboot.selinux=disabled"

# HDMI/DVI Mode Configuration
# This will enforce the signal type of display
# "hdmi" - For HDMI interface
# "dvi" - For DVI interface
setenv vout_mode "hdmi"

# Display Auto Detection
# "false" or "true"
# setenv display_autodetect "true"
setenv display_autodetect "false"

# HPD enable/disable option
setenv disablehpd "false"

# Overscan offset configuration
# All offsets are zero and can be tuned by manual or ODROID Utility
setenv overscan_top "0"
setenv overscan_left "0"
setenv overscan_bottom "0"
setenv overscan_right "0"
setenv led_onoff "on"
suspend_hdmiphy=0

# max cpu frequency in dvfs table / in MHz unit
# setenv max_freq "2016"  # 2.016GHz
# setenv max_freq "1944"  # 1.944GHz
# setenv max_freq "1920"  # 1.920GHz
# setenv max_freq "1896"  # 1.896GHz
# setenv max_freq "1752"  # 1.752GHz
# setenv max_freq "1680"  # 1.680GHz
# setenv max_freq "1656"  # 1.656GHz
# setenv max_freq "1536"  # 1.536GHz
setenv max_freq "1536"

# max cpu-cores
# setenv maxcpus "1"
# setenv maxcpus "2"
# setenv maxcpus "3"
setenv maxcpus "4"

# disable vu7
setenv disable_vu7 "false"

# gpio power key : J2 (2x20) Pin#35, GPIOY.BIT3
#setenv gpiopower "214"

# usb timing tweak
setenv usbmulticam "false"

if test "${display_autodetect}" = "true"; then usb pwren; hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} ${cmode} hdmitx=${cecconfig} vout=${vout_mode} disablehpd=${disablehpd} logo=${logoopt} ${androidopt} ${selinuxopt} suspend_hdmiphy=${suspend_hdmiphy} led_onoff=${led_onoff} max_freq=${max_freq} maxcpus=${maxcpus} disable_vu7=${disable_vu7} usbmulticam=${usbmulticam} gpiopower=${gpiopower}"

save

showlogo ${hdmimode}
#usb pwren

movi read dtb 0 ${dtbaddr}
# load kernel from vat or boot partition.
movi read boot 0 ${loadaddr}
#fatload mmc 0:1 ${loadaddr} Image_android
booti ${loadaddr} - ${dtbaddr}
joy
 
Posts: 523
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X


Return to Android

Who is online

Users browsing this forum: No registered users and 1 guest