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

chore: upgrade grokrazy #18209

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

chore: upgrade grokrazy #18209

wants to merge 6 commits into from

Conversation

andig
Copy link
Member

@andig andig commented Jan 13, 2025

TODO

  • authorized_keys
  • HTTP Password
  • Tailscale or Wireguard (optional)
  • test on real hardware

@andig andig requested a review from naltatis January 13, 2025 17:35
@andig andig added the infrastructure Basic functionality label Jan 13, 2025
@andig andig marked this pull request as ready for review January 13, 2025 17:35
@naltatis naltatis self-assigned this Jan 13, 2025
@naltatis
Copy link
Member

Da passt noch was mit den Pfaden nicht.

Die config.json wird im Projektverzeichnis erstellt, aber scheinbar nicht von dort gelesen. Ich hab sie erst einmal händisch nach ~/gokrazy/evcc/config.json kopiert.

Der Task läuft aber trotzdem nicht durch:

make gokrazy
which gok || go install github.com/gokrazy/tools/cmd/gok@main
/Users/michael/go/bin/gok
sed 's!"GoBuildFlags": null!"GoBuildFlags": ["-tags=release,gokrazy -ldflags=-X github.com/evcc-io/evcc/server.Version=0.132.1 -X github.com/evcc-io/evcc/server.Commit=b956b6571 -X github.com/evcc-io/evcc/vehicle/tesla.TESLA_CLIENT_ID= -s -w"]!g' packaging/gokrazy/config.tmpl.json > config.json
# gok -i evcc add tailscale.com/cmd/tailscaled
# gok -i evcc add tailscale.com/cmd/tailscale
gok -i evcc overwrite --root=evcc_0.132.1.image --target_storage_bytes=1258299392
gokrazy gok gca8464 on GOARCH=arm64 GOOS=darwin

Build target: CGO_ENABLED=0 GOARCH=arm64 GOOS=linux
Build timestamp: 2025-01-15T09:40:27+01:00
Loading system CA certificates from bundled Mozilla CA list
Building 6 Go packages:

  github.com/gokrazy/breakglass
    will be started with command-line flags
      from /Users/michael/gokrazy/evcc/config.json
      last modified: 2025-01-15T09:39:57+01:00 (30s ago)

  github.com/gokrazy/mkfs

  github.com/gokrazy/fbstatus

  github.com/gokrazy/serial-busybox

  github.com/gokrazy/wifi

  github.com/evcc-io/evcc
    will be compiled with build flags
      from /Users/michael/gokrazy/evcc/config.json
      last modified: 2025-01-15T09:39:57+01:00 (30s ago)
    will be started with environment variables
      from /Users/michael/gokrazy/evcc/config.json
      last modified: 2025-01-15T09:39:57+01:00 (30s ago)

[building (go compiler)]2025/01/15 09:40:28 getting incomplete packages [github.com/evcc-io/evcc]
/Users/michael/go/pkg/mod/github.com/evcc-io/[email protected]/main.go:15:13: pattern dist: no matching files found
[done] in 1.90s                        
2025/01/15 09:40:29 [go list -tags gokrazy -json github.com/evcc-io/evcc]: exit status 1
make: *** [gokrazy] Error 1

@andig
Copy link
Member Author

andig commented Jan 15, 2025

Irgendwas verstehe ich noch nicht am Buildprozess: gokrazy/gokrazy#287 (comment)

@naltatis naltatis added the needs documentation Triggers issue creation in evcc-io/docs label Jan 15, 2025
@naltatis
Copy link
Member

@andig sollte das Image direkt auf SD-Karte flashbar sein? Hab die durch make gokrazy erzeugte Datei mit "Raspberry Pi Imager" geflasht. Das scheint aber noch nicht korrekt zu sein. Von der Karte möchte er nicht booten.

IMG_3643

@andig
Copy link
Member Author

andig commented Jan 15, 2025

Gleiches Problem habe ich mich

make gokrazy-run

im Simulator auch. Irgendwas fehlt noch :O

@andig andig marked this pull request as draft January 15, 2025 15:48
@andig
Copy link
Member Author

andig commented Jan 15, 2025

Argh, da fehlt ein --full beim overwrite für MBR und Boot FS.

Makefile Outdated Show resolved Hide resolved
@naltatis
Copy link
Member

Image startet nun. Allerdings gibts scheinbar noch Probleme mit Schreibzugriff und den Assets.

Bildschirmfoto 2025-01-15 um 17 49 11

IMG_3644

@naltatis
Copy link
Member

Können wir da an den Ports drehen? In diesem Szenario kann evcc ja auf 80 laufen. Das Management-UI (aktuell auf 80) ist ja eher zweitrangig.

@andig
Copy link
Member Author

andig commented Jan 15, 2025

Mit dem config.json sollte evcc schon auf port 80 sein- kanns leider nicht testen mangels funktionierendem Emulator.

@andig
Copy link
Member Author

andig commented Jan 15, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Basic functionality needs documentation Triggers issue creation in evcc-io/docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants