View previous topic :: View next topic |
Author |
Message |
Syster n00b
Joined: 26 Jun 2007 Posts: 60 Location: Łód
|
Posted: Sun Dec 30, 2012 1:34 pm Post subject: Raspberry Pi net.eth0 not starting via RC issue |
|
|
Hi all!
I've done a fresh install according to http://wiki.gentoo.org/wiki/Raspberry_Pi_Quick_Install_Guide.
Fresh kernel from raspberry foundation GIT, and newest stage3.
However, i've stuck with some kind of problem with net.eth0.
It just won't start on boot.
When i start it manually, it works with no problem.
I've checked list of services after booting with rc-update show boot, and it confirms that net.eth0 is in boot runlevel.
However, checking it with rc-status boot shows that it isnt running.
Please help me i've stuck on this, and withou autostarting net i cannot use sshd |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54615 Location: 56N 3W
|
Posted: Sun Dec 30, 2012 2:51 pm Post subject: |
|
|
Syster,
Syster wrote: | ... it confirms that net.eth0 is in boot runlevel |
It should be in the default runlevel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Syster n00b
Joined: 26 Jun 2007 Posts: 60 Location: Łód
|
Posted: Sun Dec 30, 2012 3:37 pm Post subject: |
|
|
I've tried putting into default instead of boot. Unfortunately, it doesn't help |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54615 Location: 56N 3W
|
Posted: Sun Dec 30, 2012 3:48 pm Post subject: |
|
|
Syster,
How is your network kernel module made. Module or built in?
What about your USB support, as networking depends on USB.
You can still use ssh but you need to start it by hand meanwhile after eth0 is started.
My Pi is building lsbutils so I can't provide module names just now. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Syster n00b
Joined: 26 Jun 2007 Posts: 60 Location: Łód
|
Posted: Sun Dec 30, 2012 4:15 pm Post subject: |
|
|
I don't change anything in kernel configuration - i used one provided from raspberry foundation (like in tutorial said).
But as far as i remember, they use static modules for networking.
SSHD isn't working beacause even if i start by hand net.eth0, starting sshd brings me an RC error about net |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54615 Location: 56N 3W
|
Posted: Sun Dec 30, 2012 4:22 pm Post subject: |
|
|
Syster,
Is your net.lo started. Normally, the net service is not considered up unless all interfaces are up.
Once eth0 is up, what does ifcinfig -a show ? Code: | Pi_Net ~ # ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.123 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::ba27:ebff:fe60:6963 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:60:69:63 txqueuelen 1000 (Ethernet)
RX packets 11493818 bytes 1452285274 (1.3 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11930502 bytes 2293806868 (2.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | Notice that both interfaces have inet <IPv4_IP> lines.
If you fetch a kernel and firmware with rpi-update, does that work?
Using a new kernel with out of date firmware can produce strange results too - is your firmware up to date? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Syster n00b
Joined: 26 Jun 2007 Posts: 60 Location: Łód
|
Posted: Sun Dec 30, 2012 4:50 pm Post subject: |
|
|
when net.eth0 is up manualli, it normally gets IP and connectivity.
I'm not quite sure if my firmware is up-to-date.
I copied whole /boot directory from RPi Git into /boot on SD card.
As far as i know it also have firmware files, right? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54615 Location: 56N 3W
|
Posted: Sun Dec 30, 2012 5:38 pm Post subject: |
|
|
Syster,
Thats right. I have just run rpi-update and got a new kernel and firmware. It all just worked for me. To avoid asking you to make long posts, compare your which services are where to mine.
Code: | Pi_Net boot # rc-update -v show
apache2 | default
bootmisc | boot
consolefont |
cpufrequtils |
crypto-loop |
dcron | default
devfs | sysinit
distccd |
dmesg | sysinit
fsck | boot
git-daemon |
gpm | default
hostname | boot
hwclock |
keymaps | boot
killprocs | shutdown
local | default
localmount | boot
metalog | default
modules | boot
mount-ro | shutdown
mtab | boot
net.eth0 | default
net.lo | boot
netmount | default
nfs |
nfsmount |
nscd |
ntp-client | default
ntpd | default
numlock |
procfs | boot
pydoc-2.7 |
pydoc-3.2 |
root | boot
rpc.idmapd |
rpc.pipefs |
rpc.statd |
rpcbind |
rsyncd |
savecache | shutdown
snmpd |
snmptrapd |
sshd | default
svnserve |
swap | boot
swapfiles | boot
swclock | boot
sysctl | boot
sysfs | sysinit
termencoding | boot
tmpfiles.setup | boot
udev | sysinit
udev-mount | sysinit
urandom | boot
|
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Syster n00b
Joined: 26 Jun 2007 Posts: 60 Location: Łód
|
Posted: Sun Jan 06, 2013 12:59 pm Post subject: |
|
|
Yes, i had the same services in my RPi.
Especially, i have net.eth0 in default, but it still don't start at boot :/ |
|
Back to top |
|
|
KdC n00b
Joined: 14 Jul 2003 Posts: 13 Location: Germany
|
Posted: Tue Jan 08, 2013 10:46 am Post subject: |
|
|
I ran into the same problem.
Editing /etc/rc.conf to enable the rc_sys variable solved it for me.
Strangely if I edit rc.conf before the first boot the same issue appears and commenting out rc_sys solves the problem. |
|
Back to top |
|
|
fenrirjk n00b
Joined: 22 Mar 2013 Posts: 22
|
Posted: Fri Mar 22, 2013 11:48 pm Post subject: |
|
|
Got exactly the same problem, and I was stuck for some days with it !!!
I finally found the answer.
Rapberry-pi has no clock, and when building the sd-card on the x86 machine, some timestamp of the dependency tree won't mach the current time when running on the rpi.
You need to do a to force updating the dependency tree.
Then rc scripts will fix the new dependencies provided by your net.eth0 script.
Or if you are not as stubborned as me and go further with the wiki's instruction, stuff will probably fixup themselves when setting the software clock + ntp |
|
Back to top |
|
|
|