Timmy Welch
b8fc58bd9f
Add support for defining package capabilities
gokrazy CI / CI (macos-latest) (push) Has been cancelled
gokrazy CI / CI (ubuntu-latest) (push) Has been cancelled
gokrazy CI / CI (windows-latest) (push) Has been cancelled
2025-12-28 14:51:38 -08:00
Michael Stapelberg
0bb33e2ae8
packer: move addToFileInfo to write.go
2025-12-06 21:35:56 +01:00
Michael Stapelberg
45b2b940f6
cleanup: move write{Boot,Root}File next to write{Boot,Root}
2025-12-06 21:04:34 +01:00
Michael Stapelberg
50ceea79c7
internal/packer: apply BootloaderExtraEEPROM
...
related to https://github.com/gokrazy/gokrazy/issues/338
2025-11-16 19:09:52 +01:00
Michael Stapelberg
57f559232c
packer: eeprom: only write vl805-*.bin if present (Pi 4)
...
The rpi5-eeprom package no longer contains vl805, which is Pi 4-specific.
related to https://github.com/gokrazy/gokrazy/issues/332
2025-11-16 09:57:09 +01:00
Michael Stapelberg
2f0aac76a0
packer: include timestamp (ts: unixtime) in firmware .sig files
...
Otherwise the Pi 5 firmware will default to a timestamp of 0
and skip the update always.
related to https://github.com/gokrazy/gokrazy/issues/332
2025-11-16 09:08:03 +01:00
Michael Stapelberg
105d190cbc
internal/packer: introduce Pack.Env (with a logger) and log to it
...
related to https://github.com/gokrazy/tools/issues/91
2025-05-29 15:26:31 +02:00
Michael Stapelberg
fc2e1562e8
packer: include KernelExtraArgs in the kernel cmdline
...
related to https://github.com/gokrazy/gokrazy/issues/312
2025-05-20 23:01:12 +02:00
thielepaul
b0f9892141
allow overriding basename in package config ( #86 )
...
related to https://github.com/gokrazy/gokrazy/issues/303
2025-02-27 20:28:19 +01:00
Michael Stapelberg
703a860502
sbom: do not hash source files, record buildid of binaries instead
...
Before this commit, the mere presence of files with certain names in local
package directories would make the build fail (see nonmodulefiles_test.go).
With this commit, we now record the buildinfo and buildid of all built Go
programs of this gokrazy instance.
related to https://github.com/gokrazy/gokrazy/issues/297
fixes https://github.com/gokrazy/gokrazy/issues/299
2025-02-21 18:51:16 +01:00
Michael Stapelberg
9f81add3a9
kernelGlobs: include overlay_map.dtb
...
See “The overlay map file” in the Raspberry Pi Configuration docs:
https://www.raspberrypi.com/documentation/computers/configuration.html#part2.2.10
related to https://github.com/gokrazy/gokrazy/issues/273
2024-07-30 21:25:48 +02:00
Anup Chenthamarakshan
fe5fe168ac
Support non-default FirstPartitionOffsetSectors ( #70 )
...
Support devices that require non-default space before the first partition
starts (4MiB). Required to enable booting Rock64 devices
2024-07-04 17:50:25 +02:00
oliverpool
e53ba4e609
Satisfy staticcheck ( #74 )
...
* remove deprecated ioutil usage
* use more suitable functions
* add missing error handling
* remove unused variables
* select{} instead of for{}
2024-07-04 17:35:15 +02:00
Michael Stapelberg
efa3f22802
packer: prevent accidental overwrites on boot partition
...
related to https://github.com/gokrazy/gokrazy/issues/264
Currently, both the gokrazy/firmware and the gokrazy/kernel.rpi repository
contain an overlays directory. The desired state is that only gokrazy/kernel.rpi
contains an overlays directory, as that is the repository from which the
overlays are built (whereas the are only copied into the firmware repository).
To prevent confusion between different versions, the packer now returns an error
instead of silently overwriting files on the boot partition when there are
multiple sources for a file.
2024-06-23 10:34:02 +02:00
Michael Stapelberg
d7eafaef08
write BootloaderExtraLines to config.txt
...
related to https://github.com/gokrazy/gokrazy/issues/216
2023-12-15 15:19:30 +01:00
Mark Dietzer
60c9d51572
Copy .dtbo overlays from firmware repo as well ( #67 )
2023-12-15 08:59:47 +01:00
Mark Dietzer
c6f9ca1dab
Add ability to have sub-path globs and include overlays ( #63 )
...
Add ability to have sub-path globs and include overlays/*.dtbo from kernel package
2023-10-20 10:48:15 +02:00
Michael Stapelberg
2b2e2d9f24
gok: fix serial console default
2023-02-28 22:11:43 +01:00
Michael Stapelberg
abef3a8e0b
skip Raspberry Pi 4 EEPROM updates when the version is unchanged
...
This shaves about 10s off of the `gok update` time.
2023-02-15 18:29:25 +01:00
Michael Stapelberg
a2832b7d25
move left-over flags
2023-01-07 16:01:39 +01:00
Michael Stapelberg
86312ca8d8
move config package to gokrazy/internal
2023-01-07 16:01:39 +01:00
Michael Stapelberg
434e942c97
refactor packer code into internal/packer, add gok update entrypoint
...
related to https://github.com/gokrazy/gokrazy/issues/147
2023-01-07 16:01:35 +01:00