NetBSD
Torna alla pagina precedente

  Lista degli argomenti:




Installazione pacchetti software dai sorgenti

  Nel seguito compaiono i comandi da scrivere sulla riga di comando in caratteri normali a spaziatura costante, mentre in corsivo, ma sempre con caratteri a spaziatura costante, sono riportati i messaggi restituiti a video dal sistema in risposta ai comandi mandati in esecuzione.

  Si è scelto di installare tutti i programmi dal sistema dei "port", ossia a partire dai sorgenti.
Nel caso del server di posta SMTP, il processo consiste nell'esecuzione dei comandi seguenti:

# cd /usr/pkgsrc/mail/postfix
# make && make install
# make clean

  Il sistema base di NetBSD ha già due server SMTP disponibili per l'uso subito dopo l'installazione del sistema base: sendmail e postfix.  Gli eseguibili del server postfix dell'installazione base si trovano in /usr/libexec/postfix/.  Per usare quello installato dai port, si deve editare il file /etc/rc.d/postfix e cambiare o aggiungere la riga seguente:

required_files="/usr/pkg/etc/${name}/main.cf"

  La riga command="/usr/pkg/libexec/postfix/master" è superflua e può essere commentata.  Tutti i percorsi degli eseguibili necessari al server SMTP installato sotto /usr/pkg sono specificati nel file /usr/pkg/etc/postfix/main.cf:

command_directory = /usr/pkg/sbin
daemon_directory = /usr/pkg/libexec/postfix
mailbox_command = /usr/pkg/bin/procmail -a "$EXTENSION"
sendmail_path = /usr/pkg/sbin/sendmail
newaliases_path = /usr/pkg/bin/newaliases
mailq_path = /usr/pkg/bin/mailq
manpage_directory = /usr/pkg/man
sample_directory = /usr/pkg/share/examples/postfix
readme_directory = /usr/pkg/share/doc/postfix


  In /etc/rc.conf.d/ si aggiunge il file "postfix", copiato da /usr/pkg/examples/rc.d/postfix:

# ls /etc/rc.conf.d/
postfix
# cat /etc/rc.conf.d/postfix
required_files='/usr/pkg/etc/postfix/main.cf'
start_cmd='/usr/pkg/sbin/postfix start'
stop_cmd='/usr/pkg/sbin/postfix stop'
reload_cmd='/usr/pkg/sbin/postfix reload'

  Questa è una procedura generale.  Installati pacchetti di servizi, è in genere necessario installare a mano i comandi di controllo (avvio, arresto, riavvio ecc.) dalla directory /usr/pkg/examples/rc.d/.  Ad esempio, installati i server Cyrus IMAP e Thttp HTTP si è fatto:

# cp /usr/pkg/share/examples/rc.d/cyrus /etc/rc.d/
# cp /usr/pkg/share/examples/rc.d/thttpd /etc/rc.d/

  Inoltre, dopo aver installato cyrus (server IMAP e POP), si è reso necessario aggiungere al file /etc/rc.conf la riga seguente:

cyrus=YES

  Altrimenti, l'esecuzione del comando seguente falliva e il server cyrus non era avviato, come risulta nella traccia degli eventi (log) che apparivano sulla console di sistema e che sono riportati nel seguito.

  Prima della modifica del file /etc/rc.conf:

# /etc/rc.d/cyrus start
Dec  8 11:16:20 posta root: /etc/rc.d/cyrus: WARNING: $cyrus is not set properly - see rc.conf(5).
/etc/rc.d/cyrus: WARNING: $cyrus is not set properly - see rc.conf(5).

  Dopo la modifica del file /etc/rc.conf:

# /etc/rc.d/cyrus start
Dec  8 11:13:06 posta ctl_cyrusdb[11734]: recovering cyrus databases
Dec  8 11:13:06 posta ctl_cyrusdb[11734]: skiplist: recovered /var/imap/mailboxes.db (0 records, 144 bytes) in 0 seconds
Dec  8 11:13:06 posta ctl_cyrusdb[11734]: skiplist: recovered /var/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Dec  8 11:13:06 posta ctl_cyrusdb[11734]: done recovering cyrus databases
Dec  8 11:13:06 posta master[13753]: ready for work
Dec  8 11:13:06 posta ctl_cyrusdb[13631]: checkpointing cyrus databases
Dec  8 11:13:10 posta ctl_cyrusdb[13631]: done checkpointing cyrus databases

  Per vedere se il demone sta girando si fa:

# ps uww -p $(cat /var/run/cyrus-master.pid)
USER    PID %CPU %MEM VSZ  RSS TT STAT STARTED    TIME COMMAND
cyrus 20320  0.0  0.4 172 1108 ?? Ss   11:16AM 0:00.38 /usr/pkg/cyrus/bin/master -d

  Sì, gira, e si direbbe sia soddisfatto.
  Tentando di attivare il programma di gestione delle caselle di posta degli utenti del server Cyrus, si è però presentato un altro problema che si è manifestato con questi sintomi:

# cyradm --user cyrus posta
IMAP Password:
              Login failed: generic failure at /usr/pkg/lib/perl5/vendor_perl/5.8.0/sparc-netbsd-thread-multi/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server with  as cyrus

  Nei log è apparso:

Dec  8 13:05:16 posta perl: No worthy mechs found
Dec  8 13:05:16 posta perl: No worthy mechs found
Dec  8 13:05:32 posta imap[18547]: cannot connect to saslauthd server: No such file or directory
Dec  8 13:05:32 posta imap[18547]: cannot connect to saslauthd server: No such file or directory
Dec  8 13:05:32 posta imap[18547]: badlogin: posta.localdomain [192.168.110.1] plaintext cyrus SASL(-1): generic failure: checkpass failed

  Essendo questo segno dell'assenza del pacchetto cyrus-saslauthd, lo si è installato:

# cd /usr/pkgsrc/security/cyrus-saslauthd
# make && make install ; make clean
# cp /usr/pkg/share/examples/rc.d/saslauthd /etc/rc.d/saslauthd
# /etc/rc.d/saslauthd start
Dec  8 13:08:43 posta root: /etc/rc.d/saslauthd: WARNING: $saslauthd is not set properly - see rc.conf(5).
/etc/rc.d/saslauthd: WARNING: $saslauthd is not set properly - see rc.conf(5).

  Per correggere questo errore si è dovuto aggiungere questa riga nel file /etc/rc.conf:

saslauthd=YES

  Si è quindi riprovato ad attivare il servizio:

# /etc/rc.d/saslauthd start
Starting saslauthd.

  Per vedere se gira:

# ps uww -p $(cat /var/run/saslauthd/saslauthd.pid)
USER   PID %CPU %MEM VSZ RSS TT STAT STARTED    TIME COMMAND
root 25842  0.0  0.3  80 904 ?? Is    1:10PM 0:00.09 /usr/pkg/sbin/saslauthd -a getpwent

  Bene, gira.  E magari funziona anche?

# cyradm --user cyrus posta.
IMAP Password:
              posta.localdomain>

Dec  8 13:13:54 posta imap[29615]: login: posta.localdomain [192.168.110.1] cyrus plaintext User logged in

  Sì, funziona.
Nel seguito compare l'esempio completo della procedura di creazione di una mailbox utente:

# cyradm --user cyrus posta.localdomain
IMAP Password:
              posta.localdomain>
listmailbox
posta.localdomain> createmailbox user.antonio
posta.localdomain> listmailbox
user.antonio (\HasNoChildren)
posta.localdomain>
createmailbox user.antonio.Sent
posta.localdomain> createmailbox user.antonio.Trash
posta.localdomain> listmailbox
user.antonio (\HasChildren)          user.antonio.Trash (\HasNoChildren)
user.antonio.Sent (\HasNoChildren)
posta.localdomain>




Aggiornamento dei pacchetti - controllo delle vulnerabilità note

  Per scaricare la lista più aggiornata delle vulnerabilità scoperte riguardanti i pacchetti disponibili per i sistemi NetBSD, si deve eseguire questo scritp di shell:

# /usr/pkg/sbin/download-vulnerability-list
Trying 2001:4f8:4:7:2e0:81ff:fe21:6563...
ftp: connect to address 2001:4f8:4:7:2e0:81ff:fe21:6563: No route to host
Trying 204.152.190.13...
Connected to ftp.NetBSD.org.
220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20040809) ready.
331 Guest login ok, type your name as password.
230-
    The NetBSD Project FTP Server located in Redwood City, CA, USA
    100 Mbps connectivity courtesy of                      ,        ,
    The Internet Systems Consortium           WELCOME!    /(        )`
                                                          \ \___   / |
    +--- Currently Supported Platforms ----+              /- _  `-/  '
    |  acorn[26,32], algor, alpha, amd64,  |             (/\/ \ \   /\
    |   amiga[,ppc], arc, atari, bebox,    |  Release:   / /   | `    \
    |   cats, cesfic, cobalt, dreamcast,   |  2.0        O O   ) /    |
    |      evb[arm,mips,ppc,sh3,sh5],      |             `-^--'`<     '
    | hp[300,700], hpc[arm,mips,sh], i386, |            (_.)  _  )   /
    |       ibmnws, iyonix, luna68k,       |              .___/`    /
    |     mac[m68k,ppc], mipsco, mmeye,    |               `-----' /
    |       mvme[m68k,ppc], netwinder      |  <----.     __ / __   \
    |       news[m68k,mips], next68k,      |  <----|====O)))==) \) /====
    |   ofppc, pc532, playstation2, pmax,  |  <----'    `--' `.__,' \
    |    pmppc, prep, sandpoint, sbmips,   |               |        |
    |      sgimips, shark, sparc[,64],     |               \       /
    |       sun[2,3], vax, x68k, xen       |          ______( (_  / \_____
    +--------------------------------------+        ,'  ,-----'   |       \
    See our website at http://www.NetBSD.org/       `--{__________)  (FL) \/
     We log all FTP transfers and commands.  
230-
    EXPORT NOTICE
   
    Please note that portions of this FTP site contain cryptographic
    software controlled under the Export Administration Regulations (EAR).
   
    None of this software may be downloaded or otherwise exported or
    re-exported into (or to a national or resident of) Cuba, Iraq, Libya,
    Sudan, North Korea, Iran, Syria or any other country to which the
    U.S. has embargoed goods.
   
    By downloading or using said software, you are agreeing to the
    foregoing and you are representing and warranting that you are not
    located in, under the control of, or a national or resident of any
    such country or on any such list.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I.
250 CWD command successful.
250-
    EXPORT NOTICE
   
    Please note that portions of this FTP site contain cryptographic
    software controlled under the Export Administration Regulations (EAR).
   
    None of this software may be downloaded or otherwise exported or
    re-exported into (or to a national or resident of) Cuba, Iraq, Libya,
    Sudan, North Korea, Iran, Syria or any other country to which the
    U.S. has embargoed goods.
   
    By downloading or using said software, you are agreeing to the
    foregoing and you are representing and warranting that you are not
    located in, under the control of, or a national or resident of any
    such country or on any such list.
250-
    Please read the file README
      it was last modified on Fri Dec 10 11:41:38 2004 - 371 days ago
    Please read the file README.export-control
      it was last modified on Wed Jun  7 04:38:56 2000 - 2017 days ago
    Please read the file README.sup
      it was last modified on Tue Nov 15 03:35:05 2005 - 32 days ago
250 CWD command successful.
250 CWD command successful.
250 CWD command successful.
local: pkg-vulnerabilities.1238 remote: pkg-vulnerabilities 229 Entering Extended Passive Mode (|||60688|)
150 Opening BINARY mode data connection for 'pkg-vulnerabilities' (157746 bytes)
.
100% |*************************************|   154 KB   91.44 KB/s    00:00 ETA
226 Transfer complete.
157746 bytes received in 00:01 (91.36 KB/s)
221-
    Data traffic for this session was 157746 bytes in 1 file.
    Total traffic for this session was 162115 bytes in 1 transfer.
221 Thank you for using the FTP service on ftp.NetBSD.org.
Package vulnerabilities file has been updated

  La lista aggiornata delle vulnerabilità note è stata adesso scaricata sul computer.  Adesso si procede verificando la possibile presenza di pacchetti installati dei quali siano note delle vulnerabilità mandando in esecuzione quest'altro script di shell:

# /usr/pkg/sbin/audit-packages

  Se non dice nulla, bene così.  Altrimenti darà la lista dei pacchetti dei quali sono note delle vulnerabilità e una descrizione breve delle vulnerabilità stesse, come in questo esempio:

Package python23-2.3.5nb2 has a 1427,buffer-overflow vulnerability, see http://secunia.com/advisories/16793/
Package wget-1.10 has a 1472,remote-code-execution vulnerability, see http://www.mail-archive.com/wget%40sunsite.dk/msg08300.html
Package lynx-2.8.5.2nb2 has a 1478,remote-users-shell vulnerability, see http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-3120
Package thttpd-2.25bnb3 has a 1538,insecure-temp-files vulnerability, see http://secunia.com/advisories/17454/

  I pacchetti che si scoprissero vulnerabili a qualche tipo di attacco devono essere aggiornati.

  Per ottenere le ultime versioni disponibili per NetBSD degli applicativi installati oppure per aggiornare quei pacchetti che si fossero scoperti suscettibili a vulnerabilità di qualche genere, si deve prima aggiornare il database locale dei pacchetti disponibili con quello dei pacchetti disponibili sui server NetBSD:

# export CVSROOT=:pserver:anoncvs@anoncvs.netbsd.org:/cvsroot
# cd /usr
# cvs login
(la password è: "anoncvs")
# cvs -d $CVSROOT update -PAd pkgsrc

  A questo punto si deve controllare che il file /usr/pkgsrc/mk/defaults/mk.conf non contenga righe come:

<<<<<<<mk.conf
[...]
=======
>>>>>> 1.04

  Per vedere se sono presenti, basta eseguire questo comando:

root@posta ~# grep -ne ^\< -e ^\> -e ^= /usr/pkgsrc/mk/defaults/mk.conf
1:<<<<<<< mk.conf
4:=======
6:>>>>>>> 1.112
1696:<<<<<<< mk.conf
1701:=======
1706:>>>>>>> 1.112

  Queste righe devono essere eliminate, altrimenti al passo successivo l'esecuzione del comando lintpkgsrc produrrà errori.  Per eliminarle, si deve tenere conto della loro funzione.  Tenendo presente l'esempio seguente:

<<<<<<< mk.conf
# Decides if you want to use 7.3 (default) or 9.1 by default.
# Possible: 7.3, 9.1
# Default: 7.3
.endif
=======
# Decides if you want to use 10.0 (experimental), 9.1 (default) or 7.3
# (pre NetBSD-2) by default.
# Possible: 7.3, 9.1, 10.0
# Default: 9.1 in 2.0 and later, 7.3 otherwise
>>>>>>> 1.112

si devono interpretare le righe in questo modo:
la riga "<<<<<<< mk.conf" indica l'inizio di una sezione del file /usr/pkgsrc/mk/defaults/mk.conf che è stata resa obsoleta da una versione più recente; le righe vecchie del file sono quelle comprese tra questa riga e quella costituita per intero da segni uguale: "=======".  A partire da questa riga di segni uguale inizia la parte nuova del file che deve sostituire quella vecchia, se non si hanno motivi speciali per non volerlo fare.  La parte nuova del file va dalla riga di segni uguale alla riga ">>>>>>> 1.112" (il numero finale varia, è il numero di versione del file aggiornato dal comando cvs -d $CVSROOT update ...).
  Si faccia attenzione a non eliminare però, nell'esempio riportato sopra, la riga ".endif", che chiude un costrutto logico che deve essere mantenuto integro.  Non so se il fatto che in questo caso tale riga appaia tra quelle rese obsolete sia un difetto dell'analisi del file /usr/pkgsrc/mk/defaults/mk.conf, ma sospetto che lo sia.

  Finito questo aggiornamento manuale del file /usr/pkgsrc/mk/defaults/mk.conf si va avanti con questo comando:

root@posta ~># lintpkgsrc -i
Scanning Makefiles: .............Cannot locate 'Makefile.sparc' (from /usr/pkgsrc/emulators/suse91_base/Makefile): .include "Makefile.${MACHINE_ARCH}"
5498 packages
Version mismatch: 'audit-packages' 1.33 vs 1.37
Version mismatch: 'bind' 9.3.0pl1nb2 vs 9.3.1,8.4.6,4.9.11
Version mismatch: 'cyrus-sasl' 2.1.20 vs 2.1.20nb1
Version mismatch: 'gcc34' 3.4.3 vs 3.4.4
Version mismatch: 'libtool-base' 1.5.18nb1 vs 1.5.18nb3
Version mismatch: 'logrot' 1.6 vs 1.7
Version mismatch: 'minicom' 1.83.1nb2 vs 2.1
Version mismatch: 'perl' 5.8.6nb3 vs 5.8.6nb4
Version mismatch: 'pkg_install' 20050318 vs 20050607
Version mismatch: 'pkg_install' 20050318 vs 20050607
Version mismatch: 'pkglint' 4.15.1 vs 4.18

  Per procedere all'aggiornamento dei pacchetti elencati nell'esempio riportato sopra, si può fare così:

# for PACCHETTO in security/audit-packages net/bind9 security/cyrus-sasl devel/libtool-base pkgtools/pkg_install lang/gcc34 sysutils/logrot lang/perl58 pkgtools/pkglint
> do cd /usr/pkgsrc/$PACCHETTO ; make clean ; make update ; make clean
> done

  Per semplificare la cosa, si è creato questo script:

# cat ~/bin/aggiorna.sh
#!/bin/sh
if test -d "$1"
then cd "$1"
     if test $? -eq 0
     then echo "Aggiornamento in corso del pacchetto \"$1\""
          make clean ; make update
          if test $? -ne 0
          then echo 'ERRORE nell'\''esecuzione di "make update"' >&2
          fi
          make clean
     else echo "ERRORE nel tentativo di eseguire \"cd $1\"" >&2
     fi
else echo "ERRORE: \"$1\" non e' una directory" >&2
fi

che si usa cosí:

# for PACCHETTO in audit-packages bind cyrus-sasl gcc34 libtool-base logrot minicom perl pkg_install pkglint
do find /usr/pkgsrc -maxdepth 2 -type d -name "$PACCHETTO" -exec ~/bin/aggiorna.sh {} \;
done




Compilazione di un nuovo kernel (nucleo del SO)

  Si è proceduto come su: http://www.netbsd.org/guide/en/chap-kernel.html.  I sorgenti sono stati scaricati da: ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.3/source/sets/

  Il file prelevato è il seguente:

-rw-r--r--  1 srcmastr  netbsd  27050111 Oct 30 02:07 syssrc.tgz

  Lo si scompatta a partire dalla directory / ($DIRECTORY contiene il percorso dove si trova il file syssrc.tgz):

# cd /
# tar -zxf $DIRECTORY/syssrc.tgz

  Per configurare e compilare il kernel sono stati eseguiti i comandi seguenti:

$ cd /usr/src/sys/arch/sparc/conf
$ cp GENERIC MIO-NUCLEO
$ vi MIO-NUCLEO

  Si è quindi configurato il nucleo.  La configurazione finale è quella riportata in questo file: configurazione NetBSD 2.0.3

$ /usr/sbin/config MIO-NUCLEO &&  cd ../compile/MIO-NUCLEO
Build directory is ../compile/MIO-NUCLEO
Don't forget to run "make depend"

$ make depend && make

[...]

building standard kern library
#    create  MIO-NUCLEO/.gdbinit
rm -f .gdbinit
echo "source ../../../../gdbscripts/bdump" >> .gdbinit
echo "source ../../../../gdbscripts/kdump" >> .gdbinit
echo "source ../../../../gdbscripts/msgbuf" >> .gdbinit
echo "source ../../../../gdbscripts/pgrpdump" >> .gdbinit
echo "source ../../../../gdbscripts/stats" >> .gdbinit
echo "source ../../../../gdbscripts/vchain" >> .gdbinit
echo "source ../../../../gdbscripts/vdump" >> .gdbinit
echo "source ../../../../gdbscripts/xps" >> .gdbinit
#    create  vers.c
sh ../../../../conf/newvers.sh
#   compile  MIO-NUCLEO/vers.o
cc  -O3 -pipe -mcpu=v8 -mno-fpu     -ffreestanding   -O2 -Werror -Wall -Wno-main
 -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
-Wno-sign-compare -fno-zero-initialized-in-bss  -I.  -I../../../../arch -I../.
./../.. -nostdinc  -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT  -c vers.c
#      link  MIO-NUCLEO/netbsd
ld -n -T ../../../../arch/sparc/conf/kern.ldscript -Ttext F0004000 -e start -X -S
-o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
   text    data     bss     dec     hex filename
2281211   74796  310392 2666399  28af9f netbsd


$ ll netbsd /netbsd*
-rwxr-xr-x  1 root     wheel  2986606 Aug 21 22:44 /netbsd
-rwxr-xr-x  1 root     wheel  3579390 Dec  2  2004 /netbsd.old
-rwxr-xr-x  1 tecnico  wheel  2673787 Dec 17 11:41 netbsd


# mv /netbsd /netbsd.old
# mv /usr/src/sys/arch/sparc/compile/MIO-NUCLEO/netbsd /

  Ed ecco i messaggi del boot:

MB86907 POST 2.2.3 03SEP96

Probing system memory: 32 32 32 32 32 32 32 32
Config = 8800AAAA
512Kb ecache detected
1.1.1 mem ram walking ones Pass
1.1.2 mem ram address Pass
1.1.3 mem ram post r/w region Pass
1.1.4 mem ram obp r/w region Pass
1.2.1 mem control parity Pass
2.1.1 srmmu regs read/write Pass
2.2.1 srmmu ram io-tlb Pass
2.2.2 srmmu ram d-tlb Pass
2.2.3 srmmu ram pdt cache Pass
3.1.1 iommu reg read/write Pass
3.1.2 iommu reg flush individual Pass
3.1.3 iommu reg flush all Pass
3.2.1 iommu timeout ebus Pass
3.2.2 iommu timeout sbus Pass
4.1.1 fpu reg regfile Pass
4.1.2 fpu reg misalign Pass
4.1.3 fpu reg single precision Pass
4.1.4 fpu reg double precision Pass
4.2.1 fpu exceptions single precision Pass
4.2.2 fpu exceptions double precision Pass
5.1.1 cache dcache ram Pass
5.1.2 cache dcache address Pass
5.1.3 cache dcache tag Pass
5.1.4 cache dcache clear Pass
5.2.1 cache icache ram Pass
5.2.2 cache icache address Pass
5.2.3 cache icache tag Pass
5.2.4 cache icache clear Pass
5.3.1 cache ecache ram Pass
5.3.2 cache ecache address Pass
5.3.3 cache ecache tag Pass
5.4.1 cache snoop ram Pass
6.1.1 i/o counters processor user timer Pass
6.1.2 i/o counters processor counter Pass
6.1.3 i/o counters system counter Pass
6.2.1 i/o lance getid Pass
6.2.2 i/o lance csr Pass
6.2.3 i/o lance rap Pass
6.2.4 i/o lance rdp Pass
6.3.1 i/o esp register r/w Pass
6.3.2 i/o esp config reg Pass
6.3.3 i/o esp fifo access Pass
6.3.4 i/o esp command reg Pass
6.4.1 i/o pp register access Pass
6.4.2 i/o pp io readback Pass
6.4.3 i/o pp tcr readback Pass
6.5.1 i/o tod regs test Pass
6.5.2 i/o tod nvram access Pass
7.1.1 intr regs sys Pass
7.1.2 intr regs proc Pass
7.2.1 intr software interrupts disabled Pass
7.2.2 intr software interrupts enabled Pass
7.2.3 intr software multi Pass
7.3.1 intr pp Interrupts Pass
7.4.1 intr timer system counter Pass
7.4.2 intr timer process counter Pass
8.1.1 dma apc bypass Pass
SPARCstation 5, No Keyboard
ROM Rev. 2.29, 256 MB memory installed, Serial #8170761.
Ethernet address 8:0:20:7c:ad:9, Host ID: 807cad09.



Testing Memory -
Initializing Memory /

Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0:a  File and args:

>> NetBSD/sparc Secondary Boot, Revision 1.14
>> (builds@build, Thu Dec  2 01:42:46 UTC 2004)
Booting netbsd
2281212+74796+310396 [144528+125303]=0x2dd014
OBP version 3, revision 2.29 (plugin rev 2)
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    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 2.0.3 (MIO-NUCLEO) #0: Sat Dec 17 11:41:46 CET 2005
        tecnico@posta:/usr/src/sys/arch/sparc/compile/MIO-NUCLEO
total memory = 255 MB
avail memory = 246 MB
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@3,0
mainbus0 (root): SUNW,SPARCstation-5: hostid 807cad09
cpu0 at mainbus0: DVMA coherent : MB86907 @ 170 MHz, on-chip FPU
cpu0: 16K instruction (32 b/l), 16K data (32 b/l), 512K external (32 b/l): cache
 enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x200000: mk48t08
timer0 at obio0 slot 0 offset 0xd00000: delay constant 82
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200
ms0 at zs1 channel 1: baud rate 1200
slavioconfig at obio0 slot 0 offset 0x800000 not configured
auxreg0 at obio0 slot 0 offset 0x900000
power0 at obio0 slot 0 offset 0x910000 level 2
fdc0 at obio0 slot 0 offset 0x400000 level 11 softpri 4: chip 82077
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
iommu0 at mainbus0 addr 0x10000000: version 0x5/0x0, page-size 4096, range 64MB
sbus0 at iommu0: clock = 21.250 MHz
dma0 at sbus0 slot 5 offset 0x8400000: DMA rev 2
esp0 at dma0 slot 5 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
bpp0 at sbus0 slot 5 offset 0xc800000 level 2 (ipl 3): DMA rev 2
ledma0 at sbus0 slot 5 offset 0x8400010: DMA rev 2
le0 ataudio0 at audiocs0: full duplex
power-management at sbus0 slot 4 offset 0xa000000 not configured
hme0 at sbus0 slot 3 offset 0x8c00000 level 4 (ipl 7): Sun Happy Meal Ethernet (SUNW,hme)
hme0: Ethernet address 08:00:20:7c:ad:09
OUI 0x1000e8 model 0x0000 rev 1 at hme0 phy 1 not configured
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <FUJITSU, MAG3091L SUN9.0G, 1111> disk fixed
sd0: 8637 MB, 4926 cyl, 27 head, 133 sec, 512 bytes/sect x 17689267 sectors
sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 6 lun 0: <TOSHIBA, XM-4101TASUNSLCD, 3424> cdrom removable
cd0: async, 8-bit transfers
root on sd0a dumps on sd0b
root file system type: ffs
Sat Dec 17 12:36:48 GMT 2005
swapctl: adding /dev/sd0b as swap device at priority 0
Checking for botched superblock upgrades: done.
Starting file system checks:
/dev/rsd0a: file system is clean; not checking
/dev/rsd0d: file system is clean; not checking
/dev/rsd0e: file system is clean; not checking
/dev/rsd0g: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
 ledma0 slot 5 offset 0x8c00000 level 6: address 08:00:20:7c:ad:09
le0: 8 receive buffers, 2 transmit buffers
audiocs0 at sbus0 slot 4 offset 0xc000000 level 9: CS4231A
Hostname: posta
NIS domainname: localdomain
IPv6 mode: host
Configuring network interfaces: le0 hme0.
add net default: gateway diamante
Adding interface aliases:
Building databases...
Starting syslogd.
Mounting all filesystems...
Clearing /tmp.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting local daemons:.
Updating motd.
Starting vsftpd.
Starting thttpd.
Starting sshd.
Starting cyrus.
postfix/postfix-script: starting the Postfix mail system
Starting saslauthd.
Starting inetd.
Starting cron.
Sat Dec 17 13:37:13 CET 2005

NetBSD/sparc (posta) (console)

login:


Torna alla pagina precedente

Ultimo aggiornamento: 11 marzo 2006