Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Raspberry Pi linux kernel and systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Tue Aug 26, 2014 6:17 pm    Post subject: [SOLVED] Raspberry Pi linux kernel and systemd Reply with quote

I noticed there is no option to select systemd as the initialization system for Linux for the Raspberry Pi. I got the last version available on GitHub which happens to be 3.12.26 and it seems systemd is not yet an option.

Anyone knows when this will be?
_________________
Achille Talon Hop!


Last edited by AchilleTalon on Sat Aug 30, 2014 6:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7972
Location: ~Brussels - Belgique

PostPosted: Tue Aug 26, 2014 6:26 pm    Post subject: Reply with quote

Hello,

The option is only a shortcut that forces certain parameters. So, if you enable them manually, the kernel will be compatible for systemd.

But be sure that systemd is fully compatible with ARM architectures...
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Tue Aug 26, 2014 6:44 pm    Post subject: Reply with quote

systemd's KEYWORDS include arm keyword. So, yes it is supposed to be fully compatible.

And all options selected by the SYSTEMD option are selected by default.
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Sat Aug 30, 2014 6:20 pm    Post subject: Reply with quote

I confirm this is working fine. I compiled my own kernel, however I believe the latest compiled kernel should do fine as well since the required options are selected by default when I followed the procedure to build my own kernel.
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
evilshenaniganz
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 107
Location: /dev/random

PostPosted: Sat Mar 28, 2015 6:20 pm    Post subject: Reply with quote

Would you mind sharing with everybody what you did to allow the Pi to run with systemd? I have a Pi 2 running Gentoo and I'd like to use systemd instead of openrc. Any tips/tricks/shortcuts would be most helpful. All I can find on the subject are posts about Raspbian Jesse movin to systemd.
_________________
"I swear to God, I'll pistol whip the next guy that says 'shenanigans'."
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Sun Mar 29, 2015 1:38 pm    Post subject: Reply with quote

First of all, read the Wiki.

Since I built my own kernel from source code, I picked the appropriate options for the kernel configuration. I have no idea if the compiled kernels available out-there have been compiled with appropriate options. I haven't try any, but as I mentioned above, I guess they should work.

In my /boot/cmdline.txt file I have the entry: init=/usr/lib/systemd/systemd to activate systemd at boot time.

Unless you have more specific questions, this is about it.
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
evilshenaniganz
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 107
Location: /dev/random

PostPosted: Sun Mar 29, 2015 9:45 pm    Post subject: Reply with quote

I did read the wiki, AchilleTalon. I've also implemented systemd on my Kodi media center as well as a Lenovo laptop, both running Gentoo. Both of them are x86, and thus, can run sys-kernel/gentoo-sources-3.17.8-gentoo-r1, a source tree that has the following configuration options:
Code:

Gentoo Linux  --->
   [*] Gentoo Linux support
   [*]   Linux dynamic and persistent device naming (userspace devfs) support
       Support for init systems, system and service managers  --->
      [ ] OpenRC, runit and other script based systems and managers
      [*] systemd


And the Help on the systemd option reads:
Code:

CONFIG_GENTOO_LINUX_INIT_SYSTEMD:                                                                                                                                     
                                                                                                                                                                           
    The init system is the first thing that loads after the kernel booted.
    These config settings allow you to select which init systems to support;
    instead of having to select all the individual settings all over the
    place, these settings allows you to select all the settings at once.
   
    This particular setting enables all the known requirements for systemd;
    it also enables suggested optional settings, as the package suggests to.
   
    Symbol: GENTOO_LINUX_INIT_SYSTEMD [=y]                                                                                                                                 
    Type  : boolean                                                                                                                                                       
    Prompt: systemd                                                                                                                                                       
      Location:                                                                                                                                                           
        -> Gentoo Linux                                                                                                                                                   
          -> Support for init systems, system and service managers                                                                                                         
      Defined at distro/Kconfig:68                                                                                                                                         
      Depends on: GENTOO_LINUX [=y] && GENTOO_LINUX_UDEV [=y]                                                                                                             
      Selects: AUTOFS4_FS [=y] && BLK_DEV_BSG [=y] && CGROUPS [=y] && DEVPTS_MULTIPLE_INSTANCES [=y] && EPOLL [=y] && FANOTIFY [=y] && FHANDLE [=y] && \                   
    INOTIFY_USER [=y] && NET [=y] && NET_NS [=y] && PROC_FS [=y] && SIGNALFD [=y] && SYSFS [=y] && TIMERFD [=y] && ANON_INODES [=y] && BLOCK [=y] && EVENTFD [=y] && \     
    FSNOTIFY [=y] && INET [=y] && NLATTR [=y]


These options don't appear to exist in either the sources I fetched from the Raspberry Pi's git repo nor in raspberrypi-sources. Is this option merely a shortcut to implement everything that's described in the "Selects" section? Just trying to understand is all, not throwing my homework on the floor and whining for somebody else to do it.
_________________
"I swear to God, I'll pistol whip the next guy that says 'shenanigans'."
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Sat Apr 04, 2015 4:26 am    Post subject: Reply with quote

I'll be back to answer. I am pretty busy these days and haven't much time to dedicate to this. Maybe next weekend I will be able to check your question and answer. I just want to let you know I haven't forget you.
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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