Who's Online |
64 user(s) are online ( 47 user(s) are browsing Forums)
Members: 2
Guests: 62
clint, smf,
more...
|
|
Headlines |
-
sdl2.lha - library/misc
May 18, 2026
-
sdl3.lha - library/misc
May 18, 2026
-
audiocast.lha - audio/misc
May 15, 2026
-
airscanner.lha - utility/print
May 15, 2026
-
nodeamiga.lha - development/language
May 14, 2026
-
unzip.lha - utility/archive
May 13, 2026
-
reportplus.lha - utility/misc
May 12, 2026
-
alienbreed3d.lha - game/fps
May 11, 2026
-
hwp_ahx.lha - library/hollywood
May 11, 2026
-
hwp_digibooster.lha - library/hollywood
May 11, 2026
|
|
|
|
|
Re: pegasos2: rom reconstruction
|
Posted on: Today 11:37
#1
|
Just can't stay away 
|
@kas1e Quote: On amigaos4, even with fixed kernel, while bridge is on bus0 as expected, the RadeonHD card and it's Audio is on bus 2 , not on bus1 , who know why and what the reasons behind, but looks a bit unlogical. Just a guess but it may be confusion between pci and bus numbers. I mean PegasosII has pci0 and pci1 and maybe the bridge was added as pci2 not pci0/bus1? Quote: Now, we in situation of total mess with kernel : it's owned by AEON, and who know if ever any new kernel will be released. I mean, it can ends up that we will have no new kernel release ever. AFAIK it's not AEon only Trevor personally so maybe he's more sensible about letting it released. Quote: So.. What i tried to do for now, is to fix properly RTAS, so os4's RTAS-usage code will have it all correctly, and we will have no needs for kernel update in that regard. But if ever there will be kernel update, then no problems too, as this one will works over direct pci config register usage. If you can do that just by fixing the RTAS call alone then that's probably OK but if it also needs changing the device tree I would not go that far for this. But this may be trying to patch up bugs in Linux and AmigaOS kernel instead of fixing those.
|
|
|
|
|
|
Re: Git 2.45 for AmigaOS4
|
Posted on: Today 11:08
#2
|
Amigans Defender 
|
Is it a private repo? Can I clone it?
|
i'm really tired...
|
|
|
|
Re: pegasos2: rom reconstruction
|
|
Home away from home 
|
@balaton Quote: I think it may be a problem with RTAS.
In the version i send to smarkusg, RTAS was a blob-massive in c-array taken fully from original. I currently already rewrote it on readable assembler code, but so far it was original which i didn't touch (only lately). But it still of course can be problems as vga based code were new (original sources of smartfirmware didn't have any). Quote: I think MorphOS does not use it but reads PCI config directly so you can cross check if MorphOS boots,
Yes, morphos has it's own pci probe code, and it sure like that because when we for example check on what bus and where bridge and device in placed in morphos, it shows the logical: all usuall stuff on pci0/bus0, the AGP video as expected on pci1/bus0 , the bride in pci on pci0/bus0 as expected too, and the card behind the bridge is on pci0/bus1 , as expected too. On amigaos4, even with fixed kernel, while bridge is on bus0 as expected, the RadeonHD card and it's Audio is on bus 2 , not on bus1 , who know why and what the reasons behind, but looks a bit unlogical. Also, i do not get why in Ranger on pegasos2 , the whole list is Flat. I mean, for example if we take amigaone and sam boards, when you go to pci bus in ranger, and you check bridge , it have "+" which you can tick, and it will expand to show you what is on this bridge. On pegasos2 , there is no single "+" for anything, everything comes like a flat list. And i do not know why too , because if we use not RTAS in fixed kernel , but direct pci config access, then it should be no "flat" anymore. But maybe RTAS there involved again somehow, dunno. And yes amigaos4 , originally (and in public kernel) just an RTAS usage. But RTAS on original smartfirmware have bugs as we know, and the ones which i find already is : any non zero PCI bus numbers, (like bus 1 behind a PCI2PCIe bridge), were for first encoded incorrectly and for second routed through the wrong config registers. So as result, read-pci-config and write-pci-config fail. What Hans did is in 54.57 kernel add fix for 64/32bar issue (the one you fixed in BBOOT before), and this 54.57 kernel is out in public now with update3. Then, in 54.66 he add direct pci config access instead of RTAS , because, and of mention issues i find, and , because there also were issues with reading from wrong memory or something, so he always return 0xFFFFFFFF when trying to do so via RTAS, and then allocation of the memory always were failed (and, that by the way the same on Linux for pegasos2, they also code for RTAS, and also for card behind a bridge have 0x00000000 when trying to alloc memory for). Now, we in situation of total mess with kernel : it's owned by AEON, and who know if ever any new kernel will be released. I mean, it can ends up that we will have no new kernel release ever. And, with what we left now (at least as i see it): RTAS should be fixed in firmware in any case, because 1). we have only 54.57 kernel, and if that will be last one (which we always should think about as a possible outcome), we need to work with that limitation. So, fixing RTAS and related bugs will make it works. 2). Morphos has it's own pci probing code, that ok, but Linux same fail with RTAS, of course, we can add code to linux for direct pci config register usage, but i do not want to , and ISOs of linux long ago done, no one will ever know there any update if i will fix it in linux source code, etc, so , fixing RTAS will help casual known .isos of linux for peg2 to work too with bridge. So.. What i tried to do for now, is to fix properly RTAS, so os4's RTAS-usage code will have it all correctly, and we will have no needs for kernel update in that regard. But if ever there will be kernel update, then no problems too, as this one will works over direct pci config register usage.
|
|
|
|
|
|
Re: Make May AI Data-type month for OS 4
|
|
Not too shy to talk 
|
Hi guys,
Sorry... late catching up with this thread... Cool Stuff!
regarding datatypes vs. HTML for the MarkDown data - It seems like making a datatype would efficiently allow for any dev to incorporate that in a proper program to see the resuls while still maybe being able to edit the file on the fly. Of course that gets into the question of file locking, etc etc.
Extending existing datatypes or creating other ones sounds great!
These were always intended to be modular - whether done by or with a bot or by craftsmanship.
Have at it!
Thanks guys!
PJS
|
|
|
|
|
|
Re: MPlayer 2026 SVN/CVS FFMPEG7.1/Vaapi
|
|
Not too shy to talk 
|
@Maijestro
Fantastic work! Thank you very much for your efforts! High hopes!
I was wondering the same thing Joerg asked...
Rather than trying to shoehorn FFmprg into MPlayer, would there have been a path with FFPlay?
Is it possible a newer version fixes some of the deficiencies of the one we have now or could the missing things (https, OSD, ARexx port, etc) been added?
Just food for thought or maybe a later project....
THANKS AGAIN!
PJS
|
|
|
|
|
|
Re: MPlayer 2026 SVN/CVS FFMPEG7.1/Vaapi
|
Posted on: Yesterday 22:21
#6
|
Home away from home 
|
@Maijestro
Comp_yuv2 is fine as first fallback, but if it fail also this fallback again to Comp
|
|
|
|
|
|
Re: pegasos2: rom reconstruction
|
Posted on: Yesterday 21:41
#7
|
Just can't stay away 
|
@smarkusg I don't remember exactly, it was discussed on this forum somewhere, but I think Hans's changes for PCI bridge support in the latest unreleased pegasos2 kernel may also changed AmigaOS to not use RTAS for this so if @kas1e uses that kernel version, that may explain why this problem did not occur there. Earlier in this thread I think @kas1e also mentioned something about RTAS only supporting first PCI bus which is a limitation of how it is defined and cannot easily be changed because it's what the OSes depend on so I think it does not worth trying to fix it in firmware if it's already fixed in the kernel. For QEMU every device is on the PCI bus anyway so this would only be an issue with real machine with a bridge and the easiest way to support that is to release the fixed kernel not to break the firmware for it. Basically I think the OS can use RTAS to discover the devices on the PCI bus including the bridge but then needs to use its own bridge driver to access devices behind the bridge where it can't use RTAS any more.
|
|
|
|
|
|
Re: MPlayer 2026 SVN/CVS FFMPEG7.1/Vaapi
|
Posted on: Yesterday 19:21
#8
|
Home away from home 
|
@Maijestro Quote: MPlayer is an older media player that was never designed to work with modern GPU decoding APIs. It was always decoding video on the CPU, which on a PowerPC machine like the AmigaOne X5000 is quite slow for anything above 720p.
...
Quote: We modified MPlayer to create a hardware device context through FFmpeg, which opens a connection to the RX580's video decoder. We then patched the video pipeline so that decoded frames stay on the GPU as VA surfaces instead of being copied back to system memory. Finally we connected those GPU surfaces directly to the VA-API video output so the GPU also handles the color conversion and scaling to the screen. Not sure if that's relevant at all, but you could have updated the FFplay AmigaOS 4.x port instead of the MPlayer port. Both are based in large parts on FFmpeg. FFPlay has much less features for sure compered to MPlayer, but it might have been much be easier to port than MPlayer, especially for the VA-API parts.
|
|
|
|
|
|
Re: Git 2.45 for AmigaOS4
|
Posted on: Yesterday 19:02
#9
|
Just popping in 
|
@afxgroup
I can't clone from bitbucket.
Is it ok to post here or do you prefer bug reports elsewhere?
|
|
PowerBook 5.8 MorphOS 3.19 A1222 Tabor AOS4.1 FE Update 3
|
|
|
|
Re: MPlayer 2026 SVN/CVS FFMPEG7.1/Vaapi
|
Posted on: Yesterday 18:57
#10
|
Just popping in 
|
@Maijestro
Excellent work!
Thank you, Maijestro!
|
|
|
|
|
|
Re: MPlayer 2026 SVN/CVS FFMPEG7.1/Vaapi
|
Posted on: Yesterday 18:08
#11
|
Just can't stay away 
|
@NinjaCyborg Quote: NinjaCyborg wrote:Did you statically link ffmpeg or is it the Emotion version? It has nothing in common with Emotion or DVPlayer. Emotion/DVPlayer use FFmpeg 4.x, which is now very outdated. In contrast, MPlayer 2026 SVN utilizes FFmpeg 7.1.4. @all In the meantime, I have implemented a "fallback" mechanism since not all video formats support VAAPI hardware acceleration (e.g., MPEG). For this, I chose "Comp_Yuv2," which is one of our best native output methods. If a format not supported by VAAPI is called, the fallback takes effect. Also, a quick note: nothing is optimized yet, and there is a lot of debug output, which currently makes it a bit slower. https://vimeo.com/1193340630?share=copy&fl=sv&fe=ci
|
|
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
|
|
|
|
Re: pegasos2: rom reconstruction
|
Posted on: Yesterday 13:19
#12
|
Quite a regular 
|
@balaton You're right about that, because I did check it, but I didn't mention it here as the topic concerns AmigaOS4. Morphos boots up with the sm501 card.
qemu-system-ppc -machine pegasos2 -device sm501 -serial stdio -vga none -bios../ pegasos2_kas1e.rom -cdrom /tmp/morphos-3.19.iso
boot cd boot.img
|
|
|
|
|
|
Re: pegasos2: rom reconstruction
|
Posted on: Yesterday 13:12
#13
|
Just can't stay away 
|
I think it may be a problem with RTAS. The "instantiating rtas" line is missing in your failed case. RTAS has functions to read PCI config which I think these OSes use so maybe that's not correctly implemented. I think MorphOS does not use it but reads PCI config directly so you can cross check if MorphOS boots, then it's likely an RTAS problem.
|
|
|
|
|
|
Re: pegasos2: rom reconstruction
|
Posted on: Yesterday 11:52
#14
|
Quite a regular 
|
@kas1e There is one more thing that might be useful: I tested pegasos2_kas1e.rom under QEMU on Linux. For the test, I used ‘-device virtio-gpu-pci’ 1. Test for pegasos2.rom – the system boots up and the kernel loads correctly
qemu-system-ppc -machine pegasos2 -rtc base=localtime -device virtio-gpu-pci -serial stdio -vga none -bios ../pegasos2.rom -drive format=raw,if=none,id=rdb1,file=test_linux_a.hdf -device ide-hd,drive=rdb1,bus=ide.0
boot hd:0 vmlinuz-5.15.132-peg root=/dev/sda2 video=uvesafb:1024x768-16, console=tty0
--
Preparing to boot Linux version 5.15.132-mc6-pegasos2 (markus@markus-HP-EliteBook-8470p) (ppc-linux-gnu-gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36) #1 Mon Aug 5 22:50:56 CEST 2024
Detected machine type: 00000500
command line: root=/dev/sda2 video=uvesafb:1024x768-16, console=tty0
memory layout at init:
memory_limit : 00000000 (16 MB aligned)
alloc_bottom : 0288e000
alloc_top : 20000000
alloc_top_hi : 20000000
rmo_top : 20000000
ram_top : 20000000
instantiating rtas at 0x0fbfd000... done
Fixing up missing ISA range on Pegasos...
Fixing up IDE interrupt on Pegasos...
Fixing up IDE class-code on Pegasos...
copying OF device tree...
Building dt strings...
Building dt structure...
Device tree strings 0x0288f000 -> 0x0288e0a4
Device tree struct 0x02890000 -> 0x00000000
Quiescing Open Firmware ...
Booting Linux via __start() @ 0x01814000 ...
Linux/PPC 5.15.1
--
2. Test for pegasos2_kas1e.rom – error when loading the Linux kernel. The system freezes/fails to boot.
qemu-system-ppc -machine pegasos2 -rtc base=localtime -device virtio-gpu-pci -serial stdio -vga none -bios ../pegasos2_kas1e.rom -drive format=raw,if=none, id=rdb1,file=test_linux_a.hdf -device ide-hd,drive=rdb1,bus=ide.0
boot hd:0 vmlinuz-5.15.132-peg root=/dev/sda2 video=uvesafb:1024x768-16, console=tty0
---
Preparing to boot Linux version 5.15.132-mc6-pegasos2 (markus@markus-HP-EliteBook-8470p) (ppc-linux-gnu-gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36) #1 Mon Aug 5 22:50:56 CEST 2024
Detected machine type: 00000500
command line: root=/dev/sda2 video=uvesafb:1024x768-16, console=tty0
memory layout at init:
memory_limit : 00000000 (16 MB aligned)
alloc_bottom : 0288e000
alloc_top : 20000000
alloc_top_hi : 20000000
rmo_top : 20000000
ram_top : 20000000
found display : /pci@80000000/display@1, opening...
At this point, the Linux kernel freezes during boot. I am unable to test the SM501 on Linux. Support is disabled in the kernel. # CONFIG_MFD_SM501 is not set VIRTO has these settings. CONFIG_DRM_VIRTIO_GPU=m
|
|
|
|
|
|
Re: MPlayer 2026 SVN/CVS FFMPEG7.1/Vaapi
|
Posted on: Yesterday 6:48
#15
|
Not too shy to talk 
|
Did you statically link ffmpeg or is it the Emotion version?
|
|
|
|
|
|
Re: MPlayer 2026 SVN/CVS FFMPEG7.1/Vaapi
|
Posted on: Yesterday 5:37
#16
|
Quite a regular 
|
@Maijestro Nice! Thank you very much!
|
|
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
|
|
|
|
Re: MPlayer 2026 SVN/CVS FFMPEG7.1/Vaapi
|
Posted on: 5/17 22:05
#17
|
Home away from home 
|
@Maijestro
Congratulation!
|
|
Sam440ep Flex 800Mhz 160GB HD + AmigaOS 4.1
|
|
|
|
Re: Life of Tech
|
Posted on: 5/17 20:57
#18
|
Just popping in 
|
|
|
|
|
|
|
Re: Emergency Boot Partition
|
Posted on: 5/17 20:22
#19
|
Just popping in 
|
@all I wrote a script to do all the steps automatically. I'll paste it here in case someone else finds it useful. And if someone has improvements/corrections, please share.
.bra {
.ket }
FailAt 21
; Backup boot partition to emergency boot partition
mirror FROM System: TO SysBack: ALL UPDATE VERBOSE
; Create BootDevice file in emergency boot partition (DH1)
echo "DH1" > DH1:Kickstart/BootDevice
; Create a temporary file with Ed commands
echo >T:edcommands "F !LABEL AmigaOS 4.1 Final Edition!"
echo >>T:edcommands "E !LABEL AmigaOS 4.1 Final Edition!LABEL AmigaOS 4.1 Final Edition Emergency!"
echo >>T:edcommands "A !MODULE Kickstart/BootDevice!"
echo >>T:edcommands "X"
; Run Ed in batch mode using the edcommands file
; to set the label and BootDevice in the emergency Kicklayout
ed DH1:Kickstart/Kicklayout WITH T:edcommands >NIL:
; Clean up the temporary file
delete T:edcommands QUIET
Don't forget to edit your paths and LABEL.
|
|
PowerBook 5.8 MorphOS 3.19 A1222 Tabor AOS4.1 FE Update 3
|
|
|
|
Re: It
|
Posted on: 5/17 18:37
#20
|
Not too shy to talk 
|
@skynet Quote: skynet wrote:@nbache
Hi Nbache,
Okay, thanks for the info. How do you activate it or access it? just go to the NGFS volume root directory. check if a .recycled drawer already exists. if not, just create it. or just do a
MakeDir .recycled
in the root drawer of the volume. either you get an "already exists" error or it will be created. check if files are in there. the .recycled drawer is invisible. you explicitely need to tneter it in shell or the file tool of your choice. regards... michael
|
|
|
|
|