Hello all!
I build my LFS in VMware and after boot into it I haven't
network. "ip link" show me two interfaces: loopback (lo0) and sit0,
but sit0 has strange attributes (no MAC assigned):
[/source/1inux-4.4.2]# ip link
1: lo: <L00PBACK,UP,L0WER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode
DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: sit0@NONE: <N0ARP,UP,L0WER_UP> mtu 1480 qdisc noqueue state UNKNOWN mode
DEFAULT group default
link/sit 0.0.0.0 brd 0.0.0.0
I can bring up this interface, assign IP-addres and ping it (on local
host, but not outside) but can't ping other hosts in my subnet.
[/source/1inux-4.4.2]# ifconfig sit0
sit0 Link encap:IPv6-in-IPv4
inet addr:192.168.0.202 Bcast:192.168.0.255 Mask:255.255.255.0
UP RUNNING NOARP MTU:1480 Metric:l # Under Salix LiveCD this line is
not present,
# but present new one: "ether 00:0c:29:78:4c:22 tcqueuelen 1000 (Ethernet)"
RX packets:0 errors:0 dropped:0 ouerruns:0 frame:0
TX packets:0 errors:2 dropped:0 ouerruns:0 carrier:0
collisions:2 txqueuelen:0
RX bytes:0 TX bytes:0
[/source/1inux-4.4.21# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.062 ms
^C--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.062/0.062/0.062/0.000 ms
[/source/1inux-4.4.21# ping 192.168.0.202
PING 192.168.0.202 (192.168.0.202): 56 data bytes
64 bytes from 192.168.0.202: icmp_seq=0 ttl=64 time=0.060 ms
^C--- 192.168.0.202 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.060/0.060/0.060/0.000 ms
[/source/1inux-4.4.21# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
^C--- 192.168.0.1 ping statistics ---
3 packets transmitted, 0 packets receiued, 100% packet loss
I ask Google and found that thread (on pages 2 and 3):
https://www.linuxquestions.org/questions/linux-newbie-8/network-issue-on-new-build-4175604479
I understand my kernel haven't driver for VMware ethernet controller
(Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] (rev 10)).
Then I need to rebuild kernel with built-in PCnet32 support. BUT! When
I execute "make manuconfig" I see this error:
[/source/linux-4.4.2]# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from scripts/basic/fixdep.c:106:0:
/usr/include/sys/types.h:146:20: fatal error: stddef.h: No such file or
directory
compilation terminated.
scripts/Makefile.host:91: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 1
Makefile:439: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] Error 2
[/source/linux-4.4.2]#
But I have stddef.h in lot of places:
[/source/1inux-4.4.2]# find / | grep stddef.h
/tools/1ib/gcc/i686-1fs-1inux-gnu/5.3.0/include/stddef.h
/tools/1ib/gcc/i686-pc-1inux-gnu/5.3.0/include/stddef.h
/tools/include/1inux/stddef.h
/usr/1ib/gcc/i686-pc-1inux-gnu/5.3.0/include/stddef.h
/usr/include/1inux/stddef.h
/source/1inux-4.4.2/include/1inux/stddef.h
/source/1inux-4.4.2/include/uapi/1inux/stddef.h
[/source/1inux-4.4.21# echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/tools
[/source/1inux-4.4.21#
The same situation with kernel build when I chroot in my LFS from
Salix LiveCD. What I'm doing wrong?
Nickolay.
P.S. Sorry for my English.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style