Monday, November 04, 2013

5.4 amd64 X200: dmesg with "render error detected".


OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4168814592 (3975MB)
avail mem = 4050112512 (3862MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version "6DET72WW (3.22 )" date 10/25/2012
bios0: LENOVO 745AU5L
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.34 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 265MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF
cpu1: 3MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 104 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4650" serial  8341 type LION oem "Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
intagp0 at vga1
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1280x800
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
puc0 at pci0 dev 3 function 3 "Intel GM45 KT" rev 0x07: ports: 1 com
com4 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo
com4: probed fifo depth: 15 bytes
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: msi, address 00:1f:16:0c:9d:56
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 21
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 22
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: msi
azalia0: codecs: Conexant CX20561
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5300" rev 0x00: msi, MIMO 3T3R, MoW, address 00:21:6a:18:0c:5c
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: msi
pci3 at ppb2 bus 5
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 16
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 17
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 19
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x93
pci4 at ppb3 bus 13
pcib0 at pci0 dev 31 function 0 "Intel 82801IEM LPC" rev 0x03
ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x03: msi, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed naa.5000cca6d5c57bed
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x03: apic 1 int 23
iic0 at ichiic0
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
render error detected, EIR: 0x00000010
  IPEIR: 0x00000000
  IPEHR: 0x00000000
  INSTDONE_0: 0xfffffffe
  INSTDONE_1: 0xffffffff
  INSTDONE_2: 0x00000000
  INSTDONE_3: 0x00000000
  INSTPS: 0x00000000
  ACTHD: 0x00000000
page table error
  PGTBL_ER: 0x00000003
error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking
mtrr: Pentium Pro MTRR support
ugen0 at uhub3 port 2 "Lenovo Computer Corp ThinkPad Bluetooth with Enhanced Data Rate II" rev 2.00/3.99 addr 2
uhidev0 at uhub5 port 2 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (6dbd1ba38f84ab48.a) swap on sd0b dump on sd0b

5.4 amd64 X200: Error in dmesg.

Hey,

Today I received error in the dmesg. My OpenBSD can boot fine though.

render error detected, EIR: 0x00000010
  IPEIR: 0x00000000
  IPEHR: 0x00000000
  INSTDONE_0: 0xfffffffe
  INSTDONE_1: 0xffffffff
  INSTDONE_2: 0x00000000
  INSTDONE_3: 0x00000000
  INSTPS: 0x00000000
  ACTHD: 0x00000000
page table error
  PGTBL_ER: 0x00000003
error: [drm:pid0:i915_report_and_clear_eir] *ERROR* EIR stuck: 0x00000010, masking


drm issue? Not sure. I'll be doing another reboot to check. Weird as there's no error after upgrading. Tried xscreensaver, ok. Tried mplayer playing Full HD (1080) mkv file, wow it was great! So ok. Except for it hangs when I tried to skip forward while playing the movie. Tried mplayer SD clips, ok.

Will try some testing or else will do another installation to test out.

5.4 amd64 X200: Now on 5.4! VIM-python not updated.

Hey,

I've just upgraded my X200 to 5.4. On first reboot, I noticed the framebuffer console. Wow. Nice. Finally we have this.

I've updated all my installed packages except for VIM. Something is wrong with the update. I installed my VIM via ports last time because I need the python flavor. Starting VIM also give error.

After the failed attempt to update via pkg_add, so I uninstalled it and tried to install it via ports. Also failed becuase of library bad major issue. Ouch.

Then I remembered that I haven't updated by port tree yet. Sheesh.

# cd /usr/ports
# cvs -d anoncvs@server.openbsd.org:/cvs update -Pd -rOPENBSD_5_4

Let em updated. And then install the VIM back.

# cd /usr/ports/editor/vim
# env FLAVOR="gtk2 python" make install clean

Wallah! Now it's nice and dandy.

5.4 amd64 X200:dmesg



OpenBSD 5.3 (GENERIC.MP) #62: Tue Mar 12 18:21:20 MDT 2013
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4184543232 (3990MB)
avail mem = 4050657280 (3863MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version "6DET72WW (3.22 )" date 10/25/2012
bios0: LENOVO 745AU5L
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3
(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.31 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF
cpu0: 3MB 64b/line 8-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF
cpu1: 3MB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 104 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4650" serial  8341 type LION oem "Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK docked (15)
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0 at vga1: apic 1 int 16
drm0 at inteldrm0
"Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
puc0 at pci0 dev 3 function 3 "Intel GM45 KT" rev 0x07: ports: 1 com
com2 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo
com2: probed fifo depth: 15 bytes
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: msi, address 00:1f:16:0c:9d:56
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 21
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 22
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: msi
azalia0: codecs: Conexant CX20561
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5300" rev 0x00: msi, MIMO 3T3R, MoW, address 00:21:6a:18:0c:5c
ppb2 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: msi
pci3 at ppb2 bus 5
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 16
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 17
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 19
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x93
pci4 at ppb3 bus 13
pcib0 at pci0 dev 31 function 0 "Intel 82801IEM LPC" rev 0x03
ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x03: msi, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed naa.5000cca6d5c57bed
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
cd0 at scsibus0 targ 1 lun 0: ATAPI 5/cdrom removable
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x03: apic 1 int 23
iic0 at ichiic0
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
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
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
mtrr: Pentium Pro MTRR support
uhub8 at uhub0 port 5 "Lenovo product 0x1005" rev 2.00/0.01 addr 2
uhidev0 at uhub8 port 2 configuration 1 interface 0 "Primax Electronics USB Opti
cal Mouse" rev 2.00/2.00 addr 3
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (6dbd1ba38f84ab48.a) swap on sd0b dump on sd0b
iwn0: radio is disabled by hardware switch
iwn0: radio is disabled by hardware switch
iwn0: radio is disabled by hardware switch
umass0 at uhub1 port 2 configuration 1 interface 0 "Kingston DataTraveler 2.0" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus3 at umass0: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: SCSI0 0/direct
removable serial.095116075B810A000B85
sd1: 1906MB, 512 bytes/sector, 3903488 sectors


Friday, October 18, 2013

5.3 amd64 X200: MP3 file not detected in ncmpcpp / mpd / mpc.

Hi,

I have collections of mp3 audio in my lappy. Nowadays, instead of mplayer which I use specifically for videos, I use mpd. For the frontend, I use ncmpcpp which is a curse-based console, uh, GUI(?). I has many great features which you can refer to from the link I've given.

Ok, there's a collection of mp3s I'm currently listening to. Around 114 files. Then I realised that a few files is not listed in ncmpcpp even when I tried (U)pdating the file browser. When I do ls in the directory, the file is there. I can play the file using mplayer.

I tried using mpc, command line for mpd but I still cannot list the file.

Fearing that I may have a corrupted mp3 file, I was prepared to download that hundred Mbs worth of files when I saw this:

$ ls -lh
-rw-r--r-- Audio_that_is_ok.mp3
-rw-r--r-- Audio_that_is_ok_2.mp3
-rw------- Audio_that_is_not_detected.mp3
-rw-r--r-- Audio_that_is_ok_3.mp3

*ting!*. Ohhhh. That's the reason. Ahah! That files is set to (r)ead/(w)rite for me only. So I chmod 644 the affected files and after (u)pdating my ncmpcpp, all is well.

Sometime we overlooked the simplest thing. Oh ok maybe just me. Later.

Wednesday, May 29, 2013

5.3 amd64 X200: Upgrading OpenBSD using USB Flashdrive.

Hey,

This is related to Creating USB Flashdrive installer. I posted previously. I have another OpenBSD machine in my office, not that the company requires it but as it's my machine, I installed whatever I want. The machine is still on 5.2, so this is a good chance to test my shiny USB Flashdrive installer.

If your machine is just like mine, which support USB Booting, I just boot from USB Flashdrive. Bolded is my input.

Welcome to the OpenBSD/amd64 5.3 installation program.
(I)nstall, (U)pgrade or (S)hell?
u

Available disks are: sd0 sd1.
Which disk is the root disk? ('?' for details) [sd0]
?
sd0: ST9160823AS (149.1G)
sd1: DataTraveler 2.0 (1.9G)


As you can see it asked for the root disk. Which is the disk I want to upgrade. I choose ? to check which device is for my primary disk and which is for the USB Flashdrive. As you can see, sd1 is my Kingston DataTraveler USB Flashdrive. So then I just press ENTER for the default choice [sd0] for the root disk.

Let's upgrade the sets!
Location of sets? (cd disk ftp http or 'done') [cd]
disk

Remember the sets are in the USB Flashdrive so I need to set the location correctly. So I choose disk.

Is the disk partition already mounted? [no] ENTER
Available disks are: sd0 sd1.
Which one contains the upgrade media? (or 'done') [sd1]
ENTER
  a:        1228768             64        4.2BSD    2048    16384    1
  i:        2658867        1228863        MSDOS
Available sd1 partitions are: a i.
Which one has the upgrade sets? (or 'done') [a]
Enter
Pathname to the sets? (or 'done') [5.3/amd64] 5.3

The sd1 is not mounted, so I need to answer accordingly. I then choose sd1 and then the a partition (remember sd1a is for OpenBSD, sd1i is for MSDOS). My 5.3 sets is in sd1a/5.3/ so I just input the directory name 5.3.

Select sets by entering a set name, a file name pattern or 'all'. De-select sets by prepending a '-' to the set name, file name pattern or 'all'. Selected sets are labelled '[X]'.

Now I can see the list of sets I have in the 5.3 directory. Continue to upgrade as usual. After it's upgraded, I rebooted the machine to change the timezone, then mount the USB Flashdrive again to do sysmerge. The usual stuff.

Installation via USB Flashdrive is FAST! Later.

Wednesday, May 22, 2013

5.3 AMD64 X200: Upgrading, the OpenBSD way.

Hi,

Remember 5.1 AMD64: Following -current & Radeon 6.14.3 installation?. Well, I have an apology to make.

The correct way to upgrade is:

1) Copy bsd* and *tgz files for upgrade.
2) Copy the bsd.rd to / .
3) Reboot, then boot> boot bsd.rd . Proceed with upgrade.
4) sysmerge.
5) Upgrade packages.

As you can see, sysmerge should be after upgrading, not before as I've posted previously. Sorry bout that. Yes I used my method from 5.0 until 5.3 without any issue but it's not the official way. It might break the upgrade process.

So, from now on, I will follow the official way.

Friday, May 17, 2013

5.3 AMD64 X200: Creating USB Flashdrive installer.

Heyya,

I've been thinking about some sort of installation method without using CDs. As OpenBSD release new version every 6 month, burning CDs for new ISO is just wasting CD. Currently I still hang on with my 5.0 installation CD and have all the installation files of 5.1 to 5.3 in an external drive. So, if my X200 went crazy, I need to install 5.0 then upgrade all the way to 5.3.

I thought of creating another partition in my X200, just to hold installation files. It will be something like an OS Recovery partition. It's a nice idea to play with, but then Recovery Partition is useless if my hard disk have hardware issue.

So I thought of using a thumbdrive as OpenBSD installation media. Good thing is, I can just update the OpenBSD version on the thumbdrive when new version is released.

I have a Kingston DataTraveler 2.0 USB thumbdrive, 2Gb capacity. 2Gb for OpenBSD installation media is too much, so I think of creating 2 partition on it, 600Mb for OpenBSD installer + all the installation files and the rest for normal thumbdrive usage (FAT32 filesystem).

After searching for relevant informations, this is how I did it. First, I need to clear the thumbdrive. The thumbdrive I want to use is identified as sd1 so yours might be different. Do take note as you don't want to wipe the wrong drive. So I booted my X200 into 5.3, then get to the console. I plugged in my thumbdrive and proceed with this command (bold is my input):

$ sudo fdisk -iy sd1
Writing MBR at offset 0.


Then I proceed to edit the thumbdrive's slice (partition) using fdisk.

$ sudo fdisk -e sd1
Enter 'help' for information


You can check your thumbdrive's slice but mine have 4 (0 to 3) with number 3 for OpenBSD. So I edit the slice's information for OpenBSD part.

fdisk: 1> e 3
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*3: A6      0   1   2 -    241 254  63 [          64:     3887666 ] OpenBSD     Partition id ('0' to disable) [0 - FF]: [A6] (? for help) ENTER
Do you wish to edit in CHS mode? [n] ENTER
Partition offset: [64] ENTER
Partition size: [3887666] 600m


Take note that I didn't use the CHS mode. For the OpenBSD slice, it's ok. But I need to use the CHS mode for the FAT32 slice or else I won't get the 2 partitions I needed.

fdisk: 1> e 0
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused     
Partition id ('0' to disable) [0 - FF]: [0] (? for help) 0B
Do you wish to edit in CHS mode? [n] y
BIOS Starting cylinder [0 - 241]: [0] 76
BIOS Starting head [0 - 254]: [0] 125
BIOS Starting sector [1 - 63]: [1] 49
BIOS Ending cylinder [0 - 241]: [0] 241
BIOS Ending head [0 - 254]: [0] 254
BIOS Ending sector [1 - 63]: [1] 63


As you can see, slicing the FAT32 part is a bit tricky. I need to verify my OpenBSD's slice CHS information (Ending) and adjust the FAT32 CHS informations (Starting - Ending) accordingly. As you can see, my OpenBSD's CHS ended at 241 - 254 - 63 so I used that info as Starting CHS detail for the FAT32 slice. The Ending part should be the maximum of the CHS available.

Now I flag the OpenBSD slice to make it active.

fdisk:*1> flag 3
Partition 3 marked active.

Then quit and save changes.

fdisk:*1> quit

That was only the slicing part. In Window's world it's called partitioning. But now I need to partition the OpenBSD slice created. For this I need to use disklabel.

$ sudo disklabel -E sd1
Label editor (enter '?' for help at any prompt)
> a
partition: [a] ENTER
offset: [64] ENTER
size: [1228799] *
FS type: [4.2BSD] ENTER
Rounding size to bsize (32 sectors): 1228768

As the thumbdrive will just be an installation media, no need to create SWAP or any other partition. To confirm, I need the partition info.

> p m
OpenBSD area: 64-1228864; size: 600.0M; free: 0.0M
#                size           offset  fstype [fsize bsize  cpg]
  a:           600.0M               64  4.2BSD   2048 16384    1
  c:          1906.0M                0  unused                  
  i:          1298.3M          1228863   MSDOS

Looks good. Remember that sd1a is the a (OpenBSD) partition and sd1i is for the FAT32. Now quit and save changes.

> q
Write new label?: [y] ENTER

Sliced and partitioned, the thumbdrive is ready to be formatted. I use newfs.

$ sudo newfs /dev/rsd1a
$ sudo newfs /dev/rsd1i

It might take a while depending on how big your thumbdrive's capacity is. When done, I mount the OpenBSD's slice sd1a.

$ sudo mount /dev/sd1a /mnt

Then I copy my X200's /boot file to that thumbdrive.

$ sudo cp /boot /mnt

After that I make the slice bootable.

$ sudo /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd1

Then I need to create a folder named 5.3 and copy all 5.3 installation files (bsd* & *tgz) into it.

$ sudo mkdir /mnt/5.3

Then I need to create an etc folder, create a boot.conf file inside it.

$ sudo mkdir /mnt/etc
$ sudo touch /mnt/etc/boot.conf

Edit /mnt/etc/boot.conf and add:

set image /5.3/bsd.rd

Finally, I unmount the thumbdrive, reboot to test. The bsd.rd got booted nicely but I haven't tested the installation or upgrade procedure. Didn't want to mess with my current installation. If you tried this, do comment on how it goes. Later.

Update: Here's my experience on Upgrading OpenBSD using USB Flashdrive that I've created above.

Saturday, May 04, 2013

5.3 amd64 X200: Update to 5.3 but biosboot have problem! Ahhh!

Hola,

I updated my X200 to 5.3 last night, using the bsd.rd upgrade method. The usual stuff.

But when I reboot my X200, it's stuck at:

Loading...

That's all. Tried downloading the bsd, bsd.rd and bsd.mp file and do the upgrade process again, still with the same issue. Tried repairing the installboot

# cp /usr/mdec/boot /boot
# /usr/mdec/installboot -n -v /boot /usr/mdec/biosboot sd0


But then still I just can see the Loading... screen. Ahhh! Currently I'm logging in to my X200 using my old 5.0 install cd.

To do that, just boot the laptop using CD, when I see the boot> title:

boot> boot hd0a:/bsd

So basically the upgrade is ok, but the /boot have issue. Ahhh!


[Update 04/05/2013]

I wrote to misc@ and thanks to Dawe who replied, I managed to solve the issue.

By looking at the changelist, there's many changes in 5.3. Including biosboot(8) and installboot(8). But I didn't quite see the exact connection with the problem I had. So Dawe pointed me to the same problem faced by him, and solved via creating a new openbsd.pbr so Win7's bootloader can boot OpenBSD properly.

I tested that, and so, it does work as advertised. So, problem solved.

Sunday, April 28, 2013

5.2 amd64 X200: xorg.conf to get Trackpoint to behave properly.

Heyya. One of the thing that I like about X200, is the lack of touchpad. I don't quite like touchpads. It's a nuisance at best. Surely some OS can disable the touchpad when external mouse is connected but then, what's the point? Most of the time I'll be ignoring the touchpad.

For X200, it only comes with Trackpoint with 3 buttons. The left and right buttons are the standard left-right click, and the middle button is for scrolling. In Windows, pressing the middle-button then using the Trackpoint will scroll to the desired point (Right, left, up, down). But that's for Windows, I want it for my 5.2.

Surely, what's the point of having the best documentations if I didn't use it, right? So, man xorg.conf. Then I notice something. In the INPUTDEVICE SECTION, it's stated that:

"It is usually not necessary to provide InputDevice sections in the xorg.conf if hotplugging is in use (i.e. AutoAddDevices is enabled). If hotplugging is enabled, InputDevice sections using the mouse, kbd and vmmouse driver will be ignored."

Now that's different from what I used to remember. Previously I just alter my /etc/X11/xorg.conf like this:

Section "InputDevice"
    Identifier    "Trackpoint"
    Driver        "mouse"
    Option        "Protocol"    "Auto"
    Option        "Device"    "/dev/wsmouse"
    Option        "Emulate3Buttons"    "False"
    Option        "EmulateWheel"    "True"
    Option        "EmulateWheenButton"    "2"
    Option        "XAxisMapping"    "6 7"
    Option        "YAxisMapping"    "4 5"
EndSection


But now that won't work. It doesn't do anything. My USB Mouse's wheel is working fine, but Trackpoint does nothing as I wanted. So I alter the SERVERLAYOUT section:

Section "ServerLayout"
    ...snip...
    Option        "AutoAddDevices"    "False"
EndSection


But then both the Trackpoint and USB Mouse is not working. At all. This is not good. After re-reading the relevant xorg.conf manual, I found the answer. It lies in the INPUTCLASS SECTION. This is the working snippet of my /etc/X11/xorg.conf files.

Section "InputDevice"
    Identifier    "Trackpoint"
    Driver        "mouse"
    Option        "Protocol"    "Auto"
    Option        "Device"    "/dev/wsmouse"
EndSection


Section "InputClass"
    Identifier    "Trackpoint"
    MatchIsPointer    "True"
    Option        "Emulate3Buttons"    "False"
    Option        "EmulateWheel"        "True"
    Option        "EmulateWheelButton"    "2"
    Option        "XAxisMapping"        "6 7"
    Option        "YAxisMapping"        "4 5"
EndSection


Basically the INPUTCLASS can be used to add different function to different input devices (eg: Trackpoint, USB Mouse with Scroller etc) if configured correctly. In my case, I managed to get the Trackpoint's scrolling function using the middle button and the paste buffer function is also working as needed. But then my USB Mouse is also inheriting the same function. Ah well I will try to alter the INPUTCLASS SECTION so that the Trackpoint and USB Mouse have distint function.

So in the end, I got my Trackpoint working as I wanted. Take note that I'm using cwm and scrolling is tested and working in vim, Firefox and other programs. Great.

Oh, before I forget. I had problem generating my xorg.conf as there's error when I use X -configure. X -configure exited with error. But in the end the xorg.conf file did got generated. Current status is:

- Trackpoint scrolling function now working.
- intel (4) is working fine.
- Video display is 1280x800.
- VGA Out is not tested yet.
- Ultrabase's DisplayPort & VGA Out is not yet tested.

Here's my current /etc/X11/xorg.conf.


Thursday, April 25, 2013

5.2 amd64 X200: Current experiences and dmesg.

Here's the dmesg for my (not so) new Lenovo Thinkpad X200. So far this is the current status:

- Thinkpad buttons working great like increase/decrease sound, mute/unmute sound, increase/decrease LCD brightness etc.
- intel GM45 display is working out of the box. Crisp 1280x800 automatically. Played some HD (720p) and (1080p) movies via mplayer and no stuttering unlike my K43U's radeon.
- LAN is working fine.
- Wireless LAN needs additional downloadable firmware iwn. Not tested yet but seems to be working.
- Trackpad is working, no touchpad in this model. Managed to get the scrolling function using Trackpad working using xorg.conf (Will upload this file later).
- Ultrabase docking is detected and working via acpidock. Eject button & function is working fine.
- Using apmd_flags="-A" is working great. Enhanced Speedstep working fine.
- SDCard Reader is working fine. Opened up my Lumix DMC GH-1 sdcard and can mount properly.


5.2 amd64 X200: Goodbye Asus K43U, hello Lenovo Thinkpad X200.

Hola. It's been quite some time since I last put anything in here. What's new? Well, I sold my Asus K43U laptop via mudah.my. The official warranty is still valid until October 2013, I upgraded the RAM to 8Gb, 500Gb HDD.

I posted the asking price of RM1000, then got an offer of RM850. The chap was desperate for a laptop as he told me his old laptop died on him. He insisted to test my laptop that night, when the time was around 18:00. He was a Windows XP guy, and as my K43U is dual-boot of OpenBSD & Win 7 x64, he kept on telling me what his "IT-guy" friend think about the instability of Win 7 64-Bit. I told him, for Windows, my fav was XP x64 before I had to install Win 7 x64 for my K43U because of the lack of device drivers, then after I tried Win 7, I never turn back to XP anymore.

Not to mention that I had to entertain his questions of how's the performance of AMD APU of my K43U, how it stack up with intel processors bla bla. I happily responded to all his queries until I felt it was taking too much of my time (I was out shopping with my family) and gave a respond "I think you better research what application you use then decide what type of laptop you want".

He said that he's interested in buying my K43U but can only give RM850 for it as there's another ads for that same price but with warranty until June 2013 with lower HDD capacity & RAM. Heck. What a comparison. But then, I need to sell the laptop. So I agreed. He want it urgently, but I need to get my hundred Gbs worth of data out from it first. He said ok.

After that my buddy called me, chat a bit, told him about me going to sell my lappy for RM850 and got a "Oh what didn't you tell me because I was looking to buy one" kind of answer. Yeah right. I even put the ads in my Facebook.

We met later that night, quite late. Around 22:00 I think. He wanted to test the machine at a cafe that have WiFi, and I gladly oblige. So we went to a restaurant with free WiFi access, he started to test the laptop. Asking me to play HD (720p) movie while he browse internet, working with a few MS Accel(?, what's the name of that MS Office spreadsheet program?), opening 2-3 batch of file transfer windows from his external drive into the laptop, while also watching HD youtube video. All while he's actively seeking a sign of slow-response or suffering from the laptop and talking about it.

In the end, the youtube video did stutter. Heck it's only AMD E-450 APU, a low-to-mid spec laptop. Not a "core i"bla bla machine! And he opened so many programs. He looked worried about the youtube video stuttering under heavy load, which then I asked him "Do you use the machine like this every time?" and "Can your previous laptop work under this load" and received a double "no" for answer. Case closed. I nearly bailed out from the deal as I have a buddy who's also interested in the lappy.

So then he paid me, I gave him the laptop + bag + receipts + manual + CDs + downloaded updated device drivers + box. And I remind him to utilise the warranty on any hardware issue. Then we parted ways.

The next day, I received a phone call by the chap. He's having problem with his external drive which have password. ARGHHHH! Told him to refer to the external drive's documentation as I don't use any. Then the next day he called me about the DVD-RW drive kept on resetting. By the symptoms described to me, probably device driver issue. I told him I never had any of the issues during the 1 year++ I spent my time with the laptop, so I told him to install whatever OS he desired and go to Asus service center on any hardware issue. To be honest, I was tired. Eventually the problem resolved by itself, to my relief. If not then I might take back the laptop and refund it as it's too much of a hassle.

Was it worth it now? Well, recently I used the money from the sale, add another RM50 and got myself a Lenovo Thinkpad X200 laptop + Ultrabase docking. The guy asked for Rm1000, got negotiated to RM900. intel P8600 2.4Ghz dual-core, 320Gb HDD and 2Gb RAM. We met near the guy's place, at a restaurant, I booted the machine, entered Win 7, shut it down then pay the money and left the place.

Why Thinkpad? Because I heard many OpenBSD devs uses Thinkpad. Then the replacement parts are plenty. Then the build quality is great. Along with Panasonic Toughbooks, Thinkpads are the models of laptop I don't mind having intel inside. Mind you I also considered AMD's version of Thinkpad Edge, but like other laptop makers, they make half-baked AMD machines that didn't do justice for AMD's great potentials.

I'll update my experiences on running OpenBSD with this X200, and I'll tell you something, the legend about Thinkpad's keyboard is true. And OpenBSD on X200 is a joy! Later.

Tuesday, February 26, 2013

5.2: Uninstalling all packages.

Heyya,

OpenBSD is at 5.2 now. And been using it for a while, and trying to get my hands dirty on Gnome and xfce. First, what? 5.2? I thought I was already on that? Well, that was on -current, but now on -release.

With packages installed, and by installing bloated wm like gnome, surely I will need to delete the packages sooner or later. Which I do after 2 days of trying out Gnome.

pkg_delete is adequate, but when trying to clean up lots of gnome's dependencies, there's a better way.

It's amazing what gem is stored inside old news. For instance, http://www.openbsd.org/faq/upgrade37.html.

Yeah, pkg_delete /var/db/pkg/*. But remember that you're doing this because you want to uninstall ALL PACKAGES. Like me.

Now I'm trying out xfce.

p/s: Not sure if it's just my office but I can't seems to read all my gist. Hmmm.

6.5 amd64: Modify existing certbot certificates.

Hi, It's been quite some time eh. As you can see, I still upgrade my OpenBSD system regularly but currently I do not have the time to ...