Video out default to 720p and purpose of logo=

Post Reply
jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Video out default to 720p and purpose of logo=

Unread post by jit » Mon Mar 02, 2020 3:51 pm

Hello,

I'm trying to build a fbdev retroarch image for c1 / c0 with 480p or 480i (cvbs) default output.

It seems however that the c1 default resolution at start is 720p then when the kernel is started, it switch to whatever the resolution is set in the boot.ini

How can I change this, so the c1 start directly in 480p?

And what the purpose of the argument logo=... In cmdline? I have no display if I either remove it or change the value 720p by any other resolution (or simply by putting {m})

User avatar
odroid
Site Admin
Posts: 33698
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 515 times
Been thanked: 507 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by odroid » Mon Mar 02, 2020 4:59 pm

Which OS image do you run?

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Mon Mar 02, 2020 5:01 pm

Ubuntu 18.04 minimal

User avatar
odroid
Site Admin
Posts: 33698
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 515 times
Been thanked: 507 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by odroid » Mon Mar 02, 2020 5:06 pm

Does that issue appear only with CVBS output? How about the HDMI output?
As far as I understood, the maximum CVBS resolution must be 480p.
viewtopic.php?f=111&t=7726

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Mon Mar 02, 2020 5:48 pm

It appears in hdmi. The c1 start in 720p, then switch to whatever resolution is set.

You can check the dmesg, if you choose any other resolution than 720p in boot.ini, the kernel seems to loose 4 seconds to change the resolution.

Is there any doc about uboot default resolution and the logo / splash image display (I guess the logo= kernel argument play a role in setting video out)?

User avatar
odroid
Site Admin
Posts: 33698
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 515 times
Been thanked: 507 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by odroid » Mon Mar 02, 2020 5:52 pm

The logo seems to be existing in the u-boot stage.

User avatar
tobetter
Posts: 4673
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 89 times
Been thanked: 338 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by tobetter » Mon Mar 02, 2020 6:16 pm

jit wrote: โ†‘
Mon Mar 02, 2020 5:48 pm
It appears in hdmi. The c1 start in 720p, then switch to whatever resolution is set.

You can check the dmesg, if you choose any other resolution than 720p in boot.ini, the kernel seems to loose 4 seconds to change the resolution.

Is there any doc about uboot default resolution and the logo / splash image display (I guess the logo= kernel argument play a role in setting video out)?
If you have the USB-to-SERAL debugging board, open the U-boot command line when the board starts and try these commands and see if U-boot changes the resolution.

Code: Select all

setenv hdmimode 480p
setenv outputmode 480p
saveenv

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Mon Mar 02, 2020 7:07 pm

Thanks @tobetter, I will try that.
But how this will interact with the logo argument passed to the kernel? I guess I will have to change the value, because it seems tightly coupled with the default uboot resolution...

Anyone know how the splash screen works (I never seen any Image while booting, whatever resolution is set in boot.ini)?

User avatar
tobetter
Posts: 4673
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 89 times
Been thanked: 338 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by tobetter » Mon Mar 02, 2020 7:11 pm

jit wrote: โ†‘
Mon Mar 02, 2020 7:07 pm
Thanks @tobetter, I will try that.
But how this will interact with the logo argument passed to the kernel? I guess I will have to change the value, because it seems tightly coupled with the default uboot resolution...

Anyone know how the splash screen works (I never seen any Image while booting, whatever resolution is set in boot.ini)?
U-boot will use the value what I posted in the U-boot, but the default booting logo from Android is, for example, for 720P. I've never tried for 480P but I could try later. Unfortunately, I do not have ODROID-C1 on my hand.

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Mon Mar 02, 2020 7:20 pm

OK, thank you

What I don't understand is this part of the kernel cmdline:
logo=osd1,loaded,0x7900000,720p,full

What is the address 0x7900000?
Why 720p, and why does the display is not working if I change to any other value?
What is osd1?

