Page 1 of 1
Raspbain - fast boot into Webbrowser
Posted: Fri Jul 01, 2016 11:52 am
by Reini1000
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 !
Re: Raspbain - fast boot into Webbrowser
Posted: Fri Jul 01, 2016 11:58 am
by B.Goode
Raspbian Jessie Lite and DietPi are two 'start small and add what you need' alternatives that you might want to investigate.
Re: Raspbain - fast boot into Webbrowser
Posted: Fri Jul 01, 2016 12:57 pm
by Reini1000
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.
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 6:16 am
by Reini1000
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 ?
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 6:28 am
by kusti8
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.
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 9:03 am
by Reini1000
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 ?)
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 9:07 am
by fruitoftheloom
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
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 9:21 am
by Reini1000
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 ?
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 9:27 am
by B.Goode
Maybe you should leave the system running 3600*24*7 to avoid the delay at startup?
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 9:40 am
by Reini1000
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!
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 9:46 am
by fruitoftheloom
Reini1000 wrote:
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
.
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 11:19 am
by Reini1000
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 ?
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 11:33 am
by RaTTuS
sudo systemctl disable hciuart
if you don't need bluetooth this is fine
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 11:34 am
by r3d4
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.
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 11:47 am
by Reini1000
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).
Re: Raspbain - fast boot into Webbrowser
Posted: Mon Jul 04, 2016 12:14 pm
by DougieLawson
Is a custom bootscreen worth it for something that's going to be displayed for less than ten seconds?
Re: Raspbain - fast boot into Webbrowser
Posted: Tue Jul 05, 2016 6:33 am
by Reini1000
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: