[OpenWrt-Devel] [PATCH 1/3] gemini: Make a per-board case for ethernet MAC

Christian Lamparter chunkeey at gmail.com
Fri Jun 14 13:23:56 EDT 2019


Hello Linus,

On Tuesday, June 11, 2019 4:40:12 PM CEST Linus Walleij wrote:
> Hi Christian,
> 
> I worked in all the changes you requested until I got to this:
> 
> On Thu, May 30, 2019 at 12:46 AM Christian Lamparter <chunkeey at gmail.com> wrote:
> 
> > > +                             ifconfig eth0 hw ether $MAC1 2>/dev/null
> >
> > I guess while we are at it, why not change it to
> > "ip link set dev eth0 address $MAC1"
> 
> Testing this:
> 
> ip link set eth0 address 00:50:c2:11:11:11
> ip: socket(AF_PACKET,2,0): Address family not supported by protocol
> 
> Any hints? According to the help it should work ...
Yeah, now that I'm home (I'm away pretty much "away" during the workdays
of the week) I did take a quick look.

target/linux/gemini/config-4.14 and target/linux/gemini/config-4.19
both have
# CONFIG_PACKET is not set

I think these should be removed (so CONFIG_PACKET is enabled because
target/linux/generic/config-4.1X sets it to =y)? Because otherwise
other helpful tools like tcpdump won't work either.

I put together a patchset in my staging tree starting from 

https://git.openwrt.org/?p=openwrt/staging/chunkeey.git;a=commit;h=620462e09afc40602110b82caeb2858903709567
https://git.openwrt.org/?p=openwrt/staging/chunkeey.git;a=commit;h=bbde89504fb6124da5a3f0014025753db4d6ec67
https://git.openwrt.org/?p=openwrt/staging/chunkeey.git;a=commit;h=6096e5208373822d123b8fe4f848b8612f3d04c8
https://git.openwrt.org/?p=openwrt/staging/chunkeey.git;a=commit;h=1d8ddcfc7a00701ab73d7dd06cf5fa420c1a5882
https://git.openwrt.org/?p=openwrt/staging/chunkeey.git;a=commit;h=b106a522001e970378c38279fe598acbc867d0f4

Let me know if this works now with the ip tool.

Regards,
Christian



_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list