User avatar
tobetter
Posts: 4673
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 89 times
Been thanked: 338 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by tobetter » Mon Mar 02, 2020 7:24 pm

jit wrote: โ†‘
Mon Mar 02, 2020 7:20 pm
OK, thank you

What I don't understand is this part of the kernel cmdline:
logo=osd1,loaded,0x7900000,720p,full

What is the address 0x7900000?
Why 720p, and why does the display is not working if I change to any other value?
What is osd1?
Basically "osd1" means the OSD layer and "0x7900000" is the address where logo is displayed with which resolution. No idea, actually, why other resolutions are not working now...I need to test.

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Mon Mar 02, 2020 7:37 pm

Hmmm interesting : how the logo is put to this address? Is it in uboot or somewhere in the kernel?

If you want me to do some tests, feel free to tell me ๐Ÿ˜‰

User avatar
tobetter
Posts: 4673
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 89 times
Been thanked: 338 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by tobetter » Mon Mar 02, 2020 7:44 pm

jit wrote: โ†‘
Mon Mar 02, 2020 7:37 pm
Hmmm interesting : how the logo is put to this address? Is it in uboot or somewhere in the kernel?

If you want me to do some tests, feel free to tell me ๐Ÿ˜‰
Obviously, the U-boot puts the logo into memory and shows it to the display device. U-boot has the commands "showlogo".

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Tue Mar 03, 2020 6:08 am

ok after some tests I think I got it:
0x7900000 is, in fact, the base fb adress. I guess it is passed to logo argument so the kernel knows where to copy logo bytes.

To load a splash image, it's lot more simple than the wiki says.
step 1 - load a bmp into memory, here I took the adress 0x14000000 because it is referenced as logo address in uboot env, so I guess it is free to use:
fatload mmc 0:1 0x14000000 boot-logo.bmp

step 2 - display bmp:
bmp display 0x14000000

that's all ;)

regarding logo argument, the kernel crash when it's not present because of NULL pointer dereference. Example below with logo.nologo argument or no logo argument at all.

Code: Select all

QA5:A;SVN:B72;POC:17F;STS:0;BOOT:0;INIT:0;READ:41;READ:41;READ:0;CHECK:0;PASS:0;
-----------------------------------------------------------------------
* Welcome to Hardkernel's ODROID-C... (Built at 19:33:00 Dec  8 2014) *
-----------------------------------------------------------------------
CPU : AMLogic S805
MEM : 1024MB (DDR3@792MHz)
BID : HKC13C0001
S/N : HKC1CC037EB82862
0x0000009f
Loading U-boot...success.


U-boot-00000-g3b0181fd0a(odroidc@3b0181fd) (Jul 17 2018 - 18:49:05)

DRAM:  1 GiB
relocation Offset is: 2ff20000
MMC:   eMMC: 0, SDCARD: 1
IR init is done!
vpu clk_level = 3
set vpu clk: 182150000Hz, readback: 182150000Hz(0x701)
mode = 6  vic = 4
set HDMI vic: 4
mode is: 6
viu chan = 1
config HPLL
config HPLL done
reconfig packet setting done
MMC read: dev # 0, block # 33984, count 12288 ... 12288 blocks read: OK
There is no valid bmp file at the given address
============================================================
Vendor: Man 110100 Snr 516393f8 Rev: 3.2 Prod: 008G9
            Type: Removable Hard Disk
            Capacity: 7456.0 MB = 7.2 GB (15269888 x 512)
------------------------------------------------------------
Partition     Start Sector     Num Sectors     Type
    1                 2048          262144       c
    2               264192        15003649      83
============================================================
Net:   Meson_Ethernet
init suspend firmware done. (ret:0)
Hit Enter key to stop autoboot -- :  0
exit abortboot: 0
reading boot.ini

4337 bytes read
Loading boot.ini from mmc0:1 (vfat)
Executing the script...
setenv m "720p"                 # 720p 1280x720
setenv vout_mode "hdmi"
setenv m_bpp "32"
setenv monitor_onoff "true" # true or false
setenv hpd "0"
setenv cec "0"
setenv vpu "1"
setenv hdmioutput "1"
setenv condev "console=ttyS0,115200n8"        # on serial port
setenv disable_vu7 "false" # false
setenv max_freq "1728"
if test "${hpd}" = "0"; then setenv hdmi_hpd "disablehpd=true"; fi
if test "${cec}" = "1"; then setenv hdmi_cec "hdmitx=cecf"; fi
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} no_console_suspend fsck.repair=yes vdaccfg=0xa000 logo.nologo dmfc=3 cvbsmode=480cvbs hdmim
ode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs} ${hdmi_hpd} ${hdmi_cec} ${enabledac} monitor_onoff=${monitor_onoff} max_freq=${max_freq} ${hid_quirks} fsck.repair=yes ne
t.ifnames=0 consoleblank=0 quiet loglevel=3 rd.systemd.show_status=false udev.log-priority=3"
fatload mmc 0:1 0x14000000 boot-logo.bmp
reading boot-logo.bmp

2764854 bytes read
bmp display 0x14000000
fatload mmc 0:1 0x21000000 uImage
reading uImage

5520728 bytes read
fatload mmc 0:1 0x22000000 uInitrd
reading uInitrd

5218729 bytes read
fatload mmc 0:1 0x21800000 meson8b_odroidc.dtb
reading meson8b_odroidc.dtb

20032 bytes read
fdt addr 21800000
if test "${vpu}" = "0"; then fdt rm /mesonstream; fdt rm /vdec; fdt rm /ppmgr; fi
if test "${hdmioutput}" = "0"; then fdt rm /mesonfb; fi
bootm 0x21000000 0x22000000 0x21800000"
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   Linux-3.10.107-13
   Image Type:   ARM Linux Kernel Image (lzo compressed)
   Data Size:    5520664 Bytes = 5.3 MiB
   Load Address: 00208000
   Entry Point:  00208000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 22000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    5218665 Bytes = 5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 21800000
   Booting using the fdt blob at 0x21800000
   Uncompressing Kernel Image ... OK
uboot time: 6018981 us.
Using machid 0xf81 from environment
From device tree /memory/ node aml_reserved_end property, for relocate ramdisk and fdt, relocate_addr: 0x5503001
   Loading Ramdisk to 05008000, end 05502169 ... OK
   Loading Device Tree to 05000000, end 05007e3f ... OK

Starting kernel ...

[    0.506045@0] Unable to handle kernel NULL pointer dereference at virtual address 00000024
[    0.508661@0] pgd = c0004000
[    0.511597@0] [00000024] *pgd=00000000
[    0.515245@0] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    0.520696@0] Modules linked in:
[    0.523904@0] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.107-13 #2
[    0.530396@0] task: ec670000 ti: ec678000 task.ti: ec678000
[    0.535946@0] PC is at osd_probe+0x340/0x938
[    0.540181@0] LR is at osd_probe+0x334/0x938
[    0.544424@0] pc : [<c03ed7cc>]    lr : [<c03ed7c0>]    psr: 60000113
[    0.544424@0] sp : ec679e38  ip : 00000000  fp : c0a8d858
[    0.556198@0] r10: 00000000  r9 : 00000000  r8 : 00000000
[    0.561567@0] r7 : c0a8d858  r6 : ec605c00  r5 : ec8f175c  r4 : c0a8d858
[    0.568234@0] r3 : 00000000  r2 : ec679db0  r1 : 60000193  r0 : 00000000
[    0.574902@0] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    0.582348@0] Control: 10c5387d  Table: 0020404a  DAC: 00000015
[    0.588235@0]
[    0.588235@0] PC: 0xc03ed74c:
[    0.592823@0] d74c  ebf0b32c e3500000 e1a02000 e5850024 1a000008 e59b3044 e353000f 83e0c00b
[    0.601136@0] d76c  8a000189 e302076c e3e0500b e34c0088 eb0a2360 ea000177 e5973044 e353000f
[    0.609448@0] d78c  8a000005 e5953028 e302078c e34c0088 e5951020 e1a03523 eb0a2356 e30207cc
[    0.617761@0] d7ac  e59f25fc e59d3018 e34c0088 e59f15e8 eb0a2350 e59dc018 e59d001c e35a0000
[    0.626073@0] d7cc  e59c3024 e59dc010 e060200c e59dc014 e16f2f12 e58c3000 e1a022a2 e59dc018
[    0.634385@0] d7ec  03a02000 e3520000 e59c3028 e59dc014 e50c3004 0a000024 e59a3024 e30207e8
[    0.642698@0] d80c  e34c0088 e593b02c eb0a233a e59a3024 e59dc014 e5942044 e5933040 e352000f
[    0.651010@0] d82c  e5933008 e50c305c e59a3024 e5933040 e593300c e50c3058 e59a3024 e5933040
[    0.659324@0]
[    0.659324@0] LR: 0xc03ed740:
[    0.663912@0] d740  e0601001 e5851028 e783510c ebf0b32c e3500000 e1a02000 e5850024 1a000008
[    0.672225@0] d760  e59b3044 e353000f 83e0c00b 8a000189 e302076c e3e0500b e34c0088 eb0a2360
[    0.680537@0] d780  ea000177 e5973044 e353000f 8a000005 e5953028 e302078c e34c0088 e5951020
[    0.688849@0] d7a0  e1a03523 eb0a2356 e30207cc e59f25fc e59d3018 e34c0088 e59f15e8 eb0a2350
[    0.697162@0] d7c0  e59dc018 e59d001c e35a0000 e59c3024 e59dc010 e060200c e59dc014 e16f2f12
[    0.705474@0] d7e0  e58c3000 e1a022a2 e59dc018 03a02000 e3520000 e59c3028 e59dc014 e50c3004
[    0.713787@0] d800  0a000024 e59a3024 e30207e8 e34c0088 e593b02c eb0a233a e59a3024 e59dc014
[    0.722099@0] d820  e5942044 e5933040 e352000f e5933008 e50c305c e59a3024 e5933040 e593300c
[    0.730413@0]
[    0.730413@0] SP: 0xec679db8:
[    0.735001@0] 9db8  00000000 00000000 00000000 00000000 c09dab44 0000002d f2800000 c0007c98
[    0.743313@0] 9dd8  c03ed7cc 60000113 ffffffff ec679e24 00000000 c000d798 00000000 60000193
[    0.751626@0] 9df8  ec679db0 00000000 c0a8d858 ec8f175c ec605c00 c0a8d858 00000000 00000000
[    0.759938@0] 9e18  00000000 c0a8d858 00000000 ec679e38 c03ed7c0 c03ed7cc 60000113 ffffffff
[    0.768251@0] 9e38  ec65828c c005043c 00000000 ec8f1400 00000000 c09b0744 00000000 00000000
[    0.776563@0] 9e58  ec605c18 c0a89c3c ec605c10 c0a89c48 00000000 c09b04cc 00000000 c0954254
[    0.784876@0] 9e78  00000000 c02ce620 00000007 ec605c10 c09b04cc ec605c44 00000000 c09d7d40
[    0.793188@0] 9e98  c0947578 c02ce820 00000000 c09b04cc c02ce7ac c02ccbf0 ec65825c ec6de334
[    0.801502@0]
[    0.801502@0] FP: 0xc0a8d7d8:
[    0.806090@0] d7d8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.814402@0] d7f8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.822715@0] d818  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.831027@0] d838  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.839340@0] d858  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.847652@0] d878  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.855965@0] d898  00000001 00000000 00000000 ec8f175c 00000000 00000000 00000000 00000000
[    0.864277@0] d8b8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 06100000
[    0.872591@0]
[    0.872591@0] R2: 0xec679d30:
[    0.877179@0] 9d30  c0019be0 c097c130 00000024 ec679df0 00000000 00000000 c0a8d858 c0008328
[    0.885491@0] 9d50  00000000 c0980798 00000000 c004fea4 00000002 c06824e8 00000918 c002eaec
[    0.893804@0] 9d70  00000400 0000002d 00000003 c09da210 60000193 c0980774 00000001 00000000
[    0.902116@0] 9d90  00000000 c0980774 c09da210 0000002d 0000000f 00000004 00000000 c002e740
[    0.910429@0] 9db0  c0980774 c002f050 00000000 00000000 00000000 00000000 c09dab44 0000002d
[    0.918741@0] 9dd0  f2800000 c0007c98 c03ed7cc 60000113 ffffffff ec679e24 00000000 c000d798
[    0.927054@0] 9df0  00000000 60000193 ec679db0 00000000 c0a8d858 ec8f175c ec605c00 c0a8d858
[    0.935366@0] 9e10  00000000 00000000 00000000 c0a8d858 00000000 ec679e38 c03ed7c0 c03ed7cc
[    0.943679@0]
[    0.943679@0] R4: 0xc0a8d7d8:
[    0.948268@0] d7d8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.956580@0] d7f8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.964893@0] d818  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.973205@0] d838  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.981518@0] d858  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.989830@0] d878  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.998143@0] d898  00000001 00000000 00000000 ec8f175c 00000000 00000000 00000000 00000000
[    1.006455@0] d8b8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 06100000
[    1.014768@0]
[    1.014768@0] R5: 0xec8f16dc:
[    1.019357@0] 16dc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.027669@0] 16fc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.035982@0] 171c  00000000 00000000 00000000 ec605c10 00000000 00000000 00000000 00000000
[    1.044294@0] 173c  00000000 00000000 00000000 00000000 ec8f175c 00000000 00000000 00000000
[    1.052607@0] 175c  00000001 00000000 ec8f1764 ec8f1764 00000000 00000000 ec8f1400 ec605c00
[    1.060919@0] 177c  06100000 f1000000 01800000 00000000 00000000 00000000 00000000 00000000
[    1.069232@0] 179c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.077544@0] 17bc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.085857@0]
[    1.085857@0]
[    1.085857@0] R6: 0xec605b80:
[    1.090446@0] 5b80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.098758@0] 5ba0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.107071@0] 5bc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.115383@0] 5be0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.123696@0] 5c00  ec6f8480 ffffffff 00000000 00000000 c0993ed0 ec6de300 ec6f8480 ec605e1c
[    1.132008@0] 5c20  ec605a1c c0993ed8 ec656800 c0993d70 ec6f8500 00000003 00000007 00000000
[    1.140321@0] 5c40  00000000 00000000 00000000 ec605c4c ec605c4c ec670000 00000000 c0993fc0
[    1.148633@0] 5c60  c09b04cc 00000000 00000000 00000020 00000000 ec605e74 ec605a74 7fffffff
[    1.156946@0]
[    1.156946@0] R7: 0xc0a8d7d8:
[    1.161535@0] d7d8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.169847@0] d7f8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.178160@0] d818  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.186472@0] d838  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.194784@0] d858  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.203097@0] d878  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.211409@0] d898  00000001 00000000 00000000 ec8f175c 00000000 00000000 00000000 00000000
[    1.219722@0] d8b8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 06100000
[    1.228037@0] Process swapper/0 (pid: 1, stack limit = 0xec678238)
[    1.234184@0] Stack: (0xec679e38 to 0xec67a000)
[    1.238689@0] 9e20:                                                       ec65828c c005043c
[    1.247004@0] 9e40: 00000000 ec8f1400 00000000 c09b0744 00000000 00000000 ec605c18 c0a89c3c
[    1.255316@0] 9e60: ec605c10 c0a89c48 00000000 c09b04cc 00000000 c0954254 00000000 c02ce620
[    1.263629@0] 9e80: 00000007 ec605c10 c09b04cc ec605c44 00000000 c09d7d40 c0947578 c02ce820
[    1.271941@0] 9ea0: 00000000 c09b04cc c02ce7ac c02ccbf0 ec65825c ec6de334 c09b04cc ec9ce700
[    1.280254@0] 9ec0: c0993fc0 c02cdd60 c08825f8 c09b04cc 00000006 c09b04cc 00000006 c09d7d40
[    1.288566@0] 9ee0: c09d7d40 c02ceed8 c0a8d858 00000006 c09d7d40 c09d7d40 c09d7d40 c0947688
[    1.296879@0] 9f00: 00000000 00000000 c095cc54 00000006 c09d7d40 c000854c 000001e9 c00492b0
[    1.305191@0] 9f20: c095422c ec678018 c0866628 c08f00a4 00000006 00000006 c0048b98 c0048bf0
[    1.313503@0] 9f40: 00000000 c095cc54 00000006 c09d7d40 c09d7d40 c09274e0 000001e9 c0954254
[    1.321816@0] 9f60: c0954248 c0927c6c 00000006 00000006 c09274e0 00000000 ec679f9c 00000000
[    1.330128@0] 9f80: c0671f14 00000000 00000000 00000000 00000000 00000000 00000000 c0671f1c
[    1.338441@0] 9fa0: ec678000 00000000 c0671f14 c000dcc0 00000000 00000000 00000000 00000000
[    1.346753@0] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.355066@0] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
[    1.363393@0] [<c03ed7cc>] (osd_probe+0x340/0x938) from [<c02ce620>] (really_probe+0xc0/0x1f4)
[    1.371956@0] [<c02ce620>] (really_probe+0xc0/0x1f4) from [<c02ce820>] (__driver_attach+0x74/0x98)
[    1.380873@0] [<c02ce820>] (__driver_attach+0x74/0x98) from [<c02ccbf0>] (bus_for_each_dev+0x4c/0x98)
[    1.390051@0] [<c02ccbf0>] (bus_for_each_dev+0x4c/0x98) from [<c02cdd60>] (bus_add_driver+0xd0/0x254)
[    1.399228@0] [<c02cdd60>] (bus_add_driver+0xd0/0x254) from [<c02ceed8>] (driver_register+0xa8/0x13c)
[    1.408408@0] [<c02ceed8>] (driver_register+0xa8/0x13c) from [<c0947688>] (osd_init_module+0x110/0x148)
[    1.417760@0] [<c0947688>] (osd_init_module+0x110/0x148) from [<c000854c>] (do_one_initcall+0xa8/0x150)
[    1.427114@0] [<c000854c>] (do_one_initcall+0xa8/0x150) from [<c0927c6c>] (kernel_init_freeable+0x198/0x240)
[    1.436899@0] [<c0927c6c>] (kernel_init_freeable+0x198/0x240) from [<c0671f1c>] (kernel_init+0x8/0x160)
[    1.446249@0] [<c0671f1c>] (kernel_init+0x8/0x160) from [<c000dcc0>] (ret_from_fork+0x14/0x34)
[    1.454815@0] Code: eb0a2350 e59dc018 e59d001c e35a0000 (e59c3024)
[    1.461109@0] ---[ end trace b8d80223ab08722e ]---

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Tue Mar 03, 2020 7:53 am

also I can confirm that setting hdmimode and outputmode using setenv and saveenv does not change the default resolution at boot: it's always 1280x720.
Maybe it's hardcoded in uboot ?

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Thu Mar 05, 2020 8:09 am

ok, I think I've found something...

It seems that uBoot automaticaly executes the content of the env var "preloadlogo". By default, this env var contains some code that set a logo size (??), then initialize the video output using $outputmode env var.
Then, it tries to load a BMP file from the uBoot flash mem and display it (throught nothing is displayed... maybe the specified address does not contain a BMP).

By emptying the content of "preloadlogo", and calling the video initialization sequence in boot.ini, the initial resolution is 720x480 and no more 1280x720, fine, I managed to find it !... BUT, when I load a BMP to display it myself, the display seems a little bit wrong... and yes it is a 24 bit BMP image.
Image

Also, I noticed that if I use the command "logo size ${m}" (m containing the display mode, eg. 480p), my BMP is not displayed.

Finaly, I'm still trying to display a splash image after uboot, when the kernel is loaded. I managed to do that from the uInitrd, but it totally mess up the framebuffer.... it seems that there are 2 fb (fb0 and fb1) that are modified by something during the boot sequence. And copying something to /dev/fb1 or /dev/fb0 from uInitrd makes the framebuffer unusable (nothing else than a trashed image is displayed).... don't understand why :(

I also noticed that when I copy something to fbdev from the uInitrd, "fbset -i" returns a resolution of 1280x720 for fb0 and 720x480 for fb1. But if I do not touch the fbdev in initrd, "fbset -i" returns 32x32 for fb0 and 720x480 for fb1.

jit
Posts: 127
Joined: Mon Mar 30, 2015 4:10 pm
languages_spoken: english, french
ODROIDs: odroid-w => portable retrogaming in a gameboy case,
C0 => custom portable retrogaming "GameOdroid C0"
C0 => Waiting to be used as portable music player
C1 => in a dead project of a portable retrogaming in a gamegear case
C1+ => no more used (was a reverse proxy)... maybe recycled as an Amiga
C2 => Multimedia box for TV and Music
XU4 => serving as OGST
N1 => Home made rackable NAS
4xHC1 => docker swarm cluster
1xHC1 => reverse proxy + seed box
N2 => not yet started... may become another portable gaming device...
Has thanked: 0
Been thanked: 4 times
Contact:

Re: Video out default to 720p and purpose of logo=

Unread post by jit » Mon Mar 09, 2020 5:47 pm

ok I now have understood some interesting things about the C1, it may interest someone ;)

uboot :
- The default width and height of the framebuffer display is declared as display_width=1920 and display_height=1080
- The Uboot automaticaly execute the macro "preloadlogo"
- this macro seems to be the source of 2 problems :
- it calls "logo size" command which seems to just makes the screen black with no possibility to display anything until the kernel is loaded (whatever $outputmod is set to)
- it tries to load a bmp image from somewhere in uboot's memory where there is nothing... trying to display "nothing" seems to set the hdmiout to 1280x720

So, to change the default hdmi output correctly and have a correct framewbuffer size, the followings things have to be done in uboot:
- set display_width and display_height to values corresponding to the output (ie. 720 and 480)
- add fb_width and fb_height with the same values
- set hdmimode to a correct value (ie : 480p60hz)
- either delete preloadlogo variable, or change it so it loads an existing bmp file (ie using "fatload mmc 0:1 ${loadaddr_logo} mylogo.bmp")


About the Framebuffer in linux:
- there are two fb : /dev/fb1 and dev/fb0
- uInird change them with fbset, making /dev/fb0 full screen and /dev/fb1 a 32x32 square in the top left corner...
- beware, the uboot default address to display a logo is set to 0x7900000 which is /dev/fb1 in linux

This fb manipulation is important to know if you want to display a splash image during boot: it must be done after the "local-top" scripts of initramfs (at least on the default ubuntu minimal)
These users thanked the author jit for the post (total 2):
tobetter (Mon Mar 09, 2020 10:52 pm) • odroid (Tue Mar 10, 2020 10:47 am)

Post Reply

Return to โ€œGeneral Topicsโ€

Who is online

Users browsing this forum: No registered users and 5 guests