Recent Posts

Pages: 1 2 3 4 [5] 6 7 8 9 10
41
Development & Programming / Re: Debugging ATI drivers for Mac Mini
« Last post by joevt on May 01, 2024, 09:57:34 PM »
What disassembler did you use? IDA? Which version?

The assembly listings show the imported libraries and functions as expected:
VideoServicesLib, NameRegistryLib, PCILib, DriverServicesLib

No unsupported libraries appear to be included. version f100 adds AbsoluteDeltaToDuration but that's not a problem since CIncludes shows that API as going back to Mac OS 8.6.

I don't see a device description, just "TheDriverDescription" as expected. The only difference in TheDriverDescription is the version number changed from 63 to 100.

Comparing the assembly listings would require renaming all the unnamed labels since they have different offsets or positions between version f63 and f100. In MPW you could create scripted menu items with command key short cuts to do the renaming of each label for you. It would work like this: select the label on the left and the label on the right. Choose a new common name for the labels. Have it verify that the new name is unused in both files, then have it rename all occurrences in the old version and the new version and re-compare. I did that with Open Firmware drivers. Open Firmware is different since the labels are order based (1,2,3,4...), rather than offset based, so that when renaming a label in Open Firmware, you could have it automatically rename all labels after that by incrementing there order number that is included in the label name thus greatly reducing the number of renames required.

Is there a modern utility to do a similar compare/rename? Does IDA have a compare binaries option? Can you change the assembly format to use order based names instead of offset based names? I suppose one could easily create a script to rename offset based labels as order based labels.
42
New Member Welcome / Re: New as in finally registering
« Last post by Knezzen on May 01, 2024, 10:12:49 AM »
Welcome to Mac OS 9 Lives! :)
43
New Member Welcome / Re: New as in finally registering
« Last post by Jubadub on May 01, 2024, 08:09:29 AM »
Welcome! I agree, the MDD is definitely the Mac OS sweetspot... Definitely my favorite machine in general. Then again, all of those machines are just really great... there is no going wrong with them.

Hopefully you enjoy your stay here!
44
News, Information & Feedback / Re: We're hiring (and have some ideas)!
« Last post by Jubadub on May 01, 2024, 07:58:04 AM »
First and foremost, there'll be a news section on the front page. Less intended as a "breaking news" but rather as an archive of news for those returning / semi-following developments. And of course it's a great way to show how much life there is still left in OS 9 to outsiders!

I love this part particularly!

"ChatGPT becomes available to Mac OS 9 before iOS"

"Like Torrents? MacTorrent just released"

Etc.

All the other parts are also great! Not just the sections themselves, but also the content already in some of them. "There is no class in 'Classic'!" :) Native booting FTW!

I just bought and got a 17" DELL CRT monitor, too, and the resolution I'm using is precisely 1024x768, @75Hz, and the new website theme just looks stunning. Higher resolutions are also fine!

Incredible job, a lot of work clearly went/is going into this.

Get better soon, @Bolkonskij! (Maybe you can have some propolis, I source my own straight from bee keepers, which will always beat anything with a bar code on it.)
45
New Member Welcome / New as in finally registering
« Last post by thecookfamily on May 01, 2024, 06:40:40 AM »
Hello from the Boston area (35 miles north) I have been to the site a few times while rebuilding my dual 867 MDD. Finally registered to finally contribute to the site. I have not only been rebuilding the MDD, I also dusted off my 400 MHz Blue and White G3 and my PowerBook G4 (which I am trying this from). Been using Macs since 1994 starting with a PowerBook 180. Owned many but the sweet spot is the MDD.
46
News, Information & Feedback / Re: We're hiring (and have some ideas)!
« Last post by Greystash on May 01, 2024, 05:02:38 AM »
It looks great, nice work!! Also works much better in IE5 than the current theme.
Get well soon Bolkonskij!
47
News, Information & Feedback / Re: We're hiring (and have some ideas)!
« Last post by Bolkonskij on May 01, 2024, 03:45:45 AM »
One of the spoils of having three kids in kindergarden / school is that you get free home delivery of whatever this season's virus is. So after the kids were down with 40 C (100F) fever I got a nice bronchitis too, hence my late reply. Sorry!

Well, the surprise is gone :-) I nonetheless want to add a few thoughts. Knezzen approached me asking to code a light theme to add to the forum (as opposed to the original darker theme we already have), so users will have a choice. Then he asked me to have the same for the website and then make both look like one (the man's wishlist never ends :D)

The design is actually Apple's from the early 2000's, so not really much creativity on my part. Kudos to the nameless Apple webdesigner! My challenge was rather to write a theme and website that will look & feel like "one", as Mr. Knezzen would put it :-)

I'm trying my best to keep requirements for both forum theme and website low - Classilla is my target and any machine Classilla runs on should be able to handle it Because if the new software no longer runs on the old hardware, it is worse than the old software :-)

