From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Thu, 10 Jul 2014 18:30:35 +0200 Subject: [Buildroot] ping not working in a glibc based buildroot In-Reply-To: <53BE83E8.2010906@scalemp.com> References: <53BD4395.5050306@scalemp.com> <20140709142242.GK3003@tarshish> <53BD5452.6030902@scalemp.com> <53BD55E2.7070507@zacarias.com.ar> <53BD576F.1060008@scalemp.com> <53BE83E8.2010906@scalemp.com> Message-ID: <20140710163034.GC28300@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Eial, All, I know you solved your issue by copying the missing NSS libs, yet I have a comment about this mail, see below. On 2014-07-10 15:15 +0300, Eial Czerwacki spake thusly: > On 07/09/2014 05:53 PM, Eial Czerwacki wrote: > > Greetings Gustavo, > > > > On 07/09/2014 05:46 PM, Gustavo Zacarias wrote: > >> On 07/09/2014 11:40 AM, Eial Czerwacki wrote: > >> > >>> yes, here it is: > >>> --- /etc/resolv.conf 2014-07-09 17:35:30.420040438 +0300 > >>> +++ yyy/etc/resolv.conf 1970-01-01 02:00:00.000000000 +0200 > >>> @@ -1,3 +0,0 @@ > >>> -; generated by /sbin/dhclient-script > >>> -search cluserdns cluserdnsus > >>> -nameserver 10.100.1.40 > >>> > >>> thing is, I'm not sure who generates the content of that file, is it > >>> part of busybox? other utility? > >> That depends on your network configuration, for static IP scenarios > >> normally you do, for DHCP it's normally done by the dhcp post up script. > >> Regards. > >> > >> > >> > > did you mean /usr/share/udhcpc/default.script? > I've looked into the resolv.conf of the actual boot (not chroot) and I > saw the domain bad issue (bug #3979), applying it gave me valid domain > again in resolv.conf but problem still persists. > > it is like udhcpc cannot find the dns servers. am I right? where do we > set dns? When you are in a chroot, you are still using the IP stack from your non-chroot system, so the network interfaces are already configured. So, no need to run a DHCP client. However, you still need to properly setup the resolver in your chroot, which you did by filling in /etc/resolv.conf and copying the NSS libs. For example, I usually just copy the non-chroot /etc/resolv.conf into my chroot. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'