Closed p4u closed 7 years ago
The problem might be here:
EDIT: it is not
A temporary workaround consists in commenting out this line in network.lua: https://github.com/libremesh/lime-packages/blob/7cda1ad852055e85a3fec73764826ec00ed735bd/packages/lime-system/files/usr/lib/lua/lime/network.lua#L178 which had been introduced two years ago by @G10h4ck in caad3ac. I copy from the lime-users mailing list my explanation of the bad behaviour:
On 04/14/2017 05:53 AM, Juergen Kimmel wrote:
Here is /etc/config/network
config device 'lan_dev' option name 'eth0.1' option macaddr '78:a3:51:16:da:88'
config device 'wan_dev' option name 'eth0.2' option macaddr '78:a3:51:16:da:89'
Ok, now can you try to comment out (prepending "--!") line 178 in /usr/lib/lua/lime/network.lua ?
function owrt_device_parser(section) dev_parser(section["name"]) --! dev_parser(section["ifname"]) end
According to LEDE and OpenWrt wikis [1,2], sections of type device in /etc/config/network should have an ifname option. LibreMesh scripts assume that there is such option and the crash you experienced could be due to the lack of an "option ifname 'eth0'" in device sections in /etc/config/network on ramips. I hope this works... :) Ilario
[1] https://wiki.openwrt.org/doc/uci/network#devices [2] https://lede-project.org/docs/user-guide/switch_configuration#devices
We should switch to use our own version of config-generate and use /etc/board.d stuff instead asap...
On Tue, Apr 18, 2017 at 03:27:38AM -0700, Ilario Gelmetti wrote:
A temporary workaround consists in commenting out this line in network.lua: https://github.com/libremesh/lime-packages/blob/7cda1ad852055e85a3fec73764826ec00ed735bd/packages/lime-system/files/usr/lib/lua/lime/network.lua#L178 which had been introduced two years ago by @G10h4ck in caad3ac. I copy from the lime-users mailing list my explanation of the bad behaviour:
On 04/14/2017 05:53 AM, Juergen Kimmel wrote:
Here is /etc/config/network
config device 'lan_dev' option name 'eth0.1' option macaddr '78:a3:51:16:da:88'
config device 'wan_dev' option name 'eth0.2' option macaddr '78:a3:51:16:da:89'
Ok, now can you try to comment out (prepending "--!") line 178 in /usr/lib/lua/lime/network.lua ?
function owrt_device_parser(section) dev_parser(section["name"]) --! dev_parser(section["ifname"]) end
According to LEDE and OpenWrt wikis [1,2], sections of type device in /etc/config/network should have an ifname option. LibreMesh scripts assume that there is such option and the crash you experienced could be due to the lack of an "option ifname 'eth0'" in device sections in /etc/config/network on ramips. I hope this works... :) Ilario
[1] https://wiki.openwrt.org/doc/uci/network#devices [2] https://lede-project.org/docs/user-guide/switch_configuration#devices
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/libremesh/lime-packages/issues/117#issuecomment-294770210
@ilario I think your workaround would break other platforms.
IMO the workaround should add a first line in dev_parser() function like:
if dev == nil then return end
That should solve the crash too.
However I don't really understand what is the point of these sections:
config device 'lan_dev' option name 'eth0.1' option macaddr '78:a3:51:16:da:88'
I never saw them before, it's a ramips thing? What happens if eth0.1 is defined here but also in "br-lan" ?
We should switch to use our own version of config-generate and use /etc/board.d stuff instead asap...
@dangowrt that is probably right, but it will be a work maybe for the next release
On Tue, Apr 18, 2017 at 03:48:55AM -0700, Pau wrote:
@ilario I thin kyour workaround would break other platforms.
IMO the workaround should add a first line in dev_parser() function like:
if dev == nil then return end
That should solve the crash too.
However I don't really understand what is the point of these sections:
config device 'lan_dev' option name 'eth0.1' option macaddr '78:a3:51:16:da:88'
I never saw them before, it's a ramips thing? What happens if eth0.1 is defined here but also in "br-lan" ?
It would have the same mac address as the WAN interface. Please have a look here to understand how config is generated and realize that there is no point to re-process the generated config to generate yet another config.
As reported in the mailing list there is a problem with the lime-config network interface detection when using it in ramips architecture.