[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-misc
Subject: Re: CF Card on Sparc 64
From: Duncan Patton a Campbell <campbell () neotext ! ca>
Date: 2010-03-31 5:17:21
Message-ID: 20100330231721.b967b288.campbell () neotext ! ca
[Download RAW message or body]
On Tue, 30 Mar 2010 17:05:24 -0400
Jonathan Towne <jontow@hijacked.us> wrote:
> Duncan,
>
> http://wtf.hijacked.us/wiki/index.php/Sun_Netra_t1_compact_flash_root
>
Yes. Thanks for the confirmation.
> I've done this before; I don't have it running anymore, but it worked
> really well. Don't know if this helps, but I thought I'd offer it to
> the archives for those interested.
>
> The meat of it is finding the right alias for openboot. I replaced my
> cdrom (that didn't exist in my netra t1/105 when I bought it) with the
> CF card/adapter:
>
> boot /pci@1f,0/pci@1/pci@1/ide@e/disk@2:a -c
>
> I also had to set a flag on the IDE controller, at this point thinking
> that it disables DMA? That one is left to the reader to find out.
> I just remember that it wouldn't boot reliably without this:
0x0ff0 LIMITS all wd* interfaces to no dma, in my case PIO-4,
so you wind up chugging down ALL wd* disks (from my dmesg):
wd0 at pciide0 channel 0 drive 0: <WDC AC28400R>
wd0: 16-sector PIO, LBA, 8063MB, 16514064 sectors
wd0(pciide0:0:0): using PIO mode 4
wd1 at pciide0 channel 1 drive 1: <ELITE PRO CF CARD 16GB>
wd1: 1-sector PIO, LBA, 15280MB, 31293440 sectors
wd1(pciide0:1:1): using PIO mode 4
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
So I'm now wondering whether we can turn these flags on on a
disk/channel basis. I'd assume that the reference "channel"
implies that there is some possibility of this?
Dhu
>
> UKC> change wd*
> change? y
> channel: [-1] (hit enter)
> flags: [whatever]: 0xff0
> UKC> quit
>
> -- Jonathan Towne
>
> On Tue, Mar 30, 2010 at 03:23:57AM -0600, Duncan Patton a Campbell scribbled:
> # I've got a cf card running as a secondary drive on a Sparc Ultra 5 (Sparc64),
> # but have not been able to get it to boot. The cf/ide plug I am using has no
> # master/slave/cs sets and a microprocessor on it as well, which leaves me \
> suspicious # of it because the CF interface is sposed to be a shrunken IDE.
> #
> # The sparc boot diags (probe-ide) show no device other than an ide hdd if it is \
> attached. #
> # Also, I have experience that IDE disks are addressable after boot if the CS/MS/SL \
> is # set wrong (that is they can have mountable file systems) but will still not \
> be bootable # themselves, which further leads me to believe the CF card 2 IDE plug \
> I have is useless # for this.
> #
> # But I mebbe barking up the wrong tree altogether here and it is just not \
> doable... #
> # Comments/ideas anyone?
> #
> # Thanks,
> #
> # Dhu
> #
> #
> # p.s.
> #
> # # dmesg
> # console is keyboard/display
> # Copyright (c) 1982, 1986, 1989, 1991, 1993
> # The Regents of the University of California. All rights reserved.
> # Copyright (c) 1995-2009 OpenBSD. All rights reserved. http://www.OpenBSD.org
> #
> # OpenBSD 4.5 (GENERIC) #1898: Sat Feb 28 17:42:44 MST 2009
> # deraadt@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
> # real mem = 536870912 (512MB)
> # avail mem = 507625472 (484MB)
> # mainbus0 at root: Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 270MHz)
> # cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 1.3) @ 270 MHz
> # cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K external (64 \
> b/l) # psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
> # psycho0: bus range 0-3, PCI bus 0
> # psycho0: dvma map c0000000-dfffffff
> # pci0 at psycho0
> # ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x13
> # pci1 at ppb0 bus 1
> # ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
> # auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, \
> 72f000-72f003 # power0 at ebus0 addr 724000-724003 ivec 0x25
> # "SUNW,pll" at ebus0 addr 504000-504002 not configured
> # sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
> # sabtty0 at sab0 port 0
> # sabtty1 at sab0 port 1
> # comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: layout 34
> # wskbd0 at comkbd0: console keyboard
> # com0 at ebus0 addr 3062f8-3062ff ivec 0x2a: mouse: ns16550a, 16 byte fifo
> # lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ivec 0x22: polled
> # clock1 at ebus0 addr 0-1fff: mk48t59
> # "flashprom" at ebus0 addr 0-fffff not configured
> # audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f, 722000-722003 \
> ivec 0x23 ivec 0x24: nvaddrs 0 # audio0 at audioce0
> # hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address \
> 08:00:20:a2:f6:94 # nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
> # vgafb0 at pci1 dev 2 function 0 "ATI Mach64" rev 0x5c
> # wsdisplay0 at vgafb0 mux 1: console (std, sun emulation), using wskbd0
> # pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03: DMA, channel \
> 0 configured to native-PCI, channel 1 configured to native-PCI # pciide0: using \
> ivec 0x7e0 for native-PCI interrupt # wd0 at pciide0 channel 0 drive 0: <WDC \
> AC28400R> # wd0: 16-sector PIO, LBA, 8063MB, 16514064 sectors
> # wd0(pciide0:0:0): using PIO mode 4
> # wd1 at pciide0 channel 1 drive 1: <ELITE PRO CF CARD 16GB>
> # wd1: 1-sector PIO, LBA, 15280MB, 31293440 sectors
> # wd1(pciide0:1:1): using PIO mode 4
> # ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
> # pci2 at ppb1 bus 2
> # ppb2 at pci2 dev 1 function 0 "DEC 21152 PCI-PCI" rev 0x02
> # pci3 at ppb2 bus 3
> # "Sun PCIO EBus2" rev 0x01 at pci3 dev 0 function 0 not configured
> # hme1 at pci3 dev 0 function 1 "Sun HME" rev 0x01: ivec 0x7d1, address \
> 08:00:20:a3:e8:52 # nsphy1 at hme1 phy 1: DP83840 10/100 PHY, rev. 1
> # isp0 at pci3 dev 4 function 0 "QLogic ISP1020" rev 0x05: ivec 0x7d0
> # isp0: invalid NVRAM header
> # scsibus0 at isp0: 16 targets, initiator 7
> # softraid0 at root
> # bootpath: /pci@1f,0/pci@1,1/ide@3,0/disk@0,0
> # root on wd0a swap on wd0b dump on wd0b
> #
> # # mount
> # /dev/wd0a on / type ffs (local)
> # /dev/wd1a on /mnt type ffs (local)
> # /dev/wd1d on /mnt2 type ffs (local)
> # # df
> # Filesystem 512-blocks Used Avail Capacity Mounted on
> # /dev/wd0a 14444316 2170316 11551788 16% /
> # /dev/wd1a 8251788 2180244 5658956 28% /mnt
> # /dev/wd1d 20471612 2234052 17213980 11% /mnt2
> #
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic