Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
75 user(s) are online (39 user(s) are browsing Forums)

Members: 0
Guests: 75

more...

Headlines

Forum Index


Board index » All Posts




Re: NovaBridge released!
Not too shy to talk
Not too shy to talk


How do I get Warpd 3D SI and what are options for a Sam 440ep Flex with Radeon HD7750, Enhancer Plus installed?

@Sailor, have you tested these with Flex?

Go to top


sam460: takeover control by putty ?
Home away from home
Home away from home


@All

Currently , when i want to control Sam460 via serial from the putty (i mean typing symbols on the terminal instead of on the SAM's keyboard), i should physically detach mouse and keyboard from. But, is there are some variable/environment which i can set, to avoid detaching of keyboard/mouse physically ?

For example, on pegasos2, when i want to have control over terminal and not over peg2's keyboard, i set "setenv output-device ttya", and then use putty without "flow control" to make it works. And to give control back to peg2's keyboard i set it back like "setenv output-device screen". But this is openfirmware, while sam460 is uboot based.

So, question is : is there any environment of this kind like on peg2, which when i set, i have control by terminal of my sam460, without detaching keyboard/mouse from them ?

Setting "stdout=serial" of course only mean to threw output to serial instead of screen, but not about ability to type from serial.

Thanks!

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


Re: Tracing
Home away from home
Home away from home


@joerg
Quote:

C library printf(), at least the newlib one, is no "problem", but the OS printf() like functions (IDOS->Printf(), IUtility->SNPrintf(), IExec->DebugPrintF(), etc.) are more or less all based on IExec->RawDoFmt() which is replaced (SetMethod()) by locale.library when it's started with (something similar to) ILocale->FormatString() which uses a Hook for the putCharFunc and you should get a CallHookPkt() call for each char.


That explain all those "locale.library" string in the stack trace then, strange only why with offset:0 ?

Quote:

You still get a mix of different debug output, but at least complete lines for each task and not chars from different tasks in the same line.


Yep, that better, but still not very readable as it still mix of different debug output. If use messages with all those processIDs is it possible to deal with ?

@Hypex
Thanks, will try it later


Edited by kas1e on 2024/5/10 6:49:21
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top


Re: AmigaOS 4.1 Final Edition Update 2 fatal failure
Not too shy to talk
Not too shy to talk


@MamePPCA1

Quote:
OK but I have little money and it is for some other things.


I imagine that's the case for everyone else who bought an X5000 as well.

Go to top


Re: Tracing
Not too shy to talk
Not too shy to talk


@kas1e

Quote:
Simple crashed right after i got "mainport received: ProcessID = 191" and code do "IExec->Signal((struct Task *)receivedMessage->processID, SIGF_SINGLE);".


Just realised why. I was going to test it myself before rereading this. The TaskID and ProcessID are different.

The TaskID isn't exactly an ID and is simply the Task pointer. But because AmigaOS shares lots of pointers it uses it as an ID. The ProcessID, which is a newer addition, actually assigns an ID to a process. Maybe they tried to clean it up and make it more like a modern OS that does use a process ID.

Somehow, although it's obvious now, I had missed that. You've got it working again now. But for fixing that one, your ProcessIDMessage object will need TaskID as well, which is simply the Task or Process pointer. I did notice your ProcessIDMessage only had ULONG and that explains it. Whoops.


So global:
struct ProcessIDMessage {
    
struct Message msg;
    
ULONG processID;
    
struct Task *taskID;
};


In Patched CallHookPkt:
if (message != NULL) {
                                            
message->processID process->pr_ProcessID// Get the process ID here
                                            
message->taskID = &process->pr_Task // Get the task ID here
                                    
}


Optional local fix avoiding allocation overheads:
struct ProcessIDMessage message = {0};


Main routine is then:
while(receivedMessage = (struct ProcessIDMessage *)IExec->GetMsg(mainPort))
                {
                    
IExec->DebugPrintF("mainport received: ProcessID = %lu\n"receivedMessage->processID);
                    
IExec->Signal(receivedMessage->taskIDSIGF_SINGLE);
                }

Go to top


Re: Tracing
Home away from home
Home away from home


@joerg

Nah... use mutex instead, around debug printf, mutex should be forbid() free..
at least that was what we were told.

Using forbid has no advantage,

imagine a different task that print half a line without using forbid, now your task invokes forbid() and DebugPrintF, and Permit(), the other task, will continue after permit(), and the text will look bad.

perhaps patching DebugPrintF so it uses a mutex can do the trick, then the lock becomes global.

(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
Just popping in
Just popping in


Hey Mame,

Well that card is older, but it works on OS-4, Morph and Linux.
And it is compatible with the CD install.
this makes things (more) simple.


Try something and remove the hard drive to protect the info
Then just boot from the cd.
You can learn how to OS-4 from the cd boot (smile)


My response to your Fienix question is the same..get a hard drive and Make your life easier (But Since you can run it from the usb stick..even if it's really slow compared to a hard drive.

Just follow the excellent instructions (see Fienix page) that you got when you bought or downloaded the image. I bought the usb version.

BTW, did you look at Epsilon site (lots explained)

Save some cash (no lattes) and get that newer hard drive

Go to top


Re: Ktadd's NG Amiga Blog Update
Quite a regular
Quite a regular




Edited by Maijestro on 2024/5/9 19:19:01
Edited by Maijestro on 2024/5/9 19:20:56
Edited by Maijestro on 2024/5/10 18:06:03
Edited by Maijestro on 2024/5/10 18:06:41
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE
Go to top


Re: Ktadd's NG Amiga Blog Update
Home away from home
Home away from home


@ktadd

Love it keep em coming Love the feelings you experience when setting up a new system (both good & bad) and that nice soothing feeling when you finally get it set up just the way you like it

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top


Re: Amigans.net Game Competitions - Game Suggestions
Home away from home
Home away from home


How about we pick a mission in BOH and we can post our times to complete it with the fastest time taking the win.

BOH-RETREAM

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top


Re: 2024 - April - Space Cadet Pinball
Home away from home
Home away from home


@Templario

for sure it's all about having fun and trying different games you may have never played before or thought you wouldn't like for some reason then finding out hey this is pretty cool

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top


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


@sacc-dude

My graphic card is an ATI Radeon RHD5450 as shown on a Morphos utilitie.

I would go to AmiWest with closed eyes,that could be a dream for me,but in reality I have little money

And another issue is that Fienix doesn't accept well my passwords and if I enter it is unusable

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: 2024 - April - Space Cadet Pinball
Quite a regular
Quite a regular


@AmigaOldskooler
The important thing is to participate.

Go to top


Re: Tracing
Just can't stay away
Just can't stay away


@kas1e
Quote:
There is the output of all CallHookPkts with their stacktraces, when i just run simple hello world (no CallHookPkt calling from test case, just hello world via casual printf() from libc):
C library printf(), at least the newlib one, is no "problem", but the OS printf() like functions (IDOS->Printf(), IUtility->SNPrintf(), IExec->DebugPrintF(), etc.) are more or less all based on IExec->RawDoFmt() which is replaced (SetMethod()) by locale.library when it's started with (something similar to) ILocale->FormatString() which uses a Hook for the putCharFunc and you should get a CallHookPkt() call for each char.

Quote:
Then stacktrace massively overwrite other outputs (debugpritnf for name of task and amount of calls). Is it expected that it didn't work when different tasks involved, and not a single one like we did with signals ?
That's normal, debug output writes one char after another to the serial port, and if there are several tasks with debug output at the same time and task switches happen you get a mix of them.
Maybe using something like
IExec->Forbid();
IExec->DebugPrintF("[%s] CallHookPkt call # %d\n",patched_task->tc_Node.ln_Namecallhookspkt_counts++);
IExec->Permit();
in the patch and Forbid()/Permit() around the stack trace DebugPrintF() could help.
You still get a mix of different debug output, but at least complete lines for each task and not chars from different tasks in the same line.

Go to top


Re: ktadd's Amiga NG Blog Update
Home away from home
Home away from home


@ktadd

It's always nice to read the first experiences on a new system... let us know how the baby goes...
and we're also interested to know how our MPlayer will runs!

Go to top


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


Fair enough..

Knowing the graphics card is important.
Hummm, sound old? what is the number?

If it is a RadeonHD type will work better with CD install as it has driver for HD

If the card is RadeonRX, we have to make some changes.

So you are in the EU,

come to AmiWest for vacation! I'll still help you with getting your X5000 working well

Michael

EXTRA read Epsilon World setting up X5000
https://www.epsilonsworld.com/search?q=x5000

Go to top


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


@balaton


Quote:

Is that consistently so or you just happened to get different measurements or something else is changed on your system between these versions? If this reproduces consistently now with two QEMU versions and you want to find the cause then you could try to bisect which commit made it slower. As the test is automated you may even be able to script that and let the bisect run without intervention so you don't have to compile and test a lot of versions by hand. But 1-2 second may be within the variation that you get by running the test multiple times on the same QEMU version. Testing this on macOS with M1 where you sometimes get faster and slower runs may not be the best so maybe should be tested on something more stable where that issue does not happen.


I have also observed this behavior compared to Qemu 8.1 to Qemu 9 it has become slightly slower, you know that I like to test it with Quake as a benchmark and here I get 29.2 FPS (Qemu 9) with 8.1 it was 31-32 FPS always tested with the fastest session which always leads to the same result in speed.

Which commit has slowed down Qemu 9 will be hard to check there have been too many changes and I don't want to find out because it's still very fast and I'm not arguing about 1-3 FPS I think what is really missing is a better FPU emulation.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE
Go to top


Re: Tracing
Home away from home
Home away from home


@All
Yep, thanks, deal with now, soo !

There is the output of all CallHookPkts with their stacktraces, when i just run simple hello world (no CallHookPkt calling from test case, just hello world via casual printf() from libc):

https://kas1e.mikendezign.com/aos4/tra ... ace_single_run_printf.txt

And there is output when i run binary with pure usage of "empty" CallHookPkt() call:

https://kas1e.mikendezign.com/aos4/tra ... ingle_run_callhookpkt.txt

Almost no differences by amount of calls, +5-6 in case of CallHookPkt() test case.

And one more output i grab for 10 seconds when i do nothing few seconds, then clicking around by mouse, and collecting _all_ possible CallHookPkts() from system (and that include and processes, and tasks and whatever else FindTask() can find):

https://kas1e.mikendezign.com/aos4/tra ... s_of_all_callhookpkts.txt

(dunno how to catch interrupts as well ?)

What curious me seeing those outputs is:

1). Everywhere i see [LIBS:locale.library] Offset: 0. Wtf ? Involved but not used ? Broken "offset" entry for stacktrace ?

2). As i can see, offsets in the kernel, dos, and elf.library practically the same always for each stack trace, mean it's some very commonly used functions , is there a way to get a picture of what ones ?

Then for sake of compare how many pure varargs CallHook() functions is used, i add patch for CallHook() too, and there just collect all the task/whatever FindTask(NULL) find in, and can say that when one run simple test binaries from shell, no CallHook() involved by system. But if i let's say spawn in console new tab gadgets, i have that:

pure CallHook 0
(0x61C5BDE0) -> 0x01806544 [kernelOffset6544
(0x61C5BE10) -> 0x0183C338 [kernelOffset3C338
(0x61C5BEA0) -> 0x0191B380 [console.device.kmodOffset102C0
(0x61C5BED0) -> 0x01929B7C [console.device.kmodOffset1EABC
(0x61C5BF10) -> 0x0191ABC8 [console.device.kmodOffsetFB08
(0x61C5BFC0) -> 0x0185F2B4 [kernelOffset5F2B4
(0x61C5BFD0) -> 0x0185F32C [kernelOffset5F32C


When i choose "open" volume via RMB menu on the volumes icons, then it also run CallHook() one time (just one time too):

(0x63B5F7C0) -> 0x01806544 [kernelOffset6544
(0x63B5F7F0) -> 0x0183C338 [kernelOffset3C338
(0x63B5F880) -> 0x7FDBB440 [LIBS:popupmenu.libraryOffset0
(0x63B5F8D0) -> 0x7FF68334 [CLASSES:popupmenu.class] Offset0
(0x63B5F9B0) -> 0x019C9748 [intuition.library.kmodOffset20288
(0x63B5FA10) -> 0x019CAC68 [intuition.library.kmodOffset217A8
(0x63B5FA90) -> 0x019B3A28 [intuition.library.kmodOffsetA568
(0x63B5FB00) -> 0x7F99B388 [ContextMenusOffset0
(0x63B5FCA0) -> 0x7F99B78C [ContextMenusOffset0
(0x63B5FD00) -> 0x7F99C664 [ContextMenusOffset0
(0x63B5FD40) -> 0x01A64CD4 [newlib.library.kmodOffset2614
(0x63B5FD90) -> 0x01A659B0 [newlib.library.kmodOffset32F0
(0x63B5FF40) -> 0x01A65F24 [newlib.library.kmodOffset3864
(0x63B5FF70) -> 0x7F9991E0 [ContextMenus_start
(0x63B5FFC0) -> 0x0185F2B4 [kernelOffset5F2B4
(0x63B5FFD0) -> 0x0185F32C [kernelOffset5F32C


So seems that at least CallHook() didn't used by system very often (a very little as far as i can see, but still).

Which is massively used, it's CallHookPkt() as expected, but what is unexpected, that OS4 have pure CallHook() in utility.library at all, and it wasn't very well documented everywhere, and more of it, before it was in amiga.lib in old times (so was a linker function) and now it still used in few bits of system, go figure why if almost everything is on CallHookPkt() already..


@Joerg
Btw, when i tried to use the same "signal" method but for all the tasks/process in the CallHookPkt, i.e. just like this:

patched_task IExec->FindTask(NULL);
    
    
IExec->DebugPrintF("[%s] CallHookPkt call # %d\n\n\n",patched_task->tc_Node.ln_Namecallhookspkt_counts++);
    

    if (
patched_task != NULL)
    {

            
IExec->SetSignal(0SIGF_SINGLE);
            
IExec->Signal(main_taskportsig);
            
IExec->Wait(SIGF_SINGLE);

    }


Then stacktrace massively overwrite other outputs (debugpritnf for name of task and amount of calls). Is it expected that it didn't work when different tasks involved, and not a single one like we did with signals ?

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


Re: ktadd's Amiga NG Blog Update
Quite a regular
Quite a regular


Quote:
ktadd wrote:May 8, 2024 update of ktadd's Amiga NG Blog.
A1222 Plus up and running. What now?


Nice reading, tnx for the update. It is very useful for new a1222 users.

Amiga x5000 ı o2o ı 4GB RAM ı RadeonRX580 | SBlaster Audigy Fx - AmigaOS4.1 FInal Edition

A1200 sandwich

Warp - Croatian Amiga portal
Go to top


Re: My Amiga Projects
Quite a regular
Quite a regular


@TheMagicSNQuote:
TheMagicSN wrote:Hi!

Update to my projects:

Sin: No change since last time sadly. Still in works:

Two secret projects: They will be in the focus now actually, or one of them will. Both for OS4 and 68k. Currently mainly work on OS4 version is done.



Thanks for the update. I'm waiting for the Sin port...and of course I'd like to know more about those secret projects :D


Edited by VooDoo on 2024/5/14 11:28:50
Amiga x5000 ı o2o ı 4GB RAM ı RadeonRX580 | SBlaster Audigy Fx - AmigaOS4.1 FInal Edition

A1200 sandwich

Warp - Croatian Amiga portal
Go to top



TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 7234 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project