Skip navigation.
Home
The QNX Community Portal

View topic - How to speed up booting?

How to speed up booting?

Discussion about the QNX6 OS.

How to speed up booting?

Postby Allen Chen » Fri May 24, 2013 6:53 am

On MOXA DA-683, QNX booting is somewhat slowly, especially at the stage of scanning for devices of SATA ahci and EIDE. It spends 30 seconds to boot up. Because DA-683 will be used in substation automation system, so the acceptable time should be 10 seconds.

There is another problem. DA-683 has no sound card. During booting, it will display a message:
mount: Can't mount / (type io-audio)
mount: Possible reason: Invalid argument

So my questions are how to skip starting io-audio, and is there any method to speed up booting?

Allen
Allen Chen
New Member
 
Posts: 9
Joined: Fri May 24, 2013 6:26 am

Re: How to speed up booting?

Postby maschoen » Fri May 24, 2013 8:01 am

I'm guessing that you are a .boot file created from a standard build file. This is slowed down by the process of discovering hardware dynamically. In particular, there is a program called diskboot that tries to discover any of a number of controllers and any disks connected to them.

A good way to start the process of replacing this program is to do a "pidin arg" after the system has started. This will give you a starting point for drivers you need to start manually.

Also check the parameters of the disk driver you will be using, as you can tell the driver to not scan, but instead look for disks in specific places.

This takes some patience as well as trial and error.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: How to speed up booting?

Postby Allen Chen » Fri May 24, 2013 8:13 am

Thank you for your reply.
I have comment all lines in /etc/system/enum/devices/audio, now there is no mount failure message from io-audio output.
Run pidin arg, and redirect to a log file, I can see the steps of devb-ahci and devb-eide. In fact there is no ahci device. How to skip the enumerating for ahci?
I worry incorrect modification will cause Neutrino not able to start.

Allen
Allen Chen
New Member
 
Posts: 9
Joined: Fri May 24, 2013 6:26 am

Re: How to speed up booting?

Postby maschoen » Tue May 28, 2013 12:03 am

Allen Chen wrote: In fact there is no ahci device. How to skip the enumerating for ahci?
I worry incorrect modification will cause Neutrino not able to start.
Allen


There is a non-ahci version of the kernel, proc.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: How to speed up booting?

Postby Thunderblade » Tue Jun 25, 2013 8:47 am

The approach taken is wrong. The automatic hardware enum process is leftover from the idea of QNX as a self-hosted development system on PCs.

For an embedded system, you should simply use your own build file, starting from "bios.build". In the boot script you only start the drivers you need (look at what gets started by the enumeration). Without all the detection and scanning, your boot will be much faster.
Thunderblade
Senior Member
 
Posts: 487
Joined: Thu Apr 07, 2005 11:52 am


Return to QNX6 - OS

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

cron