Tiny Core Base > TCB Bugs
Busybox udhcpc sometimes fails to connect to modern router
polikuo:
Hi, I'm not sure if this belongs in TCB or TCE issue. :-\
Since I'm using piCore beta release, it could be in there, too.
Anyway, I have a relatively modern router: TP-LINK Mesh WDR7650
It refuses to assign an IP address to piCore from time to time.
Manually type
--- Code: ---sudo pkill udhcpc
sudo udhcpc eth0
--- End code ---
would start an endless request loop.
This behavior never happens on older routers.
A TCB busybox issue maybe ?
Not sure about the other architectures.
When I switch to Raspbian, the network is back to normal.
Then I see they're using a different DHCP client.
I download the source and compile it.
Using this client, I manage to resolve the network problem.
If I were to submit this extension, what value should I choose for "--localstatedir" in configure ?
The default path is /var (It creates empty directory /var/db/dhcpcd for later use)
Should I use /usr/local/var instead ?
Juanito:
Please use /var
polikuo:
--- Quote from: Juanito on October 17, 2020, 02:19:52 AM ---Please use /var
--- End quote ---
Hi, before I submit the thing.
There's an option, "--privsepuser", in the configure script.
The default value is "dhcpcd".
When you start the client, it returns: [no such user dhcpcd]
--- Quote ---CFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe' LDFLAGS='-Wl,-O1' ./configure --prefix='/usr/local' --libexecdir='/usr/local/lib/dhcpcd'
--- End quote ---
--- Code: ---tc@box:~$ sudo /tmp/dhcpcd/usr/local/sbin/dhcpcd
no such user dhcpcd
main: control_open: Connection refused
dhcpcd-9.3.1 starting
DUID 00:01:00:01:27:1d:77:30:dc:a6:32:37:c7:eb
eth0: IAID 32:37:c7:eb
eth0: rebinding lease of 192.168.0.101
eth0: leased 192.168.0.101 for 7200 seconds
eth0: adding route to 192.168.0.0/24
eth0: adding default route via 192.168.0.1
forked to background, child pid 9294
tc@box:~$
--- End code ---
The process is forked to background.
I recompiled with "--privsepuser=tc":
--- Quote ---CFLAGS='-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe' LDFLAGS='-Wl,-O1' ./configure --prefix='/usr/local' --libexecdir='/usr/local/lib/dhcpcd' --privsepuser='tc'
--- End quote ---
--- Code: ---tc@box:~$ sudo /tmp/usrtc/usr/local/sbin/dhcpcd
dhcpcd-9.3.1 starting
DUID 00:01:00:01:27:1d:77:30:dc:a6:32:37:c7:eb
eth0: IAID 32:37:c7:eb
ps_ctl_listen: read: Success
--- End code ---
The process is NOT backgrounded.
The console hangs.
Does it has anything to do with openssh "sshd privsep" ?
I think I've seen it somewhere.
What should I do ?
Please advice.
Rich:
Hi polikuo
If you look at at /etc/init.d/dhcp.sh you'll see that Roberts included this at the end of his command:
--- Code: ---/dev/null 2>&1 &
--- End code ---
Rich:
Hi polikuo
--- Quote from: polikuo on October 17, 2020, 01:50:57 AM ---Hi, I'm not sure if this belongs in TCB or TCE issue. :-\
Since I'm using piCore beta release, it could be in there, too.
--- End quote ---
Since it's part of busybox TCB Bugs sounds appropriate. If you find only piCore Beta is affected, it can be moved later on.
Navigation
[0] Message Index
[#] Next page
Go to full version