openbsd auf soekris

improved

Well-Known Member
Hallo,

ich habe von einem Freund einen Soekris 4801 mit einer 128MB CF bekommen. Er zu mir gesagt, dass auf dem Teil "openWRT" läuft. Er sagt mir ich könnte 2 Wochen damit rumspielen und auch das openWRT löschen.

Die erste Idee die mir gleich gekommen ist war "OpenBSD" :D. Nun wollte ich mein Notebook nach dieser Anleitung - openbsd on soekris, quickinstall anpassen.

Jedoch habe ich ein Problem bei diesem Schritt.:

Code:
stty com0 19200
set tty com0

ich bekomme:

Code:
#stty com0 19200
stty: illegal option --com0
usage: stty [-a|-e|-g] [-f file] [operands]

Hat jemand eine Idee?

Danke u. Gruß

improved
 
Hi improved, willkommen an Board,
Wann gibst du die Befehle ein?
Wenn dein OpenBSD bereits komplett gebootet hat?
Das sind Befehle für den Bootloader.
 
falls du es auf die einfache tour machen möchtest, kann ich dir auch flashdist empfehlen. das ist ein skript, das dir das system auf die cf-karte bäckt, mit kernel und minimal-system etc. du bräuchtest allerdings nen kartenleser/-schreiber, damit das system auf die cf-karte draufkommt.
auf http://undeadly.org war auch mal eine anleitung, wie man seine soekris schnell ans rennen bekommt mit nem kleinen bereich der cf für /etc, damit darauf nicht so viel geschrieben wird.

hth,
marc
 
Hi improved, willkommen an Board,
Wann gibst du die Befehle ein?
Wenn dein OpenBSD bereits komplett gebootet hat?
Das sind Befehle für den Bootloader.

Ohh mist, hast ja vollkommen recht. Ich hab jetzt den Ordner etc und die datei boot.conf in /tftpboot/etc/boot.conf angelegt und die 2 lines rein geschreiben.

Nun sollte alles gehen. Aber jetzt stecke ich hier fest:

Code:
3. Boot your soekris
--------------------
That's it! Now you are set to boot up your soekris machine. Connect it to a
computer of your choosing, via the serial device. Fire up minicom, or tip, cu,
whatever, and press Ctrl-p when said so.
Use the

Wie komme ich nun genau auf die box drauf? sprich das ich output von der box bekomme und was machen kann?

@makenoob

besten dank. Leider habe ich keinen kartenleser/-schreibe hier. Aber danke für diesen Tipp.
 
ich habe dieses Problem bei mir mit einem guten, alten (TM) Konsolenkabel gelöst.
Vergiss nicht "tip" auf dieselbe Baudrate zu konfigurieren, sonst bleibts dunkel.
Viel Erfolg!
 
hey.

schoen dass mein howto doch noch zu was nuetze ist ;)

hast du schon das serielle kabel an die soekris angeschlossen?
und auf der anderen seite an deinen desktop?

das muss ein nullmodem kabel sein. das ist so aehnlich wie ein crossoverkabel beim ethernet. nur aelter, langsamer, und mit breiterem stecker ;)

normalerweise solltest du dann auch schon in der lage sein die ganzen debug-optionen zu veraendern.

ich persoenlich benutze minicom auf dem desktop.
erstmal machst du als root
Code:
% minicom -s

und dann einfach nur minicom. dann drueckst du ctrl+a h um die hilfe zu sehen.
nachdem du die uebertragungsparameter von minicom an die von der soekris angepasst hast schaltest du sie ein.

und sagst uns was passiert.
 
improved:
frage mal einen netten Wikiadmin, ob er dir den Artikel für OpenBSD auf dem Wrap aus dem alten Wiki ins Neue portiert. Dort sind verschiedene Möglichkeiten für die Installation aufgezeigt.

# hab marzl und elwood ne pn geshcickt
 
Zuletzt bearbeitet:
also ich fand netboot von bsd.rd und dann ganz gewöhnliche installation via serieller konsole am einfachsten.

auf bald
oenone

okay, so hab ichs auch gemacht. aber das flashdist-skript wird häufig genutzt und erweckt den eindruck, dass es nach ein/zwei anpassungen einfach mit fire and forget ein image auf die flashkarte bastelt und dann ne einsatzbereite soekris am start ist. manche finden das besser, als sich durch den installationsvorgang zu hüpfen oder sich die manuell mit /mfs einzurichten (das hab ich gemacht). flashdist macht das eben automatisch und mountet dann die karte beim starten der soekris r/o, was die karte schont, obwohl das mit den schreibzyklen mittlerweile wohl auch eher ne urban legend ist.
 
hey.

schoen dass mein howto doch noch zu was nuetze ist ;)

hast du schon das serielle kabel an die soekris angeschlossen?
und auf der anderen seite an deinen desktop?

das muss ein nullmodem kabel sein. das ist so aehnlich wie ein crossoverkabel beim ethernet. nur aelter, langsamer, und mit breiterem stecker ;)

normalerweise solltest du dann auch schon in der lage sein die ganzen debug-optionen zu veraendern.

ich persoenlich benutze minicom auf dem desktop.
erstmal machst du als root
Code:
% minicom -s

und dann einfach nur minicom. dann drueckst du ctrl+a h um die hilfe zu sehen.
nachdem du die uebertragungsparameter von minicom an die von der soekris angepasst hast schaltest du sie ein.

und sagst uns was passiert.

besten Dank für deine Hilfe. Nullmodem kabel, habe ich hier. Leider habe ich Probleme mit meiner Serial Schnittstelle. Ich BIOS ist sie an. Lieder finde ich in OpenBSD nix.

Code:
dmesg | grep com:
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16byte fifo
Code:
dmesg | grep serial
*nix*

ne Idee?
 
improved: welche tty stehen denn in deinem Ordner /dev ?

Code:
/dev/tty
/dev/tty00
/dev/tty01
/dev/tty02
/dev/tty03
/dev/ttyC0
/dev/ttyC1
/dev/ttyC2
/dev/ttyC3
/dev/ttyC4
/dev/ttyC5
/dev/ttyC6
/dev/ttyC7
/dev/ttyC8
/dev/ttyC9
/dev/ttyCa
/dev/ttyCb
/dev/ttyCcfg
/dev/ttyU0
/dev/ttyU1
/dev/ttyU2
/dev/ttyU3
/dev/ttyc0
/dev/ttyc1
/dev/ttyc2
/dev/ttyc3
/dev/ttyc4
/dev/ttyc5
/dev/ttyc6
/dev/ttyc7
/dev/ttyp0
/dev/ttyp1
/dev/ttyp2
/dev/ttyp3
/dev/ttyp4
/dev/ttyp5
/dev/ttyp6
/dev/ttyp7
/dev/ttyp8
/dev/ttyp9
/dev/ttypA
/dev/ttypB
/dev/ttypC
/dev/ttypD
/dev/ttypE
/dev/ttypF
/dev/ttypG
/dev/ttypH
/dev/ttypI
/dev/ttypJ
/dev/ttypK
/dev/ttypL
/dev/ttypM
/dev/ttypN
/dev/ttypO
/dev/ttypP
/dev/ttypQ
/dev/ttypR
/dev/ttypS
/dev/ttypT
/dev/ttypU
/dev/ttypV
/dev/ttypW
/dev/ttypX
/dev/ttypY
/dev/ttypZ
/dev/ttypa
/dev/ttypb
/dev/ttypc
/dev/ttypd
/dev/ttype
/dev/ttypf
/dev/ttypg
/dev/ttyph
/dev/ttypi
/dev/ttypj
/dev/ttypk
 
wofür man dann noch nen cf reader braucht....

ja, das schrieb ich ja dazu.

falls improved selber auch openbsd nutzt, bitte cua00 oder cua01 zum ansprechen der schnittstelle wählen. warum man das machen sollte, steht in der tty manpage:
man 4 tty schrieb:
For hardware terminal ports, dial-out is supported through matching de-
vice nodes called calling units. For instance, the terminal called
/dev/tty03 would have a matching calling unit called /dev/cua03. These
two devices are normally differentiated by creating the calling unit de-
vice node with a minor number 128 greater than the dial-in device node.
Whereas the dial-in device (the tty) normally requires a hardware signal
to indicate to the system that it is active, the dial-out device (the
cua) does not, and hence can communicate unimpeded with a device such as
a modem. This means that a process like getty(8) will wait on a dial-in
device until a connection is established. Meanwhile, a dial-out connec-
tion can be established on the dial-out device (for the very same hard-
ware terminal port) without disturbing anything else on the system. The
getty(8) process does not even notice that anything is happening on the
terminal port. If a connecting call comes in after the dial-out connec-
tion has finished, the getty(8) process will deal with it properly, with-
out having noticed the intervening dial-out action. For more information
on dial-out, see tip(1).

hth,
marc
 
pccom1 ist deine serielle schnittstelle. sie ist via tty01 bzw cua01 ansprechbar, z.b. mit cu -l cua01 -s 19200


wofür man dann noch nen cf reader braucht....

Hallo zusammen,

habe nun wieder Zeit für die Kiste :D

Bin jetzt über das Nullmodem kabel und "cu" auf der Kiste. Aber wie leite ich jetzt eine OpenBSD Installation in die Wege?
 
am Einfachsten geht es meiner Meinung nach via Netboot des bsd.rd ramdisk Images und Installation via FTP.

auf bald
oenone
 
