[Replicant] [PATCH 1/4] lineageos_n7000: Add support for USB Ethernet adapters and CDC Ethernet

2019-08-28 Thread Denis 'GNUtoo' Carikli
Signed-off-by: Denis 'GNUtoo' Carikli 
---
 arch/arm/configs/lineageos_n7000_defconfig | 38 ++
 1 file changed, 32 insertions(+), 6 deletions(-)

diff --git a/arch/arm/configs/lineageos_n7000_defconfig 
b/arch/arm/configs/lineageos_n7000_defconfig
index 8ba7d95dbfed..1fb6183a0f80 100644
--- a/arch/arm/configs/lineageos_n7000_defconfig
+++ b/arch/arm/configs/lineageos_n7000_defconfig
@@ -1426,7 +1426,7 @@ CONFIG_NETDEVICES=y
 # CONFIG_EQUALIZER is not set
 CONFIG_TUN=y
 # CONFIG_VETH is not set
-# CONFIG_MII is not set
+CONFIG_MII=y
 # CONFIG_PHYLIB is not set
 # CONFIG_NET_ETHERNET is not set
 # CONFIG_NETDEV_1000 is not set
@@ -1482,14 +1482,40 @@ CONFIG_WLAN_REGION_CODE=100
 #
 # USB Network Adapters
 #
-# CONFIG_USB_CATC is not set
-# CONFIG_USB_KAWETH is not set
-# CONFIG_USB_PEGASUS is not set
-# CONFIG_USB_RTL8150 is not set
-# CONFIG_USB_USBNET is not set
+CONFIG_USB_CATC=y
+CONFIG_USB_KAWETH=y
+CONFIG_USB_PEGASUS=y
+CONFIG_USB_RTL8150=y
+CONFIG_USB_USBNET=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_NET_CDCETHER=y
+CONFIG_USB_NET_CDC_EEM=y
+CONFIG_USB_NET_CDC_NCM=y
+CONFIG_USB_NET_DM9601=y
+CONFIG_USB_NET_SMSC75XX=y
+CONFIG_USB_NET_SMSC95XX=y
+# CONFIG_USB_NET_GL620A is not set
+CONFIG_USB_NET_NET1080=y
+CONFIG_USB_NET_PLUSB=y
+CONFIG_USB_NET_MCS7830=y
+# CONFIG_USB_NET_RNDIS_HOST is not set
+CONFIG_USB_NET_CDC_SUBSET=y
+# CONFIG_USB_ALI_M5632 is not set
+# CONFIG_USB_AN2720 is not set
+CONFIG_USB_BELKIN=y
+CONFIG_USB_ARMLINUX=y
+# CONFIG_USB_EPSON2888 is not set
+# CONFIG_USB_KC2190 is not set
+CONFIG_USB_NET_ZAURUS=y
+# CONFIG_USB_NET_CX82310_ETH is not set
+# CONFIG_USB_NET_KALMIA is not set
 # CONFIG_USB_HSO is not set
+# CONFIG_USB_NET_INT51X1 is not set
 # CONFIG_USB_CDC_PHONET is not set
 # CONFIG_USB_IPHETH is not set
+# CONFIG_USB_SIERRA_NET is not set
+# CONFIG_USB_VL600 is not set
+# CONFIG_MSM_RMNET_USB is not set
 # CONFIG_WAN is not set
 
 #
-- 
2.23.0

___
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant


[Replicant] [kernel_samsung_smdk4412] Add Ethernet for the devices that miss it

2019-08-28 Thread Denis 'GNUtoo' Carikli
Hi,

This adds Ethernet support for all the devices that don't have it
already in the kernel_samsung_smdk4412 repository.

The patches are untested at runtime and even at compilation time.

If we don't manage to confirm that this makes Ethernet work,
we could still merge this patchset as long as it doesn't break
compilation or introduce other regressions.

Denis.

___
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant


[Replicant] [PATCH 4/4] lineageos_n5110: Add support for USB Ethernet adapters and CDC Ethernet

2019-08-28 Thread Denis 'GNUtoo' Carikli
Signed-off-by: Denis 'GNUtoo' Carikli 
---
 arch/arm/configs/lineageos_n5110_defconfig | 36 +++---
 1 file changed, 31 insertions(+), 5 deletions(-)

diff --git a/arch/arm/configs/lineageos_n5110_defconfig 
b/arch/arm/configs/lineageos_n5110_defconfig
index d9a0ae805570..7cf7752f81eb 100644
--- a/arch/arm/configs/lineageos_n5110_defconfig
+++ b/arch/arm/configs/lineageos_n5110_defconfig
@@ -1490,14 +1490,40 @@ CONFIG_WLAN_REGION_CODE=100
 #
 # USB Network Adapters
 #
