f_ changed the topic of ##raspberrypi-internals to: The inner workings of the Raspberry Pi (Low level VPU/HW) -- for general queries please visit #raspberrypi -- open firmware: https://librerpi.github.io/ -- VC4 VPU Programmers Manual: https://github.com/hermanhermitage/videocoreiv/wiki -- chat logs: https://libera.irclog.whitequark.org/~h~raspberrypi-internals -- bridged to matrix and discord
CompanionCube has quit [Quit: ZNC - http://znc.in]
CompanionCube has joined ##raspberrypi-internals
f_ has joined ##raspberrypi-internals
f_ has quit [Remote host closed the connection]
f_ has joined ##raspberrypi-internals
f_ has quit [Ping timeout: 260 seconds]
jcea has joined ##raspberrypi-internals
Ad0 has quit [Ping timeout: 268 seconds]
Ad0 has joined ##raspberrypi-internals
dolphinana has joined ##raspberrypi-internals
<dolphinana> Hiii!
<dolphinana> I've recently gotten a RPi 2 and now I'm trying to figure out how to get composite video output off of it
<dolphinana> I have a 3.5mm <-> RCA dongle cable, but it seems like it's not working.
<dolphinana> I guess I might have the wrong cable, but I'm troubleshooting this right now...
f_ has joined ##raspberrypi-internals
<clever> dolphinana: how did you enable it in config.txt ?
<dolphinana> I found an SD card with RetroPie, which seem to work with composite output on my RPi 1, but it didn't work with my RPi 2 when I tested it with dongle...
<dolphinana> I have checked the dongle cable with multimeter and it seems like the dongle cable isn't wired correctly for the RPi
<dolphinana> so...
<clever> for some cables, the video comes out one of the audio channels
<clever> for others, gnd is video, and its just all messed up
<dolphinana> yeah...
<dolphinana> I found out that the Pi uses GND on the cable as video output...
<dolphinana> and the white plug is GND for RPi o.o
<clever> dolphinana: ive found this diagram helps the most: https://imgur.com/a/PAuHOSK
<dolphinana> oh yeah, I've seen this diagram in the past
<clever> you can see that most things consider 3 to be gnd
<dolphinana> mhm
<dolphinana> Okay, I just drew a diagram for the cable I have
<dolphinana> sleeve = GND, ring 2 = left, ring 1 = right and tip = video
<dolphinana> I could also say sleeve = GND, ring 2 = white, ring 1 = red and tip = yellow
<dolphinana> gosh, I got the composite video output working with my workaround! :D
f_ has quit [Remote host closed the connection]
f_ has joined ##raspberrypi-internals
<dolphinana> clever: I guess I can use librerpi on RPi 2 with video output now! :)
<clever> dolphinana: as a test, try grabbing https://github.com/librerpi/lk-overlay and do `make PROJECT=bootcode-fast-ntsc`, then copy the resulting lk.bin to bootcode.bin, and see what happens
<dolphinana> sure, just wait a min...
<dolphinana> hmm... no video output...
<dolphinana> I'll be debugging this later, but now I'll do something else...
<dolphinana> see you later ^^
dolphinana has quit [Quit: dolphinana]
f_ has quit [Ping timeout: 260 seconds]
dolphinana has joined ##raspberrypi-internals
<dolphinana> hi, I still haven't gotten any video output from `bootcode-fast-ntsc` build, but I have tested my older librerpi lk-overlay builds and they seem to work on RPi 2
dolphinana has quit [Ping timeout: 252 seconds]
dolphinana_ has joined ##raspberrypi-internals
<clever> dolphinana_: are you able to hook up a uart to the pi2?
<dolphinana_> yes, but I haven't done that yet
<clever> dolphinana_: i'm guessing its something small that i missed and broke while updating other things
<dolphinana_> possibly
<dolphinana_> I'll set up UART on that Pi2
<dolphinana_> just wait a min
<dolphinana_> (but keep in mind that I'll go sleep soon, so I don't have much time right now)
dolphinana has joined ##raspberrypi-internals
dolphinana_ has quit [Ping timeout: 245 seconds]
<dolphinana> hi
<dolphinana> here's the bootcode-fast-ntsc log from RPi 2
<clever> mash not allowed on VEC
<clever> vec rate: 0.000000, plla: 500000000, pllc: 500000000
<clever> dolphinana: yep, there is the problem
<clever> caused by PLLC running a 500mhz, rather then a multiple of 108
<clever> i broke it when i cleaned up the clock management code
<clever> dolphinana: this is the new way of setting the PLLA rate, copy that line into project/bootcode-fast-ntsc.mk and see what happens
<clever> and yeah, it needs to be PLLA now, forgot i changed that
<dolphinana> testing...
<dolphinana> Yay, the video output is working now! ^^
<clever> that demo is designed to just boot as fast as possible
<clever> you can run `help` and `gfx`, and there are options to draw things
<clever> (over the uart)
<clever> from there, its just a question of what you want to do with the pi, but you probably want to sleep first
<dolphinana> good to know!
<dolphinana> btw, are you interested in the UART logs for the working bootcode-fast-ntsc build?
<dolphinana> clever: ^
<clever> it likely only differs on 2 or 3 lines
<clever> and the main number, would be from this line: 0.745667 [VPU:PLATFORM:platform_init]:
<clever> that gets printed after the ntsc output is enabled
<dolphinana> mhm
<clever> so from there, you can tell that it took 0.745667 seconds to go from power being applied, to generating a valid ntsc video sinal
<clever> signal*
<clever> my modern tv takes longer then that to even turn on
<dolphinana> same here
<dolphinana> anyways, I'll go to sleep now
<dolphinana> good night ^^
<dolphinana> (oh by the way, I would like to write a hello world program for librerpi's lk. Could we do that tomorrow?)
<clever> sure
<dolphinana> thanks ^^
<dolphinana> anyway, good night and see ya maybe tomorrow
<dolphinana> have a good night/day
<clever> yep
dolphinana has quit [Quit: dolphinana]