I have a x86 system mounted in a 1U chassis that is running OpenWRT. It has a Ethernet jack that is built in the motherboard. Also, I have 2 more Ethernet jacks on a PCIe card. I would like all of them to show up on the Luci Overview web page. I already customized my /etc/board.json file and got one of the PCIe interfaces to show up, but the currently unused one does not. Here is my current board.json file:
I couldn't find any documentation regarding this file. I think I read somewhere that the file also plays a role in the initial setup but I don't need that now. The "eth0" device is not currently assigned to any interface or has a physical link connected but I know my wrt1900 shows disconnected ports (even though they are assigned to the switch virtual device). Can anyone help?
Note that board.json is auto-generated on reboot, so be sure to save your changes somewhere so you can restore at boot time. (Also note that simply putting /etc/board.json in /etc/sysupgrade.conf won't work, as the file will be restored by an upgrade, but then overwritten as the device boots.) Maybe put the file somewhere that's backed up, then add a line to /etc/rc.local to cp x /etc/board.json...
Thanks, but one thing; the unused eth0 port if, for example, I wanted to add it to the wan interface under a bonding setup or maybe a second cellular wan ISP for fail over, etc... Would I need to remember to edit this file accordingly? Seems to be the case. Just wanted to confirm. Also, can I just ditch the whole "network_device" object altogether? Not sure if that was generated locally or I just copied it from a different board's file and hoped for the best.
I mean I didn't put much thought into the specific application(s) I was just trying to think of some various scenarios where the "eth0" device would belong to the wan firewall group or similar. In the example efahl gave, he had it grouped under the "lan" object. I was just clarifying that manual editing of the /etc/board.json file would be necessary to properly label them on the overview page.
I am talking strictly about the grouping of the data in the /etc/board.json file
I think what was throwing me off was the fact that in my example (and the opposite in your example, but still applicable) under "wan" object, the physical devices are set under the "ports" property, whereas under "lan" seemingly the same configuration for the physical device is set with the "device" property. the inconsistency was bothering me
What I like to do is having a complete network config which is included in the firmware image I flash. May use case is virtual x86... But not quiet sure if that is or would be a suitable solution here.
Is building and flashing a self modified image doable for you @thermochromic ?
Ya I do that, paticurarly on x86 builds. All of this was just so I could see all my devices (physical interfaces) on the Luci Status->Overview page right above the wan address info where they usually reside. Since x86 builds tend to have varying hardware setups it did not show all of them out of the box and maybe I missed it but without digging in the source code, I did not find any documentation on the aforementioned board.json file. I know it is used for other purposes, especially at a systems first boot, but basically I was just being OCD about the UI being correct. I appreciate all the help and suggestions though.