Re: question to block mount/umount

2022-12-14 Thread Daniel Golle
On Wed, Dec 14, 2022 at 07:00:40PM -0800, B wrote:
> On 12/14/22 05:45, e9hack wrote:
> > Hi,
> > 
> > I'm build OpenWrt with additional sub directories in /mnt.
> > /etc/config/fstab contains an entry, to mount an usb drive to /mnt/1. If
> > I execute 'block umount', the usb drive will be unmount and the
> > subdirectory 1 in /mnt will be removed. Removing of the sub directory,
> > is this the expected behaviour?
> 
> This is not the way the mount command typically works on most unix-like
> systems. In that respect, it's unexpected. You are not wrong to be perturbed
> here.

If that's what you want to do, OpenWrt will act just like any other
UNIX-like system out there. Just use the 'mount' and 'umount' commands
then, you may also use /etc/fstab, of course.

OP was asking about the 'block umount' command, which is anyway
specific to OpenWrt, and used for specific use-cases such as
automatically creating mountpoints, automatically mounting devices on
insertion, unmounting them on removal, ...
It is configured in /etc/config/fstab (and *not* /etc/fstab).

> Why OpenWRT needs to be different is for someone else to explain, because I
> don't know.

Also with regard to top-posting OpenWrt is not that different from
most other UNIX-related communities. Just don't do it ;)

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: question to block mount/umount

2022-12-14 Thread B



This is not the way the mount command typically works on most unix-like 
systems. In that respect, it's unexpected. You are not wrong to be 
perturbed here.


Why OpenWRT needs to be different is for someone else to explain, 
because I don't know.




On 12/14/22 05:45, e9hack wrote:

Hi,

I'm build OpenWrt with additional sub directories in /mnt. 
/etc/config/fstab contains an entry, to mount an usb drive to /mnt/1. 
If I execute 'block umount', the usb drive will be unmount and the 
subdirectory 1 in /mnt will be removed. Removing of the sub directory, 
is this the expected behaviour?


Regards,
Hartmut

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Ethernet switch with linux/openwrt and DSA

2022-12-14 Thread Jan Hoffmann

Hi Janusz,

 > Could I just buy (any experience):
 >
 > HP switch 1920-24G JG924A
 > Do I need to check any HW ver? Or any JG924A should work?

The devices from HPE 1920 series with model numbers JG92xA are all 
Realtek-based, and should be compatible with OpenWrt (make sure not to 
get a device from the similarly-named 1920S-series though, as those are 
not supported).


Note that the HPE devices are only supported in master and support for 
1920-48G is not yet included.


And to be clear, the models with PoE are also not supported (I forgot 
about those in the initial message).


For 1920-24G, the patches 2 and 5 from [1] are probably still necessary, 
as the device will reset during boot otherwise. I should really send 
updated versions of these to finally get that issue fixed.


Best,
Jan


[1] 
http://lists.openwrt.org/pipermail/openwrt-devel/2022-October/039565.html


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Ethernet switch with linux/openwrt and DSA

2022-12-14 Thread Jan Hoffmann

Hi Janusz,

> Could I just buy (any experience):
>
> HP switch 1920-24G JG924A
> Do I need to check any HW ver? Or any JG924A should work?

The devices from HPE 1920 series with model numbers JG92xA are all 
Realtek-based, and should be compatible with OpenWrt (make sure not to 
get a device from the similarly-named 1920S-series though, as those are 
not supported).


Note that the HPE devices are only supported in master and support for 
1920-48G is not yet included.


For 1920-24G, the patches 2 and 5 from [1] are probably still necessary, 
as the device will reset during boot otherwise. I should really send 
updated versions of these to finally get that issue fixed.


Best,
Jan


[1] 
http://lists.openwrt.org/pipermail/openwrt-devel/2022-October/039565.html


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Upstreaming mac80211 patches?

2022-12-14 Thread Daniel Golle
On Wed, Dec 14, 2022 at 06:04:40PM +0100, Nick wrote:
> Lately, I had to look at some mac80211 patches and I did not understand why
> some patches are still present or not upstreamed. What about upstreaming
> some of the mac80211 patches or removing some?
> For example "120-cfg80211_allow_perm_addr_change.patch" from 2014 I did not
> find it on typical mailinglist 
> (https://github.com/openwrt/openwrt/blob/master/package/kernel/mac80211/patches/subsys/120-cfg80211_allow_perm_addr_change.patch)?
> For ath9k we have 28 patches. Some of them are only for changing "channel
> bandwidth to 5/10" (so not 20 or 40 bw included). I guess that is legacy? 
> https://github.com/openwrt/openwrt/commit/9f38d4402bede0c35bb8f4814e577dc0b0a2f184

IEEE 802.11 standard originally intended also operating on 5 MHz and
10 MHz wide channels. However, in Linux mac80211 doesn't handle those
more narrow channels. As ath5k and ath9k hardware does support this, we
have patches to allow using 5 MHz and 10 MHz channels in a non-standard
way. While this is most likely not acceptable for upstream, it is still
very useful as the possible link distance is (naturally) improved quite
a lot when using 10 MHz or even 5 MHz channel bandwidth. Hence this is
popular among amateur radio hams, for example.

> And some were rejected upstream 
> (https://github.com/openwrt/openwrt/blob/master/package/kernel/mac80211/patches/ath9k/354-ath9k-force-rx_clear-when-disabling-rx.patch):
> https://patchwork.kernel.org/project/linux-wireless/patch/20180723160300.58024-3-...@nbd.name/
> 
> These are just some examples. However, I think it would be beneficial to get
> closer to upstream mac80211 again?

Help with cleaning and (re-)submitting patches upstream is for sure
always welcome ;)
Now that nvmem framework is ready and afaik we got rid of all pre-DTS
platform_data users, many of the MTD EEPROM and MAC address hacks could
be re-implemented using nvmem cells (and then get closer to being
acceptable upstream).

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Ethernet switch with linux/openwrt and DSA

2022-12-14 Thread Luiz Angelo Daros de Luca
>
>
> > D-Link DGS-1210-48 HW Ver. G1 - will be fine? I need some confirmation.
> > Anyone could confirm?
>

D-Link DGS-1210-52 F does work in snapshot. You'll need to wait for
the next 23.x for a stable release.
I think there is only one switch with >=48 ports supported in 22.03:
zyxel gs1900. And even that one might be missing some fixes current in
the master branch.

I would recommend to search for a switch with less ports or wait for
the 23.x release.

Regards,

Luiz

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Ethernet switch with linux/openwrt and DSA

2022-12-14 Thread Robert Marko
On Wed, 14 Dec 2022 at 18:16, Janusz Dziedzic  wrote:
>
> śr., 14 gru 2022 o 12:59 Janusz Dziedzic  
> napisał(a):
> >
> > wt., 13 gru 2022 o 14:20 Daniel Golle  napisał(a):
> > >
> > > On Tue, Dec 13, 2022 at 11:17:49AM +0100, Janusz Dziedzic wrote:
> > > > Hello,
> > > >
> > > > Do you know any/some ethernet switch project (best 18+ gbps ports)
> > > > that using linux/openwrt and DSA architecture?
> > >
> > > Some switches with high port density currently supported by OpenWrt:
> > >  * TP-Link SG2452P
> > >  * ZyXEL GS1900-48
> > >  * Panasonic Switch-M48eG PN28480K
> > >
> > > All of the above are using RealTek RTL839x platform.
> > >
> >
> > Could I just buy (any experience):
> >
> > HP switch 1920-24G JG924A
> > Do I need to check any HW ver? Or any JG924A should work?
> >
> Or
>
> D-Link DGS-1210-48 HW Ver. G1 - will be fine? I need some confirmation.
> Anyone could confirm?

F1 and F2 revisions are RTL, but not idea about Gx.

Regards,
Robert
>
> BR
> Janusz
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Ethernet switch with linux/openwrt and DSA

2022-12-14 Thread Janusz Dziedzic
śr., 14 gru 2022 o 12:59 Janusz Dziedzic  napisał(a):
>
> wt., 13 gru 2022 o 14:20 Daniel Golle  napisał(a):
> >
> > On Tue, Dec 13, 2022 at 11:17:49AM +0100, Janusz Dziedzic wrote:
> > > Hello,
> > >
> > > Do you know any/some ethernet switch project (best 18+ gbps ports)
> > > that using linux/openwrt and DSA architecture?
> >
> > Some switches with high port density currently supported by OpenWrt:
> >  * TP-Link SG2452P
> >  * ZyXEL GS1900-48
> >  * Panasonic Switch-M48eG PN28480K
> >
> > All of the above are using RealTek RTL839x platform.
> >
>
> Could I just buy (any experience):
>
> HP switch 1920-24G JG924A
> Do I need to check any HW ver? Or any JG924A should work?
>
Or

D-Link DGS-1210-48 HW Ver. G1 - will be fine? I need some confirmation.
Anyone could confirm?

BR
Janusz

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Upstreaming mac80211 patches?

2022-12-14 Thread Nick
Lately, I had to look at some mac80211 patches and I did not understand 
why some patches are still present or not upstreamed. What about 
upstreaming some of the mac80211 patches or removing some?
For example "120-cfg80211_allow_perm_addr_change.patch" from 2014 I did 
not find it on typical mailinglist 
(https://github.com/openwrt/openwrt/blob/master/package/kernel/mac80211/patches/subsys/120-cfg80211_allow_perm_addr_change.patch)?
For ath9k we have 28 patches. Some of them are only for changing 
"channel bandwidth to 5/10" (so not 20 or 40 bw included). I guess that 
is legacy? 
https://github.com/openwrt/openwrt/commit/9f38d4402bede0c35bb8f4814e577dc0b0a2f184
And some were rejected upstream 
(https://github.com/openwrt/openwrt/blob/master/package/kernel/mac80211/patches/ath9k/354-ath9k-force-rx_clear-when-disabling-rx.patch):

https://patchwork.kernel.org/project/linux-wireless/patch/20180723160300.58024-3-...@nbd.name/

These are just some examples. However, I think it would be beneficial to 
get closer to upstream mac80211 again?


Bests
Nick


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH 1/1] netifd: device: add ipvlan support

2022-12-14 Thread Alexey Smirnov
Please, any review?

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: question to block mount/umount

2022-12-14 Thread Daniel Golle
On Wed, Dec 14, 2022 at 02:45:02PM +0100, e9hack wrote:
> Hi,
> 
> I'm build OpenWrt with additional sub directories in /mnt. /etc/config/fstab 
> contains an entry, to mount an usb drive to /mnt/1. If I execute 'block 
> umount', the usb drive will be unmount and the subdirectory 1 in /mnt will be 
> removed. Removing of the sub directory, is this the expected behaviour?

If the directoty is empty, then yes, this is the expected behavior.
See

https://git.openwrt.org/?p=project/fstools.git;a=blob;f=block.c;h=4b45200ad3812f5b79bda5d53c72a13ca5e92636;hb=HEAD#l1225

In case you'd like to keep it, simply have a 0 byte file in the
directory (ie. `touch /mnt/1/.keep`), this will prevent rmdir()
from succeeding and will result in the directory being kept after
'block umount'.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


question to block mount/umount

2022-12-14 Thread e9hack

Hi,

I'm build OpenWrt with additional sub directories in /mnt. /etc/config/fstab 
contains an entry, to mount an usb drive to /mnt/1. If I execute 'block 
umount', the usb drive will be unmount and the subdirectory 1 in /mnt will be 
removed. Removing of the sub directory, is this the expected behaviour?

Regards,
Hartmut

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Ethernet switch with linux/openwrt and DSA

2022-12-14 Thread Janusz Dziedzic
wt., 13 gru 2022 o 14:20 Daniel Golle  napisał(a):
>
> On Tue, Dec 13, 2022 at 11:17:49AM +0100, Janusz Dziedzic wrote:
> > Hello,
> >
> > Do you know any/some ethernet switch project (best 18+ gbps ports)
> > that using linux/openwrt and DSA architecture?
>
> Some switches with high port density currently supported by OpenWrt:
>  * TP-Link SG2452P
>  * ZyXEL GS1900-48
>  * Panasonic Switch-M48eG PN28480K
>
> All of the above are using RealTek RTL839x platform.
>

Could I just buy (any experience):

HP switch 1920-24G JG924A
Do I need to check any HW ver? Or any JG924A should work?

BR
Janusz


-- 
Janusz Dziedzic

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH 1/1] netifd: device: add ipvlan support

2022-12-14 Thread Alexey Smirnov
Please, any review?

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel