Help Needed : Custom built debian image

Thanks Robert,

Will disable this in my next build and will check the size of the image. Hopefully it won’t be a big difference.

Regards
viraniac

Hi Robert,

Here is the pastebin of one of my custom built image’s dmesg output.
http://paste.debian.net/92787/

As you can see in the log, there is no log from around 6 second in the boot process to 70 second of the boot process. For this time, the BBB just doesn’t respond and after that it resumes booting.

For this image I have removed connman, wicd at image creation time but have added them back after booting for the first time. The image still takes around a minute to boot. http://paste.debian.net/92791/ is the pastebin url with connman

Please help me in optimizing boot timing.

Regards
viraniac

Two things come to mind... openssh-server key regeneration: (this
only occurs on the first boot)

root@beaglebone:~# rm -rf /etc/ssh/ssh_host_*
root@beaglebone:~# time dpkg-reconfigure openssh-server
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
[ ok ] Restarting ssh (via systemctl): ssh.service.

real 0m13.760s
user 0m10.813s
sys 0m0.893s

but the other 50 some seconds..

So factory image: (wicd)
http://paste.debian.net/92793/

btw, systemd provides a nice tool to help debug this:

systemd-analyze

Using:
systemd-analyze blame

http://paste.debian.net/92798/

Regards,

Hi Robert,

Thanks for reminding me of systemd-analyze. Completely forgot about that.

Here is the output of the command

Disabling networking service indeed did the trick. Thanks for saving me.

Regards
viraniac

What's in your:

/etc/network/interfaces

?

Regards,

I haven’t changed the content of that, So that will be having some default values. I have deleted the old images and am building it again with the newly customized script with all locale support and with connman and having networking.service as disabled. Will there be any consequences for having networking service disabled?

Regards
viraniac

Hi Robert,

One thing that I forgot to mention was that I am interacting with BBB over ssh. I guess its taking LANG from my host machine. If I check LANG from lxterminal, it comes as en_US and everything works fine.

Can we force it to use en_US on ssh also?

Regards
viraniac

Hi Robert,

Though I am commenting the rfs locale strip=enable line. but its still generating only en_US.UTF8 locale. How to force it to generate all locales (other than executing dpkg-reconfigure)?

Regards
viraniac

The rfs strip option, just disables removing the pre-compute-locale
info, we still only generate one locale.

If you want them all, also add: "locales-all" to the package list..
Of course, It'll cost you about 120MB of space..

Regards,

Hi Robert,

Thanks for replying. I will add that package to my package list. 120 MB won’t be a problem as my disk space being used is currently near to 800MB only.

Regards
viraniac

Robert,

My system while booting shows a debian boot splash. Then it shows a black screen for about 4 to 5 seconds before displaying the java program that I am running as my GUI.

I am using startx command configured in /etc/rc.local to start the X environment and a /root/.xinitrc file to start my java program. Is there something I can do to reduce this 5 second of blank display time?

Regards
viraniac

you people seems like genius in linux.
I am a beginner. I can boot the readily available os image on beagle bone black.
but i want to build my own OS image from readily available kernel, how to build OS image for BBB from kernel.
you guyzz please help me???