AmigaOne X5000 - FreeBSD Only

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
Skateman
Posts: 861
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: AmigaOne X5000 - FreeBSD Only

Post by Skateman »

Yep
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
chmeee
Posts: 8
Joined: Wed Mar 07, 2018 9:04 pm

Re: AmigaOne X5000 - FreeBSD Only

Post by chmeee »

Skateman wrote:Like mentioned in the FreeBSD readme i have adjusted the setenv loadaddr from 1000000 to 0x3ffffc0

Ubuntu booted and all functional. The DPAA network issues still appear. To bad..
I will revert the the setenv loadaddr 0x3ffffc0 to 1000000

It was worth the try :-)
Did it boot at all, and fail to attach the ethernet controller? I've been running FreeBSD on my X5000 for 6 months without any major issues. One thing to note, if the ethernet controller is just failing, the device tree may need updated. The device tree included with Linux is incomplete/incorrect, as the X5000 PHYs are attached via RGMII, not TBI. I have a device tree that works, at https://people.freebsd.org/~jhibbits/cy ... _amiga.dts , that you will need to compile with: dtc -I dts -O dtb -s 65536 -o cyrus_p5020_amiga.dtb cyrus_p5020_amiga.dts . The "-s 65536" is important, so that there's enough room for uboot fixups.

If you have a good device tree, or your kernel just isn't booting at all (gets stuck before even printing the Copyright message) you may need to recompile your dtb file to grow it, as mentioned above.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: AmigaOne X5000 - FreeBSD Only

Post by xeno74 »

Hi All,

Here you are:

Download: cyrus_p5020_x5000.dtb

Compiled with the command:

Code: Select all

dtc -I dts -O dtb -S 65536 -o cyrus_p5020_x5000.dtb cyrus_p5020_amiga.dts
Download: cyrus_p5020_x5000-2.dtb

Compiled with the command:

Code: Select all

dtc -I dts -O dtb -S 131072 -o cyrus_p5020_x5000-2.dtb cyrus_p5020_amiga.dts
Download: cyrus_p5020_x5000-3.dtb

Compiled with the command:

Code: Select all

make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc cyrus_p5020.dtb

Code: Select all

cp arch/powerpc/boot/cyrus_p5020.dtb ../cyrus_p5020_x5000-3.dtb
Please test them.

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Skateman
Posts: 861
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: AmigaOne X5000 - FreeBSD Only

Post by Skateman »

@Xeno74

Just replacing the new Blob for the one i am using now does not solve the DPAA network issues.
I have tried all three but not luck yet.

I will spend some more time on this later.

Thanks
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: AmigaOne X5000 - FreeBSD Only

Post by xeno74 »

Skateman wrote:@Xeno74

Just replacing the new Blob for the one i am using now does not solve the DPAA network issues.
I have tried all three but not luck yet.

I will spend some more time on this later.

Thanks
Thank you for testing. Were you able to boot the X5000 with all three blobs?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Skateman
Posts: 861
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: AmigaOne X5000 - FreeBSD Only

Post by Skateman »

Yeah the X5000 booted without problems with all blobs
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
daz
Beta Tester
Beta Tester
Posts: 329
Joined: Tue Dec 21, 2010 7:32 pm

Re: AmigaOne X5000 - FreeBSD Only

Post by daz »

chmeee wrote:
Skateman wrote:Like mentioned in the FreeBSD readme i have adjusted the setenv loadaddr from 1000000 to 0x3ffffc0

Ubuntu booted and all functional. The DPAA network issues still appear. To bad..
I will revert the the setenv loadaddr 0x3ffffc0 to 1000000

It was worth the try :-)
Did it boot at all, and fail to attach the ethernet controller? I've been running FreeBSD on my X5000 for 6 months without any major issues. One thing to note, if the ethernet controller is just failing, the device tree may need updated. The device tree included with Linux is incomplete/incorrect, as the X5000 PHYs are attached via RGMII, not TBI. I have a device tree that works, at https://people.freebsd.org/~jhibbits/cy ... _amiga.dts , that you will need to compile with: dtc -I dts -O dtb -s 65536 -o cyrus_p5020_amiga.dtb cyrus_p5020_amiga.dts . The "-s 65536" is important, so that there's enough room for uboot fixups.

If you have a good device tree, or your kernel just isn't booting at all (gets stuck before even printing the Copyright message) you may need to recompile your dtb file to grow it, as mentioned above.
I've had a look at this (yuk, it'd be a lot easier to read if you used symbols for phandles) and the changes seem to be the same as the ones we tried last year/earlier this year.

We've had the ethernet running with kernels derived from NXP's SDK, but not from main line. Where have you got your driver from? Can you try one of our hacked dtb files and see if it boots OK on FreeBSD? If it does we know we need to hassle the NXP guys to get it fixed. They think it could be an iommu config error in our firmware, which I assume would also break your driver.

Can you try the one here, seems to be the best option.
http://forum.hyperion-entertainment.biz ... =58&t=3945

Thanks
Darren
chmeee
Posts: 8
Joined: Wed Mar 07, 2018 9:04 pm

Re: AmigaOne X5000 - FreeBSD Only

Post by chmeee »

daz wrote: I've had a look at this (yuk, it'd be a lot easier to read if you used symbols for phandles) and the changes seem to be the same as the ones we tried last year/earlier this year.

We've had the ethernet running with kernels derived from NXP's SDK, but not from main line. Where have you got your driver from? Can you try one of our hacked dtb files and see if it boots OK on FreeBSD? If it does we know we need to hassle the NXP guys to get it fixed. They think it could be an iommu config error in our firmware, which I assume would also break your driver.

Can you try the one here, seems to be the best option.
http://forum.hyperion-entertainment.biz ... =58&t=3945

Thanks
Darren
Sorry for the 4 month delay, been busy with a Talos and Tabor.

I'll try your config soon, but wanted to respond to your 'yuk' comment: The dts was generated as a dump from my X5000's uboot (fdt print /, or similar), post-'fdt boardsetup', so all the phandles have been mangled, then fixed up by me. It was most certainly not a manual creation.

- Justin
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: AmigaOne X5000 - FreeBSD Only

Post by xeno74 »

Hi Justin,

Thanks for your reply! :-) I compiled your dts file 4 months ago. Unfortunately the problem still exists with the DPAA network. Do you have another hint for us? Maybe you could compile your dts file for us again. We would be happy to test it.

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
chmeee
Posts: 8
Joined: Wed Mar 07, 2018 9:04 pm

Re: AmigaOne X5000 - FreeBSD Only

Post by chmeee »

xeno74 wrote:Hi Justin,

Thanks for your reply! :-) I compiled your dts file 4 months ago. Unfortunately the problem still exists with the DPAA network. Do you have another hint for us? Maybe you could compile your dts file for us again. We would be happy to test it.

Thanks,
Christian
Hi Christian,

I just booted with your dtb. There was one change I needed to make with it: Yours is missing a /chosen node. FreeBSD needs a /chosen node with stdin and stdout properties. I also needed to make a change to FreeBSD, which I'll commit tonight.

My /chosen node looks like:

Code: Select all

chosen {
    stdin = "serial0";
    stdout = "serial0";
};
- Justin
Post Reply