[Buildroot] ping not working in a glibc based buildroot

Yann E. MORIN yann.morin.1998 at free.fr
Thu Jul 10 16:30:35 UTC 2014


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.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list