Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: jbbum on July 25, 2021, 12:23:26 PM
-
Looking for the extensions necessary to get cell phone connected through usb for tethering.
-
I seem to recall somebody had networkmanager working with a mobile to make an Internet connection in piCore-9.x
-
If it is for android usb tethering you don't need anything more of base tc.
Now I don't have tinycore started but going by memory you have to:
1) connect the phone
2) activate usb tethering
3) open the graphical interface for network management
4) set usb0 as interface name
5) select dhcp
and it should work.
-
Guess I need to explain my need. I have the pi3 onboard wifi setup as an AP. Basically, I want to use the pi as a wifi repeater by connecting to a cell phone using usb tethering because eth0 is not available.
-
The setup is headless. No gui.
-
Modemmanager/networkmanager have a cli interface.
-
I think I need to start over. Raspbian has the ability to recognize the usb tethering of a phone. It registers usb0 as a device and gives it an ip. Then you can ping over it and get a response. I am looking for the extensions necessary to make this work on piCore without using network manager.
-
Hi jbbum
You might need the usbip kernel modules extension.
-
Hi Rich. I loaded those modules but no usb0. Swapped with the net-usb modules and now have the usb0.
rndis_host 1-1.4:1.0 usb0: register 'rndis_host' at usb-3f980000.usb-1.4, RNDIS device, aa:34:06:61:71:7b
[ 91.231022] usbcore: registered new interface driver rndis_host.
Now have to find a procedure to access the interface driver.
-
ifconfig -a does give a usb0 device
-
I can now get usb0 setup by "sudo ifconfig ${interface} ${ipaddr} netmask ${netmask} up"
But, can't access it. Did a ping -I usb0 but no results.
-
Hi jbbum
... Did a ping -I usb0 but no results.
I don't see an IP address included in that command.
-
Did the ping to 8.8.8.8. No results except over eth0
-
Hi jbbum
What happens if you try to ping a local address, like your router or another computer?
-
Hi Rich Can't ping anything on local network because not connected except eth0. usb0 is to tether to a cell phone and use that as access to the internet. There is no wireless connection to local network.
-
With just an IP set, you can only ping the other end and stuff on that network. To connect to other networks via it, you also need to set up a route. (and DNS to use names).
Having two internet connections complicates things. Disable your eth0 first, then play with usb0. If your phone offers DHCP, you can do via cli what vinnie wrote above, udhcpc is the bundled dhcp client.
-
Hi jbbum
Maybe you need to add routing information. When setting up eth0 you execute a command similar to:
route add default gw 192.168.1.1so that eth0 knows how to reach the outside world. You may have to do something similar using the cell phones
IP address as a gateway.
5) select dhcp
Or maybe you need to do something with dhcp.
-
Got that problem solved. After the "ifconfig.............up" statement from previous to bring the usb0 interface up, doing "sudo dhclient usb0" allowed access. Can now "ping -I usb0 8.8.8.8" and get a result. In the process of trying to enable packet forwarding to bridge the wireless ap and usb0.
-
I apologize. The command is "sudo dhcpcd usb0" not dhclient.
-
Use my depedency builder tree
https://github.com/honeydatax/tinycorelinux/blob/main/dep.bas
To know all the files you need to install