AmigaOne X5000 - FreeBSD Only

AmigaOne X5000 platform specific issues related to Linux only.

Re: AmigaOne X5000 - FreeBSD Only

Postby Skateman » Fri May 25, 2018 8:20 pm

Yep
User avatar
Skateman
 
Posts: 204
Joined: Thu Aug 10, 2017 9:36 pm
Location: The Netherlands

Re: AmigaOne X5000 - FreeBSD Only

Postby chmeee » Sat Jun 02, 2018 5:41 am

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.
chmeee
 
Posts: 3
Joined: Wed Mar 07, 2018 10:04 pm

Re: AmigaOne X5000 - FreeBSD Only

Postby xeno74 » Sat Jun 02, 2018 10:46 pm

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
xeno74
 
Posts: 3991
Joined: Fri Mar 23, 2012 8:58 am

Re: AmigaOne X5000 - FreeBSD Only

Postby Skateman » Sun Jun 03, 2018 10:29 pm

@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
User avatar
Skateman
 
Posts: 204
Joined: Thu Aug 10, 2017 9:36 pm
Location: The Netherlands

Re: AmigaOne X5000 - FreeBSD Only

Postby xeno74 » Mon Jun 04, 2018 8:45 am

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
xeno74
 
Posts: 3991
Joined: Fri Mar 23, 2012 8:58 am

Re: AmigaOne X5000 - FreeBSD Only

Postby Skateman » Mon Jun 04, 2018 2:36 pm

Yeah the X5000 booted without problems with all blobs
User avatar
Skateman
 
Posts: 204
Joined: Thu Aug 10, 2017 9:36 pm
Location: The Netherlands

Re: AmigaOne X5000 - FreeBSD Only

Postby daz » Mon Jun 04, 2018 10:50 pm

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/viewtopic.php?f=58&t=3945

Thanks
Darren
daz
Beta Tester
Beta Tester
 
Posts: 302
Joined: Tue Dec 21, 2010 8:32 pm

Re: AmigaOne X5000 - FreeBSD Only

Postby chmeee » Wed Oct 10, 2018 10:15 pm

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/viewtopic.php?f=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
chmeee
 
Posts: 3
Joined: Wed Mar 07, 2018 10:04 pm

Re: AmigaOne X5000 - FreeBSD Only

Postby xeno74 » Thu Oct 11, 2018 5:46 am

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.
User avatar
xeno74
 
Posts: 3991
Joined: Fri Mar 23, 2012 8:58 am

Previous

Return to Platform: AmigaOne X5000 - Linux Only

Who is online

Users browsing this forum: No registered users and 3 guests