New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configs/arch: add powerpc64 e5500 arch #9

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@jmbents
Copy link
Contributor

jmbents commented Mar 1, 2018

Update to add toolchains for powerpc64 e5500

Signed-off-by: Jared Bents jared.bents@rockwellcollins.com

configs/arch: add powerpc64 e5500 arch
Update to add toolchains for powerpc64 e5500

Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
@jmbents

This comment has been minimized.

Copy link
Contributor

jmbents commented Mar 1, 2018

I am still working on getting the environment setup to verify the toolchain build works

@tpetazzoni

This comment has been minimized.

Copy link
Contributor

tpetazzoni commented Mar 1, 2018

Thanks for this contribution. Is there a suitable Qemu emulation that can be used to test such a toolchain ? If I understand correctly, it's based on the e500mc CPU core, so qemu-system-ppc64 -cpu e500mc -M ppc64-series should do the trick. I'll give it a try.

@tpetazzoni

This comment has been minimized.

Copy link
Contributor

tpetazzoni commented Mar 1, 2018

Build started at https://gitlab.com/free-electrons/toolchains-builder/pipelines/18271134. We'll see what it gives :-)

@jmbents

This comment has been minimized.

Copy link
Contributor

jmbents commented Mar 1, 2018

Yes, it is based on the e500mc so that should work.

@jmbents

This comment has been minimized.

Copy link
Contributor

jmbents commented Mar 2, 2018

Ah looks like it still needs work. I'll work through it today.

@tpetazzoni

This comment has been minimized.

Copy link
Contributor

tpetazzoni commented Mar 2, 2018

Yeah, the Qemu emulation didn't boot up:

qemu-system-ppc64 -M pseries -cpu POWER7 -m 256 -kernel /builds/free-electrons/toolchains-builder/build/opt/test-powerpc64-e5500--glibc--stable/images/vmlinux -append console=hvc0 root=/dev/sda  -drive file=/builds/free-electrons/toolchains-builder/build/opt/test-powerpc64-e5500--glibc--stable/images/rootfs.ext2,if=scsi,index=0,format=raw -display curses -cpu e500mc -nographic

failed with:

qemu-system-ppc64: Unable to find sPAPR CPU Core definition

Could you have a look into this ?

@matthew-l-weber

This comment has been minimized.

Copy link

matthew-l-weber commented Mar 3, 2018

E500mc is the compatibility mode for a e5500 chip. We'll have to setup for a e5500 core and I hope NXP Upstreamed that like they should. I know it's on their public Fork of qemu.

We will also be submitting a e6500 which was the last of the power architecture from nxp.

@tpetazzoni

This comment has been minimized.

Copy link
Contributor

tpetazzoni commented Mar 3, 2018

Qemu does have E5500 in its list of CPUs:

$ qemu-system-ppc64 -cpu ? | grep 5500
PowerPC e5500            PVR 80240020

However, I've not been able to use it so far. For now, I'll include the E5500 as another architecture variant, without Qemu testing. If we can add Qemu testing later on, it'd be nice.

@tpetazzoni

This comment has been minimized.

Copy link
Contributor

tpetazzoni commented Mar 29, 2018

@jmbents @matthew-l-weber Any news on this topic ?

@matthew-l-weber

This comment has been minimized.

Copy link

matthew-l-weber commented Mar 31, 2018

Haven't looked at it. I will see able kicking off a build this weekend to see if I can figure out the QEMU args to make it work.

@matthew-l-weber

This comment has been minimized.

Copy link

matthew-l-weber commented Mar 31, 2018

@tpetazzoni

This comment has been minimized.

Copy link
Contributor

tpetazzoni commented Mar 31, 2018

@matthew-l-weber Cool, thanks for following up on this! The defconfig testing is based on an association between an architecture variant name and the corresponding defconfig in Buildroot, see https://github.com/free-electrons/toolchains-builder/blob/master/build.sh#L63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment