Install OpenBSD on imac - radeon drm problems
Dear All, Since i love OBSD, for instance i have it in my panasonic cf-30, dell precision 690 and a samsung Laptop, i would like to install it in an imac mid 2011. The problem is that after install, the first boot always goes blank. What happened is: - The install goes as perfect as always. - When it comes to the first boot, it shows the "error: [drm:pid0:radeon_read_platform_bios] *ERROR* bios size zero or checksum mismatch" and CRASH!!! - I did boot -c, but it freezes on UKC> prompt and do not let me disable the radeondrm, actually i could only shut it down by the button or power outlet. - I did install both 6.2 and 27feb current snapshot and it came with the same error. I did boot from the bsd.rd of the installer, but i couldn't save the dmesg.txt, as i can see the USB by "sysctl hw.disknames" and it shows something like "sd0, rd0, sd1, sd2" (sd0 internal disk, rd0 ramdisk, sd1 usb installer, sd2 usb to backup the dmesg) but when i do a "disklabel sd2" it returns "no directory" so i could not do something like: #disklabel sd2 #mount /dev/sd2a /mnt #dmesg > /mnt/dmesg.txt to back up the info and add it to this mail. Could you please give me a hint ? Thank you so much in advance :) Manuel Solis PD Silly tought: can i manually install the firmware for the radeon card from the installer shell? like some creepy thing as: cp raderon.fw rsd0a:/usr/AllDriverGoesHereWhenItBootsSoItWontCrashAgain/ (it is intentionally silly command but you get the idea)
Re: OpenBSD on iMac
On Fri, Apr 17, 2015 at 09:06:55AM +0200, Martijn van Duren wrote: > 3) When doing an ifconfig athn0 scan I get a kernel panic. Because my USB > keyboard stops working after the panic I can't provide a trace. I don't need > wifi on this system, so this isn't an issue with me. > athn0 at pci3 dev 0 function 0 "Atheros AR9300" rev 0x01: apic 2 int 17 > athn0: AR9380 rev 3 (2T3R), ROM rev 0, address 00:00:ef:be:ad:de Known issue. We've removed this device from the driver's list for 5.7. The support never worked, the code was enabled without testing on hardware. CVSROOT:/cvs Module name:src Changes by: s...@cvs.openbsd.org2014/11/11 09:26:28 Modified files: sys/dev/pci: if_athn_pci.c Log message: Stop athn(4) from attaching to AR9300 devices for now. There are unresolved bugs that panic the kernel and it's unclear if any such device works at all. Anyone in possession of a working AR9300 device that stops working with this commit please talk to me. I've only seen evidence of this code not working. ok kirby@ mpi@ phessler@ dcoppa@
Re: OpenBSD on iMac
On 04/17/15 11:07, Jonathan Gray wrote: On Fri, Apr 17, 2015 at 09:57:49AM +0200, Martijn van Duren wrote: On 04/17/15 09:36, Alexandre Ratchov wrote: On Fri, Apr 17, 2015 at 09:06:55AM +0200, Martijn van Duren wrote: Hello misc@, I just got a replacement system (iMac 12,1) at work, so I decided to go ahead and install OpenBSD on it. To do so I installed refind through debian and created a GPT/MBR hybrid. Most of the system runs perfectly (see dmesg pr0n below), but there are a couple of minor inconveniences: 1) The sound from the speakers sound like they come from a cheap cellphone. You mean the level is to low? Does "mixerctl outputs.spkr_boost=on" improves things? It's not that the volume is low, but it sounds like it sounds rather high pitched and a narrow with a narrow bandwith. Does undoing the gpio quirk for that subid change anything? Index: sys/dev/pci/azalia_codec.c === RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v retrieving revision 1.165 diff -u -p -r1.165 azalia_codec.c --- sys/dev/pci/azalia_codec.c 10 Dec 2014 14:18:11 - 1.165 +++ sys/dev/pci/azalia_codec.c 17 Apr 2015 09:03:22 - @@ -65,8 +65,7 @@ azalia_codec_init_vtbl(codec_t *this) switch (this->vid) { case 0x10134206: this->name = "Cirrus Logic CS4206"; - if (this->subid == 0xcb8910de || /* APPLE_MBA3_1 */ - this->subid == 0x72708086) { /* APPLE_MBA4_1 */ + if (this->subid == 0xcb8910de) { /* APPLE_MBA3_1 */ this->qrks |= AZ_QRK_GPIO_UNMUTE_1 | AZ_QRK_GPIO_UNMUTE_3; } This renders my system completely mute.
Re: OpenBSD on iMac
On Fri, Apr 17, 2015 at 09:57:49AM +0200, Martijn van Duren wrote: > On 04/17/15 09:36, Alexandre Ratchov wrote: > >On Fri, Apr 17, 2015 at 09:06:55AM +0200, Martijn van Duren wrote: > >>Hello misc@, > >> > >>I just got a replacement system (iMac 12,1) at work, so I decided to go > >>ahead and install OpenBSD on it. To do so I installed refind through debian > >>and created a GPT/MBR hybrid. > >> > >>Most of the system runs perfectly (see dmesg pr0n below), but there are a > >>couple of minor inconveniences: > >>1) The sound from the speakers sound like they come from a cheap cellphone. > > > >You mean the level is to low? Does "mixerctl outputs.spkr_boost=on" > >improves things? > > It's not that the volume is low, but it sounds like it sounds rather high > pitched and a narrow with a narrow bandwith. Does undoing the gpio quirk for that subid change anything? Index: sys/dev/pci/azalia_codec.c === RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v retrieving revision 1.165 diff -u -p -r1.165 azalia_codec.c --- sys/dev/pci/azalia_codec.c 10 Dec 2014 14:18:11 - 1.165 +++ sys/dev/pci/azalia_codec.c 17 Apr 2015 09:03:22 - @@ -65,8 +65,7 @@ azalia_codec_init_vtbl(codec_t *this) switch (this->vid) { case 0x10134206: this->name = "Cirrus Logic CS4206"; - if (this->subid == 0xcb8910de ||/* APPLE_MBA3_1 */ - this->subid == 0x72708086) {/* APPLE_MBA4_1 */ + if (this->subid == 0xcb8910de) {/* APPLE_MBA3_1 */ this->qrks |= AZ_QRK_GPIO_UNMUTE_1 | AZ_QRK_GPIO_UNMUTE_3; }
Re: OpenBSD on iMac
On 04/17/15 09:36, Alexandre Ratchov wrote: On Fri, Apr 17, 2015 at 09:06:55AM +0200, Martijn van Duren wrote: Hello misc@, I just got a replacement system (iMac 12,1) at work, so I decided to go ahead and install OpenBSD on it. To do so I installed refind through debian and created a GPT/MBR hybrid. Most of the system runs perfectly (see dmesg pr0n below), but there are a couple of minor inconveniences: 1) The sound from the speakers sound like they come from a cheap cellphone. You mean the level is to low? Does "mixerctl outputs.spkr_boost=on" improves things? It's not that the volume is low, but it sounds like it sounds rather high pitched and a narrow with a narrow bandwith. 2) When plugging in headphones the main speakers are muted, but there's no sound from the headphones themselves. I tried setting sndiod to channels 0:1 (default - main speakers), 2:3 (main speakers) and 4:5 (no sound) You could set sndiod_flags to "-c0:3" to make it output to all dacs. Does this help? This doesn't help unfortunately.
Re: OpenBSD on iMac
On Fri, Apr 17, 2015 at 09:06:55AM +0200, Martijn van Duren wrote: > Hello misc@, > > I just got a replacement system (iMac 12,1) at work, so I decided to go > ahead and install OpenBSD on it. To do so I installed refind through debian > and created a GPT/MBR hybrid. > > Most of the system runs perfectly (see dmesg pr0n below), but there are a > couple of minor inconveniences: > 1) The sound from the speakers sound like they come from a cheap cellphone. You mean the level is to low? Does "mixerctl outputs.spkr_boost=on" improves things? > 2) When plugging in headphones the main speakers are muted, but there's no > sound from the headphones themselves. I tried setting sndiod to channels 0:1 > (default - main speakers), 2:3 (main speakers) and 4:5 (no sound) You could set sndiod_flags to "-c0:3" to make it output to all dacs. Does this help?
OpenBSD on iMac
Hello misc@, I just got a replacement system (iMac 12,1) at work, so I decided to go ahead and install OpenBSD on it. To do so I installed refind through debian and created a GPT/MBR hybrid. Most of the system runs perfectly (see dmesg pr0n below), but there are a couple of minor inconveniences: 1) The sound from the speakers sound like they come from a cheap cellphone. 2) When plugging in headphones the main speakers are muted, but there's no sound from the headphones themselves. I tried setting sndiod to channels 0:1 (default - main speakers), 2:3 (main speakers) and 4:5 (no sound) 3) When doing an ifconfig athn0 scan I get a kernel panic. Because my USB keyboard stops working after the panic I can't provide a trace. I don't need wifi on this system, so this isn't an issue with me. $ mixerctl -v inputs.dac-2:3_mute=off [ off on ] inputs.dac-2:3=154,154 inputs.dac-0:1_mute=off [ off on ] inputs.dac-0:1=154,154 record.adc-2:3_source=line-in [ line-in ] record.adc-2:3_mute=off [ off on ] record.adc-2:3=124,124 record.adc-0:1_source=mic [ mic ] record.adc-0:1_mute=off [ off on ] record.adc-0:1=124,124 record.dig-adc-0:1_sou=SPDIF-in [ SPDIF-in ] outputs.spkr_source=dac-2:3 [ dac-2:3 ] outputs.spkr_boost=off [ off on ] outputs.hp_source=dac-0:1 [ dac-0:1 ] outputs.spkr2_source= [ ] inputs.line-in=85,85 inputs.mic=85,85 outputs.mic_dir=input-vr80 [ none input input-vr0 input-vr50 input-vr80 ] outputs.SPDIF_source=dig-dac-0:1 [ dig-dac-0:1 ] outputs.hp_sense=unplugged [ unplugged plugged ] outputs.line-in_sense=unplugged [ unplugged plugged ] outputs.SPDIF-in_sense=unplugged [ unplugged plugged ] outputs.spkr_muters=hp { hp } outputs.master=155,155 outputs.master.mute=off [ off on ] outputs.master.slaves=dac-2:3,dac-0:1 { dac-2:3 dac-0:1 } record.volume=124,124 record.volume.mute=off [ off on ] record.volume.slaves=adc-2:3,adc-0:1 { adc-2:3 adc-0:1 line-in mic } outputs.mode=analog [ analog digital ] record.mode=analog [ analog digital ] $ sudo pcidump -v Password: Domain /dev/pci0: 0:0:0: Intel Core 2G Host 0x: Vendor ID: 8086 Product ID: 0100 0x0004: Command: 0006 Status: 2090 0x0008: Class: 06 Subclass: 00 Interface: 00 Revision: 09 0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line Size: 00 0x0010: BAR empty () 0x0014: BAR empty () 0x0018: BAR empty () 0x001c: BAR empty () 0x0020: BAR empty () 0x0024: BAR empty () 0x0028: Cardbus CIS: 0x002c: Subsystem Vendor ID: 8086 Product ID: 2010 0x0030: Expansion ROM Base Address: 0x0038: 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00 0x00e0: Capability 0x09: Vendor Specific 0:1:0: Intel Core 2G PCIE 0x: Vendor ID: 8086 Product ID: 0101 0x0004: Command: 0007 Status: 0010 0x0008: Class: 06 Subclass: 04 Interface: 00 Revision: 09 0x000c: BIST: 00 Header Type: 81 Latency Timer: 00 Cache Line Size: 40 0x0010: 0x0014: 0x0018: Primary Bus: 0 Secondary Bus: 1 Subordinate Bus: 1 Secondary Latency Timer: 00 0x001c: I/O Base: 20 I/O Limit: 20 Secondary Status: 2000 0x0020: Memory Base: a880 Memory Limit: a880 0x0024: Prefetch Memory Base: 9001 Prefetch Memory Limit: 9ff1 0x0028: Prefetch Memory Base Upper 32 Bits: 0x002c: Prefetch Memory Limit Upper 32 Bits: 0x0030: I/O Base Upper 16 Bits: I/O Limit Upper 16 Bits: 0x0038: Expansion ROM Base Address: 0x003c: Interrupt Pin: 01 Line: ff Bridge Control: 0008 0x0088: Capability 0x0d: PCI-PCI 0x0080: Capability 0x01: Power Management 0x0090: Capability 0x05: Message Signaled Interrupts (MSI) 0x00a0: Capability 0x10: PCI Express Link Speed: 5.0 / 5.0 GT/s Link Width: x16 / x16 0:22:0: Intel 6 Series MEI 0x: Vendor ID: 8086 Product ID: 1c3a 0x0004: Command: 0006 Status: 0010 0x0008: Class: 07 Subclass: 80 Interface: 00 Revision: 04 0x000c: BIST: 00 Header Type: 80 Latency Timer: 00 Cache Line Size: 00 0x0010: BAR mem 64bit addr: 0xa8907100/0x0010 0x0018: BAR empty () 0x001c: BAR empty () 0x0020: BAR empty () 0x0024: BAR empty () 0x0028: Cardbus CIS: 0x002c: Subsystem Vendor ID: 8086 Product ID: 7270 0x0030: Expansion ROM Base Address: 0x0038: 0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00 0x0050: Capability 0x01: Power Management 0x008c: Capability 0x05: Message Signaled Interrupts (MSI) 0:26:0: Intel unknown 0x: Vendor ID: 8086 Product ID: 1c2c 0x0004: Command: 0005 Status: 0290 0x0008