Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
90 user(s) are online (45 user(s) are browsing Forums)

Members: 0
Guests: 90

more...

Headlines

Forum Index


Board index » All Posts




Re: Tracing
Home away from home
Home away from home


@kas1e

Perhaps it crashes if its a task that calls the function and not a process. so you better check if it’s a process first.

ULONG APICALL Patched_CallHookPkt(struct UtilityIFace *Selfstruct Hook *HookAPTR objectAPTR message)  
{
    
struct Process *process = (struct Process *)IExec->FindTask(NULL); 
    if (
IS_PROCESS(process))
    {
        
struct CommandLineInterface *cli BADDR(process->pr_CLI); 

        if(
cli)
        {
            static 
char buffer[128];
            
IDOS->CopyStringBSTRToC(cli->cli_CommandName,buffer,sizeof(buffer));
        } 
    }

    return 
Original_CallHookPkt(SelfHookobjectmessage);      
}


Edited by LiveForIt on 2024/5/3 16:11:35
Edited by LiveForIt on 2024/5/3 16:12:45
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Quite a regular
Quite a regular


@Templario

Now I have the gtlayout library installed and SFSSalv it works and run well but my partitions,the OS4.1 ones appear.

What can I do now?

Amiga 500 1MB Chip RAM with ACA 500+ACA1232,CD32,Amiga 1300 030/50 Mhz,32MB (now on my hands at least)and Amiga One G3 XE PPC 800 Mhz,ATI Radeon 9250 128 MB,256 MB RAM,Seagate 200 GB HD,2 working DVD drives,X-Arcade double for MAME,Sil0680,4 USB ports,LG
Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Quite a regular
Quite a regular


@Templario

No a mi no se me doblan tan facilmente los pins de los discos duros,solo me ha pasado con la ACA500.

Actualmente solo tengo un disco duro USB externo de 2 TB.Tengo mucho espacio en el.

Sobretodo quiero recuperar mis datos porque tengo ahi el emulador de SNES,el MAME y un monton de cosas que no recuerdo.Ah! Y mis descargas de Internet que ocupan muchos GBs.

Ahora he bajado el SFS de Os4depot y el programa de SFSSalv me pide la gtlayout.library.

Amiga 500 1MB Chip RAM with ACA 500+ACA1232,CD32,Amiga 1300 030/50 Mhz,32MB (now on my hands at least)and Amiga One G3 XE PPC 800 Mhz,ATI Radeon 9250 128 MB,256 MB RAM,Seagate 200 GB HD,2 working DVD drives,X-Arcade double for MAME,Sil0680,4 USB ports,LG
Go to top


Re: Attempting to upgrade Sam 440 with an R7 240 or HD 7770
Not too shy to talk
Not too shy to talk


Question is, can I get Radeon HD 77XX - 79XX card work with this HW and SW? Or Am I spending money and time without a possibility to succes?

I have a "Enhancer Software, PowerPC version 4.X", should these drivers work with Sam 440EP Flex?

Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Quite a regular
Quite a regular


@MamePPCA1
Una solución rápida y que yo he usado con MOS es tener dos discos duros con el sistema, así en caso de aparente catástrofe tener un segundo de repuesto, y pinchar el segundo como auxiliar y tratar de arreglarlo con el sustituto, pero hay que tener paciencia y sobretodo no doblar los pines de los discos duros.

Go to top


Re: Compiling qemu X64 for OS4.1 (Ryzen) and also other CPU (MAC)
Just can't stay away
Just can't stay away


@white
No, the cards on your techpowerup.com links are old Radeon 7000 cards with only 32 MB RAM, not Radeon HD cards.
Should be the same as the Micro-A1 onboard gfx, works with ATIRadeon.chip and would be better than nothing at all (SM50x emulation), but an ancient, 32 MB gfx card isn't much fun either.

@geennaam posted GfxBench2D results with all data on https://ftp.hdrlab.org.nz/benchmark/gf ... 2d/OS/AmigaOS/Result/2773
Quote:
Radeon HD 7800 Series
Product ID: 0x6810, Vendor ID: 0x1002
Sub-Product ID: 0x3030, Sub-Vendor ID: 0x1462
2 GB RAM
RadeonHD.chip version 3.7
3.7 is included in Enhancer Software, i.e. you don't have to additionally buy the RadeonHD V5 driver for it.

Go to top


Re: Compiling qemu X64 for OS4.1 (Ryzen) and also other CPU (MAC)
Not too shy to talk
Not too shy to talk


@MartinW

Quote:
Obviously feel free to guess. I’ll just go back to what I was doing.


I didn't give this as a guess. I was basing it on material about AOS4 and which cards work best.
Unfortunately, only @geennaam probably will no longer visit this forum and will not comment.
It's a shame, because he was probably the only person who was very open to new solutions and full of enthusiasm in what he was doing.
His software has been treated as unlicensed, his violation fully accepted and his point of view as a code writer not accepted.

Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Quite a regular
Quite a regular


@Hypex

I tried BackItAllUp,but I don't see the point on how to use it.

Any ideas?

Amiga 500 1MB Chip RAM with ACA 500+ACA1232,CD32,Amiga 1300 030/50 Mhz,32MB (now on my hands at least)and Amiga One G3 XE PPC 800 Mhz,ATI Radeon 9250 128 MB,256 MB RAM,Seagate 200 GB HD,2 working DVD drives,X-Arcade double for MAME,Sil0680,4 USB ports,LG
Go to top


Re: Tracing
Home away from home
Home away from home


Ok thanks to Andrea find out a way to get name of binary from the findtask(), but now have some issue : i do patch CallHookPkt(), and instert there that:

// patched functions
ULONG APICALL Patched_CallHookPkt(struct UtilityIFace *Selfstruct Hook *HookAPTR objectAPTR message) {

    
struct Process *process = (struct Process *)IExec->FindTask(NULL);
    
struct CommandLineInterface *cli BADDR(process->pr_CLI);

    if(
cli) {
        static 
char buffer[128];
        
IDOS->CopyStringBSTRToC(cli->cli_CommandName,buffer,sizeof(buffer));
    }

    return 
Original_CallHookPkt(SelfHookobjectmessage);        
}


Because cli_CommandName is BPTR, i had to do this conversion and buffer copy (to be able later to compare with argv[1] name).

So, CallHookPkt uses everywhere and there a lot of it, but once i have by string with CopyStrinBSTRToC(), then after a second i simple crashes in dopusclock_hook() which seems to use a lot of CallHookPkt()s.

Question is why ? I can't call CopyStringBSTRToC in such a patched function ? Or it should be done differently ? All i need is to compare argv[1] with the ComandName, and if it equal, then, and only then, do my stuff, in other ways keep back to original.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Quite a regular
Quite a regular


@Hypex

OK mate!!! I will check all you say if I can.

For now I will replace my battery for a one that I don't know if it's old or new.

DH0: is ticked now as "mount" and "boot" on MediaToolBox.And yes SLB was removed days ago I believe.

And yes strange things happens on my AmigaOne X5000 tower as it turns off and then you have to push again the button in order to boot or see the U-Boot screen.

If not maybe I will go for the BackItUp utilitie,but for now I don't know how to do it

Amiga 500 1MB Chip RAM with ACA 500+ACA1232,CD32,Amiga 1300 030/50 Mhz,32MB (now on my hands at least)and Amiga One G3 XE PPC 800 Mhz,ATI Radeon 9250 128 MB,256 MB RAM,Seagate 200 GB HD,2 working DVD drives,X-Arcade double for MAME,Sil0680,4 USB ports,LG
Go to top


Re: Odyssey 1.23 progress: r5 RC2
Not too shy to talk
Not too shy to talk


is there a way to expand the listview ?

for example when you go to Mantis bug tracker to report bug in a WHDLoad slave, you can not select a game past DragonStrike which is annoying.

have a test here and select a game past D letter...
http://mantis.whdload.de/main_page.php

Go to top


Re: Attempting to upgrade Sam 440 with an R7 240 or HD 7770
Quite a regular
Quite a regular


@Elwood

If you have not and have a chance to please test again with the RadeonHD version 5.20 driver

Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Just popping in
Just popping in


@MamePPCA1

Sorry yes for Workbench volume in MediaToolBox do tick "mount" and "boot" as well. All Amiga volumes should be marked mount. Only bootable volumes like Workbench should be marked as boot.

Though if you can see them from the pen drive and they show up on Workbench I don't know why they wouldn't work on normal boot.

For the SLB just remove any on there. So as it turns out the X5000 boot loader is on the SD card. You need to update it with the UpdateAmigaBoot command.

You may want to try testing a new battery as well. Sometimes these boards start doing funny things when the charge had been draining for a few years. One symptom commonly seen is issues with power on/off. If it is old definitely get a new one just to be sure.

Also, if you go the back up route, keep in mind that for Amiga files in places like your Workbench they need to be copied to an Amiga file system like an SFS formatted volume on your pen drive.

Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Quite a regular
Quite a regular


@Templario

Si ya lo se,lo que pasa es que mientras mis 3 particiones no aparecen o aparezcan,no se como acceder de momento a mi AmigaOS 4.1
DH0: "Volume" o particion.Mira que lo he discutido por messenger hoy con Steffen Haeuser (autor del MAME para AmigaOS 4.1)

Mis datos de momento estan como en el aire...

¿que puedo hacer?

What can I do?

Amiga 500 1MB Chip RAM with ACA 500+ACA1232,CD32,Amiga 1300 030/50 Mhz,32MB (now on my hands at least)and Amiga One G3 XE PPC 800 Mhz,ATI Radeon 9250 128 MB,256 MB RAM,Seagate 200 GB HD,2 working DVD drives,X-Arcade double for MAME,Sil0680,4 USB ports,LG
Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Quite a regular
Quite a regular


@Elwood

Quote:
Elwood wrote:@MamePPCA1

Yes, format = erase everything.
So you should backup all your data before formatting. And when it's done, you can replace all your data on the new partitions.


Format=erase everything...OK.

To backup you can use BackUp (68k) or BackItAllUp.

Yes but how can I transfer these files? Maybe on pc to anAmigaOS 4,1 pendrive?

"Mount" means the partition will be "enabled" so you will be able to use the files on that partition.
"Boot" means you can place an AmigaOS system on that partition (C, Devs,...) and you can boot from it.


Format=erase everything...OK.

Yes but how can I transfer these files? Maybe on pc to an AmigaOS 4,1 pendrive?

OK but how can I mount (because I did with mounter) my 3 partitions and make it visible and usable inside my Workbench?

I really need a tool to backup my Workbench files and that compatible to AmigaOS 4.1.

Amiga 500 1MB Chip RAM with ACA 500+ACA1232,CD32,Amiga 1300 030/50 Mhz,32MB (now on my hands at least)and Amiga One G3 XE PPC 800 Mhz,ATI Radeon 9250 128 MB,256 MB RAM,Seagate 200 GB HD,2 working DVD drives,X-Arcade double for MAME,Sil0680,4 USB ports,LG
Go to top


Re: Compiling qemu X64 for OS4.1 (Ryzen) and also other CPU (MAC)
Quite a regular
Quite a regular


@white

The card is much too old and can only be used via a PCIe to PCI bridge. You would probably have Warp3d (MiniGL) available under amigaOs4.1. Warp3d Nova (GLes2) does not work with these old cards.

As I understand it, an AMD Radeon R9 270/x is the best card to use for full 3d acceleration including Warp3D Nova under Qemu/Pegasos2. This card has 2 GB memory.

Here you have an example of this card:

https://www.techpowerup.com/gpu-specs/radeon-r9-270x.c2466

Unfortunately @geennaam didn't give enough information about which R9 270x he used exactly.

Here again the thread about it:

https://www.amigans.net/modules/newbb/ ... id=147761#forumpost147761

However, AmigaOs4.1 does not provide a driver for this card and you would have to use additional software (Enhancer Software) which provides current graphics card drivers among others. And you probably need a board with 2 PCIe slots.

So we have no proof that it actually works as it has only been tested by one user and there is no real useful information about it.


Edited by Maijestro on 2024/5/2 16:53:07
Edited by Maijestro on 2024/5/2 17:15:34
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE
Go to top


Re: A1222 support in the SDK and problems
Not too shy to talk
Not too shy to talk


@all
I have another question, about alignment:
this code is compilled with -mspe -mcpu=8540 -mfloat-gprs=double -mabi=spe ( i.e. for SPE)
double X __attribute__ ((aligned (64)));
...
main(){
X=0.499975;


When compilled without optimalization, allways generated guru "error of alignment type"
When I compilled it with -O1, it runs normally.

I tried with and without __attribite__, static, also X=(double)0.499975; ... allways with the same result.

Which from optimize parameters should cause the alignment?
Or are there another way howto allign it?

AmigaOS3: Amiga 1200
AmigaOS4: Micro A1-C, AmigaOne XE, Pegasos II, Sam440ep, Sam440ep-flex, AmigaOne X1000
MorphOS: Efika 5200b, Pegasos I, Pegasos II, Powerbook, Mac Mini, iMac, Powermac Quad
Go to top


Re: Tracing
Home away from home
Home away from home


I dont need stack trace, by trace i mean ability to catch call to some function of library , when called from given binary. Like snoopy, but not all of them from all processes

I mean tracer is standalone tool, and binary to trace too. I cant findtask == mybinarytask, because trace tool dont know what mybinarytask are: i need to find it from name of binary and probably given path. I.e. how i can know for sure from tracer the mybinarytask, if i only provide name and maybe path to binary to trace ? Did return by findtask give a name of binary and a full path to ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top


Re: Tracing
Home away from home
Home away from home


@kas1e

you can't stack trace yourself (current process), you need to start a 2en process that can trace the 1st process. If that makes sense.


"when call to this function is happens to be from my binary of choose."

int32 new_function(struct IFace *IF,…)
{
if (FindTask(NULL) == my_binary_task)
{
do_trace();
}
return old_function(IF,…);
}

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top


Tracing
Home away from home
Home away from home


Can someone give me some advices of how to do the following:

I wrote small tracer tool, which should works like a snoopy, but only on given binary (not on everything). So far using SetMethod() i patch the function of library i need to trace, and now i need in the patched function compare things, and printf only when call to this function is happens to be from my binary of choose.

Currently, i thinking like provide the name (or a full path?) of a binary to the tracer tool on the running, and then in patched function, somehow compare if call was from that binary or not. How better to handle it all ? The name of process is no go, as it will be just “shell process” or so.. Giving "just" binary name imho also no go, as there can be many with same name. Then just full path to the binary ?

Any ideas are welcome, thanks !

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top



TopTop
« 1 2 3 (4) 5 6 7 ... 7221 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project