!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

908 Members
Declaratively manage your switching, routing, wireless, tunneling and more.267 Servers

Load older messages


SenderMessageTime
21 May 2025
@emilazy:matrix.orgemilyI mean it's Linux.15:39:00
@emilazy:matrix.orgemilythere's no reason to use anything less than Linux.15:39:06
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemyeah admittedly Linux is needed to keep it simple and easy15:39:19
@emilazy:matrix.orgemilythe SoC has the capability to do it and the drivers were written. it's free real estate15:39:21
@matthewcroughan:defenestrate.itmatthewcroughan @fosdembut the most ideal thing would just be some firmware written in embassy/micropython that's easy to contribute to and test 15:39:36
@emilazy:matrix.orgemilyit's way less pleasant to write for some embedded thing with no infrastructure15:39:38
@emilazy:matrix.orgemilyhow would it be "most ideal"?15:39:51
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemThe vendor ships a webpage that lets you choose some options in html in a dropdown, the form is submitted, this programs the asic15:40:23
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemto respond to a html form, you only need some basic micropython code15:40:40
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemyou don't need linux, or routing, or all the stuff that comes with openwrt 15:41:01
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemso it would be most ideal if there were something else that isn't openwrt just for the purposes of providing an API or webui for managing a switch15:41:23
@emilazy:matrix.orgemilybut it's not that simple15:41:34
@emilazy:matrix.orgemilyyou need to persist the configuration15:41:41
@emilazy:matrix.orgemilyyou need to handle upgrades, for issues in the configuration UI15:41:46
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemif openwrt ends up having infra for that, and the UI/api ends up being different for the one use-case of a managed switch, I'm interested in that15:41:47
@emilazy:matrix.orgemilyoperating systems exist because they make writing software systems easier15:42:08
@emilazy:matrix.orgemilythe only reason to use lower level more embedded stuff is cost, power efficiency, realtime/hardware interface requirements15:42:25
@emilazy:matrix.orgemilyyou're already paying ≥ $100 for the switch and the SoC can run Linux, it's literally free15:42:43
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemYou need state? I don't get why15:43:38
@emilazy:matrix.orgemilyto… save the configuration?15:44:15
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemI have my bpi-r4 operating without state, and it is just running nixos, and it can do managed switch stuff on the 4 1G ports it has15:44:18
@emilazy:matrix.orgemilyso that you don't have to set it every time it powers on?15:44:21
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemoh right, yeah so that's not hard to do in micropython, or embassy, etc15:44:52
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemwhatever you choose, you're always gonna have some way of persisting config values15:45:00
@matthewcroughan:defenestrate.itmatthewcroughan @fosdemI just argue that linux/ext4 is like, overkill for what a managed switch has to do15:45:24
@emilazy:matrix.orgemilyit would cost more to develop for no gain15:45:30
@emilazy:matrix.orgemilythere is no reason15:45:39
@emilazy:matrix.orgemilywhy MicroPython? they could write it in assembly15:45:43
@emilazy:matrix.orgemilythen the executable code would be even smaller or whatever, and nobody would care15:45:50
@emilazy:matrix.orgemilyidk. you pick the weirdest things to get hung up about15:46:03

Show newer messages


Back to Room ListRoom Version: 6