Unix Technical Forum

Re: BOOT-CD Problem

This is a discussion on Re: BOOT-CD Problem within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> *** post for FREE via your newsreader at post.newsfeed.com *** Hi! I'm back again! It lasted for two weeks, ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > comp.unix.bsd.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2008, 04:21 AM
Ewald Peters
 
Posts: n/a
Default Re: BOOT-CD Problem

*** post for FREE via your newsreader at post.newsfeed.com ***

Hi!

I'm back again!
It lasted for two weeks, because i wanted to be back and able
to say "it works now"

and it does!

Thanks for the great help to Sami!

Details:

I don't think that 3.3 was really nessessary but i did it.
i copied GENERIC to RAMDISK_CD and tried to get as most
of the generic kernel as possible.
First i had the same errors.
Then i played around with the X-Config-File
and figured out that the main reason why it only
worked on the "Creating Computer" was the
driver of the video hardware, which was a completely different
one the other mashines.

Not even xf86cfg could overcome this, but my
to-be-writen-shell-script which will sort this out and load the proper
x-config file on startup.
the info which video-card is build in, it will get
from dmesg and then it has to search /usr/X11R6/lib/X11/modules/drivers
if a driver is there and then it changes the driver line
in the X-config-file. (i don't know really how to replace
strings in a file with a shell-script, but perl doesn't work,
because i decided to save CD-space, but i will try it)

the other problem i had i overcame whith a union mount
and then a recreation of the X-link which is needed by xinit and startx
all because on the CD which was made with mkhybrid
there are no symbolic links, just file-copies
i don't know with option for mkhybrid is nessessary for links
i played around but i didn't find it.

with option BUFCACHEPERCENT i need more time to see a difference

all other services (printer, samba, router) seem to work fine

a bad idea came into my mind: how is it possible to
replace the Kernel and rc startup messages with
a windoze-like picture?

thanx

Ewald


-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2008, 04:21 AM
Sami Kujala
 
Posts: n/a
Default Re: BOOT-CD Problem

In article <3F157CC4.10661523@yahoo.com>, Ewald Peters wrote:
> Thanks for the great help to Sami!


No problem, glad if I were of any help.

> the info which video-card is build in, it will get from dmesg and
> then it has to search /usr/X11R6/lib/X11/modules/drivers if a driver
> is there and then it changes the driver line in the X-config-file.
> (i don't know really how to replace strings in a file with a
> shell-script, but perl doesn't work, because i decided to save
> CD-space, but i will try it)


Maybe ed(1) could be your friend for that, if you are familiar with
vi. With script being something like this:

---------------------------------------------------
* *
* echo "%s/${OLDVIDEODRIVER}/${NEWVIDEODRIVER}/ \ *
* w \ *
* q" | ed XF86Config *
* *
---------------------------------------------------

I think that setting up XFree86 on the fly with just the information
from dmesg might prove to be somewhat difficult but I don't say it
can't be done. I'll look forward to hearing from your results.

Please consider sharing your script with the community when you finish
it. One other idea for similar script would be to construct
/etc/hostname.${INTERFACE} from dmesg and asking the user for IP or
DHCP, something like what OpenBSD install script has. That way you
would get a "one-size-fits-all" kind of LiveCD.

> the other problem i had i overcame whith a union mount and then a
> recreation of the X-link which is needed by xinit and startx all
> because on the CD which was made with mkhybrid there are no symbolic
> links, just file-copies


I don't know if ISO-9660 filesystem even with Rock-Ridge extensions
have support for symbolic links. I have the impression (someone
correct me if I'm wrong) that you don't necessarily have to have a
cd9660 filesystem on the cd, you should be able to create a FFS file
system onto the CD. How, if at all, you can do that is beyond me,
though.

> a bad idea came into my mind: how is it possible to replace the
> Kernel and rc startup messages with a windoze-like picture?


By hacking the kernel sources? I think (again someone correct
me if I am wrong) that FreeBSD/Linsucks would be your choice if you
wanted a boot-up image.


sami
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:49 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com