Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Linux


Reply
 
Share Thread Tools Display Modes
Old 02-13-2005, 10:37 PM   #1
Nic
FLAC
 
Nic's Avatar
 
Join Date: Oct 2003
Location: Melbourne, Australia
Posts: 1,047
Nic is on a distinguished road
Booting Linux Fast

So ive got some stuff bookmarked about booting linux fast and i just thought i'd share, i know some of this has been posted before

http://www.linuxbios.org/ < replacing the usual bios with a linux one

http://www.bootchart.org/ < kind of like bootvis for windows without the automated optimisation

Reducing OS Boot Times for In-Car Computer Applications:
http://www.linuxjournal.com/article/7544
http://www.linuxjournal.com/article/7594
http://www.linuxjournal.com/article/7857

Parallelize Linux system services to improve boot speed:
http://www-106.ibm.com/developerwork...xw04BootFaster
__________________
Signature: [==||========] 20% complete
Nic is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 02-14-2005, 12:01 AM   #2
Variable Bitrate
 
rubicon's Avatar
 
Join Date: Feb 2005
Location: $240 worth of puddin'
Posts: 297
rubicon is on a distinguished road
I'd like to add another option: software suspend (aka hibernate); see this page for details.
rubicon is offline   Reply With Quote
Old 02-14-2005, 01:37 AM   #3
Nic
FLAC
 
Nic's Avatar
 
Join Date: Oct 2003
Location: Melbourne, Australia
Posts: 1,047
Nic is on a distinguished road
Goodstuff
__________________
Signature: [==||========] 20% complete
Nic is offline   Reply With Quote
Old 02-15-2005, 02:18 PM   #4
FLAC
 
TheLlama's Avatar
 
Join Date: Jul 2004
Location: All over the world
Posts: 970
TheLlama is on a distinguished road
I'd also like to mention another means of making it "boot" faster, particularly for the car enviroment. Lets say you have a super cool carputer with Network, GPS, and an SQL database for your library. If these devices aren't needed immediately, then you can take them out of your rc scripts and start them AFTER the player has started. This way you will be up and playing music while your waiting for everything else to be fully functional. Sort of like Parallelizing I suppose.
TheLlama is offline   Reply With Quote
Old 02-15-2005, 03:13 PM   #5
Variable Bitrate
 
rubicon's Avatar
 
Join Date: Feb 2005
Location: $240 worth of puddin'
Posts: 297
rubicon is on a distinguished road
Quote: Originally Posted by TheLlama
I'd also like to mention another means ... Sort of like Parallelizing I suppose.

Definitely.

The IBM developer article mentioned above goes into, among other things, getting "the important stuff" out of the way first, then loading subsequent procs that depend on said stuff.

The article specifically talks about Linux boot procedures, but the same can apply to running apps - it a small leap to put your audio player on that list of "important stuff."
rubicon is offline   Reply With Quote
Old 02-16-2005, 11:17 PM   #6
Constant Bitrate
 
cbergeron's Avatar
 
Join Date: Apr 2004
Posts: 176
cbergeron is on a distinguished road
Llama is right. We use a custom kernel and we've compiled almost everything as modules.

We load our UI first (from a custom startup script) and we then insert the modules in a sequential fashion. We're using tinylogin (compiled for ARM7) for to automatically login as root on the box. We also re-wrote the startup scripts from scratch. We're on LFS 5.1; so we're not using any off-the-shelf distro. We wrote our own.

As for tweaking your kernel - there are TONs of ways to accelerate it's startup time. One way is to use XIP (eXecute In Place) directly from Flash. The kernel is uncompressed in flash and loads into ram in a 1 to 1 basis. The net result is that the kernel doesn't need to decompress and it loads about 1100ms faster. You can't do this on x86 architecture because of hardware limitations (ahem 640k limit; thanks Bill!). Here's a list of some great kernel tweaks:
Apply a preset "loops per jiffie" patch
Apply a patch for eliminating IDE probing; You can preset your IDE data after the kernel enumerates the device for the first time. Subsequent boots never have to probe again.
Remove all the "printk()'s" from the kernel source. This eliminates all the startup text, but you can still debug via serial.

We've had NUMEROUS people ask for a copy of the distro. Here's our standard reply: Our distro is not for x86 computers. It won't work on an EPIA or anything like that. We're on an embedded BIOS-less platform. As such, we can't provide you with a CD-Distro for your carptuer. Sorry!

By tweaking the hell out of our kernel, we're down to about a 5 second boot. That's power-on to prompt. Our app loads in about 2-3 seconds. A cold-start boot takes roughly 8 seconds from power to UI.

We have hardware suspend and we can resume from that in about 2500ms.


Sorry for the super long post - I just wanted to provide as much info as possible.
__________________
DashPC - The Linux Car (since 1999).

Dash LCD, Via Epia, GPS, XM, OBDII, DSSC Shutdown Controller.

As seen in the book Geek My Ride
cbergeron is offline   Reply With Quote
Old 02-17-2005, 12:00 PM   #7
FLAC
 
TheLlama's Avatar
 
Join Date: Jul 2004
Location: All over the world
Posts: 970
TheLlama is on a distinguished road
Thanks cbergeron, that was a very informative post. I'm familiar with jiffies as I had to use them for my VFD timing. However, what do you mean by a preset "loops per jiffie" patch? Sounds like you have some good things going with your embedded ARM board. I am currently using an advantec half-sbx board (667mhz eden). When I finish my player I will evalutate the resource load and get a more watered down board. Check your PMs.

Peace
TheLlama is offline   Reply With Quote
Old 02-18-2005, 01:25 AM   #8
Constant Bitrate
 
cbergeron's Avatar
 
Join Date: Apr 2004
Posts: 176
cbergeron is on a distinguished road
What kernel version are you using Thellama?

I can post a patch here if you're using 2.6

cheers,
CB
__________________
DashPC - The Linux Car (since 1999).

Dash LCD, Via Epia, GPS, XM, OBDII, DSSC Shutdown Controller.

As seen in the book Geek My Ride
cbergeron is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 02-22-2005, 11:42 AM   #9
FLAC
 
TheLlama's Avatar
 
Join Date: Jul 2004
Location: All over the world
Posts: 970
TheLlama is on a distinguished road
I'm currently running Linux 2.6.8 (Gentoo distro) on an AMD64.

I'll prolly upgrade to 2.6.10 in the next day or so.
TheLlama is offline   Reply With Quote
Old 03-02-2005, 01:17 PM   #10
FLAC
 
jbors's Avatar
 
Join Date: Nov 2003
Posts: 947
jbors is on a distinguished road
Quote: Originally Posted by cbergeron
Apply a preset "loops per jiffie" patch

I second to see what this patch is. Can you please send it to me dborisov@indashpc.org ?
Thanks,
__________________
Car pc integration with ease
Car mediacenter
jbors is offline   Reply With Quote
Old 03-02-2005, 03:48 PM   #11
ddn
Variable Bitrate
 
Join Date: Dec 2004
Posts: 295
ddn is on a distinguished road
cbergeron: What are you using for navigation? That is the ONE thing keeping me from using Linux which is what I want. I can't believe I don't use Windows on any of my PCs but my car computer will be Windows just for navigation.

Edit: Oops, now I see it is probably GPSDrive. I have played with it a little but I just can't see it comparing to iGuidance. If only they would get NavTeq data.

Last edited by ddn; 03-02-2005 at 03:56 PM.
ddn is offline   Reply With Quote
Old 03-02-2005, 05:41 PM   #12
Newbie
 
Join Date: Oct 2004
Location: Southampton, UK
Posts: 21
FezzR is on a distinguished road
slax linux i found cool cos will load from cd (instructions on there site for customising to HD use) but the idea of using a cd does mean that it has a small space
FezzR is offline   Reply With Quote
Old 03-02-2005, 11:06 PM   #13
FLAC
 
TheLlama's Avatar
 
Join Date: Jul 2004
Location: All over the world
Posts: 970
TheLlama is on a distinguished road
yes but thats more than enough space for a linux install. Of course a slax cd won't have your frontend on it so you should just make your own live cd. However, I don't see how a CD can make linux start up quicker.
TheLlama is offline   Reply With Quote
Old 03-03-2005, 03:43 PM   #14
Newbie
 
Join Date: Oct 2004
Location: Southampton, UK
Posts: 21
FezzR is on a distinguished road
its not faster BECAUSE its on a CD, it loads faster because it is cut down to be tiny in disc space, so has very few features, so with nothing to load its quick to load.

it will have your front end on there cos you can add anything you like to it.

and like i said you can run it from your HD or USB or even CF if your system supports it

i cant remember the stats but i think the complete slax os on a CD is around the 60mb, so there is plent of room for whatever else you need
FezzR is offline   Reply With Quote
Old 03-03-2005, 11:40 PM   #15
Newbie
 
fearthepenguin's Avatar
 
Join Date: Mar 2004
Posts: 38
fearthepenguin is on a distinguished road
[QUOTE=cbergeron]
Remove all the "printk()'s" from the kernel source. This eliminates all the startup text, but you can still debug via serial.
/QUOTE]

You can accomplish the same by appending "silent" as a boot option. It skips over any printks, but you have the same problem that you do with removing them from the source. Any panics will never show up and you still are stuck with the printfs.
__________________
Jason
It gimme the jibblies
fearthepenguin is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Login, UPS and Linux Touch Screen polc1410 Newbie 5 02-11-2005 11:43 AM
The LOW Risk Linux Adventure... grepzen Software & Software Development 13 11-08-2004 10:12 PM
Booting between Win98lite / Linux same mp3s? Squeeky Software & Software Development 3 08-29-2003 08:07 AM
my opinion as Linux as an OS for carputing churnopol Software & Software Development 14 05-05-2003 01:56 AM
PS2 Linux -- check it out Superfly General Hardware Discussion 7 03-22-2003 12:11 AM



All times are GMT -5. The time now is 11:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics