Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: where is the openfirmware stored ?
Hello,
to help you identify my machine, which is an iBook G4 1333MHz,
this is the first output line when I enter OpenFirmware :
Apple PowerBook6,5 4.8.7f1 BootROM built on 09/23/04 at 16:13:38
this is my disk ( I hope the text will indent right ) :
------------------------------------
Partition map (with 512 byte blocks) on '/dev/rwd0c'
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Free 262144 @ 64 (128.0M)
3: Apple_HFS Apple_HFS_Untitled_2 156039280 @ 262208 ( 74.4G)
Device block size=512, Number of Blocks=156301488 (74.5G)
DeviceType=0x0, DeviceId=0x0
------------------------------------
in the partition number 2 there is a hfs filesystem with ofwboot.elf and
netbsd_generic_md_.gz taken from a 3.0 install cd.
I guess the right OpenFirmware command should be :
boot hd:2,\ofwboot.elf netbsd_generic_md.gz
the result is :
can' t OPEN: hd:2,\ofwboot.elf
Can' t open device or file
this is the dmesg when i boot from cd :
NetBSD 3.0 (GENERIC_MD) #0: Mon Dec 19 01:29:37 UTC 2005
builds%b2.netbsd.org@localhost:/home/builds/ab/netbsd-3-0-RELEASE/macppc/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/macppc/compile/GENERIC_MD
total memory = 1280 MB
avail memory = 1222 MB
mainbus0 (root)
cpu0 at mainbus0: 7447A (Revision 1.1), ID 0 (primary)
cpu0: HID0 8450c0bc<EMCP,EICE,NAP,DPM,ICE,DCE,SGE,BTIC,FBIOB,ABE,BHT>
cpu0: 668.73 MHz, 512KB L2 cache
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Bridge (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies product 0x5c63
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
Broadcom product 0x4320 (miscellaneous network, revision 0x03) at pci1
dev 18 function 0 not configured
obio0 at pci1 dev 23 function 0: addr 0x80000000
zsc0 at obio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
i2s at obio0 offset 0x10000 not configured
adb0 at obio0 offset 0x16000 irq 47: 3 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: mapped device (196)
wskbd0 at akbd0: console keyboard, using wsdisplay0
ams0 at adb0 addr 3: EMP trackpad <tpad> 4-button, 400 dpi
wsmouse0 at ams0 mux 0
abtn0 at adb0 addr 7: buttons
apm0 at adb0: battery flags 0x55, 0% charged
battery at obio0 offset 0x0 not configured
backlight at obio0 offset 0xf300 not configured
wdc0 at obio0 offset 0x20000 irq 24: DMA transfer
atabus0 at wdc0 channel 0
ohci0 at pci1 dev 24 function 0: Apple Computer Intrepid USB
Controller (rev. 0x00)
ohci0: can't map mem space
ohci1 at pci1 dev 25 function 0: Apple Computer Intrepid USB
Controller (rev. 0x00)
ohci1: can't map mem space
ohci2 at pci1 dev 26 function 0: Apple Computer Intrepid USB
Controller (rev. 0x00)
ohci2: interrupting at irq 29
ohci2: OHCI version 1.0, legacy support
usb0 at ohci2: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci3 at pci1 dev 27 function 0: NEC USB Host Controller (rev. 0x43)
ohci3: interrupting at irq 63
ohci3: OHCI version 1.0
usb1 at ohci3: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci4 at pci1 dev 27 function 1: NEC USB Host Controller (rev. 0x43)
ohci4: interrupting at irq 63
ohci4: OHCI version 1.0
usb2 at ohci4: USB revision 1.0
uhub2 at usb2
uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci1 dev 27 function 2: NEC USB Host Controller (rev. 0x04)
ehci0: interrupting at irq 63
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci3 ohci4
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: single transaction translator
uhub3: 5 ports with 5 removable, self powered
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
wdc1 at pci2 dev 13 function 0: interrupting at irq 39
atabus1 at wdc1 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire (rev. 0x81)
fwohci0: interrupting at irq 40
fwohci0: OHCI 1.1, 00:0d:93:ff:fe:b7:fd:62, 400Mb/s, 2048 max_rec, 8
ir_ctx, 8 it_ctx
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x80)
gem0: interrupting at irq 41
gem0: Ethernet address 00:0d:93:b7:fd:62, 10KB RX fifo, 4KB TX fifo
bmtphy0 at gem0 phy 0: BCM5221 10/100 media interface, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Kernelized RAIDframe activated
md0: internal 2048 KB image area
fw0 at fwohci0: 00:0d:93:ff:fe:b7:fd:62:0a:02:ff:ff:f0:01:00:00
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <PIONEER DVD-RW DVR-K05, EFDL016097WL,
Q518> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
wd0 at atabus1 drive 0: <HTS721080G9AT00>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
(Ultra/100) (using DMA)
wdc1:0:0: lost interrupt
type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wdc1:0:0: lost interrupt
type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
boot device: <unknown>
root on md0a dumps on md0b
root file system type: ffs
WARNING: clock lost 12467 days, using FS time -- CHECK AND RESET THE DATE!
when I exec pdisk I get the same messages from the booting phase :
wdc1:0:0: lost interrupt
type: ata tc_bcount: 512 tc_skip: 0
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
but in the end the kernel says :
wd0: soft error (corrected)
and pdisk prints the partition map.
google says the messages :
wdc1:0:0: lost interrupt
type: ata tc_bcount: 512 tc_skip: 0
comes from here :
ftp://ftp.netbsd.org â pub â NetBSD â NetBSD-3.1 â source â sets â
syssrc.tgz â usr â src â sys â dev â ic â wdc.c
lines 1245-1249
void
wdctimeout(void *arg)
{
struct ata_channel *chp = (struct ata_channel *)arg;
struct wdc_softc *wdc = CHAN_TO_WDC(chp);
struct ata_xfer *xfer = chp->ch_queue->active_xfer;
int s;
ATADEBUG_PRINT(("wdctimeout\n"), DEBUG_FUNCS);
s = splbio();
if ((chp->ch_flags & ATACH_IRQ_WAIT) != 0) {
__wdcerror(chp, "lost interrupt");
printf("\ttype: %s tc_bcount: %d tc_skip: %d\n",
(xfer->c_flags & C_ATAPI) ? "atapi" : "ata",
xfer->c_bcount,
xfer->c_skip);
if (chp->ch_flags & ATACH_DMA_WAIT) {
wdc->dma_status =
(*wdc->dma_finish)(wdc->dma_arg,
chp->ch_channel, xfer->c_drive,
WDC_DMAEND_ABRT);
chp->ch_flags &= ~ATACH_DMA_WAIT;
}
/*
* Call the interrupt routine. If we just missed an interrupt,
* it will do what's needed. Else, it will take the needed
* action (reset the device).
* Before that we need to reinstall the timeout callback,
* in case it will miss another irq while in this transfer
* We arbitray chose it to be 1s
*/
callout_reset(&chp->ch_callout, hz, wdctimeout, chp);
xfer->c_flags |= C_TIMEOU;
chp->ch_flags &= ~ATACH_IRQ_WAIT;
xfer->c_intr(chp, xfer, 1);
} else
__wdcerror(chp, "missing untimeout");
splx(s);
}
I dont know where these two messages comes from :
wdc1:0:0: intr with DRQ (st=0x58)
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
in the end it seems like interrupts are not working very well.
in fact I can use the disk with DMA IO enabled in Leopard or Linux.
so I wonder what's going wrong with interrupts.
it is worth noting that as far as I can see this problem is not specifically
related to NetBSD or any other OS.
could you please help me to understand what those messages says about
interrupts ?
thank you
Enrico Stampa
Home |
Main Index |
Thread Index |
Old Index