Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raspberrypi: update kernel, eeprom, firmware, libraspberrypi #118548

Merged
merged 4 commits into from
Apr 5, 2021

Conversation

mweinelt
Copy link
Member

@mweinelt mweinelt commented Apr 5, 2021

Motivation for this change

Updates.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: kernel The Linux kernel label Apr 5, 2021
@ofborg ofborg bot requested review from dasJ, tavyc, dezgeg and tkerber April 5, 2021 04:09
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Apr 5, 2021
@mweinelt
Copy link
Member Author

mweinelt commented Apr 5, 2021

┃ ▶ linux-5.10.17-1.20210303 on ssh://root@dione.lossy.network ⏲ 00:05:52 (∅04:54:34)

If someone wonders how long an RPi4 takes for a kernel build. This is with 3 build cores and 1 job on the 4 GB model. Average time courtesy of nom.

Linux dione 5.10.17 #1-NixOS SMP Tue Jan 1 00:00:00 UTC 1980 aarch64 GNU/Linux

wfm

@mweinelt mweinelt merged commit 7b64166 into NixOS:master Apr 5, 2021
@mweinelt mweinelt deleted the raspberrypi branch April 5, 2021 23:51
@mweinelt
Copy link
Member Author

mweinelt commented Apr 14, 2021

Tested rpi-eeprom-update just now.

[root@dione:~]# FIRMWARE_RELEASE_STATUS=stable rpi-eeprom-update -a
BCM2711 detected
Dedicated VL805 EEPROM detected
*** INSTALLING EEPROM UPDATES ***
Checking for updates in /nix/store/ym7j7a7pkx6c8rryrx3sg1h193fjr1d9-raspberrypi-eeprom-2021-03-18/share/rpi-eeprom/stable
Use raspi-config to select either the default-production release or latest update.
BOOTLOADER: update available
CURRENT: Fri May 15 10:05:52 AM UTC 2020 (1589537152)
 LATEST: Thu Mar 18 08:54:11 AM UTC 2021 (1616057651)
RELEASE: stable
VL805: update available
CURRENT: 000137ad
 LATEST: 000138a1
BOOTFS /boot
EEPROM updates pending. Please reboot to apply the update.

[root@dione:~]# reboot
Connection to dione closed by remote host.
Connection to dione closed.

On reboot the update happened.

PM_RSTS: 0x00001020
RPi: BOOTLOADER release VERSION:1b43d5b6 DATE: Mar 18 2021 TIME: 08:54:14 BOOTMODE: 0x00000006 part: 0 BUILD_TIMESTAMP=1616057651 0x1ca63f53 0x00c03111 0x0009882e
PM_RSTS: 0x00001020
part 00000000 reset_info 00000000
uSD voltage 3.3V
Initialising SDRAM 'Micron' 16Gb x2 total-size: 32 Gbit 3200
PCI reset
PCI reset
PCI reset
XHCI-STOP
xHC ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
xHC ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
xHC ports 5 slots 32 intrs 4
Reset USB port-power 1000 ms
xhci_set_port_power 1 0
xhci_set_port_power 2 0
xhci_set_port_power 3 0
xhci_set_port_power 4 0
xhci_set_port_power 5 0
xhci_set_port_power 1 1
xhci_set_port_power 2 1
xhci_set_port_power 3 1
xhci_set_port_power 4 1
xhci_set_port_power 5 1
XHCI-STOP
xHC ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
XHCI-STOP
xHC ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
xHC ver: 256 HCS: 05000420 fc000031 00e70004 HCC: 002841eb
xHC ports 5 slots 32 intrs 4
Boot mode: SD (01) order f4
SD HOST: 250000000 CTL0: 0x00000000 BUS: 100000 Hz actual: 100000 HZ div: 2500 (1250) status: 0x1fff0000 delay: 1080
SD HOST: 250000000 CTL0: 0x00000f00 BUS: 100000 Hz actual: 100000 HZ div: 2500 (1250) status: 0x1fff0000 delay: 1080
OCR c0ff8000 [2]
CID: 001b534d45433251543021a6552e0141
CSD: 400e00325b590001dcff7f800a404000
SD: bus-width: 4 spec: 2 SCR: 0x02858483 0x00000000
SD HOST: 250000000 CTL0: 0x00000f04 BUS: 50000000 Hz actual: 41666666 HZ div: 6 (3) status: 0x1fff0000 delay: 2
MBR: 0x00004000, 2097152 type: 0x0b
MBR: 0x00000000,       0 type: 0x00
MBR: 0x00000000,       0 type: 0x00
MBR: 0x00000000,       0 type: 0x00
Trying partition: 0
lba: 16384 oem: 'mkfs.fat' volume: ' FIRMWARE   '
rsc 32 fat-sectors 2048 c-count 261628 c-size 8 r-dir 2 r-sec 0
PM_RSTS: 0x00001020
Trying partition: 0
lba: 16384 oem: 'mkfs.fat' volume: ' FIRMWARE   '
rsc 32 fat-sectors 2048 c-count 261628 c-size 8 r-dir 2 r-sec 0
Read config.txt bytes      459 hnd 0x0000a9ed 
SIG vl805.sig 6246230ecd5b472902e6a49c95e857a5e3190c4fa6c462d6a8867e9a5e523a7c 0
Read vl805.bin bytes    99224 hnd 0x0000b476 
VL805 EEPROM is up to date
Read start4cd.elf bytes   793116 hnd 0x0000aca8 
Read fixup4cd.dat bytes     3187 hnd 0x0000aa80 
Firmware: 564e5f9b852b23a330b1764bcf0b2d022a20afd0 Feb 25 2021 12:10:56
0x00c03111 0x00000000 0x000000ff
MEM GPU: 16 ARM: 998 TOTAL: 1014
Starting start4cd.elf @ 0xff000200 partition 0
PCI reset
+

USB is still working 👍

[root@dione:~]# FIRMWARE_RELEASE_STATUS=stable rpi-eeprom-update 
BCM2711 detected
Dedicated VL805 EEPROM detected
Checking for updates in /nix/store/ym7j7a7pkx6c8rryrx3sg1h193fjr1d9-raspberrypi-eeprom-2021-03-18/share/rpi-eeprom/stable
Use raspi-config to select either the default-production release or latest update.
BOOTLOADER: up-to-date
CURRENT: Thu Mar 18 08:54:11 AM UTC 2021 (1616057651)
 LATEST: Thu Mar 18 08:54:11 AM UTC 2021 (1616057651)
RELEASE: stable
VL805: up-to-date
CURRENT: 000138a1
 LATEST: 000138a1

@mweinelt
Copy link
Member Author

This will be my last update to linux_rpi, since I've moved to linuxPackages_latest.linux instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: kernel The Linux kernel 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant