Re: rbootd will nicht rbooten

From: Oliver Lehmann <lehmann(at)ans-netz.de>
Date: Sun, 24 Nov 2002 20:53:56 +0100

Oliver Lehmann wrote:

wenn ich mir im rmpproto.c filename ausgeben lasse (zzgl noch den inhalt
der zu verfuegung stehenden files, und ob das oeffnen des files dann
erfolgreich war), ist selbiger leer..
wahrscheinlich fordert die hp keinen fielanem an

syslog(LOG_ERR,"rbootd was asked to boot from: %s\n",filepath);
        /*
         * If we are booting HP-UX machines, their secondary loader will
         * ask for files like "/hp-ux". As a security measure, we do not
         * allow boot files to lay outside the boot directory (unless
            they
         * are purposely link'd out. So, make `filename' become the
            path-
         * stripped file name and spoof the client into thinking that it
         * really got what it wanted.
         */
        filename = (filename = strrchr(filepath,'/'))? ++filename:
filepath;
syslog(LOG_ERR,"rbootd was asked to boot from: %s\n",filename);
filename = "hp-ux";
syslog(LOG_ERR,"rbootd was asked to boot from: %s\n",filename);

ergibt:

Nov 24 20:37:22 gurke rbootd[1818]: rbootd was asked to boot from:
Nov 24 20:37:22 gurke rbootd[1818]: rbootd was asked to boot from:
Nov 24 20:37:22 gurke rbootd[1818]: rbootd was asked to boot from: hp-ux
Nov 24 20:37:22 gurke rbootd[1818]: filelist entry nr. 0 is: hp-ux
Nov 24 20:37:22 gurke rbootd[1818]: rbootd tries to open: hp-ux
Nov 24 20:37:22 gurke rbootd[1818]: success
Nov 24 20:37:22 gurke rbootd[1818]: 08:00:09:70:69:21: request to boot
hp-ux (granted)

(ich habe SYENBSD nach dem 1. komentardurchlesen nach hp-ux umbenannt, und
das LOG_INF bei "request to boot <fileanme> (granted|denied) un LOG_ERR
umgeaendert..)

damit bootet schonmal netbsd...

Select from menu: a
BOOT_ADMIN> boot lan
                    
Trying lan.000000-000000.0.0
Boot path initialized.
Attempting to load IPL.

Hard booted.

>> NetBSD/hp700 LIF Boot, Revision 1.1
>> (fredette(at)the-gates-of-delirium.home, Sat Jul 6 20:53:40 EDT 2002)
>> Enter "reset" to reset system.
Boot: [[[dk0a:]netbsd][-a][-c][-d][-s][-v][-q]] :-
4881296+118784+352256 [607360+135041]=0x628f00
Start @ 0x80000 [1=0x5f3000-0x6a8f00]...
SPID bits: 0x0, error = -2
[ using 745216 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California. All rights reserved.
                                                                      
NetBSD 1.6D (GENERIC) #0: Sat Jul 6 19:41:42 EDT 2002
   
fredette(at)the-gates-of-delirium.home:/data/union-hp700-c/src/sys/arch/hp70
  0/compile/GENERIC
HP9000/735/130 (Snake Cheetah) PA-RISC 1.1
real mem = 144 MB (512 KB reserved for PROM, 66048 KB used by NetBSD)
avail mem = 58048 KB
[....]

nun bleibt nur noch rauszufinden _wiso_ filepath und vorrangegangenes
(filepath ist ja auch nur zusammengesetzt) leer ist.

  Gruesse, Oliver

-- 
Oliver Lehmann, lehmann@ans-netz.de, http://www.pofo.de/
  http://wishlist.pofo.de/
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 24 Nov 2002 - 20:54:06 CET

search this site