Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Raspbain - fast boot into Webbrowser

Fri Jul 01, 2016 11:52 am

Hello,
How can i boot my Raspberry Pi 3 the fastest way into a Webbrowser ?

I'm using as OS Raspian Jessie. At the moment i'm booting to the text console and a littel script is autostarting the Kweb-Browser.

But how can I speed up the boot process? Is there a possibility to disable loading of drivers which i don't need ( e.g. Bluetooth) and stripping down Raspbian Jessie.
I was trying to build a new kernel but it is to complicated for me. I think a stripped Version of Raspian Jessie would do it, but i could find the right stripped version, e.g. miniban is not suitable for my case.

Thanks in advance !

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspbain - fast boot into Webbrowser

Fri Jul 01, 2016 11:58 am

Raspbian Jessie Lite and DietPi are two 'start small and add what you need' alternatives that you might want to investigate.

Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Re: Raspbain - fast boot into Webbrowser

Fri Jul 01, 2016 12:57 pm

B.Goode wrote:Raspbian Jessie Lite and DietPi are two 'start small and add what you need' alternatives that you might want to investigate.
Thanks, i will try Diet Pi and inform about the results. Maybe it's usefull for someone else.

Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 6:16 am

I have tried Diet Pi, but my main purpose is to boot very quick into a Webrowser, but with Diet Pi my boot time isn't much fast than the normal Raspbian Jessie.
More Ideas ?

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 6:28 am

Reini1000 wrote:I have tried Diet Pi, but my main purpose is to boot very quick into a Webrowser, but with Diet Pi my boot time isn't much fast than the normal Raspbian Jessie.
More Ideas ?
If you want fast try Tiny Core. But support for software is limited.
There are 10 types of people: those who understand binary and those who don't.

Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 9:03 am

kusti8 wrote:
Reini1000 wrote:I have tried Diet Pi, but my main purpose is to boot very quick into a Webrowser, but with Diet Pi my boot time isn't much fast than the normal Raspbian Jessie.
More Ideas ?
If you want fast try Tiny Core. But support for software is limited.
Tiny Core is fast your right. Buts its to tiny for me.

Is there a possiblity to speed up the OS Jessie? (e.g. putting drivers which i don't need on blacklist ?)

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 9:07 am

Reini1000 wrote:
kusti8 wrote:
Reini1000 wrote:I have tried Diet Pi, but my main purpose is to boot very quick into a Webrowser, but with Diet Pi my boot time isn't much fast than the normal Raspbian Jessie.
More Ideas ?
If you want fast try Tiny Core. But support for software is limited.
Tiny Core is fast your right. Buts its to tiny for me.

Is there a possiblity to speed up the OS Jessie? (e.g. putting drivers which i don't need on blacklist ?)
:?: :?: :?: https://webconverger.org/rpi2
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 9:21 am

fruitoftheloom wrote: :?: :?: :?: https://webconverger.org/rpi2
Thanks but that doesn't fit for me.

Other ideas ? How can i speed up OS Jessie by myself, so i can configure it according to my needs ?

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 9:27 am

Maybe you should leave the system running 3600*24*7 to avoid the delay at startup?

Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 9:40 am

B.Goode wrote:Maybe you should leave the system running 3600*24*7 to avoid the delay at startup?
Yeah you are right thats one possiblity, but i some cases its necessary to restart.
The main Problem is: when my sytem is rebooting, on the screen occurs some boot messages (the auto login to text console process) although i disabled the non-critical bootmessages and the pi-Logo. The bigger problem is that i want to use custom boot screen (i'm using one right now) to prevent that while booting the screen is black or shows bootmessages.

So i want after starting the pi immediately the bootscreen is coming up and lasts until the application is startet. I want to achive that only the bootscreen is visible the whole time (also no black screen while booting) and than immediately the application comes up. If this is not possible, i want at least minimize the time where the screen is black.

Thanks for youre Help!

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 9:46 am

Reini1000 wrote:
fruitoftheloom wrote: :?: :?: :?: https://webconverger.org/rpi2
Thanks but that doesn't fit for me.

Other ideas ? How can i speed up OS Jessie by myself, so i can configure it according to my needs ?
http://www.samplerbox.org/article/fastbootrpi

.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 11:19 am

i have done this:

Code: Select all

pi@raspberrypi:~ $ sudo systemd-analyze
Startup finished in 1.936s (kernel) + 33.811s (userspace) = 35.748s
pi@raspberrypi:~ $ sudo systemd-analyze blame
         30.023s hciuart.service
          2.137s ModemManager.service
          1.730s codesyscontrol.service
          1.153s raspi-config.service
          1.151s systemd-logind.service
          1.086s networking.service
          1.060s asplashscreen.service
          1.003s alsa-restore.service
          1.000s dhcpcd.service
           991ms triggerhappy.service
           988ms dphys-swapfile.service
           892ms avahi-daemon.service
           707ms polkitd.service
           609ms keyboard-setup.service
           383ms systemd-fsck-root.service
           354ms console-setup.service
           331ms colord.service
           289ms rsyslog.service
           278ms systemd-tmpfiles-setup-dev.service
           233ms ntp.service
           226ms fake-hwclock.service
           208ms systemd-modules-load.service
           180ms kbd.service
Why does the hciuart.service take so long to start ? Is it possible to delay the start so that first the webbrowser is started for example ?

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 11:33 am

sudo systemctl disable hciuart
if you don't need bluetooth this is fine
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
r3d4
Posts: 982
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 11:34 am

Reini1000 wrote:
Why does the hciuart.service take so long to start ? Is it possible to delay the start so that first the webbrowser is started for example ?
viewtopic.php?t=138223&p=953707
PhilE wrote: If you want Bluetooth to work then don't disable the hciuart service ...
If you don't want Bluetooth then don't edit the service, just disable it.

Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 11:47 am

RaTTuS wrote:sudo systemctl disable hciuart
if you don't need bluetooth this is fine
Thanks, much better now:

Code: Select all

pi@raspberrypi:~ $ sudo systemd-analyze
Startup finished in 1.939s (kernel) + 5.903s (userspace) = 7.843s
But one other question, how can i achive that my custom bootscreen is shown while the whole boot process ?

I want to prevent that there are moments where the screen is black during booting ( i disabled the bootmessages and Pi logo).

User avatar
DougieLawson
Posts: 39126
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspbain - fast boot into Webbrowser

Mon Jul 04, 2016 12:14 pm

Is a custom bootscreen worth it for something that's going to be displayed for less than ten seconds?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Reini1000
Posts: 35
Joined: Wed Apr 20, 2016 8:30 am
Location: Germany

Re: Raspbain - fast boot into Webbrowser

Tue Jul 05, 2016 6:33 am

DougieLawson wrote:Is a custom bootscreen worth it for something that's going to be displayed for less than ten seconds?
Normaly i would say no, but i want to creat a device. If somebody starts the device he should get a consistent display while booting.

Which Services can i also turn off to speed up booting)
I'm booting to the Browser from the Text-Console and i'm using the GPIO´s, but there so many Services which become started. Do I need all off them ?

See attached the analyze graph of my booting process:
Attachments
Unbenannt1.PNG
Unbenannt1.PNG (62.48 KiB) Viewed 3259 times
Unbenannt.PNG
Unbenannt.PNG (61.77 KiB) Viewed 3259 times

Return to “Raspberry Pi OS”