Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
83 user(s) are online (54 user(s) are browsing Forums)

Members: 1
Guests: 82

nbache, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3) 4 »
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
Re: X1000 CFE Patches: Testers Welcome (Fear not: real-time, no reflashing) v.01
Quite a regular
Quite a regular


See User information
@kas1e
Quote:Test of new sata_fix.elf version:

Dual graphics cards allways crashed:
2x gfx card + USB3 + PCI RTL:
[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]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)
PCI bus 6 slot 6/0Realtek Semiconductor product 0x8169 (ethernet networkrev 0x10)
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
.
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 C0208000
USB bus 1 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/1OHCI USB controller found at C0206000
USB bus 2 device 1
vendor 0000 product 0000 class 09: USB Hub
PCI bus 5 slot 19
/2OHCI USB controller found at C0207000
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 413C product 1010 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 4 (low speed)
USB bus 0 device 5vendor 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?fix.elffix.elf ?fix.elffix.elf _fix.elffix.elf
Loader
:elf Filesys:amigafs Dev:ide0.0 File:sata_fix.elf Options:(null)
Loading0x0000000000100000/8376 0x00000000001020B8/2100 0x00000000001028EC/32 Entry at 0x0000000000100000
Starting program at 0x0000000000100000
[RUN!]=== SATA FIX v18 ===
  
Both channels AHCI autodetect ATAPI diag

Finding CFE API
...
  
Seal at 0x7FD1F458dispatch at 0x7FD206A4
  Boot chaining
installed
  PXP_IGNORE_PCIE_ERRORS
set (bus 5 fix)
Step 0UDMA read patch
  BAR4
=0x00001021 -> BMDMA I/O 0x00001020
  DMA trampoline installed 
(732 bytes), UDMA active

** Exception 0x0200SRR0=0000000000100438 SRR1=1000000002103000 [MCheck  cpu0
         LR 
0000000000100D34     CTR 000000017FD562B8
        XER 
0000000000000000   DSISR 00004000
       HID0 
8000000000000000    HID1 000000005CE993B1
       HID4 
4400240000080180    HID5 0000006600000000
       LPCR 
0000000000000002

        r0  
000000000000000D     r1  000000007FFFF830
        r2  
0000000000000000     r3  00000000A020900C
        r4  
0000000000000000     r5  0000000000000001
        r6  
000000000000000A     r7  000000007F000000
        r8  
000000007F000000     r9  0000000000000164
        r10 
0000000000000002     r11 = 00000000001028EC
        r12 
0000000044004022     r13 000000007FD2071C
        r14 
0000000000000000     r15 0000000000000000
        r16 
0000000000000000     r17 0000000000000000
        r18 
0000000000000000     r19 0000000000000000
        r20 
0000000000000000     r21 0000000000000000
        r22 
0000000000000000     r23 0000000000000000
        r24 
0000000000000000     r25 0000000000000000
        r26 
0000000000000000     r27 000000000010215C
        r28 
000000007FD1F460     r29 00000000001022E4
        r30 
000000007FFFF9B8     r31 0000000000000000

[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]


2x gfx card:

[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 413C product 1010 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 4 (low speed)
USB bus 0 device 5vendor 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_fix.elf
Loader
:elf Filesys:amigafs Dev:ide0.0 File:sata_fix.elf Options:(null)
Loading0x0000000000100000/8376 0x00000000001020B8/2100 0x00000000001028EC/32 Entry at 0x0000000000100000
Starting program at 0x0000000000100000
[RUN!]=== SATA FIX v18 ===
  
Both channels AHCI autodetect ATAPI diag

Finding CFE API
...
  
Seal at 0x7FD1F458dispatch at 0x7FD206A4
  Boot chaining
installed
Step 0
UDMA read patch
  BAR4
=0x00001021 -> BMDMA I/O 0x00001020
  DMA trampoline installed 
(732 bytes), UDMA active

** Exception 0x0200SRR0=0000000000100438 SRR1=1000000002103000 [MCheck  cpu0
         LR 
0000000000100D34     CTR 000000017FD562B8
        XER 
0000000000000000   DSISR 00004000
       HID0 
8000000000000000    HID1 000000005CE993B1
       HID4 
4400240000080180    HID5 0000006600000000
       LPCR 
0000000000000002

        r0  
000000000000000D     r1  000000007FFFF830
        r2  
0000000000000000     r3  00000000A020900C
        r4  
0000000000000000     r5  0000000000000001
        r6  
000000000000000A     r7  000000007F000000
        r8  
000000007F000000     r9  = 0000000000000139
        
r10 0000000000000002     r11 = 00000000001028EC
        r12 
0000000044004022     r13 000000007FD2071C
        r14 
0000000000000000     r15 0000000000000000
        r16 
0000000000000000     r17 0000000000000000
        r18 
0000000000000000     r19 0000000000000000
        r20 
0000000000000000     r21 0000000000000000
        r22 
0000000000000000     r23 0000000000000000
        r24 
0000000000000000     r25 0000000000000000
        r26 
0000000000000000     r27 000000000010215C
        r28 
000000007FD1F460     r29 00000000001022E4
        r30 
000000007FFFF9B8     r31 0000000000000000

[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]


Other cards works, all SATA disks found:
1x gfx card + USB3 + PCI RTL:
[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 6 slot 6/0Realtek Semiconductor product 0x8169 (ethernet networkrev 0x10)
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 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 413C product 1010 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 4 (low speed)
USB bus 0 device 5vendor 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_fix.elf
Loader
:elf Filesys:amigafs Dev:ide0.0 File:sata_fix.elf Options:(null)
Loading0x0000000000100000/8376 0x00000000001020B8/2100 0x00000000001028EC/32 Entry at 0x0000000000100000
Starting program at 0x0000000000100000
[RUN!]=== SATA FIX v18 ===
  
Both channels AHCI autodetect ATAPI diag

Finding CFE API
...
  
Seal at 0x7FD1F458dispatch at 0x7FD206A4
  Boot chaining
installed
  PXP_IGNORE_PCIE_ERRORS
set (bus 5 fix)
Step 0UDMA read patch
  BAR4
=0x00001011 -> BMDMA I/O 0x00001010
  DMA trampoline installed 
(732 bytes), UDMA active
Step 1
AHCI port status
  AHCI base
=0xA0209000
  Port 0
PRESENT  SIG=0x00000101 (ATA)
  
Port 1PRESENT  SIG=0x00000101 (ATA)
  
Port 2PRESENT  SIG=0xEB140101 (ATAPI)
  
Port 3PRESENT  SIG=0x00000101 (ATA)
  
IDE signature check:
    
Port 0LBAmid=0xFF LBAhi=0xFF
    Port 1
LBAmid=0x00 LBAhi=0x00
    Port 2
LBAmid=0xFF LBAhi=0xFF -> triggering ATAPI sig... LBAmid=0xFF LBAhi=0xFF FAILED
    Port 3
LBAmid=0x00 LBAhi=0x00
  Ch0 probe bitmask
0x00000000
  Ch1 probe bitmask
0x000000FF

Step 2
Verify patch points
  All 8 patch points verified OK

Step 3
Applying common patches
  5 common patches applied 
(P2+P3+PB+PC+PE)
  
PA applied per-channel (only when master empty)

Step 4aChannel 0 -- boot already found bothskipped

Step 4b
Probing Channel 1 (BAR2)...
  
P1+PD applied (BAR2instance 1master present)
IDE unit 0Disk"ST1000DM003-1ER162"Capacity:931GB (lba48)
SATA unit 1Disk"ST1000DM003-1CH162"Capacity:931GB (lba48)
PCIIDE2 controllers found
  Ch1 probe returned
!

Step 5Restoring original code
  All restored OK

Step 6
Fix boot device I/O description
  Fixed 2 boot description
(s): I/O 0000 -> 1030

=== SATA FIX v18 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 1030 (PCI:E0590000)
atapi0.1             PCI IDE disk unit 1 at I/O 1030 (PCI:E0590000)
usbdisk0             USB Disk unit 0
usbdisk1             USB Disk unit 1
ide1.0               PCI IDE disk unit 0 at I
/O 1048 (PCI:E0590000)
ide1.1               PCI IDE disk unit 1 at I/O 1048 (PCI:E0590000)
*** 
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 1030 (PCI:E0590000)
atapi0.1             PCI IDE disk unit 1 at I/O 1030 (PCI:E0590000)
usbdisk0             USB Disk unit 0
usbdisk1             USB Disk unit 1
ide1.0               PCI IDE disk unit 0 at I
/O 1048 (PCI:E0590000)
ide1.1               PCI IDE disk unit 1 at I/O 1048 (PCI:E0590000)
*** 
command status 0
CFE
>


Also tested gfx + RTL and gfx + USB, both works perfectly.
Thanks @kas1e!

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
When it works try to boot : modules will loads in 0.3s now :)

As for crashes with 2gfx cards , seems again enumeration take place but this time for dma ports (see BAR address differs when you with 2 cards).. Need to check on my own again.. Can you say how you use 2 graphics cards, i.e. which ones and in which slots they installed ? (so i will mimic it there as well)


Edited by kas1e on 2026/4/6 9:11:32
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
@nbache, @kas1e (and @all)
since my STARTUP was 'speed ; menu'
I tried to set speed1 like you, extra1, extra2, extra3 with the three patches than I set STARTUP=extra1 ; extra2 ; extra3 ; speed1 ; menu
but in this way something very strange happen, only the first one and the menu are executed
so to have at least the sata, speed and menu executed i had to set STARTUP with explicit commands.
Maybe since the first one and the menu are executed probabily it's possible to write the first one with the variable, the others in extended form and then the menu

@kas1e I have 2 PCI boards, an RTL8169 and a SCSI one,
HDD on SATA port 1,
HDD on SATA port 2,
DVD on SATA port 3
and with the last sata_fix all compare in show devices, none with the first one.

Nice to see loading modules instantly ;)

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
@pvanni
Quote:

and with the last sata_fix all compare in show devices, none with the first one.


By "compare" you mean "appear" ? I.e. all fine and with last version all devices shows in CFE fine ?

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
@kas1eQuote:
kas1e wrote:@pvanni
Quote:

and with the last sata_fix all compare in show devices, none with the first one.


By "compare" you mean "appear" ? I.e. all fine and with last version all devices shows in CFE fine ?

of corse, "compare" mean "appear" in italian for "appear" we say "compare"
and yes with "show devices" the 2 HDD and the DVD are listed correctly

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
When it works try to boot : modules will loads in 0.3s now :)

As for crashes with 2gfx cards , seems again enumeration take place but this time for dma ports (see BAR address differs when you with 2 cards).. Need to check on my own again.. Can you say how you use 2 graphics cards, i.e. which ones and in which slots they installed ? (so i will mimic it there as well)


I try to boot to AmigaOS: Superspeed loading of modules! Great!

My gfx config is:
PCIe x16 - slot 1: HD7970
PCIe x16 - slot 2 ( in TRM is marked as slot 2 ): HD6970

But when I tried booting from disk on Port 3, receive errors:
Port3 ( ide1.1 ) I cannot dir and cannot boot, it worked in previous version

[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 413C product 1010 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 4 (low speed)
USB bus 0 device 5vendor 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_fix.cz  elf
Loader
:elf Filesys:amigafs Dev:ide0.0 File:sata_fix.elf Options:(null)
Loading0x0000000000100000/8376 0x00000000001020B8/2100 0x00000000001028EC/32 Entry at 0x0000000000100000
Starting program at 0x0000000000100000
[RUN!]=== SATA FIX v18 ===
  
Both channels AHCI autodetect ATAPI diag

Finding CFE API
...
  
Seal at 0x7FD1F458dispatch at 0x7FD206A4
  Boot chaining
installed
Step 0
UDMA read patch
  BAR4
=0x00001021 -> BMDMA I/O 0x00001020
  DMA trampoline installed 
(732 bytes), UDMA active
Step 1
AHCI port status
  AHCI base
=0xA0209000
  Port 0
PRESENT  SIG=0x00000101 (ATA)
  
Port 1PRESENT  SIG=0x00000101 (ATA)
  
Port 2PRESENT  SIG=0xEB140101 (ATAPI)
  
Port 3PRESENT  SIG=0x00000101 (ATA)
  
IDE signature check:
    
Port 0LBAmid=0x54 LBAhi=0x07
    Port 1
LBAmid=0x00 LBAhi=0x00
    Port 2
LBAmid=0x54 LBAhi=0x07 -> triggering ATAPI sig... LBAmid=0x14 LBAhi=0xEB FIXED
    Port 3
LBAmid=0x00 LBAhi=0x00
  Ch0 probe bitmask
0x00000000
  Ch1 probe bitmask
0x000000FF

Step 2
Verify patch points
  All 8 patch points verified OK

Step 3
Applying common patches
  5 common patches applied 
(P2+P3+PB+PC+PE)
  
PA applied per-channel (only when master empty)

Step 4aChannel 0 -- boot already found bothskipped

Step 4b
Probing Channel 1 (BAR2)...
  
P1+PD applied (BAR2instance 1master present)
IDE unit 0Disk"ST1000DM003-1ER162"Capacity:931GB (lba48)
SATA unit 1Disk"ST1000DM003-1CH162"Capacity:931GB (lba48)
PCIIDE2 controllers found
  Ch1 probe returned
!

Step 5Restoring original code
  All restored OK

Step 6
Fix boot device I/O description
  Fixed 2 boot description
(s): I/O 0000 -> 1030

=== SATA FIX v18 DONE ===
Try: 
show devices
*** command status 0
CFE
dir -fs=amigafs ide1.1:
Could not init file systemInsufficient memory
*** command status = -5
CFE
boot -fs=amigafs ide1.1:amigaboot.of
Loader
:elf Filesys:amigafs Dev:ide1.1 File:amigaboot.of Options:(null)
LoadingErrorDRQ should be zero
Had to read data 256 times to clear DRQ
Failed
.
Could not load ide1.1:amigaboot.ofInsufficient memory
*** command status = -5
CFE
boot -fs=amigafs ide1.1:amigaboot.of:amigaboot.of :amigaboot.of :amigaboot.of 0:amigaboot.of.:amigaboot.of0:amigaboot.of:amigaboot.of
Loader
:elf Filesys:amigafs Dev:ide0.0 File:amigaboot.of Options:(null)
Loading0x0000000000200000/61536 Entry at 0x0000000000200000
Starting program at 0x0000000000200000
[RUN!]
AmigaOS 4.x OpenFirmware Bootloader V53.21


previous version has also different ide x.y name mapping.

disks on Port 1 and Port 3 was with previous version ide1.0 and ide0.1 ( which is confusing, because there is also atapi0.1 )
disks on Port 1 and Port 3 is with newer version ide1.0 and ide1.1, which is correct, but unfortunatelly it not boots from ide1.1.

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
Thanks, will check. For non ability to boot from ide1.1: can you also check if it can boot when it ide1.0 ?

ps. were able to reproduce it with 2gfx cards too, good!


Edited by kas1e on 2026/4/6 13:03:22
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
@kas1e

Quote:
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.


Well, safest from the point of view of being the most basic mode. If there are issues with cable or UDMA mode breaks for some reason PIO0 is guaranteed to work.

For example, I've seen bizarre behavior where I've been running Linux and reboot to load up another Linux. The kernel can load up fine but when it boots and enables UDMA suddenly there are SATA errors. Like, I was just using it 5 minutes before with no problems, then reboot and suddenly the SATA bus is broken. By reboot I mean a clean shutdown and reboot from Linux. I can load up OS4 and it seems fine. In such a case having a basic working mode is good.

Quote:
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 :)


Probably not worth even using matrix mode and redefining character set even if it would be faster. 8 bit should be fine since that is basic. More bits means more memory and slower updates.

Quote:
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..


By now, since they have the source back, there should be no need for this. Enough time has passed. Should be a CFE update by now.

So, did some research on this. I found this document:
https://www.amd.com/content/dam/amd/en ... es/8bpp_an_55145_1_00.pdf

In summary non-VGA compatible VESA modes are unsupported. What makes it a VGA compatible mode? So, does this mean that 0x103 was once supported, but because it's still 8 bit it's now banned? The document is from 2014 so could be why my R7 250, which is newer than a HD 7000 listed, supports that VGA mode.

So if now all 8 bit modes are removed that makes it harder. This also means that no Amiga screen modes could be 8 bit either and running classic games will be crippled. An Amiga without 8 bit mode? Sacrilegious. Even so for a modern PC setup not being able to run Doom natively.

Surprised basic modes would be removed. 8 bit is like PIO. A basic primitive. Forcing 32 bit on BIOS screen seems overkill even if it's not called BIOS anymore. The VBIOS should handle character writes on screen so making 8 bit irrelevant if used as API. But, direct graphics will break regardless, unless that can be wrapped up in VBIOS calls and only if CFE uses them. 8 bit is reasonable to expect and efficient compared to 32 bit. But without it would need to be emulated. So a local palette needs loading without hardware palette support, character routines would be trivial but direct framebuffer access would need to be banned with only blit routines converting data.

At the end of the day some new acronyms needs to be used. In this case CFE needs to use UEFI GOP in CSM. Or as close too. It makes me wonder, don't the Sam and X5000 both support UEFI cards? Do they only use 32 bit mode or make use of some new acronyms?

Quote:
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.


Okay, it looked like one of those ones that works as expected on standard PC hardware. So on the X5000 and UBoot it would know about this then? Same for Sam UBoot. While not necessarily trivial that's a lot better than needing a full on x86 emulator replacement. So this almost looks like a slippery slope where the issues preventing it are compounded. But ones that are solved in other platforms so not a dead end yet.

Thanks for all the explanations.

An issue is needing to preload patch. Not so much as an issue on X5000 as it relies on loading firmware from SD card. So kind of like A1000 Kickstart where it needs some code to load it in or in hardware. Perhaps safest on CF card. While preloading from HDD/SDD would be fine, if something goes wrong and user has RX, he will be in the dark unless he's a tech head with a serial interface.

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
@Hypex
Quote:

By now, since they have the source back, there should be no need for this. Enough time has passed. Should be a CFE update by now.

Don't hold the hope anyone will giving us sources of CFE, it in the Trevor's hand and it looks like better collecting dust :) And even if sources will be given to someone now, for sure not many will be in interest to work on, because releasing will be again forced to be someone's wish, and not developer's one.

