tilpner has quit [Ping timeout: 240 seconds]
tilpner has joined #nixos-aarch64
chiefgoat has quit [Ping timeout: 252 seconds]
chiefgoat has joined #nixos-aarch64
chiefgoat has quit [Client Quit]
chiefgoat has joined #nixos-aarch64
chiefgoat has quit [Client Quit]
orivej has quit [Ping timeout: 276 seconds]
h0m1 has quit [Ping timeout: 246 seconds]
h0m1 has joined #nixos-aarch64
chiefgoat has joined #nixos-aarch64
andi- has quit [Remote host closed the connection]
andi- has joined #nixos-aarch64
Acou_Bass has quit [Ping timeout: 268 seconds]
Acou_Bass has joined #nixos-aarch64
zupo has joined #nixos-aarch64
Acou_Bass has quit [Ping timeout: 265 seconds]
Acou_Bass has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Acou_Bass has quit [Ping timeout: 240 seconds]
Acou_Bass has joined #nixos-aarch64
Acou_Bass has quit [Quit: ZNC 1.7.4 - https://znc.in]
Acou_Bass has joined #nixos-aarch64
kolbycrouch has quit [Remote host closed the connection]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
Thra11_ has quit [Ping timeout: 268 seconds]
Thra11_ has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h0m1 has quit [Quit: WeeChat 2.6]
h0m1 has joined #nixos-aarch64
h0m1 has quit [Quit: WeeChat 2.6]
h0m1 has joined #nixos-aarch64
FRidh has joined #nixos-aarch64
orivej has joined #nixos-aarch64
lopsided98_ has joined #nixos-aarch64
lopsided98 has quit [Ping timeout: 245 seconds]
Thra11_ has quit [Ping timeout: 240 seconds]
Thra11_ has joined #nixos-aarch64
Thra11_ has quit [Ping timeout: 240 seconds]
Thra11_ has joined #nixos-aarch64
hexa- has quit [Quit: WeeChat 2.6]
hexa- has joined #nixos-aarch64
kai_w has joined #nixos-aarch64
h0m1 has quit [Quit: WeeChat 2.6]
h0m1 has joined #nixos-aarch64
kai_w has quit [Quit: Konversation terminated!]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Thra11_ has quit [Ping timeout: 240 seconds]
Thra11_ has joined #nixos-aarch64
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixos-aarch64
pbb has quit [Remote host closed the connection]
h0m1 has quit [Quit: WeeChat 2.6]
pbb has joined #nixos-aarch64
h0m1 has joined #nixos-aarch64
zmacs has joined #nixos-aarch64
zmacs has quit [Client Quit]
zmacs has joined #nixos-aarch64
Thra11_ has quit [Ping timeout: 240 seconds]
Thra11_ has joined #nixos-aarch64
adisbladis has joined #nixos-aarch64
zupo has joined #nixos-aarch64
jslight90 has quit [Quit: Leaving]
Thra11_ has quit [Ping timeout: 240 seconds]
Thra11_ has joined #nixos-aarch64
FRidh has quit [Quit: Konversation terminated!]
tilpner_ has joined #nixos-aarch64
tilpner has quit [Ping timeout: 265 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
tilpner_ is now known as tilpner
Thra11_ has quit [Ping timeout: 265 seconds]
<t184256> samueldr: have you considered listing nixos-mobile here: https://many.tuxphones.com ?
<samueldr> nope, didn't know about that
<samueldr> looks like it's new
<samueldr> >> scrapes websites and wikis of known mobile Linux distributions
<samueldr> ah, then I guess it's coming soon :)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Thra11_ has joined #nixos-aarch64
THFKA4 has quit [Ping timeout: 246 seconds]
THFKA4 has joined #nixos-aarch64
THFKA4 has joined #nixos-aarch64
THFKA4 has quit [Changing host]
tilpner_ has joined #nixos-aarch64
tilpner has quit [Ping timeout: 240 seconds]
tilpner_ has quit [Ping timeout: 268 seconds]
tilpner_ has joined #nixos-aarch64
<samueldr> fun!
<clever> samueldr: currently, ~154kb of the 512kb of flash is used
<samueldr> memsys** could those be DDR training data?
<clever> maybe, they are all 21kb
<clever> -rw-r--r-- 1 clever users 21K Nov 11 19:29 memsys00.bin
<clever> -rw-r--r-- 1 clever users 21K Nov 11 19:29 memsys01.bin
<clever> -rw-r--r-- 1 clever users 21K Nov 11 19:29 memsys02.bin
<clever> google only found those filenames in a single place, a chat log from a user in #raspberrypi , who got zero replies, and his username hasnt been seen since
<samueldr> someone asked on IRC in the past, but had no replies it seems
<samueldr> [18:08] <laptop2> LPDDR4 initialization & calibration?
<samueldr> [18:08] <laptop2> what's the role of memsys00 to memsys07 on RPi4?
<clever> thats the one :P
<samueldr> lol
<samueldr> I wonder if the strings memsys are in the bootcode
<samueldr> and if it's something that "obviously looks at an identifier and loads the right memsys"
<clever> they are present in the blob with magic 55aaf00f
<clever> i suspect 55aaf00f is the old bootcode.bin file
<clever> another thing of note, is that there is ~358kb of 0xff's present
<clever> and now that we know the structure, we could just add more files, with regular (16 byte max) filenames
<samueldr> could it be simply to always write a full image?
<clever> and the firmware would just ignore the extra files
<clever> i believe the official tools already write full images
<clever> you dump the flash->bin, then use a python tool to mutate the bootconf.txt at the end, then burn bin->flash
<samueldr> hmm, the current rpi4 build for u-boot is ~432K
<samueldr> wondering how much slimming can happen
<samueldr> while still having it be useful
<clever> samueldr: edited the gist to add more filesize info
<samueldr> we need to add 40K for a dtb
<samueldr> though that might also be something that can be reduced
<clever> assuming you only need a single memsys, for the chip currently on the board
<samueldr> hmmm... if we drop the whole network stuff
<clever> you could delete the others, and trim it to 85kb
<clever> which gives you 426kb free
<samueldr> also drop extlinux, to be left with uef
<samueldr> uefi*
<clever> the bigger problem, is that bootcode.bin can only load start.elf
<clever> (which is 2mb)
<clever> start.elf is then responsible for bringing the ARM online
<samueldr> ah, forgot about that part
<samueldr> dang it
<clever> so, you would have to start over, with the open-source firmware
<clever> this gets you linux on the arm, without any gpu services (no audio, no hdmi, no composite video, no 3d, no hw accel h264)
<clever> in theory, it could be ported to the rpi4, and have a uboot image baked into it
<clever> then linux would be responsible for loading the "gpu firmware" later on
<clever> (once its even developed)
<samueldr> without any video output, that's not really useful in the end for many applications :)
<samueldr> like, selecting a boot option in grub
<clever> serial port is easy (ive already done it)
<clever> usb/ethernet/sd will probably work
<clever> also of note, the bootcode.bin half of things, must be under 128kb
<clever> because thats the size of the L2 cache
<clever> its main job is to just turn on dram, so the fat start.elf can move in
<clever> -rw-r--r-- 1 clever users 52K Nov 2 18:04 /home/clever/apps/rpi/firmware/boot/bootcode.bin
<clever> interesting
<clever> the rpi4 bootcode (if i'm looking at the right file) isnt much bigger
<clever> just 9kb bigger
<clever> [clever@amd-nixos:~/apps/rpi/rpi-eeprom/firmware/beta]$ /nix/store/rr7860kh97077r72mvrdlp8yp5yj7vnr-vc4-elf-binutils-2.31.1/bin/vc4-elf-objdump -b binary -D -m vc4 main-body.bin | less
<clever> 208: e0 00 version r0
<clever> 204: f0 81 00 c0 addcmpbne r0,-1,0x0,0x204
<clever> 200: 00 b0 00 01 mov r0,256
<clever> samueldr: boom!, that looks extremely similar to the start of the real bootcode.bin!
<clever> [clever@amd-nixos:~/apps/rpi/rpi-eeprom/firmware/beta]$ /nix/store/rr7860kh97077r72mvrdlp8yp5yj7vnr-vc4-elf-binutils-2.31.1/bin/vc4-elf-objdump -b binary -D -m vc4 ~/apps/rpi/firmware/boot/bootcode.bin | less
<clever> 200: e0 00 version r0
<clever> they just added another 2 opcodes at the start
<clever> that makes me wonder, how does recovery.bin un-brick the pi...
<clever> its only 60kb
<clever> thats 1kb smaller then the bootcode.bin in the actual spi flash....
<clever> Verify VL805 EEPROM
<clever> Updating VL805
<clever> samueldr: i see strings in recovery.bin, that deal with updating the usb controller firmware
<samueldr> yep
<clever> File has Invalid/missing signature: '%s' (%u)
<clever> Writing EEPROM
<clever> and the rpi firmware
<clever> Failed to rename recovery.bin
<clever> and i think the recover sd card will "self destruct" (rename recovery.bin)
<clever> aha
<clever> pieeprom.upd
<clever> pieeprom.bin
<clever> pieeprom.sig
<clever> vl805.bin
<clever> vl805.sig
<clever> it expects those files to be on the sd card
<clever> BOOT_UART
<clever> DHCP_TIMEOUT
<clever> NET_CONSOLE
<clever> thats fishy...
<clever> samueldr: most of the strings in this region, are bootconf.txt entries
<clever> NET_CONSOLE isnt documented...
<samueldr> ooh, fun
<clever> they have a zip here, with pieeprom.bin pieeprom.sig README.txt recovery.bin vl805.bin vl805.sig
<clever> and i can confirm, the sig files are only sha256 hashes of the matching bin's
<clever> so you can just reuse recovery.bin to flash your own custom firmware
<clever> no need to un-brick to foundation firmware, then flashrom back to custom
<clever> MEMSYS INIT failed: %d
<clever> MEMSYS DPFE failed: %d
<clever> samueldr: memsys also appears in other strings
<clever> Bad EEPROM capacity: 0x%x
<clever> samueldr: the blob in the spi flash, may abort if the spi flash is the wrong size??
<clever> PXEClient:Arch:00000:UNDI:002001