netkas.org

Netkas blog.

Archive for the 'Bugs' Category

APSL violation.

As we recently discovered, psy’s DUBL is based on opensource boot-132

here is small part of APSL

2.1 Unmodified Code. You may use, reproduce, display, perform, internally distribute within Your organization, and Externally Deploy verbatim, unmodified copies of the Original Code, for commercial or non-commercial purposes, provided that in each instance:

(a) You must retain and reproduce in all copies of Original Code the copyright and other proprietary notices and disclaimers of Apple as they appear in the Original Code, and keep intact all notices in the Original Code that refer to this License; and

(b) You must include a copy of this License with every copy of Source Code of Covered Code and documentation You distribute or Externally Deploy, and You may not offer or impose any terms on such Source Code that alter or restrict this License or the recipients’ rights hereunder, except as permitted under Section 6.

2.2 Modified Code. You may modify Covered Code and use, reproduce, display, perform, internally distribute within Your organization, and Externally Deploy Your Modifications and Covered Code, for commercial or non-commercial purposes, provided that in each instance You also meet all of these conditions:

(a) You must satisfy all the conditions of Section 2.1 with respect to the Source Code of the Covered Code;

(b) You must duplicate, to the extent it does not already exist, the notice in Exhibit A in each file of the Source Code of all Your Modifications, and cause the modified files to carry prominent notices stating that You changed the files and the date of any change; and

(c) If You Externally Deploy Your Modifications, You must make Source Code of all Your Externally Deployed Modifications either available to those to whom You have Externally Deployed Your Modifications, or publicly available. Source Code of Your Externally Deployed Modifications must be released under the terms set forth in this License, including the license grants set forth in Section 3 below, for as long as you Externally Deploy the Covered Code or twelve (12) months from the date of initial External Deployment, whichever is longer. You should preferably distribute the Source Code of Your Externally Deployed Modifications electronically (e.g. download from a web site).

So, here is email I sent to them on 29 Oct., and got no answer:

Hello,

It was recently discovered that part of your RebelEFI, the DUBL is based on opensource boot-132, which is provided under APSL2 terms.

I downloaded trial demo from your site, and want to get sources of DUBL as well, where can I get them?

Also there is no copy of APSL license comes with DUBL.

Enjoy

Found this link, translated to en – DUBL extracted

original in russian – кишки dubl

There is complete content of DUBL, including kexts.

lets see what is the DUBL, it’s clearly see that it is boot-132 based bootloader, which is under APSL, so, psys<whatever>, where is sources ?

here is some strings that matched in boot-132 based pc-efi(u can check any other boot-132 based booter like Chameleon, boot-think) and DUBL(filename – cdboot):

Memory allocation error (0x%x, 0x%x)

whole blocks:

VESA
VESA v%d.%d %d%s (%s)
Video modes supported:
Mode %x: %dx%dx%d mm:%d attr:%x
(Press a key to continue…)
Graphics Mode
Text Mode

Driver-%lx
kernel compression is bad
size mismatch from lzss: %x
adler mismatch

Timeout
Scanning device %x…
CD-ROM Prompt
Press any key to start up from CD-ROM, or press F8 to enter startup options.
CD-ROM Option Key
Press any key to enter startup options.
Use
keys to select the startup volume.

BIOS reported memory ranges:
Base 0x%08x%08x,
length 0x%08x%08x, type %d

Resetting BIOS device %xh
raw disk read not sector aligned
Block %d Sectors %d
raw disk write not sector aligned
EBIOS write error: %s

/com.apple.boot.P/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
/com.apple.boot.R/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
/com.apple.boot.S/Library/Preferences/SystemConfiguration/com.apple.Boot.plist

I hope this is enough, because there is much more.

Parasites, such parasites.

You all know who I’m talking about.

HPETDevice kext

This kext creates HPET device in ioreg, so you dont need(if you need) to edit DSDT to get it.

Originaly I created this kext for myself, because if HPET was enabled in DSDT then my pci wifi device was loosing interrupt and wasnt working, so this kext is workaround for it.

You can use it if you want to get HPET device in ioreg and are lazy to edit DSDT.

by default it uses these parametrs for HPET device (in Info.plist):

<key>base-address</key>
<integer>4275044352</integer>
<key>base-length</key>
<integer>1024</integer>
<key>irq</key>
<integer>12</integer>

which correspond to this:

Memory32Fixed (ReadWrite,
0xFED00000, // Address Base
0×00000400, // Address Length
)

I dont recommend editing irq :) .

The kext, for use with snow leopard:
HPETDevice.tar.bz2

Leopard version

OpenCL works better on rv770 in 10.6.2

After installing ATI kexts and OpenCL/OpenGL frameworks from new 10.6.2 beta its possibly to use now Galaxies demo, also now we have more compute units (4->10)

[Platform 0]
Name: Apple
Vendor: Apple
Version: OpenCL 1.0 (Sep 29 2009 21:45:56)
Profile: FULL_PROFILE

2 OpenCL devices found!

[Device 0]
Name: Radeon HD 4870
Vendor: AMD
Type: GPU
Device Version: OpenCL 1.0
Driver Version: 1.0
Compute Units: 10

Free Image Hosting at www.ImageShack.us

also bandwidth increased few times

/Developer/GPU Computing/OpenCL/bin/darwin/release/oclBandwidthTest Starting…

Running on…

Device Radeon HD 4870

Quick Mode
Host to Device Bandwidth for Pageable memory, direct access

Transfer Size (Bytes) Bandwidth(MB/s)
33554432 4619.7

Quick Mode
Device to Host Bandwidth for Pageable memory, direct access

Transfer Size (Bytes) Bandwidth(MB/s)
33554432 4955.3

Quick Mode
Device to Device Bandwidth

Transfer Size (Bytes) Bandwidth(MB/s)
33554432 19711.7

TEST PASSED

p.s. not recomended for users who need qe_ci_exotic

Update about nvidia driver’s bugs

Remember this ?

Recently tested 191.00 drivers: hdmi audio finaly works, clocks throtling seems to work properly again, except when hdmi tv connected or movie played – always in 3d mode

Still screen glitches (horizontal stripes, as you can see on video from that post) when driver changes clocks of vga card, same glitches exist in snow leopard.

fix for Acer laptops

Some acer laptops (5920 for example) freezes sometimes durring osx boot, before root partition mounted.

It seems to be caused by AppleUSBUHCI.kext

and here is how to fix it:

1) open this file /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBUHCI.kext/Contents/Info.plist (you need root rights to edit this file)

2) find this text there :

<key>OSBundleRequired</key>
<string>Root</string>

and replace it with

<key>OSBundleRequired</key>
<string>Safe Boot</string>

3) run this command to update caches

sudo touch /System/Library/Extensions/IOUSBFamily.kext /System/Library/Extensions

4) done

Intel ATA support for Snow Leopard

Default AppleIntelPIIXATA.kext makes kernel panic in snowleopard.

here is 32/64-bit kext to make ata work in snow leopard.

just install to /Extra and enjoy.

second ata controller (sata ports 5 and 6) doesnt work in this release.

link to kext

P.S. usefull for ICH6/7/8/9/10 with ahci disabled and for lappies – many of them have dvd drive attached to ide connector.

About Snow kitty 10a421

Dsmos arent working anymore(and its not easy to fix it)

so, you will need decrypted files and install them manualy (until somebody will make installer), dont forget to correct persmissions on files after installing it.

You can find files in irc.osx86.hu #snowleopard, topic, link named decrypts.

2.5 GT/S, is it really an issue?

Many radeionhd 48×0 and geforce gtx 260/28x owners with pciev2.0 compatible motherboard had notified they have 2.5 GT/S speed link for card (in system profiler -> pci cards)

normal link speed for pcieV2.0 is 5GT/s , 2.5GT/s is a speed of pcieV1, but, maybe its just cosmetic ?

here is part of output from lspci -vv, from pciutils pkg by joblo

01:00.0 VGA compatible controller: ATI Technologies Inc RV770 [Radeon HD 4850] (prog-if 00 [VGA controller])
Subsystem: ATI Technologies Inc Unknown device 0502
….
Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
….
LnkCap: Port #0, Speed 5GT/s, Width x16, ASPM L0s L1, Latency L0 <64ns, L1 <1us
ClockPM- Suprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Capabilities: [a0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+
Address: 00000000fee00000 Data: 40a6
Capabilities: [100] #1002

Next Page »