Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
97 user(s) are online (84 user(s) are browsing Forums)

Members: 0
Guests: 97

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3)
Re: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Quite a regular
Quite a regular


See User information
@kas1e
@kas1e
I removed PCI NIC card, but still I have two PCIe graphics cards and USB 3.0 controller connected. Still no success with other SATA.

This is addresses used by CFE:
Resized Image


What output can help?

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: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Home away from home
Home away from home


See User information
@Tuvok
Quote:

Of course! Here the results and your prediction were right!


Cool, and yeah, i see other reports about cls/execute, just those for now not very important (but i noted them for later, of course).

Interesting thing which i found now, is another CFE bug (probably) which we hit now when Realtek card in : see the logs without, we have: IDE unit 0: ,etc at boot of CFE, while when we add realtek , then we have: SATA unit xxx: !

That mean than CFE, when we just add PCI device and enumeration changes, simple change the handler patch to IDE or to SATA , and i think its just another CFE bug where it simple goes wrong route or something. Because even if we have SATA unit ... in the boot log, we still can't use channel1, and we still in the same legacy ide emulation mode, so ..

I need to dig in in CFE disassembly again to see why there 2 different routes and how the differs at all.. For now, all i can say, is that when this IDE unit vs SATA unit in boot log appears , it simple swap IO ports. Like

Ports without Realtek (IDE unit: xxx in log): sata: BAR0: 0x1030, ide: BAR0: 0x1040
Ports with Realtek (SATA unit: xxxx in log): sata: BAR0: 0x1040, BAR0: 0x1030.

See, simple swap. So of course patch didn't work as i doing it over "IDE" legacy. It should be easy to fix, because it's anyway all "legacy". I simple didn't at moment why there at all different printf and port swap, because even if we have "Sata unit .xxx", like, it should works as SATA, CFE anyway can't deal with single hdd when it "slave", so mean it's the same IDE legacy emulation, just strange printf + port swap.

Need to dig in !


@Sailor
Quote:

I removed PCI NIC card, but still I have two PCIe graphics cards and USB 3.0 controller connected. Still no success with other SATA.


See, in your output you also have SATA Unit: xxx instead of IDE Unit: xxx

So it seems same issue for you : you have more PCI cards added, some of which make CFE think that by some reason we switch from IDE to SATA whatever code path is it (will check that). While i am at it, can you also what card you need to remove (second PCIe graphics card, or usb controller, or both) , so CFE on boot will says "IDE unit: xxxx", and test if patch work then.

Thanks!


Edited by kas1e on 2026/4/5 3:09:53
Edited by kas1e on 2026/4/5 6:07:26
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Not too shy to talk
Not too shy to talk


See User information
@Tuvok

Quote:
make sure to use the -fs argument. e.g. -fs=amigafs or -fatfs or -fs=ext2. Here on my system, even if "dir cf0:" works, loading the patches without the -fs argument does not.


Yes I has tried that. The issue is CFE is corrupting the file data. I haven't been able to run a batch script from USB for years. It's related to the buggy FAT driver. The common solution is to reformat as FAT16. The FAT32 code is corrupt somehow. I've formatted and repaired from Windows but CFE always breaks with FAT32. Maybe it cannot handle sticks over 4GB or something. I've mostly given up and use OS4 to copy files to a FFS volume where it can work from.

Go to top
Re: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Quote:
If you mean crashes "after some time" those yes, fixed by -noints, that disable timer for.


Yes, a real crash with a machine check exception or whatever it was. Unless you have a terminal attached, blink and you'll miss it. While CFE crashes and instantly reboots.

Quote:
But if you mean crashes like "can't run from amigafs" - then no, that not -noints, but make whole binary be flat, and without paging, because CFE can't do normal "seek" on the amigafs and because of that crashes. When i disable paging and make it all looks flat so no needs for seeking, crashes on running from amigafs gone.


I wonder if that FFS seek bug stops loading large files from FFS? For example, it was thought for years that Linux could not boot from FFS, because it broke somehow or just stalled. I did some digging and found out that Linux could boot from FFS, but the problem was the FFS loader has a size limitation. It was close to 16MB but could be around 14MB. Similar to the old UBoot. So Kickstart size would be limited by the same amount I imagine.

I thought it may have been because CFE mapped 16MB of RAM for itself and anything over broke it. But, when loading direct to other memory like 0x24000000 it shouldn't matter. Turned out that, unlike the rest of the Linux industry, the X1000 kernels were uncompressed so it was trying to load in a 30MB file on average. It couldn't cope with such a big file and would break. I tried compressing one and it worked.

But, I wonder why it needs to seek. If it's loading in a file it just needs to locate all the blocks from the file headers, then do a read block in sequence. But amigaboot.of does send a seek command before a read command when using OF API. So it cannot escape seeking.

Quote:
Some (like Sata one), simple patch the necessary function one time and remove own body. The others ones, like cmds and keycon make a hooks and sits in memory on functions of CFE which need to patch to make new functionality to work. Addresses itself used for everything (hooks, trampoline, data buffers, etc) all 0x7FC0xxxx, just differs so to not clash between patches.


Okay, that makes sense. So just below the 0x7CD00000 area amigaboot claims.

Quote:
Patch rescan them all and enable channel1 as well. Just seems there issue when more than 2 devices attached on the same time, i need do test it on my one with 3 and 4 hdds at same time for proper fixing.


Will run again and take notice of output. If it matters I also have an RTL8169 card in a PCI slot.

Quote:
And then i give it a rest and added dma reads, result is unbelievable : modules loads in 0.336s, can you imagine that ? 8 seconds vs 0.3 second ! And that all after all those "we tried to speed up but we can't blablal", simple damn DMA and that all !


Was that a lot of work? I suppose the OF API doesn't have any commands for setting PIO or DMA? The default PIO0 mode would be on purpose for the safest boot option.

Quote:
CFE, despite the output it's found "32bit mode and use it" are lie, in reality it find and use 8 bit mode. And seeing disassembly whole CFE are hardcoded to use 8bit mode only. What it mean is : be it RadeonHD or RadeonRX, once you use 16bit or 32bit modes , it then all wrong resolutions and issues with colors. But at least i go till that point that RadeonRX show me the same as RadeonHD on 32bit mode:


I've read that and didn't really take notice because I knew it was always 8 bit. It says BPP is 8. 800x600 in my case. With 0x0340 per scan which means 832 bytes per line. So 800 bytes with some padding. 100 characters across.

I wondered why it is using a bitmap mode and not using a proper text mode? Bitmap is nice for logos but CFE is displaying text. Especially on terminal. Seemed they took the hard road to me. You've got hardware accelerated VGA text modes giving you a matrix like a C64. Instead they do it the hard way and need to write font rendering routines as if it was a Mac or Amiga with no text modes.

And then Linux always present the confusing double penguin sprite. Never seen it on a PC. Must be a PowerPC thing.


Can RadeonRX support 8 bit modes? So this is trouble all along? We were told it was because RX cards have a UEFI BIOS and didn't support the old VGABIOS in CFE or something like that. Or is it a combo of these issues? You couldn't have hacked a UEFI x86 emulator in there as well already?

Go to top
Re: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Quite a regular
Quite a regular


See User information
@kas1eQuote:
kas1e wrote:
@Sailor
Quote:

I removed PCI NIC card, but still I have two PCIe graphics cards and USB 3.0 controller connected. Still no success with other SATA.


See, in your output you also have SATA Unit: xxx instead of IDE Unit: xxx

So it seems same issue for you : you have more PCI cards added, some of which make CFE think that by some reason we switch from IDE to SATA whatever code path is it (will check that). While i am at it, can you also what card you need to remove (second PCIe graphics card, or usb controller, or both) , so CFE on boot will says "IDE unit: xxxx", and test if patch work then.

Thanks!


I removed all PCI/PCIe cards except fist graphics card.
Connected devices:

Close to cpu:
Port0: SSD Amigaos 4.1FE partitions incl. FFS amigaboot.of
Port2: DVD

Near to case - rim of motherboard
Port1: HDD linux partition
Port3: HDD amigaos 4.1u6 partitions incl. FFS amigaboot.of

SUCCESS:
[HELO][DRAM]SDRAMECC offNon-ECC DIMM used on channel 0.
SDRAM
ECC offNon-ECC DIMM used on channel 1.
[RELO][L1CF][GOLO][GOT ][ZBSS][INIT][MAIN][KMEM][EXCP][CONS][CIOK][AREN][PCIH][PCIB][PCIS][DEVI]

CFE version PAS-2.0.30 for NEMO (64bit,MP,BE,PPC)
Build DateFri Jun  8 16:04:49 CEST 2012 (hfrieden@jumpgate)
Copyright (C2000,2001,2002,2003,2004,2005 Broadcom Corporation.
Portions Copyright (C2005-2008 PA SemiInc.
Portions Copyright (C2010 Hyperion Entertainment CVBA

Initializing Arena
.
Initializing PCI. []
PCI bus 0 slot 17/1PCIeport 5 could not be activated
PCI bus 0 slot 17
/2PCIeport 6 could not be activated
PCI bus 0 slot 17
/3PCIeport 7 could not be activated
SB600 revision A21 in Intel P4 mode
PCI bus 1 slot 0
/0ATI Technologies product 0x6798 (VGA display)
PCI bus 1 slot 0/1ATI Technologies product 0xaaa0 (multimedia subclass 0x03)
PCI bus 5 slot 18/0ATI Technologies product 0x4380 (IDE mass storage, interface 0x8f)
PCI bus 5 slot 19/0ATI Technologies product 0x4387 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/1ATI Technologies product 0x4388 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/2ATI Technologies product 0x4389 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/3ATI Technologies product 0x438a (USB serial bus, interface 0x10)
PCI bus 5 slot 19/4ATI Technologies product 0x438b (USB serial bus, interface 0x10)
PCI bus 5 slot 19/5ATI Technologies product 0x4386 (USB serial bus, interface 0x20)
PCI bus 5 slot 20/0ATI Technologies product 0x4385 (SMBus serial busrev 0x14)
PCI bus 5 slot 20/1ATI Technologies product 0x438c (IDE mass storage, interface 0x83)
PCI bus 5 slot 20/2ATI Technologies product 0x4383 (multimedia subclass 0x03)
PCI bus 5 slot 20/3ATI Technologies product 0x438d (ISA bridge)
PCI bus 5 slot 20/4ATI Technologies product 0x4384 (PCI bridge)
Initializing Devices.
GPIOLV10 JumperNot fitted (default VGA console)
GPIOLV11 JumperNot fitted (default ?)
 
PHYmbaddr 0x00vendor 03f1 device 15 (1)
GFXPCIe Slot
GFX
Disable SB600 legacy decode
VGA 
(1/0/0): ISA memory space mapped to f8000000000
Initializing VGA
.
Found 800x600x32 mode0x0103 (259)
Current VBE mode is now0x0103 (259)
  
Mode Attribs00BB  [Graphics] [LinearFrameBuffer
  
Resolution:   800 x 600
  BitsPerPixel
8
  BytesPerScan
0x0340
  PhysBasePtr
:  0x90000000
Enabling ATI frame buffer byte
-swap
GFX
PCIe Slot
GFX
Enable SB600 legacy decode
VGA initialization successful
.
cf0Card inserted (3V)
IDE unit 0Disk"TS256GSSD230S"Capacity:238GB (lba48)
ATAPI unit 1Optical Drive"DRW-24D5MT"
PCIIDE2 controllers found
Initializing USB
.
PCI bus 5 slot 19/5EHCI USB controller found at A0209800
USB bus 0 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/0OHCI USB controller found at A0207000
USB bus 1 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/1OHCI USB controller found at A0206000
USB bus 2 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/2OHCI USB controller found at A0208000
USB bus 3 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/3OHCI USB controller found at A0205000
USB bus 4 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/4OHCI USB controller found at A0204000
USB bus 5 device 1
vendor 0000 product 0000 class 09: USB Hub
CPU type 0x900102
500MHz
Total memory
0x100000000 bytes (4096MB)

Total memory used by CFE:  0x7FD1DF60 0x80000000 (3023008)
Initialized Data:          0x7FDD8420 0x7FDF8B00 (132832)
BSS Area:                  0x7FDF8B00 0x7FDFF000 (25856)
Local Heap:                0x7FDFF000 0x7FFFF000 (2097152)
Stack Area:                0x7FFFF000 0x80000000 (4096)
Text (codesegment:       0x7FD1DF60 0x7FDCBE60 (712448)
Relocation Factor:         I:7FE1DF60 D:7FE1DF60
[ENVI]
[
OFW ][UI  ]port 0:1/1 enabled (high speed)
USB bus 0 device 2vendor 05E3 product 0608 class 09: USB Hub
USB
: New device connected to bus 0 hub 2 port 1 (high speed)
USB bus 0 device 3vendor 1A40 product 0101 class 09: USB Hub
USB
: New device connected to bus 0 hub 2 port 3 (high speed)
USB bus 0 device 4vendor 0781 product 5591 class 08: Mass-Storage Device
USBMASS
Unit 0 connected
USB
: New device connected to bus 0 hub 3 port 3 (low speed)
USB bus 0 device 5vendor 046D product C050 class 03Human-Interface Device
USBHID
Mouse Configured.
USB: New device connected to bus 0 hub 3 port 4 (high speed)
USB bus 0 device 6vendor 413C product 1010 class 09: USB Hub
USB
: New device connected to bus 0 hub 6 port 4 (low speed)
USB bus 0 device 7vendor 413C product 2110 class 03Human-Interface Device
USBHID
Keyboard Configured.
Requested state A4 (1800MHz)
To get back into the menutype 'menu' on the CFE command prompt
[CFE ]CFEboot -elf -noints -fs=amigafs ide0.0> :sata.elf
Loader
:elf Filesys:amigafs Dev:ide0.0 File:sata.elf Options:(null)
Loading0x0000000000100000/4064 0x0000000000100FE0/1145 0x0000000000101459/35 Entry at 0x0000000000100000
Starting program at 0x0000000000100000
[RUN!]=== SATA FIX v13b ===
  
Both channels slave fix skip diag

Finding CFE API
...
  
Seal at 0x7FD1F458dispatch at 0x7FD206A4
  Boot chaining
installed
Step 0
AHCI port status
  Port 0
DEVICE PRESENT
  Port 1
DEVICE PRESENT
  Port 2
DEVICE PRESENT
  Port 3
DEVICE PRESENT
  Ch0 probe bitmask
0x00000000
  Ch1 probe bitmask
0x000000FF

Step 1
Verify patch points
  All 6 patch points verified OK

Step 2
Applying common patches
  5 common patches applied 
(P2+P3+PA+PB+PC)

Step 3aChannel 0 т€” boot already found bothskipped

Step 3b
Probing Channel 1 (BAR2)...
  
P1 applied (BAR0 -> BAR2)
IDE unit 0Disk"ST1000DM003-1ER162"Capacity:931GB (lba48)
SATA unit 1Disk"ST1000DM003-1CH162"Capacity:931GB (lba48)
PCIIDE2 controllers found
  Ch1 probe returned
!

Step 4Restoring original code
  All restored OK

=== SATA FIX v13 DONE ===
Try: 
show devices
*** command status 0
CFE
show devices
Device Name          Description
-------------------  ---------------------------------------------------------
uart0                NS16550 UART at 0xFCFF03F8
pcconsole0           PC Console 
(USB/VESA)
eeprom0              Microchip 24LC128 EEPROM on SMBus channel 0 dev 0x57
eth0                 PA Semi Ethernet 
(ge3at 0xE00A3000 (02-00-E0-0A-30-00)
flash0.os            SPI flash at FFE00000 offset 00000000 size 1024KB
flash0
.boot          SPI flash at FFE00000 offset 00100000 size 1024KB
therm0               TI TMP423 Thermal Sensor on SMBus channel 0 dev 0x4C
cf0                  CompactFlash ATA disk unit 0 at 0xF0000000
ide0.0               PCI IDE disk unit 0 at I
/O 0000 (PCI:E0590000)
atapi0.1             PCI IDE disk unit 1 at I/O 0000 (PCI:E0590000)
usbdisk0             USB Disk unit 0
usbdisk1             USB Disk unit 1
ide1.0               PCI IDE disk unit 0 at I
/O 0000 (PCI:E0590000)
ide0.1               PCI IDE disk unit 1 at I/O 0000 (PCI:E0590000)
*** 
command status 0
CFE
dir -amigafs            help dir

  SUMMARY

     Display directory listing 
for a device

  USAGE

     dir 
[-optionsdev:path
     
     This displays a 
list of files on the specified device, if
     
the underlying device has a structured file system

  OPTIONS

     
-fatfs               Display files from a FAT file system
     
-ext2                Display files from an EXT2 filesystem
     
-fs=*                Specify CFE file system name

*** command status 0
CFE
dir -fs=amigafs is de  0.0:
Directory 
   sata
.elf                            8112       ------------rwed 
   cmds
.elf                            10320      ------------rwed 
   amigaboot
.of                        62100      ------------r--- 
   
keycon.elf                          9796       ------------rwed 

90328 bytes in 4 files
0 directories
*** command status 0
CFE
DI  dir -fs=amigafs ide0.0:  1>
Could not init file systemFile system not available
*** command status = -30
CFE
dir -fs=amigafs ide0.1> :
Directory 
   sata
.elf                            8112       ------------rwed 
   menu                                dir        
------------rwed 
   cmds
.elf                            10320      ------------rwed 
   boot                                dir        r
-e-r-e-----rwed 
   amigaboot
.of                        62100      ------------r--- 
   
Kickstart                           dir        r-e-r-e-----rwed 
   keycon
.elf                          9796       ------------rwed 

90328 bytes in 4 files
3 directories
*** command status 0
CFE
dir -fs=amigafs ide0.1ide0.1:  ide0.1:  ide0.1:  ide0.1:  ide0.1:  ide0.1:  ide0.1e ide0.1:x ide0.1:t ide0.1:2 ide0.1ide0.1:: : : 1:>:: ::0:0.0:0:1
apm
bad signature 5244
Could not init file system
File system not recognized
*** command status = -29
CFE
dir -fs=ext2 ide1.0:
apm
bad signature 5244
Could not init file system
File system not recognized
*** command status = -29
CFE
dir -fs=ext2 ide1.0:dir -fs=ext2 ide1.0:1dir -fs=amigafs ide0.1:dir -fs=ext2 ide1.0:1dir -fs=ext2 ide1.0:dir -fs=ext2 ide1.0> :
apmbad signature 5244
Could not init file system
File system not recognized
*** command status = -29
CFE
>

HDD in Port3 is mapped as ide 0.1 and I can boot from it


Edited by sailor on 2026/4/5 13:05:50
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: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Quite a regular
Quite a regular


See User information
tested more configurations:

GFX card + PCI RTL - not works:
[HELO][DRAM]SDRAMECC offNon-ECC DIMM used on channel 0.
SDRAM
ECC offNon-ECC DIMM used on channel 1.
[RELO][L1CF][GOLO][GOT ][ZBSS][INIT][MAIN][KMEM][EXCP][CONS][CIOK][AREN][PCIH][PCIB][PCIS][DEVI]

CFE version PAS-2.0.30 for NEMO (64bit,MP,BE,PPC)
Build DateFri Jun  8 16:04:49 CEST 2012 (hfrieden@jumpgate)
Copyright (C2000,2001,2002,2003,2004,2005 Broadcom Corporation.
Portions Copyright (C2005-2008 PA SemiInc.
Portions Copyright (C2010 Hyperion Entertainment CVBA

Initializing Arena
.
Initializing PCI. []
PCI bus 0 slot 17/1PCIeport 5 could not be activated
PCI bus 0 slot 17
/2PCIeport 6 could not be activated
PCI bus 0 slot 17
/3PCIeport 7 could not be activated
SB600 revision A21 in Intel P4 mode
PCI bus 1 slot 0
/0ATI Technologies product 0x6798 (VGA display)
PCI bus 1 slot 0/1ATI Technologies product 0xaaa0 (multimedia subclass 0x03)
PCI bus 5 slot 18/0ATI Technologies product 0x4380 (IDE mass storage, interface 0x8f)
PCI bus 5 slot 19/0ATI Technologies product 0x4387 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/1ATI Technologies product 0x4388 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/2ATI Technologies product 0x4389 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/3ATI Technologies product 0x438a (USB serial bus, interface 0x10)
PCI bus 5 slot 19/4ATI Technologies product 0x438b (USB serial bus, interface 0x10)
PCI bus 5 slot 19/5ATI Technologies product 0x4386 (USB serial bus, interface 0x20)
PCI bus 5 slot 20/0ATI Technologies product 0x4385 (SMBus serial busrev 0x14)
PCI bus 5 slot 20/1ATI Technologies product 0x438c (IDE mass storage, interface 0x83)
PCI bus 5 slot 20/2ATI Technologies product 0x4383 (multimedia subclass 0x03)
PCI bus 5 slot 20/3ATI Technologies product 0x438d (ISA bridge)
PCI bus 5 slot 20/4ATI Technologies product 0x4384 (PCI bridge)
PCI bus 6 slot 6/0Realtek Semiconductor product 0x8169 (ethernet networkrev 0x10)
Initializing Devices.
GPIOLV10 JumperNot fitted (default VGA console)
GPIOLV11 JumperNot fitted (default ?)
 
PHYmbaddr 0x00vendor 03f1 device 15 (1)
GFXPCIe Slot
GFX
Disable SB600 legacy decode
VGA 
(1/0/0): ISA memory space mapped to f8000000000
Initializing VGA
.
Found 800x600x32 mode0x0103 (259)
Current VBE mode is now0x0103 (259)
  
Mode Attribs00BB  [Graphics] [LinearFrameBuffer
  
Resolution:   800 x 600
  BitsPerPixel
8
  BytesPerScan
0x0340
  PhysBasePtr
:  0x90000000
Enabling ATI frame buffer byte
-swap
GFX
PCIe Slot
GFX
Enable SB600 legacy decode
VGA initialization successful
.
cf0Card inserted (3V)
IDE unit 0Disk"TS256GSSD230S"Capacity:238GB (lba48)
ATAPI unit 1Optical Drive"DRW-24D5MT"
PCIIDE2 controllers found
Initializing USB
.
PCI bus 5 slot 19/5EHCI USB controller found at A0209800
USB bus 0 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/0OHCI USB controller found at A0208000
USB bus 1 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/1OHCI USB controller found at A0207000
USB bus 2 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/2OHCI USB controller found at A0206000
USB bus 3 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/3OHCI USB controller found at A0204000
USB bus 4 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/4OHCI USB controller found at A0205000
USB bus 5 device 1
vendor 0000 product 0000 class 09: USB Hub
CPU type 0x900102
500MHz
Total memory
0x100000000 bytes (4096MB)

Total memory used by CFE:  0x7FD1DF60 0x80000000 (3023008)
Initialized Data:          0x7FDD8420 0x7FDF8B00 (132832)
BSS Area:                  0x7FDF8B00 0x7FDFF000 (25856)
Local Heap:                0x7FDFF000 0x7FFFF000 (2097152)
Stack Area:                0x7FFFF000 0x80000000 (4096)
Text (codesegment:       0x7FD1DF60 0x7FDCBE60 (712448)
Relocation Factor:         I:7FE1DF60 D:7FE1DF60
[ENVI]
[
OFW ][UI  ]port 0:1/1 enabled (high speed)
USB bus 0 device 2vendor 05E3 product 0608 class 09: USB Hub
USB
: New device connected to bus 0 hub 2 port 1 (high speed)
USB bus 0 device 3vendor 1A40 product 0101 class 09: USB Hub
USB
: New device connected to bus 0 hub 2 port 3 (high speed)
USB bus 0 device 4vendor 0781 product 5591 class 08: Mass-Storage Device
USBMASS
Unit 0 connected
USB
: New device connected to bus 0 hub 3 port 3 (low speed)
USB bus 0 device 5vendor 046D product C050 class 03Human-Interface Device
USBHID
Mouse Configured.
USB: New device connected to bus 0 hub 3 port 4 (high speed)
USB bus 0 device 6vendor 413C product 1010 class 09: USB Hub
USB
: New device connected to bus 0 hub 6 port 4 (low speed)
USB bus 0 device 7vendor 413C product 2110 class 03Human-Interface Device
USBHID
Keyboard Configured.
Requested state A4 (1800MHz)
To get back into the menutype 'menu' on the CFE command prompt
[CFE ]CFE>  boot -elf -noints -fs=amigafs ide0.0:sata.elf
Loader
:elf Filesys:amigafs Dev:ide0.0 File:sata.elf Options:(null)
Loading0x0000000000100000/4064 0x0000000000100FE0/1145 0x0000000000101459/35 Entry at 0x0000000000100000
Starting program at 0x0000000000100000
[RUN!]=== SATA FIX v13b ===
  
Both channels slave fix skip diag

Finding CFE API
...
  
Seal at 0x7FD1F458dispatch at 0x7FD206A4
  Boot chaining
installed
Step 0
AHCI port status
  Port 0
: (empty)
  
Port 1: (empty)
  
Port 2: (empty)
  
Port 3: (empty)
  
Ch0 probe bitmask0x00000000
  Ch1 probe bitmask
0x00000000

  No 
new devices to probe.
*** 
command status 0
CFE
show devices
Device Name          Description
-------------------  ---------------------------------------------------------
uart0                NS16550 UART at 0xFCFF03F8
pcconsole0           PC Console 
(USB/VESA)
eeprom0              Microchip 24LC128 EEPROM on SMBus channel 0 dev 0x57
eth0                 PA Semi Ethernet 
(ge3at 0xE00A3000 (02-00-E0-0A-30-00)
flash0.os            SPI flash at FFE00000 offset 00000000 size 1024KB
flash0
.boot          SPI flash at FFE00000 offset 00100000 size 1024KB
therm0               TI TMP423 Thermal Sensor on SMBus channel 0 dev 0x4C
cf0                  CompactFlash ATA disk unit 0 at 0xF0000000
ide0.0               PCI IDE disk unit 0 at I
/O 0000 (PCI:E0590000)
atapi0.1             PCI IDE disk unit 1 at I/O 0000 (PCI:E0590000)
usbdisk0             USB Disk unit 0
usbdisk1             USB Disk unit 1
*** command status 0


dual gfx card - SUCCESS:
[HELO][DRAM]SDRAMECC offNon-ECC DIMM used on channel 0.
SDRAM
ECC offNon-ECC DIMM used on channel 1.
[RELO][L1CF][GOLO][GOT ][ZBSS][INIT][MAIN][KMEM][EXCP][CONS][CIOK][AREN][PCIH][PCIB][PCIS][DEVI]00 revision A21 in Intel P4 mode
PCI bus 1 slot 0
/0ATI Technologies product 0x6758 (VGA display)
PCI bus 1 slot 0/1ATI Technologies product 0xaa90 (multimedia subclass 0x03)
PCI bus 3 slot 0/0ATI Technologies product 0x6798 (VGA display)
PCI bus 3 slot 0/1ATI Technologies product 0xaaa0 (multimedia subclass 0x03)
PCI bus 5 slot 18/0ATI Technologies product 0x4380 (IDE mass storage, interface 0x8f)
PCI bus 5 slot 19/0ATI Technologies product 0x4387 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/1ATI Technologies product 0x4388 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/2ATI Technologies product 0x4389 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/3ATI Technologies product 0x438a (USB serial bus, interface 0x10)
PCI bus 5 slot 19/4ATI Technologies product 0x438b (USB serial bus, interface 0x10)
PCI bus 5 slot 19/5ATI Technologies product 0x4386 (USB serial bus, interface 0x20)
PCI bus 5 slot 20/0ATI Technologies product 0x4385 (SMBus serial busrev 0x14)
PCI bus 5 slot 20/1ATI Technologies product 0x438c (IDE mass storage, interface 0x83)
PCI bus 5 slot 20/2ATI Technologies product 0x4383 (multimedia subclass 0x03)
PCI bus 5 slot 20/3ATI Technologies product 0x438d (ISA bridge)
PCI bus 5 slot 20/4ATI Technologies product 0x4384 (PCI bridge)
Initializing Devices.
GPIOLV10 JumperNot fitted (default VGA console)
GPIOLV11 JumperNot fitted (default ?)
 
PHYmbaddr 0x00vendor 03f1 device 15 (1)
GFXPCIe Slot
GFX
Disable SB600 legacy decode
VGA 
(1/0/0): ISA memory space mapped to f8000000000
Initializing VGA
.
Found 800x600x32 mode0x0103 (259)
Current VBE mode is now0x0103 (259)
  
Mode Attribs00BB  [Graphics] [LinearFrameBuffer
  
Resolution:   800 x 600
  BitsPerPixel
8
  BytesPerScan
0x0340
  PhysBasePtr
:  0x90000000
Enabling ATI frame buffer byte
-swap
GFX
PCIe Slot
GFX
Enable SB600 legacy decode
VGA initialization successful
.
GFXPCIe Slot
GFX
Disable SB600 legacy decode
VGA 
(3/0/0): ISA memory space mapped to f8000000000
Initializing VGA
.
Found 800x600x32 mode0x0103 (259)
Current VBE mode is now0x0103 (259)
  
Mode Attribs00BB  [Graphics] [LinearFrameBuffer
  
Resolution:   800 x 600
  BitsPerPixel
8
  BytesPerScan
0x0340
  PhysBasePtr
:  0xB0000000
Enabling ATI frame buffer byte
-swap
GFX
PCIe Slot
GFX
Enable SB600 legacy decode
VGA initialization successful
.
cf0Card inserted (3V)
SATA unit 0Disk"TS256GSSD230S"Capacity:238GB (lba48)
ATAPI unit 1Optical Drive"DRW-24D5MT"
PCIIDE2 controllers found
Initializing USB
.
PCI bus 5 slot 19/5EHCI USB controller found at C0209800
USB bus 0 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/0OHCI USB controller found at C0207000
USB bus 1 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/1OHCI USB controller found at C0208000
USB bus 2 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/2OHCI USB controller found at C0206000
USB bus 3 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/3OHCI USB controller found at C0205000
USB bus 4 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/4OHCI USB controller found at C0204000
USB bus 5 device 1
vendor 0000 product 0000 class 09: USB Hub
CPU type 0x900102
500MHz
Total memory
0x100000000 bytes (4096MB)

Total memory used by CFE:  0x7FD1DF60 0x80000000 (3023008)
Initialized Data:          0x7FDD8420 0x7FDF8B00 (132832)
BSS Area:                  0x7FDF8B00 0x7FDFF000 (25856)
Local Heap:                0x7FDFF000 0x7FFFF000 (2097152)
Stack Area:                0x7FFFF000 0x80000000 (4096)
Text (codesegment:       0x7FD1DF60 0x7FDCBE60 (712448)
Relocation Factor:         I:7FE1DF60 D:7FE1DF60
[ENVI]
[
OFW ][UI  ]port 0:1/1 enabled (high speed)
USB bus 0 device 2vendor 05E3 product 0608 class 09: USB Hub
USB
: New device connected to bus 0 hub 2 port 1 (high speed)
USB bus 0 device 3vendor 1A40 product 0101 class 09: USB Hub
USB
: New device connected to bus 0 hub 2 port 3 (high speed)
USB bus 0 device 4vendor 0781 product 5591 class 08: Mass-Storage Device
USBMASS
Unit 0 connected
USB
: New device connected to bus 0 hub 3 port 3 (low speed)
USB bus 0 device 5vendor 046D product C050 class 03Human-Interface Device
USBHID
Mouse Configured.
USB: New device connected to bus 0 hub 3 port 4 (high speed)
USB bus 0 device 6vendor 413C product 1010 class 09: USB Hub
USB
: New device connected to bus 0 hub 6 port 4 (low speed)
USB bus 0 device 7vendor 413C product 2110 class 03Human-Interface Device
USBHID
Keyboard Configured.
Requested state A4 (1800MHz)
To get back into the menutype 'menu' on the CFE command prompt
[CFE ]CFEboot -elf -noints -fs=fatfs ide0.0> :sata.elf
Loader
:elf Filesys:fatfs Dev:ide0.0 File:sata.elf Options:(null)
LoadingFailed.
Could not load ide0.0:sata.elfFile system not available
*** command status = -30
CFE
boot -elf -noints -fs=fatfs ide0.0:sata.elf ide0.0:sata.elf  ide0.0:sata.elf  ide0.0:sata.elf  ide0.0:sata.elf  ide0.0:sata.elf a ide0.0:sata.elfm ide0.0:sata.elfi ide0.0:sata.elfg ide0.0:sata.elfa ide0.0:sata.elff ide0.0:sata.elfs ide0.0:sata.elf
Loader
:elf Filesys:amigafs Dev:ide0.0 File:sata.elf Options:(null)
Loading0x0000000000100000/4064 0x0000000000100FE0/1145 0x0000000000101459/35 Entry at 0x0000000000100000
Starting program at 0x0000000000100000
[RUN!]=== SATA FIX v13b ===
  
Both channels slave fix skip diag

Finding CFE API
...
  
Seal at 0x7FD1F458dispatch at 0x7FD206A4
  Boot chaining
installed
Step 0
AHCI port status
  Port 0
DEVICE PRESENT
  Port 1
DEVICE PRESENT
  Port 2
DEVICE PRESENT
  Port 3
DEVICE PRESENT
  Ch0 probe bitmask
0x00000000
  Ch1 probe bitmask
0x000000FF

Step 1
Verify patch points
  All 6 patch points verified OK

Step 2
Applying common patches
  5 common patches applied 
(P2+P3+PA+PB+PC)

Step 3aChannel 0 т€” boot already found bothskipped

Step 3b
Probing Channel 1 (BAR2)...
  
P1 applied (BAR0 -> BAR2)
IDE unit 0Disk"ST1000DM003-1ER162"Capacity:931GB (lba48)
IDE unit 1Disk"ST1000DM003-1CH162"Capacity:931GB (lba48)
PCIIDE2 controllers found
  Ch1 probe returned
!

Step 4Restoring original code
  All restored OK

=== SATA FIX v13 DONE ===
Try: 
show devices
*** command status 0
CFE
shoe w devices
Device Name          Description
-------------------  ---------------------------------------------------------
uart0                NS16550 UART at 0xFCFF03F8
pcconsole0           PC Console 
(USB/VESA)
eeprom0              Microchip 24LC128 EEPROM on SMBus channel 0 dev 0x57
eth0                 PA Semi Ethernet 
(ge3at 0xE00A3000 (02-00-E0-0A-30-00)
flash0.os            SPI flash at FFE00000 offset 00000000 size 1024KB
flash0
.boot          SPI flash at FFE00000 offset 00100000 size 1024KB
therm0               TI TMP423 Thermal Sensor on SMBus channel 0 dev 0x4C
cf0                  CompactFlash ATA disk unit 0 at 0xF0000000
ide0.0               PCI IDE disk unit 0 at I
/O 0000 (PCI:E0590000)
atapi0.1             PCI IDE disk unit 1 at I/O 0000 (PCI:E0590000)
usbdisk0             USB Disk unit 0
usbdisk1             USB Disk unit 1
ide1.0               PCI IDE disk unit 0 at I
/O 0000 (PCI:E0590000)
ide0.1               PCI IDE disk unit 1 at I/O 0000 (PCI:E0590000)
*** 
command status 0
CFE
b dir -fs=amigafs ide0.1 amigaboot.of             :
Directory 
   sata
.elf                            8112       ------------rwed 
   menu                                dir        
------------rwed 
   cmds
.elf                            10320      ------------rwed 
   boot                                dir        r
-e-r-e-----rwed 
   amigaboot
.of                        62100      ------------r--- 
   
Kickstart                           dir        r-e-r-e-----rwed 
   keycon
.elf                          9796       ------------rwed 

90328 bytes in 4 files
3 directories
*** command status 0
CFE
boot -fs=amigafs ide0.1> :amigaboot.of
Loader
:elf Filesys:amigafs Dev:ide0.1 File:amigaboot.of Options:(null)
Loading0x0000000000200000/61536 Entry at 0x0000000000200000
Starting program at 0x0000000000200000
[RUN!]
AmigaOS 4.x OpenFirmware Bootloader V53.21

Please choose a configuration to boot 
(Default choice is green):


GFX card + PCIe USB3.0 - not works:
[HELO][DRAM]SDRAMECC offNon-ECC DIMM used on channel 0.
SDRAM
ECC offNon-ECC DIMM used on channel 1.
[RELO][L1CF][GOLO][GOT ][ZBSS][INIT][MAIN][KMEM][EXCP][CONS][CIOK][AREN][PCIH][PCIB][PCIS][DEVI]

CFE version PAS-2.0.30 for NEMO (64bit,MP,BE,PPC)
Build DateFri Jun  8 16:04:49 CEST 2012 (hfrieden@jumpgate)
Copyright (C2000,2001,2002,2003,2004,2005 Broadcom Corporation.
Portions Copyright (C2005-2008 PA SemiInc.
Portions Copyright (C2010 Hyperion Entertainment CVBA

Initializing Arena
.
Initializing PCI. []
PCI bus 0 slot 17/1PCIeport 5 could not be activated
PCI bus 0 slot 17
/3PCIeport 7 could not be activated
SB600 revision A21 in Intel P4 mode
PCI bus 1 slot 0
/0ATI Technologies product 0x6798 (VGA display)
PCI bus 1 slot 0/1ATI Technologies product 0xaaa0 (multimedia subclass 0x03)
PCI bus 5 slot 18/0ATI Technologies product 0x4380 (IDE mass storage, interface 0x8f)
PCI bus 5 slot 19/0ATI Technologies product 0x4387 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/1ATI Technologies product 0x4388 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/2ATI Technologies product 0x4389 (USB serial bus, interface 0x10)
PCI bus 5 slot 19/3ATI Technologies product 0x438a (USB serial bus, interface 0x10)
PCI bus 5 slot 19/4ATI Technologies product 0x438b (USB serial bus, interface 0x10)
PCI bus 5 slot 19/5ATI Technologies product 0x4386 (USB serial bus, interface 0x20)
PCI bus 5 slot 20/0ATI Technologies product 0x4385 (SMBus serial busrev 0x14)
PCI bus 5 slot 20/1ATI Technologies product 0x438c (IDE mass storage, interface 0x83)
PCI bus 5 slot 20/2ATI Technologies product 0x4383 (multimedia subclass 0x03)
PCI bus 5 slot 20/3ATI Technologies product 0x438d (ISA bridge)
PCI bus 5 slot 20/4ATI Technologies product 0x4384 (PCI bridge)
PCI bus 8 slot 0/0unknown vendor 0x1912 product 0x0014 (USB serial bus, interface 0x30rev 0x03)
Initializing Devices.
GPIOLV10 JumperNot fitted (default VGA console)
GPIOLV11 JumperNot fitted (default ?)
 
PHYmbaddr 0x00vendor 03f1 device 15 (1)
GFXPCIe Slot
GFX
Disable SB600 legacy decode
VGA 
(1/0/0): ISA memory space mapped to f8000000000
Initializing VGA
.
Found 800x600x32 mode0x0103 (259)
Current VBE mode is now0x0103 (259)
  
Mode Attribs00BB  [Graphics] [LinearFrameBuffer
  
Resolution:   800 x 600
  BitsPerPixel
8
  BytesPerScan
0x0340
  PhysBasePtr
:  0x90000000
Enabling ATI frame buffer byte
-swap
GFX
PCIe Slot
GFX
Enable SB600 legacy decode
VGA initialization successful
.
cf0Card inserted (3V)
SATA unit 0Disk"TS256GSSD230S"Capacity:238GB (lba48)
ATAPI unit 1Optical Drive"DRW-24D5MT"
PCIIDE2 controllers found
Initializing USB
.
PCI bus 5 slot 19/5EHCI USB controller found at A0209800
USB bus 0 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/0OHCI USB controller found at A0207000
USB bus 1 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/1OHCI USB controller found at A0208000
USB bus 2 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/2OHCI USB controller found at A0206000
USB bus 3 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/3OHCI USB controller found at A0204000
USB bus 4 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/4OHCI USB controller found at A0205000
USB bus 5 device 1
vendor 0000 product 0000 class 09: USB Hub
CPU type 0x900102
500MHz
Total memory
0x100000000 bytes (4096MB)

Total memory used by CFE:  0x7FD1DF60 0x80000000 (3023008)
Initialized Data:          0x7FDD8420 0x7FDF8B00 (132832)
BSS Area:                  0x7FDF8B00 0x7FDFF000 (25856)
Local Heap:                0x7FDFF000 0x7FFFF000 (2097152)
Stack Area:                0x7FFFF000 0x80000000 (4096)
Text (codesegment:       0x7FD1DF60 0x7FDCBE60 (712448)
Relocation Factor:         I:7FE1DF60 D:7FE1DF60
[ENVI]
[
OFW ][UI  ]port 0:1/1 enabled (high speed)
USB bus 0 device 2vendor 05E3 product 0608 class 09: USB Hub
USB
: New device connected to bus 0 hub 2 port 1 (high speed)
USB bus 0 device 3vendor 1A40 product 0101 class 09: USB Hub
USB
: New device connected to bus 0 hub 2 port 3 (high speed)
USB bus 0 device 4vendor 0781 product 5591 class 08: Mass-Storage Device
USBMASS
Unit 0 connected
USB
: New device connected to bus 0 hub 3 port 3 (low speed)
USB bus 0 device 5vendor 046D product C050 class 03Human-Interface Device
USBHID
Mouse Configured.
USB: New device connected to bus 0 hub 3 port 4 (high speed)
USB bus 0 device 6vendor 413C product 1010 class 09: USB Hub
USB
: New device connected to bus 0 hub 6 port 4 (low speed)
USB bus 0 device 7vendor 413C product 2110 class 03Human-Interface Device
USBHID
Keyboard Configured.
Requested state A4 (1800MHz)
To get back into the menutype 'menu' on the CFE command prompt
[CFE ]CFEboot -elf -noints -fs=amigafs ide0.0:sata.elf
Loader
:elf Filesys:amigafs Dev:ide0.0 File:sata.elf Options:(null)
Loading0x0000000000100000/4064 0x0000000000100FE0/1145 0x0000000000101459/35 Entry at 0x0000000000100000
Starting program at 0x0000000000100000
[RUN!]=== SATA FIX v13b ===
  
Both channels slave fix skip diag

Finding CFE API
...
  
Seal at 0x7FD1F458dispatch at 0x7FD206A4
  Boot chaining
installed
Step 0
AHCI port status
  Port 0
: (empty)
  
Port 1: (empty)
  
Port 2: (empty)
  
Port 3: (empty)
  
Ch0 probe bitmask0x00000000
  Ch1 probe bitmask
0x00000000

  No 
new devices to probe.
*** 
command status 0
CFE
show devices
Device Name          Description
-------------------  ---------------------------------------------------------
uart0                NS16550 UART at 0xFCFF03F8
pcconsole0           PC Console 
(USB/VESA)
eeprom0              Microchip 24LC128 EEPROM on SMBus channel 0 dev 0x57
eth0                 PA Semi Ethernet 
(ge3at 0xE00A3000 (02-00-E0-0A-30-00)
flash0.os            SPI flash at FFE00000 offset 00000000 size 1024KB
flash0
.boot          SPI flash at FFE00000 offset 00100000 size 1024KB
therm0               TI TMP423 Thermal Sensor on SMBus channel 0 dev 0x4C
cf0                  CompactFlash ATA disk unit 0 at 0xF0000000
ide0.0               PCI IDE disk unit 0 at I
/O 0000 (PCI:E0590000)
atapi0.1             PCI IDE disk unit 1 at I/O 0000 (PCI:E0590000)
usbdisk0             USB Disk unit 0
usbdisk1             USB Disk unit 1
*** command status 0

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: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Home away from home
Home away from home


See User information
@Sailor
Ok thanks, now all clear, i just hardcoded IDE barX addresses in hope they always the same on every x1000, but as we insert other PCI devices then enumeration happens, and CFE reassign them differently a bit : simple swap IO ports addresses.

And whole thing about SATA/IDE wording on boot, it's just harmless cosmetic : doesn't matter what it goes through the same IDE-legacy-emulation code, with only one difference that it detect by some bit how to printf (maybe they prepare for future updates which never come dunno).


Main point is that those things are dynamic, and i do it hardcore in hope CFE will not play games, but is it, so i had to take into account that IO ports of ide/sata can be swaped.

So...

@Tuvok, Sailor

Plz test new version in which i add detection of "swapped" IO, it still hardcore, but i very hope it will deal with any setup we had. If not, then i will be in needs to make something more mature:

https://kas1e.mikendezign.com/aos4/x1000/firmware/s2.zip

There a lot added since first one, but before i put it to wild test it plz. What new is :

Quote:

- UDMA read! loading of modules 0.3s instead of 8s !
- Fixed the case when with new PCI cards added CFE swap the IO ports for IDE/SATA, to avoid patching wrong addresses.
- Added proper versioning of added devices, theme:

SATA port 0 -> Channel 0 master -> ide0.0
SATA port 2 -> Channel 0 slave -> ide0.1
SATA port 1 -> Channel 1 master -> ide1.0
SATA port 3 -> Channel 1 slave -> ide1.1

- Added check so second run of patch will not add the same devices twice or more times.
- Fixed CFE's description format bug in ide-emualtion probe function causing "0000" in IO fiels instead of actual data (i.e. when you do "show devices").
- Tested with bunch of different configurations : one hdd in any port/channel, 2 hdds in different channels/ports, single CDs, 2 CDs, mixed hdds and CD/CDs, with added PCI cards, without, etc,etc.


Resized Image



@Hypex
Quote:

Was that a lot of work? I suppose the OF API doesn't have any commands for setting PIO or DMA? The default PIO0 mode would be on purpose for the safest boot option.


Those are only DMA reads (not writes) as that what we need from CFE : fast loading. And after i add dma to pa6t network driver, it wasn't issue.

Quote:

I wondered why it is using a bitmap mode and not using a proper text mode?


Probably why they choose to use not textmode in CFE but instead VGA/FB : drawing graphics, background, counter, initial "splay animation" and so on. With pure Text mode that no go, but yeah, they can do for pure typing text mode, and when animation/graphics come switch to other mode, but then this mean small pauses, switching modes, etc, so they just choice one single covering all. But hardcode it to 8 bit :)

Quote:

Can RadeonRX support 8 bit modes? So this is trouble all along?


RadeonRX have fully removed 8 bit modes hardware wise, so no more. And yeah, currently that the problem i fight with: need to patch quite a few drawing CFE functions, so instead of 8bpp they will do 32bpp if RadeonRX is detected, but as i have no source but only disasm/decompile by Ghidra, it's all hardcore..

Quote:

We were told it was because RX cards have a UEFI BIOS and didn't support the old VGABIOS in CFE or something like that. Or is it a combo of these issues? You couldn't have hacked a UEFI x86 emulator in there as well already?


I simple dump the ROM of my RX car and yes, it do have atombios of course, but it also have standard x86 legacy VGABIOS too (with the same magic 0x55AA at top ROM), but then, even if it also have legacy bios, this one have different flow of commands, etc, so in some way that indeed was issue with "bios", but not because it's atom or not, but because legacy version of bios differs.

CFE simple check magic words at top of rom (0x55aa), if it found then it's legacy bios, let's execute it and go further to run X86EMU to executes this legacy code. For framebuffer/VBE there no needs for any additional stuff from atombios, so legacy one enough.

So why it freeze before if it legacy bios till ? Because it's have different legacy bios code .. And it wasn't freeze, it was end-less loop: Polaris's legacy bios turns off a clock that powers the GPU's PCI connection, and while on a normal PC, the PCI bridge says "oh, clock came back" and reconnects, on our only-amiga-make-it-possible, the PCI bridge says "it's gone" and never looks again => GPU is dead => we in loop. So i simple hook sys_outl (io write func) and monitor every write, and once find the one which use one of guilty registers force it back and clock stays alive : i.e one IF and one OR. All the other stuff untouched.

The problems i have right now : i want to speed up initialization and fix properly 8bit-to-32bit hooks.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Just can't stay away
Just can't stay away


See User information
@kas1e (and @all)

Quote:
In other words there maybe worth to patch to have 5 and 6 be 1900 and 2000 or something, just to avoid typing it all manually, but for while being it all can be added right in STARTUP, like:

set pmu -astate=a0; set astate 4 -speed=2000; set pmu -astate=a4; menu

Just wanted to share what I did to be able to use this and still be able to switch back to 1800 MHz easily (sometimes when testing I want to make sure some result is the same under both frequencies).

I set up the SPEED variable like above, except with 1800 as speed and then a second one I call SPEED2 with the 2000 like above. Then I can just change the STARTUP var to refer either to SPEED or to SPEED2, which is much shorter to type in at the CFE prompt.

Like so:

SPEED=set pmu -astate=a0set astate 4 -speed=1800set pmu -astate=a4
SPEED2
=set pmu -astate=a0set astate 4 -speed=2000set pmu -astate=a4
STARTUP
=SPEED2menu


BTW, the names of the CFE vars seem to be case-sensitive, so if you define the variable as speed, you might have both a speed and a SPEED var. If necessary, remove one of them with e.g. "unsetvar speed".

Best regards,

Niels

Go to top

  Register To Post
« 1 2 (3)

 




Currently Active Users Viewing This Thread: 3 ( 0 members and 3 Anonymous Users )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
8 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project