ppc - Is the kernel assuming root should be on the same disk it was booted from, and inferring where root should be based on the bootpath?:
scsibus2 at softraid0: 256 targets bootpath: /pci@f20000000/mac-io@17/ata-4@1F000/disk@0:/bsd root on wd0a swap on wd0b dump on wd0b panic: root filesystem has size 0 This is my only guess since wd1a and wd1b would be the disks specified by the DUIDs in /etc/fstab.... In other words, the kernel seems to me to be trying to mount partitions which are not specified in /etc/fstab... -Justin On Sat, May 12, 2012 at 10:28 AM, Justin Haynes <jus...@justinhaynes.com>wrote: > On Thu, Apr 19, 2012 at 2:08 AM, Mark Kettenis <mark.kette...@xs4all.nl> > wrote: > > > > > Date: Wed, 18 Apr 2012 22:33:48 -0500 > > > From: Justin H Haynes <jus...@justinhaynes.com> > > > > > > > > > > My question is, can I reaonsably expect this card which i believe to be > > > supported by OpenBSD to work with this Powermac G4? If not, why; and > if so > > > how can i troubleshoot? > > > > > > > The only suggestion I have is to try exchanging the card for a > > different model. > > Thanks Mark. I have now tried 7 cards with the intent of finding a > card for my own purposes and sharing the results. I'll provide > a summary of the results for those interested at the end of > this post, but will stay to my original purpose of adding storage > so that I can use the Powermac as a NAS and as a database > server. I have run into another problem in adding storage > to this machine and will describe the problem here. > > Of the three cards I tested that work I chose the VIA 6421based > Rosewill RC-215, which has 2 1.5gb/s sata ports and one IDE port. > This card can sit in the machine with no targets as the machine > runs without any problems for days until I shut it down manually. > > $ diff nocards.dmesg rosewill_rc-215.dmesg > 27a28,29 > > pciide0 at pci1 dev 20 function 0 "VIA VT6421 SATA" rev 0x50: DMA > > pciide0: using irq 54 for native-PCI interrupt > > The machine is stock and has only one pci card installed > (the Rosewill RC-215). The machine's root disk is an IDE > disk and also has a secondary disk IDE installed > > The 2 IDE disks are identified as wd0 and wd1. Both are identified in > fstab by DUIDs. wd0a is root. wd0b is swap. > > The problem comes when I add storage. I add 1 1TB sata > drive to the rosewill and power up. Now, the new sata drive > is found as wd0, and the two IDE drives are found as wd1 > and wd2 > > The kernel tries to mount wd0a as root and use wd0b as swap. > Then the system drops to ddb>. > > I will type the last few lines as the machine attempts to boot as > I do not have a way to capture terminal output from the machine > at this time. > > vscsi0 at root > scsibus1 at vscsi0: 256 targets > softraid0 at root > scsibus2 at softraid0: 256 targets > bootpath: /pci@f20000000/mac-io@17/ata-4@1F000/disk@0:/bsd > root on wd0a swap on wd0b dump on wd0b > panic: root filesystem has size 0 > Stopped at Debugger+0x10: lwz r0,20(r1) > RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS > PANIC! > DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION! > ddb> trace > 000000fc: tlbdmsmsize+0x14 fp 79ec50 nfp 79ec60 > 0027f144: panic+0xc8 fp 79ec60 nfp 79ecc0 > 00275688: dk_mountroot+0x110 fp 79ecc0 nfp 79eee0 > 00255334: main+0x51c fp 79eee0 nfp 79ef40 > 001001bc: kernel_text+0xa8 fp 79ef40 nfp 0 > > > Perhaps I don't understand how the kernel uses DUIDs, but my > understanding was that by identifying disks by DUID in fstab, > I could avoid situations like this one; because the kernel > would identify the disk by this handle and then use that > to find the disks. I guess there is some point at which the DUID is > resolved to a device name, and once resolved only the device name > would be used. So the cause of this problem may have > to do with the timing of that resolution from DUID to device name. > Is this correct? > > What should I do next to try to solve the problem? > > Also, I did create a filesystem on the sata drive by booting > up with the bsd.rd and running newfs on it. So the drive is > addressable and usable through this PCI card. > > Thanks for your time. The results to my tests on SATA cards are > found below, > > Justin > > ----------------------- > > > The results can be found at the following link with dmesg lines for each > card, > and a link to the hardware as it appears on newegg. An outline also > appears below: > http://justinhaynes.com/wiki/index.php?title=Power_Mac_G4_Digital_Audio > > 2.2 sata > 2.2.1 works or seems to work > 2.2.1.1 VIA 6421 (StarTech 1 Port eSATA + 1 Port SATA PCI Controller > Card w/ LP Bracket Model PCIESATA2I) > 2.2.1.2 VIA 6421 (Rosewill RC-215 VIA PCI SATA 1.5G x2 / ATA 133 (IDE) > x1 Controller Card) > 2.2.1.3 SiI3112 (VANTEC 2-Port SATA II-150 PCI Host Card Model UGT-ST200) > 2.2.2 appears in dmesg but not supported > 2.2.2.1 SiI3124 (Rosewill RC-217 SATA II 4 Port RAID 0/1/5/10 PCI RAID > Card) > 2.2.3 hangs before openfirmware displays > 2.2.3.1 SiI3114 (MASSCOOL PCI Card, 4 internal SATA Model XWT-RC040) > 2.2.3.2 SiI3114 (SYBA SY-SA3114-4R PCI SATA PCI SATA Raid Card) > 2.2.3.3 Silicon Image SIL3512A (SYBA SD-SATA150R PCI SATA Controller Card)