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
jcea has quit [Ping timeout: 268 seconds]
Ad0 has quit [Ping timeout: 268 seconds]
jcea has joined ##raspberrypi-internals
Ad0 has joined ##raspberrypi-internals
f_ has joined ##raspberrypi-internals
f_ has quit [Ping timeout: 260 seconds]
f_ has joined ##raspberrypi-internals
dolphinana has joined ##raspberrypi-internals
f_ has quit [Remote host closed the connection]
f_ has joined ##raspberrypi-internals
<dolphinana> hi clever!
<dolphinana> I'd like to write a hello world program for librerpi lk
<dolphinana> How do I get started?
f_ has quit [Quit: To contact me, send a memo using MemoServ, PM f_[xmpp], or send an email. See https://vitali64.duckdns.org/.]
<clever> dolphinana: what do you want it to do? print hello-world on boot? add a command to the shell? graphics?
<dolphinana> clever: honestly, I wanna do all of it... But we'll start with the first one...
<dolphinana> but I feel like I'd already know how to print hello-world on boot? (from debugging experience)
<clever> dolphinana: 2 ways of doing that
<clever> dolphinana: this gets ran during boot, you could just add more printf's to it
<clever> logf is a helper, that adds timestamps and the name of the current file/function/line#
<clever> dolphinana: APP_START registers an app with the kernel, it will run .init during boot, and then .entry in a dedicated thread for your app
<clever> rules.mk in the same dir, points to that c file, and some modules it depends on
<clever> just duplicate the entire vc4-stage2 dir, and add your new dir to MODULES= in your current project/ file
dolphinana_ has joined ##raspberrypi-internals
dolphinana has quit [Ping timeout: 245 seconds]
dolphinana_ is now known as dolphinana
dolphinana has quit [Ping timeout: 268 seconds]
dolphinana has joined ##raspberrypi-internals
<dolphinana> nice
<dolphinana> I just added a printf call into the that platform_init function
<dolphinana> it works ^^
<dolphinana> logf also works ^^
<clever> dolphinana: now give an app a try!
<dolphinana> yeah, I'll be doing it now!
<dolphinana> hmm... having some problems compiling the vc4-stage2 module and I'm too tired now...
<clever> dolphinana: whats the error?
<dolphinana> make/recurse.mk:16: lib/fs/fat32/rules.mk: No such file or directory
<dolphinana> make[1]: *** No rule to make target 'lib/fs/fat32/rules.mk'. Stop.
<clever> dolphinana: you can remove the reference to fat32 in the rules.mk
<clever> you dont need fat in your build
<dolphinana> yeah, I actually did that
<clever> along with any other module in there that you dont need
<dolphinana> but I got another problems and I'm too tired to fix it
<dolphinana> (I can probably figure it out myself if I wasn't tired...)
<dolphinana> anyway... I'll be off now, but will be back tomorrow.
<clever> goodnight!
<dolphinana> goodnight ^^
dolphinana has quit [Quit: dolphinana]