Anyway, since you're already dabbling with the forum theme, I'm attaching a few more screenshots from the website. All taken with Classilla on OS 9 at 1024x768, the basic requirement.

First and foremost, there'll be a news section on the front page. Less intended as a "breaking news" but rather as an archive of news for those returning / semi-following developments. And of course it's a great way to show how much life there is still left in OS 9 to outsiders!

There's sections on application-specific stuff, from games to spreadsheets, which should give newbies and returning OS 9 users a good starting point. Might be useful to either link to some tutorials here in the forum or even placing them on the website.

I think this is the part that Knezzen needs your help - I'm helping with the web dev stuff but I really suck at writing English (not my native language) and won't be much help writing guides and stuff.

Coughing and out ...

Note: I stopped at 90% due to getting sick, so there's definitely inaccuracies in margins and (quite obvious) in font colors and stuff. This will get fixed.
48
News, Information & Feedback / Re: We're hiring (and have some ideas)!
« Last post by Jubadub on May 01, 2024, 01:40:49 AM »
I'm using this theme for now, really liking it so far! I particularly enjoy the "System Folder" icon for unread sections and sub-forums as opposed to regular folder icons, that approach really clicks well!

If the logo isn't final, maybe it will get an MDD upgrade? ;)
49
Development & Programming / Re: Debugging ATI drivers for Mac Mini
« Last post by ssp3 on May 01, 2024, 12:27:03 AM »
Thanks for your input, joevt!

Maybe you could post a link to the ndrv so we know what you're looking at.

First attachment - drivers (extensions) for OS9 made out of OSX ndrvs. f63 is working in OS9, f100 is not.
Second attachment - OSX ndrvs f63 and f100 as extracted from OSX parts by ELN. From his GitHub repo.
Third attachment - PEF Viewer for OSX that I made to work standalone. Works on PPC and Intel under Rosetta.
Fourth attachment - asm and lst files of both PEFs, f63 and f100.
50
Development & Programming / Re: Debugging ATI drivers for Mac Mini
« Last post by joevt on April 30, 2024, 11:12:17 PM »
The compression is exactly defined by the PEF opcodes. I suppose PEF Viewer being a viewer means it doesn't have an option to edit? The only method I tried was to convert the disassembly of a PEF to an assembly file to be compiled by MPW or CodeWarrior PowerPC assembler into a new PEF.

I used Jasik's The Debugger for disassembly and used a script to convert that to assembly. I also used DumpPEF and a script to convert that to assembly. I don't remember how well they work. Jasik's the Debugger produces inconsistent results between the two formats it creates: .list and .asm. list includes hex data and offsets for each line so it might be more useful since you can check the offsets for all the labels to find the bugs.

Other options I haven't tried:
NationalSecurityAgency/ghidra
DBJ314/dePEF-and-disarm

The MPW DumpPEF command calls the compressed data "pidata"
The pidata opcodes are listed in IOGraphics-305.14/IONDRVSupport/IOPEFInternals.h
Code: [Select]
    kPEFPkDataZero              = 0,                            /* Zero fill "count" bytes. */
    kPEFPkDataBlock             = 1,                            /* Block copy "count" bytes. */
    kPEFPkDataRepeat            = 2,                            /* Repeat "count" bytes "count2"+1 times. */
    kPEFPkDataRepeatBlock       = 3,                            /* Interleaved repeated and unique data. */
    kPEFPkDataRepeatZero        = 4                             /* Interleaved zero and unique data. */

To be Mac OS X compatible, an ndrv must import only from a specific set of libraries. CarbonLib is definitely not one of them. Does it say CarbonLib somewhere in the ndrv? Maybe you could post a link to the ndrv so we know what you're looking at.
See IOGraphics-305.14/IONDRVSupport/IONDRVLibraries.cpp for the list of libraries and functions from each library.
Drivers should only use: PCILib, VideoServicesLib, NameRegistryLib, and DriverServicesLib
Apple also allowed some functions from InterfaceLib and PrivateInterfaceLib to make some of its ndrv's compatible with OS X.
Actually, IOGraphics-305.14 is for 10.5.8. If you look at IOGraphics-179.2.1 (for 10.4.11), then you see there's also some functions from the AtiUtils library which is used by the Beige G3's GPU.
XPostFacto may have some kexts that define some other libraries and functions to allow some other ndrv's to be usable. I added some libraries and functions to make my modified sixty6 ndrv usable (for video out of Power Mac 8600).

I'm not sure it's possible to create a ndrv that is compatible with OS X but not Mac OS 9?

An ndrv is suppose to have two exports:
TheDriverDescription - data
DoDriverIO - code

https://developer.apple.com/library/archive/documentation/Hardware/DeviceManagers/pci_srvcs/pci_cards_drivers/Designing_PCI_Cards_Drivers.pdf
Pages: 1 2 3 4 [5] 6 7 8 9 10