-# CONFIG_USB_CATC is not set
-# CONFIG_USB_KAWETH is not set
-# CONFIG_USB_PEGASUS is not set
-# CONFIG_USB_RTL8150 is not set
-# CONFIG_USB_USBNET is not set
+CONFIG_USB_CATC=y
+CONFIG_USB_KAWETH=y
+CONFIG_USB_PEGASUS=y
+CONFIG_USB_RTL8150=y
+CONFIG_USB_USBNET=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_NET_CDCETHER=y
+CONFIG_USB_NET_CDC_EEM=y
+CONFIG_USB_NET_CDC_NCM=y
+CONFIG_USB_NET_DM9601=y
+CONFIG_USB_NET_SMSC75XX=y
+CONFIG_USB_NET_SMSC95XX=y
+# CONFIG_USB_NET_GL620A is not set
+CONFIG_USB_NET_NET1080=y
+CONFIG_USB_NET_PLUSB=y
+CONFIG_USB_NET_MCS7830=y
+# CONFIG_USB_NET_RNDIS_HOST is not set
+CONFIG_USB_NET_CDC_SUBSET=y
+# CONFIG_USB_ALI_M5632 is not set
+# CONFIG_USB_AN2720 is not set
+CONFIG_USB_BELKIN=y
+CONFIG_USB_ARMLINUX=y
+# CONFIG_USB_EPSON2888 is not set
+# CONFIG_USB_KC2190 is not set
+CONFIG_USB_NET_ZAURUS=y
+# CONFIG_USB_NET_CX82310_ETH is not set
+# CONFIG_USB_NET_KALMIA is not set
 # CONFIG_USB_HSO is not set
+# CONFIG_USB_NET_INT51X1 is not set
 # CONFIG_USB_CDC_PHONET is not set
 # CONFIG_USB_IPHETH is not set
+# CONFIG_USB_SIERRA_NET is not set
+# CONFIG_USB_VL600 is not set
+# CONFIG_MSM_RMNET_USB is not set
 # CONFIG_WAN is not set
 
 #
-- 
2.23.0

___
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant


[Replicant] [PATCH 3/4] lineageos_n5100: Add support for USB Ethernet adapters and CDC Ethernet

2019-08-28 Thread Denis 'GNUtoo' Carikli
Signed-off-by: Denis 'GNUtoo' Carikli 
---
 arch/arm/configs/lineageos_n5100_defconfig | 36 +++---
 1 file changed, 31 insertions(+), 5 deletions(-)

diff --git a/arch/arm/configs/lineageos_n5100_defconfig 
b/arch/arm/configs/lineageos_n5100_defconfig
index 1b37ba449ee7..1ea6cf0b3f5b 100644
--- a/arch/arm/configs/lineageos_n5100_defconfig
+++ b/arch/arm/configs/lineageos_n5100_defconfig
@@ -1490,14 +1490,40 @@ CONFIG_WLAN_REGION_CODE=100
 #
 # USB Network Adapters
 #
-# CONFIG_USB_CATC is not set
-# CONFIG_USB_KAWETH is not set
-# CONFIG_USB_PEGASUS is not set
-# CONFIG_USB_RTL8150 is not set
-# CONFIG_USB_USBNET is not set
+CONFIG_USB_CATC=y
+CONFIG_USB_KAWETH=y
+CONFIG_USB_PEGASUS=y
+CONFIG_USB_RTL8150=y
+CONFIG_USB_USBNET=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_NET_CDCETHER=y
+CONFIG_USB_NET_CDC_EEM=y
+CONFIG_USB_NET_CDC_NCM=y
+CONFIG_USB_NET_DM9601=y
+CONFIG_USB_NET_SMSC75XX=y
+CONFIG_USB_NET_SMSC95XX=y
+# CONFIG_USB_NET_GL620A is not set
+CONFIG_USB_NET_NET1080=y
+CONFIG_USB_NET_PLUSB=y
+CONFIG_USB_NET_MCS7830=y
+# CONFIG_USB_NET_RNDIS_HOST is not set
+CONFIG_USB_NET_CDC_SUBSET=y
+# CONFIG_USB_ALI_M5632 is not set
+# CONFIG_USB_AN2720 is not set
+CONFIG_USB_BELKIN=y
+CONFIG_USB_ARMLINUX=y
+# CONFIG_USB_EPSON2888 is not set
+# CONFIG_USB_KC2190 is not set
+CONFIG_USB_NET_ZAURUS=y
+# CONFIG_USB_NET_CX82310_ETH is not set
+# CONFIG_USB_NET_KALMIA is not set
 # CONFIG_USB_HSO is not set
+# CONFIG_USB_NET_INT51X1 is not set
 # CONFIG_USB_CDC_PHONET is not set
 # CONFIG_USB_IPHETH is not set
+# CONFIG_USB_SIERRA_NET is not set
+# CONFIG_USB_VL600 is not set
+# CONFIG_MSM_RMNET_USB is not set
 # CONFIG_WAN is not set
 
 #
-- 
2.23.0

___
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant


[Replicant] [PATCH 2/4] lineageos_n7100: Add support for USB Ethernet adapters and CDC Ethernet

2019-08-28 Thread Denis 'GNUtoo' Carikli
Signed-off-by: Denis 'GNUtoo' Carikli 
---
 arch/arm/configs/lineageos_n7100_defconfig | 38 ++
 1 file changed, 32 insertions(+), 6 deletions(-)

diff --git a/arch/arm/configs/lineageos_n7100_defconfig 
b/arch/arm/configs/lineageos_n7100_defconfig
index 16535bfdfb03..bb12746780c1 100644
--- a/arch/arm/configs/lineageos_n7100_defconfig
+++ b/arch/arm/configs/lineageos_n7100_defconfig
@@ -1453,7 +1453,7 @@ CONFIG_NETDEVICES=y
 # CONFIG_EQUALIZER is not set
 CONFIG_TUN=y
 # CONFIG_VETH is not set
-# CONFIG_MII is not set
+CONFIG_MII=y
 # CONFIG_PHYLIB is not set
 # CONFIG_NET_ETHERNET is not set
 CONFIG_NETDEV_1000=y
@@ -1511,14 +1511,40 @@ CONFIG_WLAN_REGION_CODE=100
 #
 # USB Network Adapters
 #
-# CONFIG_USB_CATC is not set
-# CONFIG_USB_KAWETH is not set
-# CONFIG_USB_PEGASUS is not set
-# CONFIG_USB_RTL8150 is not set
-# CONFIG_USB_USBNET is not set
+CONFIG_USB_CATC=y
+CONFIG_USB_KAWETH=y
+CONFIG_USB_PEGASUS=y
+CONFIG_USB_RTL8150=y
+CONFIG_USB_USBNET=y
+CONFIG_USB_NET_AX8817X=y
+CONFIG_USB_NET_CDCETHER=y
+CONFIG_USB_NET_CDC_EEM=y
+CONFIG_USB_NET_CDC_NCM=y
+CONFIG_USB_NET_DM9601=y
+CONFIG_USB_NET_SMSC75XX=y
+CONFIG_USB_NET_SMSC95XX=y
+# CONFIG_USB_NET_GL620A is not set
+CONFIG_USB_NET_NET1080=y
+CONFIG_USB_NET_PLUSB=y
+CONFIG_USB_NET_MCS7830=y
+# CONFIG_USB_NET_RNDIS_HOST is not set
+CONFIG_USB_NET_CDC_SUBSET=y
+# CONFIG_USB_ALI_M5632 is not set
+# CONFIG_USB_AN2720 is not set
+CONFIG_USB_BELKIN=y
+CONFIG_USB_ARMLINUX=y
+# CONFIG_USB_EPSON2888 is not set
+# CONFIG_USB_KC2190 is not set
+CONFIG_USB_NET_ZAURUS=y
+# CONFIG_USB_NET_CX82310_ETH is not set
+# CONFIG_USB_NET_KALMIA is not set
 # CONFIG_USB_HSO is not set
+# CONFIG_USB_NET_INT51X1 is not set
 # CONFIG_USB_CDC_PHONET is not set
 # CONFIG_USB_IPHETH is not set
+# CONFIG_USB_SIERRA_NET is not set
+# CONFIG_USB_VL600 is not set
+# CONFIG_MSM_RMNET_USB is not set
 # CONFIG_WAN is not set
 
 #
-- 
2.23.0

___
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant


[Replicant] [PATCH][v2] Add build script to simplify the build procedure.

2019-08-28 Thread Denis 'GNUtoo' Carikli
Once the source code is downloaded and the dependencies are
installed, it makes it easier for people to build Replicant.

It also saves the builds logs, to enable to later look at why
the build failed without needing to re-run the build.

Signed-off-by: Denis 'GNUtoo' Carikli 
---
 build.sh | 80 
 1 file changed, 80 insertions(+)
 create mode 100755 build.sh

diff --git a/build.sh b/build.sh
new file mode 100755
index ..a907a826
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,80 @@
+#!/bin/sh
+# Copyright (C) 2019 Denis 'GNUtoo' Carikli' 
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see .
+set -e
+
+supported_machines=" \
+espresso3g \
+espressowifi \
+i9100 \
+i9300 \
+i9305 \
+maguro \
+n5100 \
+n5110 \
+n7000 \
+n7100 \
+"
+
+usage()
+{
+   printf "%s [" "$0"
+   for machine in ${supported_machines} ; do
+   printf "${machine}|"
+   done
+   printf "\b]\n"
+   printf "%s all # build all machines\n" "$0"
+   exit 1
+}
+
+build()
+{
+machine="$1"
+parallel_tasks=$(echo "$(grep 'processor' /proc/cpuinfo | wc -l ) + 1" | 
bc)
+log="logs/build_${machine}_$(date '+%s').log"
+
+echo "starting to building for ${machine}: ${log}"
+. build/envsetup.sh
+lunch "replicant_${machine}-userdebug"
+time make -j$parallel_tasks bacon 2>&1 | tee "${log}"
+vendor/replicant/sign-build "${machine}" | tee -a "${log}"
+echo "${machine} DONE: ${log}"
+}
+
+if [ $# -ne 1 ] ; then
+   usage
+fi
+
+if [ "$1" = "all" ] ; then
+repo sync --force-sync
+for machine in ${supported_machines} ; do
+   build "${machine}"
+done
+else
+repo sync --force-sync
+found=0
+for machine in ${supported_machines} ; do
+   if [ "${machine}" = "$1" ] ; then
+   found=1
+   fi
+done
+
+if [ ${found} -eq 0 ] ; then
+   printf "machine %s not supported\n" "$1"
+   usage
+fi
+
+build "$1"
+fi
-- 
2.23.0

___
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant


Re: [Replicant] [PATCH][v2] Add build script to simplify the build procedure.

2019-08-28 Thread Denis 'GNUtoo' Carikli
On Wed, 28 Aug 2019 15:49:56 +0200
Denis 'GNUtoo' Carikli  wrote:

> Once the source code is downloaded and the dependencies are
> installed, it makes it easier for people to build Replicant.
> 
> It also saves the builds logs, to enable to later look at why
> the build failed without needing to re-run the build.
> 
> Signed-off-by: Denis 'GNUtoo' Carikli 
This version fails without bash with:
> build/envsetup.sh: Syntax error: "(" unexpected

When I look at build/envsetup.sh it contains way too many dependencies
on bash:

> $ checkbashisms envsetup.sh
[...]
> possible bashism in envsetup.sh line 112 (bash arrays,
> ${name[0|*|@]}):
>for v in ${VARIANT_CHOICES[@]}
[...]

So using source and bash makes sense.

I'll update the build instructions to explicitly add bash as
a dependency.

Before migrating the build instructions to use this script we would
also need to make at least the following improvements:
- It should be possible to disable sync to enable to test patches
  or work on the code locally. Ideas are welcome on how the interface
  with that should look like, or if the sync should be removed from the
  script completely. The idea is to make it easier for beginners to
  build Replicant, and also automatize things for people building it
  regularly.
- The supported machines could be deduced from the targets file in the
  same directory to improve maintainability.

Denis.


pgpswg_dKSi1a.pgp
Description: OpenPGP digital signature
___
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant


[Replicant] Working groups and sub-project

2019-08-28 Thread Denis 'GNUtoo' Carikli
Hi,

At the end of the Replicant contributors Meeting in Paris we discussed,
with the people remaining, how to make it more easy to contribute to
Replicant and how to make it more welcoming.

In this discussion I mentioned that we could have working groups: it
would enable people to more easily work together on a specific topic.

For instance Community Internet service providers in France typically
use that. You would have a group of people working on providing a SIP
network while another group (of possibly the same people) would work
on getting access to the fiber network for instance.

They have separate mailing list and meetings to coordinate the work.

Practically speaking we could identify areas of work (Replicant
installation manuals, Replicant network infrastructure, etc) and make a
sub-project in Redmine and possibly a distinct mailing list for that.

Having a sub-project would also enable to scale better by having the
sub-communities managing the sub-project.

People present when we discussed that were mostly in favor of the
general idea.

So I was wondering what you would think about it, for instance is it
still a good idea, and/or how to put it in practice.

At the end of the day the idea is to enable people to feel more
welcome and empowered to collaborate and collaborate more easily.

So one of the risk of it would be that the sub-communities
would be isolated and that there would be duplication of work, less
reviews, and less knowledge about their work.

As the work on managing the Replicant infrastructure (Redmine updates, 
the git.replicant.us virtual machine, etc) is separated from the rest
of the work on Replicant (wiki contributions, forums, patches for
graphics, porting to Android 9, etc) I was thinking of making it a
subproject of Replicant:
- It would have its own mailing list
- It would also have its own sub-project in Redmine.

Here since not many people are working on it and that there isn't much
to move we could easily try if it works for a small group of people.

To test with a bigger group of people other areas of work might be
better suited like the installation documentation for instance.

Denis.


pgpvHpb34_P1W.pgp
Description: OpenPGP digital signature
___
Replicant mailing list
Replicant@osuosl.org
https://lists.osuosl.org/mailman/listinfo/replicant