Greetings, all.

On 2014 Apr 6, at 18:09, Norman Gray <nor...@astro.gla.ac.uk> wrote:

> I'm trying to install the released OpenBSD 5.4 onto a old-ish netbook
> without an optical drive.  I thought I could do this via
> install54.iso; I can see where I need to get to, and can almost get
> there, but I can't find the last step.

Thanks, everyone, for your various strands of advice.

In the end, I installed 5.4 onto the netbook by booting a Mac Mini
(the only optical drive I have available) from a burned install54.iso
image, using that to install OpenBSD onto a flash drive, and then copy
the install sets onto the flash drive, and then booting the netbook
from the flash drive.  This specific route was first suggested, in
that particular form, by Brett Mahar, but there a fair bit of overlap
between the various suggestions, and I've learned a lot.  For your
edification and delight, I've included the dmesg output below (and
also sent it to dm...@openbsd.org, of course).

This route does allow the install to happen without the netbook ever
being connected to a network.  But when it comes time to add other
packages atop the base, it'd clearly be possible, but a pain in the
neck, to do that without a network.

I used 5.4 rather than 5.5-current, because when it came to add
packages it turned out that (if I'm reading the runes correctly) the
'python' package within 5.5-current requires /usr/lib/libssl.so.20.0,
but 5.5-current installs /usr/lib/libssl.so.21.0.

I did try installing OpenBSD into a Virtualbox instance hosted on OS X
(as Martin Brandenburg suggested).  That mostly worked, but I seemed
unable to mount the flash drive on the virtual machine, even after
being sure (as Martin noted) to eject the device from the OS X side
beforehand.  I didn't investigate where the problem really was.
Again: close, but not quite, and I moved on to booting the Mini from
the CD.

----

Below are more detailed instructions (aka brain-dump), for the benefit
of anyone going the same route.

Boot the Mac Mini (or whatever) from the install CD, with the flash
drive in place.  The install process will let you select the flash
drive as a target.  After that's finished:

  # mkdir -p /mnt/5.4/i386
  # cd /mnt/5.4/i386
  # ftp http://mirror.bytemark.co.uk/OpenBSD/5.4/i386/SHA256
...and so on, including each of the INSTALL.i386, bsd* and *.tgz files
  # halt

(or whatever mirror you prefer).  If you do this right after
installing from the CD, the network is in place, and the flash drive
mounted.  If (as a result of more faffing around) the network isn't up
or the drive isn't mounted, then you might need one or more of

  # ifconfig # find your ethernet interface
  # dhclient <interface-name>

To mount the flash drive:

  # sysctl hw.disknames   # show available disks
  # disklabel sd0         # show the partitions on device sd0
  # mount /dev/sd0a /mnt  # mount partition 'a' onto /mnt

Then put the flash drive into the netbook, and boot it with

  boot> b hd0a:/bsd.rd

This again boots to the install script, which lets you install onto
the netbook's hard drive (finally!).

Gotcha: even if you don't plan to use X on the target machine (I
imagine it would be a fairly unpleasant experience), you _do_ need to
select and install at least xbase54, xetc54 and xshare54 (so you might
as well just install the lot!).  This is because ports and packages
aren't tested in the no-X configuration, and at least one of the ports
I wanted to install did indeed fail to build until I went round the
whole cycle again and included them in the install onto the flash drive.

----

I also installed the OS onto an encrypted filesystem (so that there
isn't necessarily a problem if this machine gets lost or stolen).

There are very good instructions for doing this at
<http://www.bsdnow.tv/tutorials/fde>.  Useful things to know:

  1. # sysctl hw.disknames # shows the available disks; sd0 is my hard disk

  2. I configured a swap of 3MB (which is a round number slightly
     larger than the amount that the automatic layout decided to give
     to it).

  3. With the devices on this hardware, I had to use
     # bioctl -c C -l /dev/sd0a softraid0
     This reports the crypto device being sd2.

Back to the installer and, as suggested, use the Whole of the crypto
device (so sd2 in my case), and create a custom layout with everything
in partition a.

Added '/dev/sd0b none swap sw' to the end of the fstab

----

So...

Thanks again to jordon, Tomas, Martin, Stuart, Moss, Brett and Jan
(and of course a modest number of EUR to the Foundation).

Best wishes,

Norman








dmesg:

OpenBSD 5.4 (GENERIC.MP) #44: Tue Jul 30 12:13:32 MDT 2013
   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 1060130816 (1011MB)
avail mem = 1031340032 (983MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/25/09, SMBIOS rev. 2.4 @ 0xe8e90 (31 
entries)
bios0: vendor Acer version "v0.3301" date 08/25/2009
bios0: Acer AO531h
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT HPET APIC MCFG ASF! SLIC BOOT
acpi0: wakeup devices P32_(S4) UHC1(S3) UHC2(S3) UHC3(S3) UHC4(S3) ECHI(S3) 
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) AZAL(S0) MODM(S0)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (P32_)
acpiprt2 at acpi0: bus 1 (EXP1)
acpiprt3 at acpi0: bus -1 (EXP2)
acpiprt4 at acpi0: bus 2 (EXP3)
acpiprt5 at acpi0: bus 3 (EXP4)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature is 95 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: OVGA
acpivout0 at acpivideo0: LCD_
bios0: ROM list: 0xc0000/0xec00! 0xcf000/0x1000
cpu0: Enhanced SpeedStep 1596 MHz: speeds: 1600, 1333, 1066, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03
intagp0 at vga1
agp0 at intagp0: aperture at 0x40000000, size 0x10000000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1024x600
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC272
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 int 16
pci1 at ppb0 bus 1
ale0 at pci1 dev 0 function 0 "Attansic Technology L1E" rev 0xb0: AR8113, msi, 
address 00:26:9e:ae:90:16
atphy0 at ale0 phy 0: F1 10/100/1000 PHY, rev. 9
ppb1 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 4 int 18
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 4 int 18
athn0: AR9285 rev 2 (1T1R), ROM rev 13, address 0c:ee:e6:a0:85:76
ppb2 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 4 int 19
pci3 at ppb2 bus 3
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 int 17
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 4 int 19
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 4 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci4 at ppb3 bus 4
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled
ahci0 at pci0 dev 31 function 2 "Intel 82801GBM AHCI" rev 0x02: msi, AHCI 1.1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, Hitachi HTS54501, PBBO> SCSI3 0/direct 
fixed naa.5000cca5a2c54991
sd0: 152627MB, 512 bytes/sector, 312581808 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 4 int 17
iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-6400CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 1 configuration 1 interface 0 "Sonix Technology Co., Ltd. 
WebCam" rev 2.00/1.00 addr 2
video0 at uvideo0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
sd1 at scsibus2 targ 1 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct fixed
sd1: 152623MB, 512 bytes/sector, 312572208 sectors
root on sd1a (69c2a10ba979a07b.a) swap on sd1b dump on sd1b
hw.sensors.acpitz0.temp0=45.00 degC (zone temperature)
hw.sensors.acpibat0.volt0=10.80 VDC (voltage)
hw.sensors.acpibat0.volt1=12.51 VDC (current voltage)
hw.sensors.acpibat0.power0=0.00 W (rate)
hw.sensors.acpibat0.watthour0=4.40 Wh (last full capacity)
hw.sensors.acpibat0.watthour1=0.30 Wh (warning capacity)
hw.sensors.acpibat0.watthour2=0.18 Wh (low capacity)
hw.sensors.acpibat0.watthour3=4.40 Wh (remaining capacity), OK
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.cpu0.temp0=31.00 degC
hw.sensors.softraid0.drive0=online (sd1), OK


-- 
Norman Gray  :  http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK

Reply via email to