<clever> you also need the relocation files for the gpu_mem option to work
<clever> fixup*.dat
<clever> without that, the start.elf is non-relocatable, and winds up somewhere in the middle of ram
<clever> and with physical ram cut in half, linux cant easily use it all, so it just ignores the gpu_mem option and moves the split
<clever> i dont remember what _x did differently though
<clever> bbl
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
<bkchr[m]> clever: Thanks for your tip, I looked again what `start_x` is doing and saw, that I did not have the `fixup_x.dat` file in place.
<clever> ah
<clever> it is kind of weird that the firmware cant do relocation, even though elf supports it
<bkchr[m]> However, I still can not load the camera kernel module :(
<clever> i suspect that bootcode.bin has basically zero ELF support, and just copies start.elf into ram as a dumb blob, and fixup is just a binary patch
<bkchr[m]> clever: do you maybe have an idea, to know which dtb file the bootloader appended?
<clever> i think you can see the entire dtb tree osmewhere in /sys, not sure where
<bkchr[m]> Yeah, I was able to print it
<clever> and there should be other tools to convert a dtb blob back into text
<bkchr[m]> `dtc -I fs -O dts /sys/firmware/devicetree/base` does the trick for the running system
<bkchr[m]> I think the dtb upstream file is missing a node for activating the camera stuff
<clever> i do have 3 rpi's and a camera, so i could test things as well
<clever> armv6, v7, and v8 models
<bkchr[m]> I have the `Raspberry Pi 3 Model B`
<bkchr[m]> Trying to load the kernel module results in `https://patchwork.kernel.org/patch/9626797/`
<bkchr[m]> *`vchiq_get_state: g_state.remote == NULL`
<clever> do you know if the vchiq layer is working yet?
<bkchr[m]> based on the information here: https://patchwork.kernel.org/patch/9626797/ I would assume that it works
<bkchr[m]> I tried to boot with the dtb from the official raspberry pi firmware repository, but I think the bootloader does not pick it yet
<clever> there are some userland tools that can query the gpu and read things like the die temp sensor
<clever> see if those work first
<bkchr[m]> you mean the tools in the raspberrypi-tools package?
<clever> yeah
<bkchr[m]> yeah, patching the dtb by hand solves the problem and the kernel module can be loaded
duncan^ has joined #nixos-aarch64
duncan^ has quit [Changing host]
duncan^ has joined #nixos-aarch64
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #nixos-aarch64
lopsided98 has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 256 seconds]
thefloweringash[ has quit [*.net *.split]
grahamc has quit [*.net *.split]
cornu has quit [*.net *.split]
cornu has joined #nixos-aarch64
thefloweringash[ has joined #nixos-aarch64
vcunat has joined #nixos-aarch64
grahamc has joined #nixos-aarch64
<bkchr[m]> I know, I already asked that once, but could someone tell me how far the aarch64 channel is?
vcunat has quit [Ping timeout: 256 seconds]
vcunat has joined #nixos-aarch64
orivej has joined #nixos-aarch64
vcunat has quit [Quit: Leaving.]