u-root / u-bmc

Open-source firmware for your baseboard management controller (BMC)
https://u-bmc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
277 stars 33 forks source link

Hack-mode #27

Closed bluecmd closed 6 years ago

bluecmd commented 6 years ago

Right now we compile everything and require a reflash every time something changes.

Given that u-root has a compilation mode for on the fly builds, investigate if it's possible to use that to be able to modify the source on the device to shorten the development iterations.

rjoleary commented 6 years ago

If you're looking at hacking with Go from the shell, you can also look into:

bluecmd commented 6 years ago

Messing more about this and discussing this a bit with @stapelberg I think it would be easier just to allow uploading binaries and replacing the current running ones easily.

Right now I've begun to use cat bbin/bb | ssh 10.0.10.20 "cat > bb; chmod 755 bb; mv bb /bbin/bb; reboot" which works pretty well. For the cases where we do not have Ethernet available, I'm thinking that maybe we can use IP over Serial? Maybe?

bluecmd commented 6 years ago

I'll close this as infeasible. It goes against the signed boot stuff as well and would diverge a lot, it was a cool idea but will probably not work out.