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: 252 seconds]
CarlFK has joined ##raspberrypi-internals
<CarlFK> https://github.com/itszor/vc4-toolchain apt-get build-dep gcc-6 E: Unable to find a source package for gcc-6
<clever> CarlFK: ive just built it using nix, entirely avoids the entire problem
<clever> CarlFK: start by installing nix, https://nixos.org/download/
<clever> then clone down https://github.com/librerpi/lk-overlay, cd into it, and run nix-shell
<clever> and it will build the gcc for you
<CarlFK> I got to here and don't see where it gets installed https://nix.dev/manual/nix/2.18/installation/multi-user
<clever> `sh <(curl -L https://nixos.org/nix/install) --daemon`
<clever> just that is enough to install nix
<CarlFK> I think I installed nix. now what?
<CarlFK> nix-shell
<CarlFK> clever: lk-overlay$ find -name nix-shell nothing
<CarlFK> I bet I need --recurse-submodules
<CarlFK> or not.
<CarlFK> oh... nix-shell is not part of that repo.. its installed somewhere. got it.
<clever> CarlFK: yeah, nix-shell is part of nix
<clever> you can see an example in the readme of lk-overlay
<CarlFK> it is still installing stuff
<CarlFK> model name : AMD Athlon(tm) 64 Processor 3500+
<CarlFK> one core
Stromeko has quit [Quit: Going… gone.]
jcea has joined ##raspberrypi-internals
jcea has quit [Ping timeout: 246 seconds]
<CarlFK> installed!
<CarlFK> [nix-shell:~/rpi-open-firmware]$ time ./buildall.sh
<CarlFK> CC -M main.c -o build/main.d
<CarlFK> gcc: error: unrecognized command line option '-mfpu=vfp'; did you mean '-mcpu='?
CarlFK has quit [Quit: Leaving.]
CarlFK1 has joined ##raspberrypi-internals
waveform has quit [Ping timeout: 276 seconds]
waveform has joined ##raspberrypi-internals
<clever> CarlFK1: havent used buildall.sh ever, forgot it was even in the repo
<clever> [clever@amd-nixos:~/apps/rpi/rpi-open-firmware]$ nix-build -A vc4.firmware
<clever> CarlFK1: this will build the entire rpi-open-firmware project
Stromeko has joined ##raspberrypi-internals
Stromeko has quit [Quit: Going… gone.]
Stromeko has joined ##raspberrypi-internals
<CarlFK1> clever: thanks. building.... I might need to run this on a better box
<clever> CarlFK1: its only slow the first time, nix has a lot of caching
<clever> what is it currently building?
<CarlFK1> grabbing something from the spew: ../../../source/libcpp/macro.c:2902:2: note: here
<clever> that looks like gcc
<CarlFK1> g++ -I../../source/libcpp -I. -I../../source/libcpp/../include -I../../source/libcpp/include -g -O2 -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../../source/libcpp -I. -I../../source/libcpp/../include -I../../source/libcpp/include -c -o files.o -MT files.o -MMD -MP -MF .deps/files.Tpo ../../source/libcpp/files.c
<CarlFK1> woot. OBJ build/bootcode.bin
<clever> CarlFK1: now just pop it onto an sd card, and spin up anything in the pi2/pi3 family
<CarlFK1> found pi, found sd, talked to friend for an hour...
<CarlFK1> clever: where is it? [nix-shell:~/rpi-open-firmware]$ find -name bootcode.bin
<CarlFK1>
<clever> CarlFK1: in `result`
<clever> `ls -lh result`
<CarlFK1> lrwxrwxrwx 1 videoteam videoteam 60 Oct 8 13:13 result -> /nix/store/z6nrw8z3swrw2azby8dgm3zxk1yrm7lf-firmware-vc4-elf
<clever> CarlFK1: oh right, symlinks are special with ls, `ls -lh result/`
<CarlFK1> -r-xr-xr-x 1 root root 104K Dec 31 1969 bootcode.bin
<clever> yep, there it is
<CarlFK1> to the sd card it goes
<CarlFK1> sudo reboot .. it didn't boot.
<CarlFK1> hdmi monitor went to sleep
<CarlFK1> looking for ftdi...
<clever> CarlFK1: that repo doesnt have any video support, you need to hook up the uart
<clever> lk-overlay has ntsc support, but no hdmi support
<CarlFK1> ah, k. looking..
<clever> rpi-open-firmware can boot linux in 32bit mode from SD, on the pi2 and pi3
<clever> lk-overlay can boot linux in 32bit on a pi2, or 64bit on pi3, from sd or usb, and it has ntsc out support
<CarlFK1> ah, now I understand the need for ntsc capture.
<clever> or just hook up a tv with composite input
CarlFK1 has quit [Ping timeout: 252 seconds]
CarlFK1 has joined ##raspberrypi-internals
jcea has joined ##raspberrypi-internals