Re: How to use (compact) flash cards with OpenBSD
Don Jackson wrote: > I have gotten past all the problems I discussed in my original message > to this list. > > On the AMD/Tyan motherboard with the Addonics CF to SATA converter, > what I did was purchase a Lexar Professional UDMA 300X CF card. > This card is faster, and provides the UDMA interface that the > motherboard and the OS likes to use. > > I changed the cabling so that the flash card was the first disk (wd0 > to OpenBSD), > and I moved the SATA hard drive to wd1. > > For this first attempt, I put swap, /tmp, and /var onto partitions on wd1. > wd0 (the flash), has /, /usr, and /home good plan, but make sure your swap is being recognized. You will probably need an entry in /etc/fstab. From memory, swap on anything other than the 'b' partition of the boot device is not automatically recognized by the standard kernel. > I was able to cleanly install OpenBSD and boot into it. It appears to > work fine. > I do get an error from savecore that wants to use wd0b, and I'll have > to tweak that. Only if you want to save your cores. :) If you don't have use for core dumps or don't have the space on /var/crash for your entire core (in your case, 2G more than you otherwise need for /var), don't worry about this, it just won't be worth the trouble. You will forget to "fix" it again after the next upgrade, anyway. Most people will find it not worth the tweaking. Nick.
Re: How to use (compact) flash cards with OpenBSD
I have gotten past all the problems I discussed in my original message to this list. On the AMD/Tyan motherboard with the Addonics CF to SATA converter, what I did was purchase a Lexar Professional UDMA 300X CF card. This card is faster, and provides the UDMA interface that the motherboard and the OS likes to use. I changed the cabling so that the flash card was the first disk (wd0 to OpenBSD), and I moved the SATA hard drive to wd1. For this first attempt, I put swap, /tmp, and /var onto partitions on wd1. wd0 (the flash), has /, /usr, and /home I was able to cleanly install OpenBSD and boot into it. It appears to work fine. I do get an error from savecore that wants to use wd0b, and I'll have to tweak that. On an older i386 machine, I used another CF (actually it provides a PCMCIA) to IDE adaptor made by http://www.prestico.com/prod-cardmaster.htm I used the Sandisk drive I wrote about previously. The sandisk CF card does not support UDMA. Again, made the CF card be wd0, and the hard drive be wd1, the partitions were as described above. Again, no problems installing OpenBSD, and running it. Thanks to Nick Holland for suggesting making the flash card be wd0, and inspiring me to go try and find a UDMA CF card. And appologies to Nick and everyone for the poorly worded subject line on my original message. Don On 7/30/07, Don Jackson <[EMAIL PROTECTED]> wrote: > I have a Tyan S2881 Thunder K8SR motherboard (Opteron), and wd0 is a > SATA hard disk (Western Digital), but I want to boot and run off a > flash card. > > I have an Addonics SATA to CF adaptor, Model ADSACF) > > http://www.addonics.com/products/flash_memory_reader/adsacf.asp > > The OpenBSD 4.1 installer (booted via PXEboot) seems to have a LOT of > trouble with the flash drive (recognized as WD1). > > How can I make OpenBSD happy with this drive? The actual CF card is a > SanDisk Ultra II 8Gb. > > I had zero problems installing and using a similar SanDisk card in a > Soekris 4801, so I know that it must be possible to make this work. > > How do I make OpenBSD happy with the flash disk? Do I need special > BIOS settings? > > I had very similar problems with another IDE -> Flash adaptor in a > Pentium machine. > > Here is the log from the installer: > > Copyright (c) 1982, 1986, 1989, 1991, 1993 > > The Regents of the University of California. All rights reserved. > > Copyright (c) 1995-2007 OpenBSD. All rights reserved. http://www.OpenBSD.org > > > OpenBSD 4.1-stable (RAMDISK_CD) #1: Sun May 27 13:25:48 PDT 2007 > > [EMAIL PROTECTED]:/home/openbsd/4.1/src/sys/arch/i386/compile/RAMDISK_CD > > cpu0: Dual Core AMD Opteron(tm) Processor 270 ("AuthenticAMD" > 686-class, 1024KB L2 cache) 2 GHz > > cpu0: > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3 > > cpu0: AMD erratum 89 present, BIOS upgrade may be required > > real mem = 2146988032 (2096668K) > > avail mem = 1953828864 (1908036K) > > using 4278 buffers containing 107474944 bytes (104956K) of memory > > mainbus0 (root) > > bios0 at mainbus0: AT/286+ BIOS, date 05/23/06, BIOS32 rev. 0 @ > 0xf0010, SMBIOS rev. 2.3 @ 0xf9830 (63 entries) > > bios0: TYAN S2881 Thunder K8SR Mainboard > > apm0 at bios0: Power Management spec V1.2 > > apm0: flags 30102 dobusy 0 doidle 1 > > pcibios0 at bios0: rev 2.1 @ 0xf/0x1 > > pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4d30/208 (11 entries) > > pcibios0: no compatible PCI ICU found: ICU vendor 0x1022 product 0x746b > > pcibios0: Warning, unable to fix up PCI interrupt routing > > pcibios0: PCI bus #3 is the last bus > > bios0: ROM list: 0xc/0x8000 0xc8000/0x4800 0xcc800/0x1800 > 0xce000/0x1800 0xcf800/0x1000 > > acpi at mainbus0 not configured > > cpu0 at mainbus0 > > pci0 at mainbus0 bus 0: configuration mode 1 (no bios) > > ppb0 at pci0 dev 6 function 0 "AMD 8111 PCI-PCI" rev 0x07 > > pci1 at ppb0 bus 3 > > ohci0 at pci1 dev 0 function 0 "AMD 8111 USB" rev 0x0b: irq 9, version > 1.0, legacy support > > usb0 at ohci0: USB revision 1.0 > > uhub0 at usb0 > > uhub0: AMD OHCI root hub, rev 1.00/1.00, addr 1 > > uhub0: 3 ports with 3 removable, self powered > > ohci1 at pci1 dev 0 function 1 "AMD 8111 USB" rev 0x0b: irq 9, version > 1.0, legacy support > > usb1 at ohci1: USB revision 1.0 > > uhub1 at usb1 > > uhub1: AMD OHCI root hub, rev 1.00/1.00, addr 1 > > uhub1: 3 ports with 3 removable, self powered > > pciide0 at pci1 dev 5 function 0 "CMD Technology SiI3114 SATA" rev 0x02: DMA > > pciide0: using irq 10 for native-PCI interrupt > > pciide0: port 0: device present, speed: 1.5Gb/s > > wd0 at pciide0 channel 0 drive 0: > > wd0: 16-sector PIO, LBA48, 239372MB, 490234752 sectors > > wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6 > > pciide0: port 1: device present, speed: 1.5Gb/s > > wd1 at pciide0 channel 1 drive 0: > > wd1: 4-sector PIO, LBA, 7815MB, 16007040 sectors > > wd1(pciide0:1:0): using BIOS timings, DMA mode 2 > > vga1 at pci1 dev 6 function
Re: How to use (compact) flash cards with OpenBSD
Nick Holland wrote: ... > 2) I see the thing is picking up as a "DMA mode 2" device. I've not > seen that with the CF devices and adapters I've used...might want to > try disabling the DMA on that device. "man 4 wd" > > 3) Try another OS on your adapter/MoBo combo. You may find your CF > adapter and CF module just don't play nice together (or the CF module > and the SATA chip set). I've seen some IDE devices that claimed to > do DMA and UDMA and were just plain lying, apparently relying on the > fact that Windows would fall back silently and never tell you that > the thing was completely screwed up. while looking at the provided link and after posting, I noticed this: To ensure compatibility and improve speeds, a Compact Flash media with UDMA Fixed Disk Mode is recommended. Compact Flash media without this may not boot properly. You don't have UDMA, and not sure about this "Fixed Disk Mode", but it looks like you fall into that last sentence there... Nick.
Re: How to use (compact) flash cards with OpenBSD
First of all, a fine point of English: "How to" should be followed by an explanation of how to do something, not a question, 'specially if not followed by a question mark. The phrase you are probably looking for is "how do I . . . ?". (yes, strange thing for me, who has mangled English in many a creative and strange way to gripe about, but this bugs me for some reason) On to your question... Don Jackson wrote: > I have a Tyan S2881 Thunder K8SR motherboard (Opteron), and wd0 is a > SATA hard disk (Western Digital), but I want to boot and run off a > flash card. > > I have an Addonics SATA to CF adaptor, Model ADSACF) > > http://www.addonics.com/products/flash_memory_reader/adsacf.asp oh, interesting...CF to SATA adapter. > The OpenBSD 4.1 installer (booted via PXEboot) seems to have a LOT of > trouble with the flash drive (recognized as WD1). That's going to bite you in the butt eventually, even if nothing else does. You don't want to try to boot from wd1... > How can I make OpenBSD happy with this drive? The actual CF card is a > SanDisk Ultra II 8Gb. > > I had zero problems installing and using a similar SanDisk card in a > Soekris 4801, so I know that it must be possible to make this work. I doubt that it is your CF card that's causing your problems, it's everything OTHER than the card that's suspect: the SATA chip, the SATA->CF adapter, etc. > How do I make OpenBSD happy with the flash disk? Do I need special > BIOS settings? > I had very similar problems with another IDE -> Flash adaptor in a > Pentium machine. due to the lack of details and my sucess doing this, I'm totally ignoring this statement. :) > Here is the log from the installer: > > Copyright (c) 1982, 1986, 1989, 1991, 1993 > > The Regents of the University of California. All rights reserved. > Copyright (c) 1995-2007 OpenBSD. All rights reserved. http://www.OpenBSD.org > > OpenBSD 4.1-stable (RAMDISK_CD) #1: Sun May 27 13:25:48 PDT 2007 > [EMAIL PROTECTED]:/home/openbsd/4.1/src/sys/arch/i386/compile/RAMDISK_CD ... > pciide0 at pci1 dev 5 function 0 "CMD Technology SiI3114 SATA" rev 0x02: DMA > pciide0: using irq 10 for native-PCI interrupt > pciide0: port 0: device present, speed: 1.5Gb/s > wd0 at pciide0 channel 0 drive 0: > wd0: 16-sector PIO, LBA48, 239372MB, 490234752 sectors > wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6 > pciide0: port 1: device present, speed: 1.5Gb/s > wd1 at pciide0 channel 1 drive 0: > wd1: 4-sector PIO, LBA, 7815MB, 16007040 sectors > wd1(pciide0:1:0): using BIOS timings, DMA mode 2 ... > dkcsum: wd0 matches BIOS drive 0x80 > wd1(pciide0:1:0): timeout > type: ata > c_bcount: 512 > c_skip: 0 > pciide0:1:0: bus-master DMA error: missing interrupt, status=0x21 > pciide0 channel 1: reset failed for drive 0 > wd1c: device timeout reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying > pciide0:1:0: not ready, st=0xd0, err=0x00 > pciide0 channel 1: reset failed for drive 0 > wd1c: device timeout reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying > pciide0:1:0: not ready, st=0xd0, err=0x00 > pciide0 channel 1: reset failed for drive 0 > wd1c: device timeout reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying > pciide0:1:0: not ready, st=0xd0, err=0x00 > pciide0 channel 1: reset failed for drive 0 > wd1c: device timeout reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying > pciide0:1:0: not ready, st=0xd0, err=0x00 > pciide0 channel 1: reset failed for drive 0 > wd1c: device timeout reading fsbn 0 (wd1 bn 0; cn 0 tn 0 sn 0), retrying > pciide0:1:0: not ready, st=0xd0, err=0x00 > pciide0 channel 1: reset failed for drive 0 ... 1) As already indicated, if you want to boot from this thing, swap your cables so that it is wd0, not wd1. (YES, you CAN probably do it as wd1, but it will be a maintenance nightmare, and seemingly for no point in your config). Unlikely to fix THIS problem, but will probably fix the next one you ask about. 2) I see the thing is picking up as a "DMA mode 2" device. I've not seen that with the CF devices and adapters I've used...might want to try disabling the DMA on that device. "man 4 wd" 3) Try another OS on your adapter/MoBo combo. You may find your CF adapter and CF module just don't play nice together (or the CF module and the SATA chip set). I've seen some IDE devices that claimed to do DMA and UDMA and were just plain lying, apparently relying on the fact that Windows would fall back silently and never tell you that the thing was completely screwed up. 4) MIGHT want to try running just the CF card, skip the HD until you see what is going on. I have no reason to believe that will change anything, other than a deep skepticism of everything and the general urge to simplify the heck out of a troublesome system until it is working properly. 5) Those SiI chips suck, or at least their ROMS suck. I've solved a lot of problems by literally prying the ROM off the board on some of those things. I don't think that's your proble
How to use (compact) flash cards with OpenBSD
I have a Tyan S2881 Thunder K8SR motherboard (Opteron), and wd0 is a SATA hard disk (Western Digital), but I want to boot and run off a flash card. I have an Addonics SATA to CF adaptor, Model ADSACF) http://www.addonics.com/products/flash_memory_reader/adsacf.asp The OpenBSD 4.1 installer (booted via PXEboot) seems to have a LOT of trouble with the flash drive (recognized as WD1). How can I make OpenBSD happy with this drive? The actual CF card is a SanDisk Ultra II 8Gb. I had zero problems installing and using a similar SanDisk card in a Soekris 4801, so I know that it must be possible to make this work. How do I make OpenBSD happy with the flash disk? Do I need special BIOS settings? I had very similar problems with another IDE -> Flash adaptor in a Pentium machine. Here is the log from the installer: Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2007 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.1-stable (RAMDISK_CD) #1: Sun May 27 13:25:48 PDT 2007 [EMAIL PROTECTED]:/home/openbsd/4.1/src/sys/arch/i386/compile/RAMDISK_CD cpu0: Dual Core AMD Opteron(tm) Processor 270 ("AuthenticAMD" 686-class, 1024KB L2 cache) 2 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3 cpu0: AMD erratum 89 present, BIOS upgrade may be required real mem = 2146988032 (2096668K) avail mem = 1953828864 (1908036K) using 4278 buffers containing 107474944 bytes (104956K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+ BIOS, date 05/23/06, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.3 @ 0xf9830 (63 entries) bios0: TYAN S2881 Thunder K8SR Mainboard apm0 at bios0: Power Management spec V1.2 apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0x1 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4d30/208 (11 entries) pcibios0: no compatible PCI ICU found: ICU vendor 0x1022 product 0x746b pcibios0: Warning, unable to fix up PCI interrupt routing pcibios0: PCI bus #3 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x4800 0xcc800/0x1800 0xce000/0x1800 0xcf800/0x1000 acpi at mainbus0 not configured cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) ppb0 at pci0 dev 6 function 0 "AMD 8111 PCI-PCI" rev 0x07 pci1 at ppb0 bus 3 ohci0 at pci1 dev 0 function 0 "AMD 8111 USB" rev 0x0b: irq 9, version 1.0, legacy support usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: AMD OHCI root hub, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1 at pci1 dev 0 function 1 "AMD 8111 USB" rev 0x0b: irq 9, version 1.0, legacy support usb1 at ohci1: USB revision 1.0 uhub1 at usb1 uhub1: AMD OHCI root hub, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered pciide0 at pci1 dev 5 function 0 "CMD Technology SiI3114 SATA" rev 0x02: DMA pciide0: using irq 10 for native-PCI interrupt pciide0: port 0: device present, speed: 1.5Gb/s wd0 at pciide0 channel 0 drive 0: wd0: 16-sector PIO, LBA48, 239372MB, 490234752 sectors wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6 pciide0: port 1: device present, speed: 1.5Gb/s wd1 at pciide0 channel 1 drive 0: wd1: 4-sector PIO, LBA, 7815MB, 16007040 sectors wd1(pciide0:1:0): using BIOS timings, DMA mode 2 vga1 at pci1 dev 6 function 0 "ATI Rage XL" rev 0x27 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) pcib0 at pci0 dev 7 function 0 "AMD 8111 LPC" rev 0x05 pciide1 at pci0 dev 7 function 1 "AMD 8111 IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility pciide1: channel 0 disabled (no drives) pciide1: channel 1 disabled (no drives) "AMD 8111 SMBus" rev 0x02 at pci0 dev 7 function 2 not configured "AMD 8111 Power" rev 0x05 at pci0 dev 7 function 3 not configured ppb1 at pci0 dev 10 function 0 "AMD 8131 PCIX" rev 0x12 pci2 at ppb1 bus 2 bge0 at pci2 dev 9 function 0 "Broadcom BCM5704C" rev 0x03, BCM5704 A3 (0x2003): irq 5, address 00:e0:81:45:de:28 brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0 bge1 at pci2 dev 9 function 1 "Broadcom BCM5704C" rev 0x03, BCM5704 A3 (0x2003): irq 10, address 00:e0:81:45:de:29 brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0 "AMD 8131 PCIX IOAPIC" rev 0x01 at pci0 dev 10 function 1 not configured ppb2 at pci0 dev 11 function 0 "AMD 8131 PCIX" rev 0x12 pci3 at ppb2 bus 1 "AMD 8131 PCIX IOAPIC" rev 0x01 at pci0 dev 11 function 1 not configured pchb0 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00 pchb1 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00 pchb2 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00 pchb3 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00 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 npx