Default avatar
PublicNotes 11 months ago
#### Open tasks - [ ] investigate [support for other devices](https://github.com/OpenTollGate/tollgate-sdk/commit/1a9718556dbe8b6cecc36714d7982986862d27ef) - [testing required]( - [x] Builds for both GL-AR300m and GL-MT3000 with [this change]( - [x] Fixed `GOOS` and `GOARCH` - [x] ready to add [our other go packages](https://njump.me/nevent1qqsfr7cv90sr7u00k4967yfucce576zc4892dt9qu5j6rpamwjw4xjgppemhxue69uhkummn9ekx7mp0qgswmfau3q22zvunk4etqh97aznddp60rwuq3ghcfnlrn9xnm7vy6xgrqsqqqqqp9vk9a5) - [x] build all packages from custom feed - [x] no longer require that the user specifies which package to build as a CLI argument to `build-firmeware` - [x] Automate [upload to blossom](https://njump.me/nevent1qqsramr2agk02gm7zvefvs4myl9yjlx88mh8f7t69g554xsztad4znspzpmhxue69uhkummnw3ezumt0d5hsyg86u6zkjdqrlppxyrar37y79l0urmqtjh8ue24pnx7gl7ktwtfwsspsgqqqqqqs8vu68v) server - [x] Facing [issues](https://njump.me/nevent1qqsf8xf4r7td2halxe7kgkppc66jw06tjlmjq8h34uxlxmlp3rlw35spz4mhxue69uhkummnw3ezummcw3ezuer9wchs4f943e) with `sattelite.earth` - [x] uploads to other public blossom servers fine - [x] created [events](https://njump.me/nevent1qqs90s57k22ktsf8vcmdks2x030xrxn64h9cctjfh9lpl77n9kqnuqgpzpmhxue69uhkummnw3ezumt0d5hsyg8d577gs99pxwfm2u4stjlw3fkksa83hwqg5tuyel3ejnfalxzdrypsgqqqqqqsn6lf7c) that map commit hashes and binary checksums to blossom servers that store the binaries - [x] [include all binaries](https://github.com/OpenTollGate/tollgate-image-builder/pull/4) in image - [x] the binaries are included, but the image seems to be too large sometimes - [x] figuring out [what the problem is](https://njump.me/nevent1qqsz24ahpxt47c7xv9ehy7kga3qmfed3cjkqljvgslamwnuenmutmmcpzpmhxue69uhkummnw3ezumt0d5hsz9thwden5te0dehhxarj9ehhsarj9ejx2a30qyt8wumn8ghj7mmjv9hxwetn09hxxtn5v43kstcdwre6e) and fixing the user output - [x] test sysupgrade image on `GL-MT3000` - [x] Updated `init.d`, waiting for OS upgrade to complete so that I can resolve [this error](https://njump.me/nevent1qqstv0dsr0tvezmuurydelwnzj7n2emjyecg9a0lp8gcuhwft32fnqcpzpmhxue69uhkummnw3ezumt0d5hsz9thwden5te0dehhxarj9ehhsarj9ejx2a30qyt8wumn8ghj7mmjv9hxwetn09hxxtn5v43kstcrae7kt) - [ ] Test `ipks` on GL-AR300m - [ ] Perhaps there is an issue with the arch? `GOOS=linux GOARCH=mips CGO_ENABLED=0 go build -ldflags="-s -w"` **Confirmed:** ``` root@GL-AR300M:/tmp# opkg install whoami.ipk Unknown package 'tollgate-module-whoami-go'. Collected errors: * pkg_hash_check_unresolved: cannot find dependency golang for tollgate-module-whoami-go * pkg_hash_fetch_best_installation_candidate: Packages for tollgate-module-whoami-go found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package tollgate-module-whoami-go. ``` - [ ] Perhaps [this]() is progress - [ ] Generate an image successfully without any of the go stuff - [ ] Maybe I should have been testing on the router with the external antennas. Maybe these routers [are different](View quoted note →).. - [ ] Confirmed the distinction between [nand and nor ](View quoted note →)seems to be part of the problem. - [ ] Left off on [these branches](https://njump.me/nevent1qqsf3rsax464heme366h478krauacwtcgy309yeajhyjhu9gu2kqpwgpzpmhxue69uhkummnw3ezumt0d5hsz9thwden5te0dehhxarj9ehhsarj9ejx2a30qyt8wumn8ghj7mmjv9hxwetn09hxxtn5v43kstcq3jxq2) - [ ] Ensure that the blossom downloader can distinguish between them correctly based on the hashtags - [ ] Ensure that sysupgrade binaries can be generated for both nor and nand - [ ] Try installing the ipk files on the router after flashing it with a binary that doesn't contain any go programs yet - [ ] Install the `whoami` module manually using the ipk - also test with the `relay` module since the changes to `golang.mk` affect both packages, but the changes to the `relay`'s make file only affect the relay - [ ] Cry and go back to messing with the Makefile in the SDK if that doesn't work. Note that each package has its own Makefile, and - [ ] Test `ipks` on GL-MT3000 - [ ] test sysupgrade image on `GL-AR300M` - [ ] Compare with code that worked on previous commit of main - [ ] Upload OpenWRT image to blossom as well - [ ] **make captive portal front-end work again & improve new image -- Working on this one** - [ ] test the install step of makefiles and use that to configure programs - [ ] would like to switch to [local golang]( for better reproducibility across build environment, branch: `with_golang_feed` - [ ] would like to start using actions so that we can use this [runner](View article →) - [ ] Make installer for `ipk` and `sysupgrade` files from blossom
PublicNotes
## Looks like progress (finally) Commit `3197f918d2850799887a91a19e1ee9f240717dad` As you can see below, it no longer says that whoami has the wrong architecture. ``` root@GL-AR300M:/tmp# wget https://github.com/OpenTollGate/tollgate-sdk/releases/download/t est_arch/tollgate-module-whoami-go_0.1-1_mips_24kc.ipk Downloading ' https://github.com/OpenTollGate/tollgate-sdk/releases/download/test_arch/tollgate-module-whoami-go_0.1-1_mips_24kc.ipk' Connecting to 140.82.121.4:443 Redirected to /github-production-release-asset-2e65be/904311377/669e575a-1522-42e2-b016-3320b12b62f8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250127%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250127T180742Z&X-Amz-Expires=300&X-Amz-Signature=2880275209faf79c2b03553e244c090e75b931821dbf1fe31f3ebdfbd4409f91&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dtollgate-module-whoami-go_0.1-1_mips_24kc.ipk&response-content-type=application%2Foctet-stream on objects.githubusercontent.com Writing to '669e575a-1522-42e2-b016-3320b12b62f8?X-Amz-Algorithm=AWS4-HMAC-SHA256' 669e575a-1522-42e2-b 100% |*******************************| 2048k 0:00:00 ETA Download completed (2097404 bytes) root@GL-AR300M:/tmp# mv 669e575a-1522-42e2-b016-3320b12b62f8\?X-Amz-Algorithm=AWS4-HMAC-SH A256 whoami.ipk root@GL-AR300M:/tmp# opkg install whoami.ipk Installing tollgate-module-whoami-go (0.1-1) to root... Collected errors: * verify_pkg_installable: Only have 116kb available on filesystem /overlay, pkg tollgate-module-whoami-go needs 2053 * opkg_install_cmd: Cannot install package tollgate-module-whoami-go. ``` I intend to install a fresh OpenWRT image on the router to make space and then see if I can install the `whoami` module..
View quoted note →