DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th March 2009
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default pxeboot, bsd.rd, etcetera.

Bonjour. Long time no visit.

I have an ALIX (PC Engines).
I am doing an install from my desktop over the network to the ALIX CF card.

It is not working.
I have only spent several hours so far so I must persist ...

I think I have the DHCP and PXE bit sorted.
I have a tftpboot directory in my desktop root.
This contains a copy of the pxeboot file.
When I access the ALIX via the serial port (cu) and turn it on it talks to the DHCP server and uses pxeboot.
It tries to load "bsd" but doesn't find it.
After several tries it stays with a boot> prompt.

If I enter "boot bsd.rd" at the prompt I get:
booting tftp:bsd.rd: "numbers" "numbers"
entry point at "numbers"
*
Yes, that is an "i" with an accent. The "numbers" are alphanumeric and look like memory addresses.

I have tried to write a boot.conf that says "boot bsd.rd" and put it in /tftpboot and also in /etc. It doesn't seem to have any effect.
Right now though I seem to able to at least use boot> interactively and am more interested in getting bsd.rd to run.

Any help appreciated.

Best wishes.

P.S. If someone can point me to the man page that shows how to set up the global parameters for dhcpd.conf that would be bonza.
http://www.openbsd.org/cgi-bin/man.cgi?query=dhcpd.conf
Reply With Quote
  #2   (View Single Post)  
Old 25th March 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,930
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by diw View Post
I am doing an install from my desktop over the network to the ALIX CF card.
First, PXE configuration is covered in Section 6.10 of the FAQ:

http://openbsd.org/faq/faq6.html#PXE

As I recall, configuration is reasonably simple:
  • enable tftpd in inetd.conf & re-run /etc/netstart.sh as root (covered in Section 6.2.5...)
  • copy bsd.rd and pxeboot to your tftp server's /tftpboot directory
  • create /etc/boot.conf file with 'set tty com0'
  • All you need then is a 'filename pxeboot"' entry in your dhcpd.conf file (this is when dhcpd and tftpd run on the same machine).
As I remember, the information in the FAQ was pretty complete. Reading the related manpages was helpful too.

Last edited by ocicat; 25th March 2009 at 09:33 AM.
Reply With Quote
  #3   (View Single Post)  
Old 25th March 2009
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Yep. Done all that.

Read a lot of manpages also.

As I said before, I can't seem to get boot.conf to have an effect.
AFAICS, boot.conf is used to tell the kernel to communicate via the serial interface, as in this example from boot (8):
# echo "set tty com0" > /etc/boot.conf
I think I am GTG except that when bsd.rd starts up my tty session ends.
I suspect that the kernels don't automatically communicate via the serial console.

Best wishes.
Reply With Quote
  #4   (View Single Post)  
Old 25th March 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,886
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by diw View Post
# echo "set tty com0" > /etc/boot.conf
Wrong place. That's your server's /etc directory. The file for pxebooting needs to be from your tftp root directory, which, if using the FAQ, would be /tftpboot/etc/boot.conf
Reply With Quote
  #5   (View Single Post)  
Old 25th March 2009
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by jggimi View Post
Wrong place. That's your server's /etc directory. The file for pxebooting needs to be from your tftp root directory, which, if using the FAQ, would be /tftpboot/etc/boot.conf
Haha. Good call.

I tried it in /tftpboot and also /etc.
I never concatenated the various bits of documentation. :]

It would explain why everything else seemed to work (except boot.conf).
I haven't tried it but I am very sure you are correct.

Best wishes.
Reply With Quote
  #6   (View Single Post)  
Old 25th March 2009
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by jggimi View Post
... if using the FAQ ...
This might help display some of the confusion:
"Note that /etc/boot.conf is only needed if the kernel you wish to boot from is not named bsd, or other pxeboot defaults are not as you need them (for example, you wish to use a serial console)."
http://openbsd.org/faq/faq6.html#PXE

That's the URI that ocicat referenced.
Variously throughout the docs it is said to go in /tftpboot or /etc.

Best wishes.
Reply With Quote
  #7   (View Single Post)  
Old 25th March 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,886
Thanked 214 Times in 189 Posts
Default

Yes, it is confusing.

I've used pxeboot before, but never with a serial console so I've never bothered with boot.conf. But ... I know that pxeboot has to get it from somewhere, and the only place available is the tftpd server.
Reply With Quote
  #8   (View Single Post)  
Old 26th March 2009
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Thumbs up

Quote:
Originally Posted by jggimi View Post
I've used pxeboot before ...
It was my first time.
FWIW, I am up and running now.

It seems having boot.conf in the right place made the difference.
Thanks for that.

Best wishes.
Reply With Quote
  #9   (View Single Post)  
Old 26th March 2009
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Looks a bit like a bug in the documentation - It might be a good idea to make a little noise about it on the openbsd mailing list, or post a PR about it.
Us BSDers are rather proud of our documentation: If there is a problem with it, the projects would like to know about them so they can be fixed.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
Old 27th March 2009
diw's Avatar
diw diw is offline
Port Guard
 
Join Date: Jul 2008
Posts: 45
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by robbak View Post
Looks a bit like a bug in the documentation - It might be a good idea to make a little noise about it on the openbsd mailing list, or post a PR about it.
Us BSDers are rather proud of our documentation: If there is a problem with it, the projects would like to know about them so they can be fixed.
I incidentally posted elsewhere saying just that several moments ago. :]
FWIW, the documentation is accurate, it does however not cater to the skimmer. Unfortunately (I guess) most people frantically searching for a solution are speed reading. Pick a long man page and read the whole thing - got a spare hour? :]

There are though incorrect hyperlinks in the online manpages which is another matter altogether ...

Best wishes.

P.S. I refuse to get involved with www@, etcetera.
OpenBSD + Spam = me doing something else.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick