Current Server Time: 11:22 (Central Europe)

#apertus IRC Channel Logs

2023/02/08

Timezone: UTC


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