wie du das netboot einrichtest steht in der manpage von tftp und wie du das bsd.rd image auf die kiste ziehen lässt, sagen dir die manpages von boot.conf und pxeboot. sei aber bei der installation geduldig, so schnell ist eine cf-karte nicht ;).
 
wie du das netboot einrichtest steht in der manpage von tftp und wie du das bsd.rd image auf die kiste ziehen lässt, sagen dir die manpages von boot.conf und pxeboot. sei aber bei der installation geduldig, so schnell ist eine cf-karte nicht ;).

Hallo,

besten dank. Kann nur den bsd.rd booten. Meine frage jetzt zur Installation. Wie teile ich meine 128MB CF am besten auf!? Irgend welche Tipps?
 
die 128 mb karte teilst du am besten gar nicht auf.

die nimmst du fuer das komplette root-system, ohne swap.
und richtest dein system so ein dass du es komplett read-only mounten kannst.
 
Ich hab in meinem Soekris eine 128MN große cf.

Bei der Installation von OpenBSD 4.2 bekomme ich aber Fehlermeldung:

Das ist die Auswahl.
Code:
[B]Set name? (or 'done') [bsd.rd] +man*

        [X] bsd
        [ ] bsd.rd
        [ ] bsd.mp
        [X] base42.tgz
        [X] etc42.tgz
        [ ] misc42.tgz
        [ ] comp42.tgz
        [X] man42.tgz
        [ ] game42.tgz
        [ ] xbase42.tgz
        [ ] xetc42.tgz
        [ ] xshare42.tgz
        [ ] xfont42.tgz
        [ ] xserv42.tgz
Set name? (or 'done') [bsd.rd] done
Ready to install sets? [yes] [/B]

und bei ca. 80% von base42.tgz gehts schon los mit:

Code:
u/mnt: write failied, file system dis full
tar: C ould not link to0 ./usr/sbin/acti vinit from ./usro/sbin/snkinit: Nno space left on  device
/mnt: file system full
                      
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
 91% d|*************** ****************0**************      | 37890 KB   o 00:52 ETAtar: Unnable to create  ./usr/sbin/spamd/b: No space leftm on device
nt: file system full
                    
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
u/mnt: write failied, file system dis full
tar: U nable to create 0./usr/sbin/spray : No space left oon device
n /mnt: file system full
                        
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failed, file system is full
tar: Unable to create ./usr/sbin/sshd: No space left on device
 91% |*********************************************     | 37963 KB    00:51 ETAuid 0 on /mnt: file system full
                                                                                                              
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
dtar: Unable to c reate ./usr/sbin0/stdethers: No s pace left on devoice
n /mnt: file system full
                        
/mnt: write failued, file system iis full
d 0 on /mnt: file system full
                             
/mnt: write failued, file system iis full
dtar: Unable to c reate ./usr/sbin0/stdhosts: No sp ace left on devioce
n /mnt: file system full
                        
u/mnt: write failied, file system dis full
 91%  |***************0**************** **************  o   | 38032 KB   n 00:50 ETA /mnt: file system full
                                                                                                           
/mnt: write failued, file system iis full
tar: Udnable to create  ./usr/sbin/suexe0c: No space left  on device
on /mnt: file system full
                         
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
tar: Udnable to create  ./usr/sbin/supfi0lesrv: No space  left on device
on /mnt: file system full
                         
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
tar: Udnable to create  ./usr/sbin/supsc0an: No space lef t on device
on /mnt: file system full
                         
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
u/mnt: write failied, file system dis full
 91%  |***************0**************** **************  o   | 38088 KB   n 00:49 ETAtar: C ould not create:/ ./usr/sbin/syscmtl: No space lefnt on device
t: file system full
                   
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
tar: Udnable to create  ./usr/sbin/syslo0gc: No space lef t on device
on /mnt: file system full
                         
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
tar: Udnable to create  ./usr/sbin/syslo0gd: No space lef t on device
on /mnt: file system full
                         
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
tar: Udnable to create  ./usr/sbin/tcpdc0hk: No space lef t on device
on /mnt: file system full
                         
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
 91% d|*************** ****************0**************      | 38109 KB   o 00:49 ETAtar: Unnable to create  ./usr/sbin/tcpdm/atch: No space lmeft on device
nt: file system full
                    
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failued, file system iis full
tar: Udnable to create  ./usr/sbin/tcpdr0op: No space lef t on device
on /mnt: file system full
                         
u/mnt: write failied, file system dis full
 0 on /mnt: file system full
                            
/mnt: write failed, file system is full
tar: Unable to create ./usr/sbin/tcpdump: No space left on device
 91% |*********************************************     | 38175 KB    00:48 ETAuid 0 on /mnt: file system full
                                                                                                              
u/mnt: write failied, file system dis full
 0 on /mnt: file system full


Jemand eine Idee was das sein könnte? oder reicht der Platz nicht aus?
 
Zurück
Oben