Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-29 Thread Chuanhong Guo
Hi! Sorry for the late reply. On Wed, Jan 29, 2020 at 11:18 PM Piotr Dymacz wrote: > AFAIK, there wasn't any official or general rule about what should be > LAN and WAN (in terms of mapping ethX to 'our' LAN/WAN), so it was > always up to the device support author (personally I preferred to have

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-29 Thread Piotr Dymacz
Hi Adrian, On 28.01.2020 16:59, Adrian Schmutzler wrote: Hi, There is easy way to check GMACx <> ethX assignment order in mach-*.c files. Just check order of ath79_register_eth() calls: ath79_register_eth(0); ath79_register_eth(1); Will register GMAC0 as eth0, GMAC1 as eth1

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-29 Thread Piotr Dymacz
...@gmail.com; ansuels...@gmail.com; 'David Bauer' Subject: Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet Hi Adrian, On 27.01.2020 19:35, Adrian Schmutzler wrote: > Just a quick one: > >> > So, no matter what we do, there is no easy way forward. >> >>

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-29 Thread Piotr Dymacz
Hi Peter, On 27.01.2020 22:05, Peter Geis wrote: On Mon, Jan 27, 2020 at 4:00 PM Piotr Dymacz wrote: [...] But it's not a general rule and, at least in case of generic/basic settings, user shouldn't be worried about upgrading between major versions with preserving settings. Otherwise, the

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-29 Thread Adrian Schmutzler
Hi, > (I should first say that I don't know enough about the ar71xx-ath79 migration > to know if this idea will work, but I don't recall seeing it mentioned > before.) > > What if we add a migration package for 18.06 that ar71xx users can opt-in and > install, which (when the user initiates

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-28 Thread Jeffery To
On Tue, Jan 28, 2020 at 11:48 PM Adrian Schmutzler wrote: > I do not really see a viable/desirable option to support eth migration at > the > moment. And I'm not really a fan of adding lots of migration stuff which > spoils > the new ath79 target already, so after all I think I also do not

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-28 Thread Adrian Schmutzler
Hi, > There is easy way to check GMACx <> ethX assignment order in mach-*.c > files. Just check order of ath79_register_eth() calls: > > ath79_register_eth(0); > ath79_register_eth(1); > > Will register GMAC0 as eth0, GMAC1 as eth1 > > ath79_register_eth(1); > ath79_register_eth(0); > > Will

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-28 Thread Adrian Schmutzler
ail.com; 'David Bauer' > Subject: Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet > > Hi Adrian, > > On 27.01.2020 19:35, Adrian Schmutzler wrote: > > Just a quick one: > > > >> > So, no matter what we do, there is no easy way forward. > >&

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-27 Thread Peter Geis
On Mon, Jan 27, 2020 at 4:00 PM Piotr Dymacz wrote: > > Hi Peter, > > On 27.01.2020 19:57, Peter Geis wrote: > > On Mon, Jan 27, 2020 at 1:35 PM Adrian Schmutzler > > wrote: > >> > >> Just a quick one: > >> > >> > > So, no matter what we do, there is no easy way forward. > >> > > >> > We could

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-27 Thread Piotr Dymacz
Hi Peter, On 27.01.2020 19:57, Peter Geis wrote: On Mon, Jan 27, 2020 at 1:35 PM Adrian Schmutzler wrote: Just a quick one: > > So, no matter what we do, there is no easy way forward. > > We could remove all ar71xx -> ath79 migration helper scripts, ar71xx > board names from supported

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-27 Thread Piotr Dymacz
Hi Adrian, On 27.01.2020 19:35, Adrian Schmutzler wrote: Just a quick one: > So, no matter what we do, there is no easy way forward. We could remove all ar71xx -> ath79 migration helper scripts, ar71xx board names from supported devices lists in ath79 images and make the target a brand new,

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-27 Thread Peter Geis
On Mon, Jan 27, 2020 at 1:35 PM Adrian Schmutzler wrote: > > Just a quick one: > > > > So, no matter what we do, there is no easy way forward. > > > > We could remove all ar71xx -> ath79 migration helper scripts, ar71xx > > board names from supported devices lists in ath79 images and make the > >

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-27 Thread Adrian Schmutzler
Just a quick one: > > So, no matter what we do, there is no easy way forward. > > We could remove all ar71xx -> ath79 migration helper scripts, ar71xx > board names from supported devices lists in ath79 images and make the > target a brand new, without any concerns about soon-to-be obsolete

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-27 Thread Piotr Dymacz
Hi Adrian, On 21.01.2020 15:10, Adrian Schmutzler wrote: [...] I'm in the middle of migrating some devices from soon-to-be-obsolete ar71xx to ath79 target and was wondering about status of the eth0/eth1 vs. LAN/WAN assignment issue. To start with the end: I've decided to stop working on

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-21 Thread Ansuel Smith
n > > Behalf Of Piotr Dymacz > > Sent: Dienstag, 21. Januar 2020 00:34 > > To: m...@adrianschmutzler.de; 'David Bauer' ; > > gch981...@gmail.com > > Cc: openwrt-devel@lists.openwrt.org > > Subject: Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet > &g

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-21 Thread Adrian Schmutzler
wrt.org > Subject: Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet > > Hi Adrian, David, Chuanhong, > > On 07.09.2019 12:15, m...@adrianschmutzler.de wrote: > > Hi, > > > >> > However, this will obviously swap eth0/eth1 on EVERY upgrade, not ju

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2020-01-20 Thread Piotr Dymacz
Hi Adrian, David, Chuanhong, On 07.09.2019 12:15, m...@adrianschmutzler.de wrote: Hi, > However, this will obviously swap eth0/eth1 on EVERY upgrade, not just when coming from ar71xx. > So, does anyone have an idea how to limit this to run only when updated from ar71xx? I was thinking about

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2019-09-07 Thread mail
Hi, > > However, this will obviously swap eth0/eth1 on EVERY upgrade, not just > when coming from ar71xx. > > So, does anyone have an idea how to limit this to run only when updated > from ar71xx? > > I was thinking about the same. As we have no information about the > previously installed

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2019-09-07 Thread David Bauer
Hello Adrian, On 9/5/19 5:00 PM, Adrian Schmutzler wrote: > Hi, > > if I remember correctly, there is still no mechanism to fix eth0/eth1 for > devices where those have been swapped from ar71xx to ath79. > > In principle, this can be done with a relatively small piece of code (not > tested):

[OpenWrt-Devel] Migration in ath79 for swapped ethernet

2019-09-05 Thread Adrian Schmutzler
Hi, if I remember correctly, there is still no mechanism to fix eth0/eth1 for devices where those have been swapped from ar71xx to ath79. In principle, this can be done with a relatively small piece of code (not tested): diff --git