<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.os.netbsd.ports.macppc">
    <title>gmane.os.netbsd.ports.macppc</title>
    <link>http://blog.gmane.org/gmane.os.netbsd.ports.macppc</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11135"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11134"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11133"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11132"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11131"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11128"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11127"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11125"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11122"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11121"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11116"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11115"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11113"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11112"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11102"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11101"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11094"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11093"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11092"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11087"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11135">
    <title>2012Q1 package binaries for NetBSD/macppc 5.1</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11135</link>
    <description>&lt;pre&gt;Hi,

I've uploaded the results of a bulk build of pkgsrc-2012Q1 for
NetBSD/macppc 5.1, as well as the first rebuild to

   ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/powerpc/5.1_2012Q1/

A total of 14GB of packages have been uploaded, consisting of
10431 packages.

The latest rebuild was done with sources from May 16 2012.

For the packages which are not architecture-specific (should be
the vast majority), these packages should also be usable on other
powerpc ports.

As warned a long while ago, the axe has now fallen on the oldest
5.0 packages (based on 2009Q4).  It's also likely that the oldest
packages for 5.1 will be removed (based on 2011Q2).

Regards,

- Håvard

&lt;/pre&gt;</description>
    <dc:creator>Havard Eidnes</dc:creator>
    <dc:date>2012-05-25T19:29:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11134">
    <title>valkyriefb as console</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11134</link>
    <description>&lt;pre&gt;-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

a while ago I wrote a driver for the onboard video circuitry found in  
the Performa 6360 ( in OF it shows up as /valkyrie ) - supposedly it  
isn't properly supported by OF but as it turns out it is. Kind of.
Just setting output-device to /valkyrie gives me a funny looking but  
working console, but for some reason any attempt on loading ofwboot  
fails with 'CLAIM failed'. With output-device set to /bandit/ 
3Dfx,Voodoo3 it boots just fine. The bits &amp;amp; pieces needed to run the  
system console on valkyriefb should be in place, if I just could get  
it to load anything ( genfb can't work since OF still doesn't give us  
a framebuffer address and it would need glue code to attach to  
mainbus ).
So, any ides what could cause this and how to get around it? Sure,  
valkyrie is unaccelerated but as a simple console it's doing alright  
and people might want to use the PCI slot for something else, like  
fast ethernet or a USB2 card.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEVAwUBT71+RspnzkX8Yg2nAQIs5Af+I2glatRi0vwNyOLxfLQcmuMUfMHBgd04
C8pWDsu3W9Kssy0ggUED5UMS4XlnUqyV4rYOrG4AJe33v68cdGEIleevU4v/NcS0
/k4zVx0RQcpk4wI6hVK0H5BLnKbDX/iDhVIBxLX3a8zWs89xCxHtF4skthF9zjMu
UyfJenNk1devOAiQz/3MqoIyu5qMCO2/lD91xHx8jxFHjEyNkw5AefAphrsJXJ4S
ldtwW0EMrDJMMaTmYVaG3FfJ/s3QEUT/13vOZ9PAuGnb8HqY1MRc43hq6xWtdsFJ
y3CNS1HDK4dKyhe1qvCSrW2FFFW1NW4Rwd043+MUl4TG9jnVvsl+AQ==
=OonG
-----END PGP SIGNATURE-----

&lt;/pre&gt;</description>
    <dc:creator>Michael</dc:creator>
    <dc:date>2012-05-24T00:18:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11133">
    <title>Warning! Your mailbox is almost full.</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11133</link>
    <description>&lt;pre&gt;You have exceeded your email limit quota of 450MB. You need to upgrade
your email limit quota to 2GB within the next 48 hours. Use the below web
link to upgrade your email account:

click link below:
https://docs.google.com/spreadsheet/viewform?formkey=dFVWX0g4RzV2MnNxV0N5S09WczhENWc6MQ

Thank you for using our email.
Copyright ©2012 Email Helpdesk Centre.


&lt;/pre&gt;</description>
    <dc:creator>Webmail Helpdesk Support Centre®</dc:creator>
    <dc:date>2012-05-10T19:50:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11132">
    <title>Admin-Helpdesk: Upgrade Your Mailbox Now</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11132</link>
    <description>&lt;pre&gt; 
 
The Admin-Helpdesk is currently upgrading and maintaining database Server from the old Microsoft Server( No420134x ) to the new Microsoft Server( No520193x ) click the link below and fill all information required to upgrade your mailbox. 
 
CLICK HERE
&amp;lt;https://docs.google.com/a/smps.k12.ok.us/spreadsheet/viewform?formkey=dGdKTFpTcW5KVVF1UGxJTFJ0aF9UdHc6MQ&amp;gt; Thank You
Admin-Helpdesk 

&lt;/pre&gt;</description>
    <dc:creator>Smith, Mary J</dc:creator>
    <dc:date>2012-05-07T17:36:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11131">
    <title>Admin-Helpdesk Upgrade</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11131</link>
    <description>&lt;pre&gt;

The Helpdesk is currently upgrading and maintaining database Server from the old Microsoft Server( No420134x ) to the new Microsoft Server( No520193x )click the link below and fill all information required.





CLICK HERE
&amp;lt;https://docs.google.com/a/smps.k12.ok.us/spreadsheet/viewform?formkey=dGVvb2xPdzdfNmg0b3d0cF9jbzl2aFE6MQ&amp;gt;Thank You
Helpdesk Upgrade Team

&lt;/pre&gt;</description>
    <dc:creator>Pedrick, Francis</dc:creator>
    <dc:date>2012-05-01T18:36:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11128">
    <title>boot from network, use local filesystem</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11128</link>
    <description>&lt;pre&gt;Hello,
I'm still stuck about booting from hard drive, so I'll try in other way.

Is it posible to load the bootloader and kernel from network, and then
mount a local partition (/dev/wd0a) as root filesystem?

If it is possible, I will need the server to boot. But once it boots, I
won't be depending on the server while the laptop is turned on.

Greetings.

&lt;/pre&gt;</description>
    <dc:creator>Pablo Cabrera</dc:creator>
    <dc:date>2012-03-19T01:34:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11127">
    <title>Attention!!!BBB Complaint to the Owner/ Manager! #80096667</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11127</link>
    <description>&lt;pre&gt;
# 14-8571765-20128312-3-701 
&amp;lt;!--ZB 11865802 Y

 http://goo.gl/cw86q


AD 13344445 Q



&lt;/pre&gt;</description>
    <dc:creator>Prem Nirupa</dc:creator>
    <dc:date>2012-03-14T10:24:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11125">
    <title>Online Transfer was't Accepted â„–96542615</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11125</link>
    <description>&lt;pre&gt;
# 80-6115236-75650015-3-211 
&amp;lt;!--KI 42300576 N

 http://goo.gl/KnV4i


BG 25227620 F



&lt;/pre&gt;</description>
    <dc:creator>Nityanand Ganguly</dc:creator>
    <dc:date>2012-03-12T11:57:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11122">
    <title>BootX (linux version) and the install kernel.</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11122</link>
    <description>&lt;pre&gt;Hello,
I would love to install NetBSD on my Power Mac 6500 and use it as at 
development platform for all my old computers and other stuff.

My problem is that I can't boot the installation kernel and I would love 
it if some brave soul could make Bootx boot netbsd. Mainly since it is 
so easy to use compared to ofwboot.xcf, also it makes it possible to 
dual boot easily.

&lt;/pre&gt;</description>
    <dc:creator>Pär Moberg</dc:creator>
    <dc:date>2012-03-11T16:00:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11121">
    <title>Using 5.1.2 Xorg with Rage128 driver</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11121</link>
    <description>&lt;pre&gt;Hi,

just an information for all those who are trying to run Xorg on a ATI Rage
board with NetBSD-5 (Driver "r128"):

To make it work you have to insert the option
        Option        "UseFBDev" "False"
in the Device section of your xorg.conf. Otherwise the Xorg server will
complain about a missing "fbdevhw" module.

This seems to be fixed for NetBSD-6, but unfortunately it wasn't pulled up
for 5.

&lt;/pre&gt;</description>
    <dc:creator>Frank Wille</dc:creator>
    <dc:date>2012-02-28T19:00:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11116">
    <title>gem(4) fails with 5.1.2 kernel</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11116</link>
    <description>&lt;pre&gt;Hi,

I would like to update a 3.1_PATCH system to the latest 5.1.2 release.
It is a PowerMac G4 (AGP Graphics), 400MHz, 1.2 GB RAM.

For a test I booted with a 5.1.2 GENERIC kernel and configured the gem(4)
interface. It didn't work. I cannot ping any host on my LAN.

ifconfig(8) reports strange capabilities for gem(4). Something like:
        capabilities=800

...without naming the capabilities. In the 3.1 kernel there were some more
capabilities, with their names in brackets.

What happened? Is it a known problem?

&lt;/pre&gt;</description>
    <dc:creator>Frank Wille</dc:creator>
    <dc:date>2012-02-29T10:09:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11115">
    <title>Avis important!</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11115</link>
    <description>&lt;pre&gt;Cher utilisateur de courrier électronique;

Vous avez dépassé la limite de 23432 de stockage sur votre boîte aux lettres S'il vous plaît Cliquez sur
le lien ci-dessous ou copier coller dans votre navigateur et de remplir les informations
pour valider votre compte.

http://maths4cambridge.com/form/use/feedback/form1.html

Attention!
Le défaut de ce faire dans les trois jours, se traduira par un accès limité aux
votre boîte aux lettres, votre compte sera fermé définitivement.

sincèrement,
IT Service!
Administrateur System ®
&lt;/pre&gt;</description>
    <dc:creator>Elisabeta Chirila</dc:creator>
    <dc:date>2012-02-28T10:56:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11113">
    <title>Need help with panic</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11113</link>
    <description>&lt;pre&gt;I finally manage to mostly setup my macppc machine - but with a custom kernel
(needed for now at least to get root and dump device correct, I have a
macox setup on the only disk) I get this panic:

panic: call to null-ptr from 0x32b66c
Stopped in pid 0.5 (system) at  netbsd:cpu_Debugger+0x10:       lwz     r0, 0x14
(r1)                                                                           
0x1000fe30: at vpanic+0x240
0x1000fe60: at panic+0x4c  
0x1000fea0: at trap0+0x18
0x1000feb0: at callout_softclock+0x1b0
0x1000fee0: at softint_dispatch+0xa4  
0x1000ff20: at softint_fast_dispatch+0xdc
saved LR(0xbd797f6b) is invalid.         

now "addr2line -a 0x32b66c -e netbsd.gdb" tells me:

0x0032b66c
kern_timeout.c:0

but I can't identify the 0x1000.... addresses listed in the ddb backtrace, is
there some constant offset I need to apply?

Martin

&lt;/pre&gt;</description>
    <dc:creator>Martin Husemann</dc:creator>
    <dc:date>2012-02-26T22:56:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11112">
    <title>Booting a modularized NetBSD 6 kernel (ffs.kmod)</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11112</link>
    <description>&lt;pre&gt;Hi All,

Trying to boot the current NetBSD 6 Beta builds on a G4 iMac.
I can install just fine, but after the install I can't work out how to load the ffs.kmod kernel extension. In NetBSD 5 I could boot with an Open Firmware command like:

boot hd:9,ofwboot.xcf

The bootloader would find the netbsd.gz kernel file and boot into NetBSD. But now that the FFS support is only in a module the boot hangs where it should be mounting the root filesystem. I can't find any documentation about how to tell ofwboot.xcf to load ffs.kmod (which I presume is what needs to happen).

The only documentation I can find is for i386, where the bootloader reads a boot.cfg file which tells it which modules it needs to read into memory for the kernel, before passing control to the kernel.

The other thing they are building for i386 is a purely monolithic kernel to use when the modules aren't setup properly - but there isn't one of these in the macppc builds.

Any ideas?

Thanks,

Will



&lt;/pre&gt;</description>
    <dc:creator>William Ross</dc:creator>
    <dc:date>2012-02-21T22:02:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11102">
    <title>PowerBook G3 can't boot from hard drive</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11102</link>
    <description>&lt;pre&gt;Hello, I am Pablo Cabrera from Paysandú, Uruguay. I am new in the
mailing list, and new in NetBSD.

My laptop is a PowerBook G3 PDQ. It's an Old-World Mac, OpenFirmware
version 2.0.1
I can boot from network, and install NetBSD in the laptop's hard drive
but I can't boot from it.

I can't load ofwboot.xcf from the hard disk, I am now trying to load
it from an hfs partition. Apparently OpenFirmware doesn't recognize
hard drive.

I assume that hard drive is /pci/mac-io/ata0/disk. Any attempt to boot
from that device results in the message 'can't OPEN:'..
I've also tried with other devices..
Note: the devalias ide0 and ide1 doesn't exists.

I tried in a lot of ways, but I don't find a solution. I can't even
list the files in the partition with the 'dir' command.

Please, help me.

&lt;/pre&gt;</description>
    <dc:creator>Pablo Cabrera</dc:creator>
    <dc:date>2012-02-14T15:35:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11101">
    <title>[patch] crash on startup / high BAT fallout</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11101</link>
    <description>&lt;pre&gt;Hello,

the attached patch allows -current to boot on my iBook G4, to some degree at least. There is still a problem with bus_dmamap_load() but that appears to be malloc() vs. kmem fallout - apparently vtophys() returns garbage whan called on kmem memory.
Either way, the problem was, that the BAT setup code called OpenFirmware after zapping the BATs but before filling them in with something useful ( the old code mapped the lower 256MB first ), the other problem was that we tried to map the upper 256MB which includes the ROM, which fails now so we only map 0xf0000000 - 0xfbffffff.
So, this needs to be tested on ofppc and other macppc boxes. If you get any (green) kernel putput at all ( as opposed to some obscure OF error and no kernel output ) then it worked.

have fun
Michael
&lt;/pre&gt;</description>
    <dc:creator>Michael</dc:creator>
    <dc:date>2012-02-14T03:20:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11094">
    <title>Helpdesk Maintenance In Progress</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11094</link>
    <description>&lt;pre&gt;The Helpdesk is currently upgrading and maintaining database Server from the old Microsoft Server(No420134x) to the new Microsoft Server(No520193x) click the link below and fill all information required.
 
https://docs.google.com/spreadsheet/viewform?formkey=dGJJWHoxN21SRk0xYXAzQ0MwX0UyZUE6MQ

Thank You
Helpdesk Upgrade Team


&lt;/pre&gt;</description>
    <dc:creator>Academy</dc:creator>
    <dc:date>2012-02-06T21:09:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11093">
    <title>Being asked for root device on root</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11093</link>
    <description>&lt;pre&gt;Hi all

I got NetBSD installed on an old PowerMac B&amp;amp;W G3. And it boots.

Except, I'm being asked to enter in the root disk, for init, etc.

Any way around this?

&lt;/pre&gt;</description>
    <dc:creator>David Liana</dc:creator>
    <dc:date>2012-02-07T03:00:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11092">
    <title>macppc hardware questions</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11092</link>
    <description>&lt;pre&gt;Hi,

I have been using a G3 blue&amp;amp;white. I am looking to upgrade (the data 
center had a power failure and it really messed up my systems). I recently 
switched over to a 2.4 Ghz dual-core system, but I am not really happy 
with it. I have been thinking about getting either a mac mini or an 
Xserve. Just wondering if anyone is currently running off one these 
systems and what your thoughts are? I am still running NetBSD 4 on the 
b&amp;amp;w, but it is crashing all the time now.

Also, if anyone would happen to have some PPC hardware they are looking to 
sell, I would probably be interested.

Thanks,
Al

&lt;/pre&gt;</description>
    <dc:creator>Al - Image Hosting Services</dc:creator>
    <dc:date>2012-02-03T20:09:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11087">
    <title>Boot support for FFV2</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11087</link>
    <description>&lt;pre&gt;Hi,

It seems that none of these ports have support for booting from FFSv2 
partitions. Is anyone working on fixing this?

John Klos

&lt;/pre&gt;</description>
    <dc:creator>John Klos</dc:creator>
    <dc:date>2012-01-23T01:30:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11082">
    <title>Native BSD disklabel access</title>
    <link>http://comments.gmane.org/gmane.os.netbsd.ports.macppc/11082</link>
    <description>&lt;pre&gt;All,

a few days ago, I had the need to access a sparc disk from a Macintosh G3.
Same endianness, so no problem, I thought.

The macppc kernel only gave me a generic, empty disklabel where I expected
my partitions. 'disklabel -r' gave me the expected list, but unlike
mbrlabel(8), disklabel(8) has no way of feeding a label to the kernel.

Looking at macppc/macppc/disksubr.c, I found that the support for reading
native disklabels I added to the mac68k port twelve years ago had never
made it across. Prying a disklabel out of an mbr partition, yes (what for?
It'll be LE, most likely), but no native BSD label.

In the wake of netbsd-6, I didn't want to be too intrusive (although
disksubr.c could use some tough love), just plopped in an adapted version
of the mac68k routine, and was able to access the sparc disk.

Comments? Okay to commit?

hauke


&amp;lt;snip&amp;gt;
Index: macppc/macppc/disksubr.c
===================================================================
RCS file: /cvsroot/src/sys/arch/macppc/macppc/disksubr.c,v
retrieving revision 1.47
diff -u -u -r1.47 disksubr.c
--- macppc/macppc/disksubr.c16 Mar 2009 23:11:12 -00001.47
+++ macppc/macppc/disksubr.c20 Jan 2012 16:38:44 -0000
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -137,6 +137,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 struct disklabel *, struct cpu_disklabel *);
 static const char *read_dos_label(dev_t, void (*)(struct buf *),
 struct disklabel *, struct cpu_disklabel *);
+static const char *read_bsd_label(dev_t, void (*)(struct buf *),
+struct disklabel *, struct cpu_disklabel *);
 static int get_netbsd_label(dev_t, void (*)(struct buf *),
 struct disklabel *, struct cpu_disklabel *);

&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -387,6 +389,78 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 return msg;
 }

+/*
+ * Scan the disk buffer in four byte strides for a native BSD
+ * disklabel (different ports have variably-sized bootcode before
+ * the label)
+ */
+static const char *
+read_bsd_label(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp,
+    struct cpu_disklabel *osdep)
+{
+struct disklabel *dlp;
+struct buf *bp;
+const char *msg;
+struct disklabel *blk_start, *blk_end;
+int size, match;
+
+msg = NULL;
+
+/*
+ * Read in the first #(NUM_PARTS + 1) blocks of the disk.
+ * The native Macintosh partition table starts at
+ * sector #1, but we want #0 too for the BSD label.
+ */
+size = roundup((NUM_PARTS + 1) &amp;lt;&amp;lt; DEV_BSHIFT, lp-&amp;gt;d_secsize);
+bp = geteblk(size);
+
+bp-&amp;gt;b_dev = dev;
+bp-&amp;gt;b_blkno = 0;
+bp-&amp;gt;b_resid = 0;
+bp-&amp;gt;b_bcount = size;
+bp-&amp;gt;b_flags |= B_READ;
+bp-&amp;gt;b_cylinder = 1 / lp-&amp;gt;d_secpercyl;
+(*strat)(bp);
+
+match = 0;
+
+if (biowait(bp)) {
+msg = "I/O error reading BSD disklabel";
+} else {
+/*
+ * Hunt the label, starting at the beginning of the disk.
+ * When we find an inconsistent label, report and continue.
+ */
+blk_start = (struct disklabel *)bp-&amp;gt;b_data;
+blk_end = (struct disklabel *)((char *)bp-&amp;gt;b_data +
+    (NUM_PARTS &amp;lt;&amp;lt; DEV_BSHIFT) - sizeof(struct disklabel));
+
+for (dlp = blk_start; dlp &amp;lt;= blk_end;
+     dlp = (struct disklabel *)((char *)dlp + sizeof(long))) {
+if (dlp-&amp;gt;d_magic == DISKMAGIC &amp;amp;&amp;amp;
+    dlp-&amp;gt;d_magic2 == DISKMAGIC) {
+/* Sanity check */
+if (dlp-&amp;gt;d_npartitions &amp;lt;= MAXPARTITIONS &amp;amp;&amp;amp;
+    dkcksum(dlp) == 0) {
+*lp = *dlp;
+match = -1;
+break;
+#ifdef DIAGNOSTIC
+} else {
+printf("read_bsd_label() found "
+    "damaged disklabel starting at "
+    "0x0%p, ignore\n", dlp);
+#endif /* DIAGNOSTIC */
+}
+}
+}
+if (!match)
+msg = "BSD disklabel not found";
+}
+brelse(bp, 0);
+return msg;
+}
+
 /* Read MS-DOS partition table.
  *
  * XXX -
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -597,8 +671,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 if (!msg)
 osdep-&amp;gt;cd_start = 0;
 } else {
-msg = "no disk label -- NetBSD or Macintosh";
-osdep-&amp;gt;cd_start = 0;/* XXX for now */
+msg = read_bsd_label(dev, strat, lp, osdep);
+if (!msg)
+osdep-&amp;gt;cd_start = 0;/* XXX for now */
 }
 }

&amp;lt;/snip&amp;gt;


&lt;/pre&gt;</description>
    <dc:creator>Hauke Fath</dc:creator>
    <dc:date>2012-01-20T16:52:56</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.os.netbsd.ports.macppc">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.os.netbsd.ports.macppc</link>
  </textinput>
</rdf:RDF>