So the only realistic way : patches in memory for test, then make a patched CFE binary so users can simple reflash and that all (that why i tried this CH341A way). Maybe i also will be in needs to add some basic support of X1000 to qemu, so to check things faster.. But that for later, once all major quirks gone.

Quote:

While preloading from HDD/SDD would be fine, if something goes wrong and user has RX, he will be in the dark unless he's a tech head with a serial interface.


Those patches-in-memory mostly test cases which i later want to add to one single patch, and then when all fine, make a patched real version of CFE, so users can reflash it (but that of course need to be tested and retested millions times, and firstly only by skilled ones, etc). And even then not everyone will be risky enough to do so in fear of having brick.

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
Quite a regular
Quite a regular


See User information
@kas1eQuote:
kas1e wrote:@Sailor
Thanks, will check. For non ability to boot from ide1.1: can you also check if it can boot when it ide1.0 ?

ps. were able to reproduce it with 2gfx cards too, good!


Here is results for boot and dir commands both from ide1.0 and ide1.1
CFEboot -fs=amigafs ide1.0:amigaboot.of
Loader
:elf Filesys:amigafs Dev:ide1.0 File:amigaboot.of Options:(null)
LoadingFailed.
Could not load ide1.0:amigaboot.ofInsufficient memory
*** command status = -5
CFE
boot -fs=amigafs ide1.1:amigaboot.of
Loader
:elf Filesys:amigafs Dev:ide1.1 File:amigaboot.of Options:(null)
LoadingErrorDRQ should be zero
Had to read data 256 times to clear DRQ
Failed
.
Could not load ide1.1:amigaboot.ofInsufficient memory
*** command status = -5
CFE
dir -fs=amigafs ide1.0:
ErrorDRQ should be zero
Had to read data 256 times to clear DRQ
Could not init file system
Insufficient memory
*** command status = -5
CFE
dir -fs=amigafs ide1.1:
ErrorDRQ should be zero
Had to read data 256 times to clear DRQ
Could not init file system
Insufficient memory
*** command status = -5
CFE
>

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


See User information
@kas1e possible vaultdweller on discord might have some insights. He had a public discussion in Nov 2024 with Trevor about CFE and modifying etc

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
@pvanni
Quote:
I tried to set speed1 like you, extra1, extra2, extra3 with the three patches than I set STARTUP=extra1 ; extra2 ; extra3 ; speed1 ; menu
but in this way something very strange happen, only the first one and the menu are executed
so to have at least the sata, speed and menu executed i had to set STARTUP with explicit commands.

Did you enter the setenv command with the whole value string enclosed in quotes? Otherwise I'd imagine it would stop when it reached the first semicolon.

Hmm, but if you say that the menu command was also executed, maybe I'm guessing wrong.

I'm not using the other patches myself (yet), just the speed "hack".

Best regards,

Niels

Go to top

  Register To Post
« 1 2 (3) 4 »

 




Currently Active Users Viewing This Thread: 4 ( 1 members and 3 Anonymous Users )
nbache  



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