Workaround to speed boot times for BBB debian image

43 views
Skip to first unread message

Gunjan Gupta

unread,
Jul 16, 2016, 2:05:11 PM7/16/16
to BeagleBoard
Hi,

I noticed that BBB takes around 1 and half minute to finish the boot process because of /etc/init.d/networking service taking too much time to execute. I did some modifications into the networking script and the boot time reported by systemd got reduced to about 5 secs while the network becomes available in less than 15 seconds.

I have made the changes in the start procedure as follows

start)
       
if init_is_upstart; then
               
exit 1
       
fi
        process_options
        check_ifstate

       
if [ "$CONFIGURE_INTERFACES" = no ]
       
then
            log_action_msg
"Not configuring network interfaces, see /etc/default/networking"
           
exit 0
       
fi
       
set -f
        exclusions
=$(process_exclusions)
        log_action_begin_msg
"Configuring network interfaces"
       
if [ -x /sbin/udevadm ]; then
               
if [ -n "$(ifquery --list --exclude=lo)" ] || [ -n "$(ifquery --list --allow=hotplug)" ]; then
                        udevadm settle
|| true
               
fi
       
fi
       
# Lets run this if block in background to speed the boot process
       
( if ifup -a $exclusions $verbose && ifup_hotplug $exclusions $verbose
       
then
            log_action_end_msg $
?
       
else
            log_action_end_msg $
?
       
fi ) &
       
;;


I know its a ugly hack but speeds up the process. I know installing some other softwares like connman, etc also speeds up the process but I didn't wanted to install them. Any other suggestions are welcome.

William Hermans

unread,
Jul 16, 2016, 2:37:03 PM7/16/16
to beagl...@googlegroups.com
Which file is this ? ALso this looks to be an Ubuntu fix only ? Pretty sure Debian doesn't use upstart ;)

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/5b140d04-d470-489b-be18-1145f42f137f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

William Hermans

unread,
Jul 17, 2016, 1:14:18 AM7/17/16
to beagl...@googlegroups.com
Yeah never mind about the Ubuntu stuffs. My eyes in the morning are not that great.
Reply all
Reply to author
Forward
0 new messages