Current Server Time: 23:15 (Central Europe)

#apertus IRC Channel Logs

2023/02/08

Timezone: UTC


00:30
Bertl
anuejn: how's going?
01:00
anuejn
Bertl: I would be down for a short session now
01:05
anuejn
is there any way I can easily change the video timings for experimentation?
01:07
Bertl
yes, as long as you do not want to change the pixel clock
01:08
anuejn
is the pixel clock generated by an fclock?
01:08
anuejn
or is there another pll involved?
01:08
Bertl
PLL
01:09
Bertl
in theory you can reconfigure that on the fly, but it's tricky
01:09
Bertl
give me a moment to unpack the image
01:09
anuejn
okay
01:13
Bertl
okay, so you probably tested the init_bin_full/center by now, yes?
01:13
anuejn
yes
01:13
anuejn
I didnt verify the output but I tested that there is _something_ coming out
01:14
anuejn
now I want to have the hdmi output on one port only and play around with the video timings
01:15
anuejn
and possibly understand what is going on / what all these magic writes do
01:15
Bertl
the relevant parts for setting up the HDMI output image are the gen_init.sh script which configures the timing, the data_init.sh which adjusts the data timing and events and the ./rmem_conf_bin.sh which configures the read address generator
01:16
Bertl
so for example, you can reconfigure the HDMI output (at least in theory) to let's say 1080p60 with the following scripts ...
01:16
Bertl
./gen_init.sh 1080p60
01:17
Bertl
(this should adjust all the timing stuff to get proper 1080p with 60FPS)
01:17
Bertl
./data_init.sh
01:17
Bertl
(this will setup the data and events)
01:19
Bertl
./rmem_conf_bin.sh 64 228 2048 1920 1080
01:20
Bertl
(this will configure the 'old' output we had before, I hope :)
01:20
Bertl
the magic variables here are the offsets H=64 and V=228 in the 4096x3072 frame
01:21
Bertl
the row length (2048) and the actual display size (1920x1080) for 1080p
01:21
Bertl
you can then load a test image with mimg like this:
01:22
Bertl
./mimg -F 0 -L 2048 -W 1920 -H 1080 -T4
01:22
Bertl
here -F means for 'frame' buffer 0, -L is the row length, -W and -H the image sizes and -T4 is the color test image
01:23
Bertl
note that the HDMI output is likely already configured for A or B frames, so it will show a strange pattern
01:23
Bertl
you can configure that with
01:23
Bertl
scn_reg 30 0x4000
01:23
Bertl
scn_reg 31 0x4000
01:24
Bertl
for the two HDMI outputs (check which one you are currently using)
01:24
Bertl
you should then get a nice color gradient as output
01:28
anuejn
let me verify that
01:42
anuejn
okay my network setup is falling apart and i have to acknoledge that I am to tired for this
01:42
anuejn
maybe tomorrow :)
01:42
anuejn
good night!
01:42
Bertl
fair enough! sleep well!
08:27
se6astian_
anuejn: please document the commands and what you learned so far somewhere (wiki, etc.) from Bertl
12:17
Spirit532
left the channel
12:20
Spirit532
joined the channel
13:10
paulk
left the channel
13:11
paulk
joined the channel
16:20
balrog
left the channel
16:23
balrog
joined the channel