Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Raspberry Pi net.eth0 not starting via RC issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Syster
n00b
n00b


Joined: 26 Jun 2007
Posts: 60
Location: ŁódŸ

PostPosted: Sun Dec 30, 2012 1:34 pm    Post subject: Raspberry Pi net.eth0 not starting via RC issue Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54615
Location: 56N 3W

PostPosted: Sun Dec 30, 2012 2:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Syster
n00b
n00b


Joined: 26 Jun 2007
Posts: 60
Location: ŁódŸ

PostPosted: Sun Dec 30, 2012 3:37 pm    Post subject: Reply with quote

I've tried putting into default instead of boot. Unfortunately, it doesn't help :(
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54615
Location: 56N 3W

PostPosted: Sun Dec 30, 2012 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Syster
n00b
n00b


Joined: 26 Jun 2007
Posts: 60
Location: ŁódŸ

PostPosted: Sun Dec 30, 2012 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54615
Location: 56N 3W

PostPosted: Sun Dec 30, 2012 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Syster
n00b
n00b


Joined: 26 Jun 2007
Posts: 60
Location: ŁódŸ

PostPosted: Sun Dec 30, 2012 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54615
Location: 56N 3W

PostPosted: Sun Dec 30, 2012 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Syster
n00b
n00b


Joined: 26 Jun 2007
Posts: 60
Location: ŁódŸ

PostPosted: Sun Jan 06, 2013 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
KdC
n00b
n00b


Joined: 14 Jul 2003
Posts: 13
Location: Germany

PostPosted: Tue Jan 08, 2013 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
fenrirjk
n00b
n00b


Joined: 22 Mar 2013
Posts: 22

PostPosted: Fri Mar 22, 2013 11:48 pm    Post subject: Reply with quote

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
Code:
rc-update -u
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum