Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on Alternative Architectures
  • Search

gentoo for fast booting embedded linux on pandaboard

Post here for other supported architectures, or if you are interested in porting Gentoo to a currently unsupported architecture.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
meka_usta
n00b
n00b
Posts: 6
Joined: Mon Mar 12, 2012 9:05 am

gentoo for fast booting embedded linux on pandaboard

  • Quote

Post by meka_usta » Tue Jul 08, 2014 9:12 am

Hi,

I want a fast booting linux on my pandaboard (<3s). I've installed gentoo and the boot time is 20 s. Before I sart modification in the kernel or bootloader: should I use buildroot or openembedded to setup a fast booting linux? Which solution is better for a fast booting linux? Custom built or gentoo?
thx
Top
schorsch_76
Guru
Guru
User avatar
Posts: 452
Joined: Tue Jun 19, 2012 4:04 pm

  • Quote

Post by schorsch_76 » Tue Jul 08, 2014 9:21 am

The most time is often used in the initrd. Build a static kernel. Boot it without an initrd and you will save a lot of time. If the most time is used to start the services, you will need the same time in openembedded or buildroot or whatever you might use.
Top
meka_usta
n00b
n00b
Posts: 6
Joined: Mon Mar 12, 2012 9:05 am

  • Quote

Post by meka_usta » Tue Jul 08, 2014 10:16 am

Hi schorch,

I that idea possible: packing a qt applikation into initrd to start the applikation as soon as possible (<3s)?
Top
schorsch_76
Guru
Guru
User avatar
Posts: 452
Joined: Tue Jun 19, 2012 4:04 pm

  • Quote

Post by schorsch_76 » Tue Jul 08, 2014 10:50 am

Any QT Application would need xorg to run. I would use an static kernel and directly start on the root device without the need to run an initrd. The static kernel and static dev would cut down the time to probe for devices. Use an readonly rootfs to protect the rootfs from damage.

Use the smallest profile you could use and minimal software for your needs. The less software you need to start, the less time you need to start it. You could use slim to start your x terminal or you could use startx and .xinitrc to directly start your application without an window manager. You could use nodm to start xorg.

If the image is ready you could use squashfs for your rootfs. This often improves the speed (if the decompression on the CPU is fast enough).
Top
meka_usta
n00b
n00b
Posts: 6
Joined: Mon Mar 12, 2012 9:05 am

  • Quote

Post by meka_usta » Tue Jul 08, 2014 2:50 pm

Thank you, I will test that.
Top
meka_usta
n00b
n00b
Posts: 6
Joined: Mon Mar 12, 2012 9:05 am

  • Quote

Post by meka_usta » Thu Jul 10, 2014 7:49 am

There's no initrd. The most time (10s) is needed from OpenRC. Is there a solution to save time?
Top
schorsch_76
Guru
Guru
User avatar
Posts: 452
Joined: Tue Jun 19, 2012 4:04 pm

  • Quote

Post by schorsch_76 » Thu Jul 10, 2014 12:19 pm

I have an embedded system where i did completly disable openrc. I changed to runit. Static-dev, no udev/eudev/systemd and static kernel. The system and services are up in 6.5 sec from cold boot. The system needed about 40 secs with standard openrc.

Precausions: Have a rescue system at hand. Be it a second sd card or whatever you might need. Make a backup before you start. That point is important!

1. compile an static kernel
2. change to static dev
3. emerge runit [1] or s6 [2]
4. Make service directories and run scripts for your services
5. add init=/sbin/runit to your kernel commandline

6. Measure Time :)

For 1. i did the following:

Code: Select all

zcat /proc/config.gz | sed s/=m/=y/g > static-config
Then compile your kernel with this static-config. Maybe disable the module loading completly. I did it.

The most hard point is 2. Neddy here in the forum wrote a wiki page [3]

[1] http://smarden.org/runit/
[2] http://skarnet.org/software/s6/
[3] http://dev.gentoo.org/~neddyseagoon/Old ... ntoo_3.xml
Top
meka_usta
n00b
n00b
Posts: 6
Joined: Mon Mar 12, 2012 9:05 am

  • Quote

Post by meka_usta » Thu Jul 10, 2014 2:36 pm

Thank you, I will work through the steps this weekend.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Gentoo on Alternative Architectures”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic