| *** n2klb_ is now known as n2klb | 01:09 | |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 01:28 |
|---|---|---|
| T42 | <Teleg3_7> After enabling USB tethering on SFOS or Droidian, I found that my PC could only establish an SSH connection, and it couldn’t access the internet via the phone. I’ve tried this configuration on both SFOS and Droidian, and as a result, the PC can now access the internet via the phone. The configuration is performed on the phone and a Linux PC | 01:28 |
| T42 | <Teleg3_7> | 01:28 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 01:28 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and `ip_forward`—which defaults to 0—is changed. The `in` variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 01:28 |
| T42 | <Teleg3_7> | 01:28 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 01:28 |
| T42 | <Teleg3_7> devel-su | 01:29 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 01:29 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 01:29 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 01:29 |
| T42 | <Teleg3_7> | 01:29 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 01:29 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian, `ip=“10.15.19.82”`, while for SFOS, `ip=“192.168.2.15”` | 01:29 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 01:29 |
| T42 | <Teleg3_7> route add default gw $ip | 01:29 |
| T42 | <Teleg3_7> | 01:29 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 01:29 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 01:29 |
| T42 | <Teleg3_7> | 01:29 |
| T42 | <Teleg3_7> #Test on the PC | 01:29 |
| T42 | <Teleg3_7> ping google.com | 01:29 |
| T42 | <Teleg3_7> | 01:29 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS | 01:29 |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 01:30 |
| T42 | <Teleg3_7> After enabling USB tethering on SFOS or Droidian, I found that my PC could only establish an SSH connection, and it couldn’t access the internet via the phone. I’ve tried this configuration on both SFOS and Droidian, and as a result, the PC can now access the internet via the phone. The configuration is performed on the phone and a Linux PC | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 01:30 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and ip_forward which defaults to 0 is changed. The "in" variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 01:30 |
| T42 | <Teleg3_7> devel-su | 01:30 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 01:30 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 01:30 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 01:30 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian `ip=“10.15.19.82”`, while for SFOS `ip=“192.168.2.15”` | 01:30 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 01:30 |
| T42 | <Teleg3_7> route add default gw $ip | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 01:30 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 01:30 |
| T42 | <Teleg3_7> | 01:30 |
| T42 | <Teleg3_7> #Test on the PC | 01:30 |
| T42 | <Teleg3_7> ping google.com | 01:31 |
| T42 | <Teleg3_7> | 01:31 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS (edited) | 01:31 |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 01:41 |
| T42 | <Teleg3_7> After enabling USB tethering on SFOS or Droidian, I found that my PC could only establish an SSH connection, and it couldn’t access the internet via the phone. I’ve tried this configuration on both SFOS and Droidian, and as a result, the PC can now access the internet via the phone. The configuration is performed on the phone and a Linux PC | 01:41 |
| T42 | <Teleg3_7> | 01:41 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 01:41 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and ip_forward which defaults to 0 is changed. The "in" variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 01:41 |
| T42 | <Teleg3_7> | 01:41 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 01:41 |
| T42 | <Teleg3_7> devel-su | 01:41 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 01:41 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 01:41 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 01:41 |
| T42 | <Teleg3_7> | 01:41 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 01:41 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian `ip=“10.15.19.82”`, while for SFOS `ip=“192.168.2.15”` | 01:41 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 01:41 |
| T42 | <Teleg3_7> route add default gw $ip | 01:41 |
| T42 | <Teleg3_7> | 01:41 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 01:41 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 01:41 |
| T42 | <Teleg3_7> | 01:42 |
| T42 | <Teleg3_7> #Test connection | 01:42 |
| T42 | <Teleg3_7> ping google.com | 01:42 |
| T42 | <Teleg3_7> | 01:42 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS (edited) | 01:42 |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 08:50 |
| T42 | <Teleg3_7> After developer mode is enabled in SFOS USB mode, an SSH connection between the PC and the USB device can be established. To enable USB tethering in this mode, you need to run commands on both the phone (SFOS) and the Linux PC. I have tested this configuration on SFOS and Droidian | 08:50 |
| T42 | <Teleg3_7> | 08:50 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 08:50 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and ip_forward which defaults to 0 is changed. The "in" variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 08:50 |
| T42 | <Teleg3_7> | 08:50 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 08:50 |
| T42 | <Teleg3_7> devel-su | 08:50 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 08:50 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 08:50 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 08:50 |
| T42 | <Teleg3_7> | 08:50 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 08:50 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian `ip=“10.15.19.82”`, while for SFOS `ip=“192.168.2.15”` | 08:50 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 08:50 |
| T42 | <Teleg3_7> route add default gw $ip | 08:50 |
| T42 | <Teleg3_7> | 08:50 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 08:50 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 08:50 |
| T42 | <Teleg3_7> | 08:50 |
| T42 | <Teleg3_7> #Test connection | 08:50 |
| T42 | <Teleg3_7> ping google.com | 08:50 |
| T42 | <Teleg3_7> | 08:50 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS (edited) | 08:50 |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 08:51 |
| T42 | <Teleg3_7> After developer mode is enabled in SFOS USB mode, an SSH connection between the PC and the USB device can be established. To enable USB tethering in this mode, you need to run commands on both the phone (SFOS) and the Linux PC. I have tested this configuration on SFOS and Droidian. | 08:51 |
| T42 | <Teleg3_7> | 08:51 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 08:51 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and ip_forward which defaults to 0 is changed. The "in" variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 08:51 |
| T42 | <Teleg3_7> | 08:51 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 08:51 |
| T42 | <Teleg3_7> devel-su | 08:51 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 08:51 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 08:51 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 08:51 |
| T42 | <Teleg3_7> | 08:51 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 08:51 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian `ip=“10.15.19.82”`, while for SFOS `ip=“192.168.2.15”` | 08:51 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 08:51 |
| T42 | <Teleg3_7> route add default gw $ip | 08:51 |
| T42 | <Teleg3_7> | 08:51 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 08:51 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 08:51 |
| T42 | <Teleg3_7> | 08:51 |
| T42 | <Teleg3_7> #Test connection | 08:51 |
| T42 | <Teleg3_7> ping google.com | 08:51 |
| T42 | <Teleg3_7> | 08:51 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS (edited) | 08:51 |
| T42 | <Teleg3_7> This is about USB tethering on SFOS | 08:53 |
| T42 | <Teleg3_7> After developer mode is enabled in SFOS USB mode, an SSH connection between the PC and the USB device can be established. To enable USB tethering in this mode, you need to run commands on both the phone (SFOS) and the Linux PC. I have tested this configuration on SFOS and Droidian. | 08:53 |
| T42 | <Teleg3_7> | 08:53 |
| T42 | <Teleg3_7> 1. Configuration on the SFOS OS (on your phone) | 08:53 |
| T42 | <Teleg3_7> Here, the iptables configuration is set, and ip_forward which defaults to 0 is changed. The "in" variable represents the source of the internet connection; if it’s from Wi-Fi, it might be `wlan0`, whereas if the internet connection comes from mobile data (SIM card), it might be `rmnet_data1`, `rmnet_data2`, or another value—check the output of the `ifconfig` command. | 08:53 |
| T42 | <Teleg3_7> | 08:53 |
| T42 | <Teleg3_7> # ssh to SFOS or from the SFOS terminal | 08:53 |
| T42 | <Teleg3_7> devel-su | 08:53 |
| T42 | <Teleg3_7> echo 1 > /proc/sys/net/ipv4/ip_forward | 08:53 |
| T42 | <Teleg3_7> export in=rmnet_data1 | 08:53 |
| T42 | <Teleg3_7> iptables -t nat -A POSTROUTING -o $in -j MASQUERADE | 08:53 |
| T42 | <Teleg3_7> | 08:53 |
| T42 | <Teleg3_7> 2. Configuration on a Linux PC | 08:53 |
| T42 | <Teleg3_7> On the PC, you need to configure the default gateway to point to the SFOS IP address and set up the DNS client. The value of the `ip gateway` variable is the IP address of the SFOS device on the same network as the PC. For example, for Droidian `ip=“10.15.19.82”`, while for SFOS `ip=“192.168.2.15”` | 08:53 |
| T42 | <Teleg3_7> | 08:53 |
| T42 | <Teleg3_7> sudo -s | 08:53 |
| T42 | <Teleg3_7> export ip="192.168.2.15" | 08:54 |
| T42 | <Teleg3_7> route add default gw $ip | 08:54 |
| T42 | <Teleg3_7> | 08:54 |
| T42 | <Teleg3_7> vim /etc/resolv.conf | 08:54 |
| T42 | <Teleg3_7> nameserver 8.8.8.8 | 08:54 |
| T42 | <Teleg3_7> | 08:54 |
| T42 | <Teleg3_7> #Test connection | 08:54 |
| T42 | <Teleg3_7> ping google.com | 08:54 |
| T42 | <Teleg3_7> | 08:54 |
| T42 | <Teleg3_7> If this doesn’t work, change the value of the `in` variable in the command on SFOS (edited) | 08:54 |
| T42 | <Mattia990> Yes, it is similar to that, the kernel is the same | 09:05 |
| T42 | <Mattia990> I choose that base because I saw it is supported by hybris | 09:05 |
| T42 | <Mattia990> I tried to change the panic timeout to 30, but after running droid hal init it reboots before that time. From when I run the command pass 20 seconds and then it reboots | 09:05 |
| T42 | <Mattia990> I tried also to add more stuff into the defconfig, similar to the one you sent me of vayu | 09:05 |
| T42 | <Mattia990> This is dmesg: paste.opensuse.org/pastes/6975caf3ec58 | 09:05 |
| T42 | <Mattia990> This journalctl -b -1: paste.opensuse.org/pastes/e77f17b43dd7 | 09:05 |
| T42 | <Mattia990> And this strace: paste.opensuse.org/pastes/4364e8f03c29 (re @elros34: isn't this similar d...) | 09:05 |
| T42 | <Mattia990> I don't have pstore and no last_kmsg | 09:07 |
| T42 | <elros34> strange issue. Did you add these selinux files? Can you show zcat /proc/config.gz? | 09:41 |
| T42 | <elros34> what about logcat? | 09:42 |
| T42 | <Mattia990> Here it is: paste.opensuse.org/pastes/c13d2157dc2a | 10:09 |
| T42 | <Mattia990> Sorry, where do I need to put the selinux files? I tried to search in hadk hot and the other documentation, are you referring to ld.config and system-etc-ld.config? | 10:09 |
| T42 | <Mattia990> Regarding logcat, during the strace of droid hal init i try to run it but I get: | 10:09 |
| T42 | <Mattia990> ~# /usr/libexec/droid-hybris/system/bin/logcat | 10:09 |
| T42 | <Mattia990> Logcat: Logcat read failure: No such file or directory (re @elros34: strange issue. Did y...) | 10:09 |
| T42 | <elros34> keep trying, you need to catch right moment when droid-hal-init is up just before reboot but I have no hope it will show anyhing else. Instruction about selinux is in hadk-faq and hadk-hot mentions you must use real files instead symlinks. I wonder if you can catch logs when forcing kernel crash 'echo c > /proc/sysrq-trigger'. | 10:14 |
| T42 | <Mattia990> After trying some times and also with watch -n0.1 I got | 10:33 |
| T42 | <Mattia990> logcat: Logcat read failure: Connection refused | 10:33 |
| T42 | <Mattia990> With the forcing of kernel crash it worked, the system reboots after ~15 seconds but i don't have logs | 10:33 |
| T42 | <Mattia990> I checked also in the recovery (re @elros34: keep trying, you nee...) | 10:33 |
| T42 | <elros34> does sysrq way shows crash in dmesg -w? | 10:35 |
| T42 | <elros34> do you have charger connect? Wery unlikely but maybe you are out of power and thats is why there is any info in logs | 10:37 |
| T42 | <elros34> do you have correct /proc/cmdline? latest journal shows something strange | 10:43 |
| T42 | <Mattia990> No, when i run sysrq crash i don't see new things appearing in dmesg | 11:26 |
| T42 | <Mattia990> What do you mean with charger connect? TWRP says the battery is 100% and the phone is connected via usb c -> usb a to the pc | 11:26 |
| T42 | <Mattia990> My actual cmdline with hybris booted is this: https://paste.opensuse.org/pastes/87430411c626 | 11:26 |
| T42 | <elros34> ok | 11:34 |
| T42 | <Mattia990> Do i need to leave apex in the file_contexts or remove all of them? (re @elros34: ok) | 12:15 |
| T42 | <elros34> I don't know why would you want to change anything there | 13:22 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!