[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Booting from ATA flash card?


I have a small PC104 machine with a flash ATA card in that. dmesg output
is at the end of this letter.
I've already tried all the freely available BSDs (Free-, Net-, OpenBSD),
but only NetBSD can actually boot from the flash.

Using the boot floppy (floppy3[0-1].fs) I was able to install the base
operating system to the flash, but only with small modifications.
For example it seems that OpenBSD can't determine the BIOS geometry for
the flash, so I had to type in what dmesg said.
Installboot also complained, -s -h options solved this issue (with the
geometry from dmesg output).

After rebooting the biggest problem is with the loader. The loader starts,
but I can't load the kernel.

About the BIOS:
The BIOS's identifier is "PCM-4823 BIOS V1.10 (02/12/98)"
And it says that it has an extension:
"Copyright (c) 1996 Prestico Associated Corp.
All Rights Reserved
PCMCIA Extended BOOT ROM Option V2.02"

BTW, NetBSD's loader sees the disk as a standard HDD, but OpenBSD can't
recognize it. When I boot from the flash I see only the floppy, but there
are strange things happening:

Using Drive: 0 Partition: 3
reading boot....
probing: pc0 com0 apm mem[639K 15M a20=on] (should'nt K spelled as k?)
disk: fd0Booting from PCMCIA ATA Card as C: Drive. Please Wait ...
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^I did not get this with NetBSD
>> OpenBSD/i386 BOOT 1.28
failed to read disklabel
open(hd0a:/etc/boot.conf): can't read disklabel
boot>machine diskinfo
Disk	BIOS#	Type	Cyls	Heads	Secs	Flags	Checksum
fd0	0x0	*none*	80	2	18	0x4	0x0

I've tried to load OpenBSD with NetBSD's loader but got panic right after
it executes the kernel.

Can anybody help me to resolve this issue?

The dmesg:
OpenBSD 3.1-beta (RAMDISK) #214: Mon Apr  8 00:25:51 MDT 2002
cpu0: AMD Am5x86 W/B 133/160 ("AuthenticAMD" 486-class)
cpu0: FPU
real mem  = 16363520 (15980K)
avail mem = 11661312 (11388K)
using 225 buffers containing 921600 bytes (900K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(3a) BIOS, date 12/10/97
apm0 at bios0: Power Management spec V1.1
pcibios at bios0 function 0x1a not configured
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800
isa0 at mainbus0
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
vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072
wsdisplay0 at vga0: console (80x25, vt100 emulation), using wskbd0
ne1 at isa0 port 0x300/32 irq 10
ne1: NE2000 (RTL8019) Ethernet
ne1: address 00:c0:6c:74:46:10
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
pcic0 at isa0 port 0x3e0/2 iomem 0xd0000/16384
pcic0 controller 0: <Intel 82365SL rev 1> has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
wdc2 at pcmcia0 function 0 "128MB,        , 5.0" port 0x340/16: irq 3
wd0 at wdc2 channel 0 drive 0: <Hitachi ATA 6.1>
wd0: 1-sector PIO, LBA, 122MB, 978 cyl, 8 head, 32 sec, 250368 sectors
wd0(wdc2:0:0): using BIOS timings
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 14, polling enabled
biomask 48 netmask 448 ttymask 444a
rd0: fixed, 3560 blocks
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02

--------[ Free Software ISOs - ftp://ftp.fsn.hu/pub/CDROM-Images/ ]-------
Attila Nagy					e-mail: Attila_(_dot_)_Nagy_(_at_)_fsn_(_dot_)_hu
Free Software Network (FSN.HU)		  phone @work: +361 210 1415 (194)
						cell.: +3630 306 6758