rtr7 / tools Goto Github PK
View Code? Open in Web Editor NEWtools for installing/updating/recovering a router7 installation
License: Apache License 2.0
tools for installing/updating/recovering a router7 installation
License: Apache License 2.0
Not quite sure what’s happening. The router loads bootx64.efi, ldlinux.e64, vmlinuz and the initrd, but then the screen stays black (haven’t checked serial output yet) and eventually the router reboots.
Otherwise, it’s unnecessarily hard to recover from breaking your router.
This use of errgroups silently swallows errors:
tools/cmd/rtr7-recover/recover.go
Lines 287 to 293 in a3520bc
The problem is that eg.Wait() “blocks until all function calls from the Go method have returned”, even if any of the methods returned an error.
One way to fix this is to use errgroup.WithContext and thereby cancel the other goroutines.
See gokrazy/gokrazy#165 (comment) for context
Looks like the MAC address filter is still not quite right:
2022/06/24 08:49:50 [dhcp] dc:a6:32:02:ba:2f DHCPDISCOVER → ignore (PXEClient vendor class option not found)
2022/06/24 08:49:51 [dhcp] b4:fb:e4:e0:da:93 DHCPDISCOVER → ignore (PXEClient vendor class option not found)
2022/06/24 08:49:52 [dhcp] a8:a1:59:3a:9c:55 DHCPREQUEST → DHCPACK
2022/06/24 08:49:52 [dhcp] a8:a1:59:3a:9c:55 DHCPREQUEST → DHCPACK
2022/06/24 08:49:53 [tftp] bootx64.efi: sending block 0: code=8, error: User aborted the transfer
2022/06/24 08:49:53 [dhcp] b4:fb:e4:e0:da:93 DHCPDISCOVER → DHCPNAK (a8:a1:59:3a:9c:55 is the first PXE client)
2022/06/24 08:49:53 [tftp] bootx64.efi: success
2022/06/24 08:49:53 [dhcp] a8:a1:59:3a:9c:55 DHCPDISCOVER → DHCPOFFER
2022/06/24 08:49:56 [dhcp] dc:a6:32:02:ba:14 DHCPDISCOVER → DHCPNAK (a8:a1:59:3a:9c:55 is the first PXE client)
2022/06/24 08:49:56 [dhcp] dc:a6:32:02:ba:2f DHCPDISCOVER → DHCPNAK (a8:a1:59:3a:9c:55 is the first PXE client)
2022/06/24 08:49:57 [dhcp] b4:fb:e4:e0:da:93 DHCPDISCOVER → DHCPNAK (a8:a1:59:3a:9c:55 is the first PXE client)
2022/06/24 08:49:57 [dhcp] a8:a1:59:3a:9c:55 DHCPREQUEST → DHCPACK
2022/06/24 08:49:57 [tftp] ldlinux.e64: success
2022/06/24 08:49:57 [tftp] pxelinux.cfg/01-a8-a1-59-3a-9c-55: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A000001: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A00000: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A0000: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A000: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A00: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A0: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0A: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/0: file not found
2022/06/24 08:49:57 [tftp] pxelinux.cfg/default: success
2022/06/24 08:49:59 [tftp] vmlinuz: success
2022/06/24 08:50:01 [dhcp] 5c:96:66:4e:be:ea DHCPDISCOVER → DHCPOFFER
2022/06/24 08:50:01 [dhcp] 5c:96:66:4e:be:ea DHCPREQUEST → DHCPACK
Currently, recover.bash
scripts don’t contain the -hostname flag, which makes the contained command not work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.