Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

s390 boot testing #232

Open
tpimh opened this issue Feb 11, 2020 · 16 comments · May be fixed by #327
Open

s390 boot testing #232

tpimh opened this issue Feb 11, 2020 · 16 comments · May be fixed by #327
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tpimh
Copy link
Contributor

tpimh commented Feb 11, 2020

Let's continue discussion from #229.

Quick summary:

  • QEMU actually can emulate processors newer than Z900 (Debian Buster has qemu 3.1.0 which should emulate IBM machines up to z12)
  • Buildroot dropped support for s390 back in 2009 (gentoo netboot initramfs may be an alternative)
  • When booting (qemu-system-s390x -m 512m -machine s390-ccw-virtio -initrd images/s390/rootfs.cpio -display none -serial mon:stdio -kernel linux/arch/s390/boot/bzImage) there was a kernel fault: S390 support #229 (comment)
@tpimh tpimh added enhancement New feature or request help wanted Extra attention is needed labels Feb 11, 2020
@nickdesaulniers
Copy link
Member

@tpimh can you please find the commit to buildroot that dropped s390 support as reference?

@tpimh
Copy link
Contributor Author

tpimh commented Jul 9, 2020

@nickdesaulniers
Copy link
Member

@groeck has s390 images: https://github.com/groeck/linux-build-test/tree/master/rootfs/s390

Not sure if they auto shutdown a machine or not, but we should try them out!

@nickdesaulniers
Copy link
Member

@groeck also reverted the removal of s390 from his fork of buildroot: groeck/buildroot@2cf1334

Maybe we should use that!?

@nickdesaulniers
Copy link
Member

cc @nathanchance

@nathanchance
Copy link
Member

We could. However, I think the root file system is a moot point until we can actually get the kernel to start: ClangBuiltLinux/boot-utils#11 (comment)

@groeck
Copy link

groeck commented Sep 10, 2020

WFM, with my scripts at github (see above)

@shenki
Copy link
Member

shenki commented Sep 16, 2020

FYI, an IBMer is submitting buildroot support for s390 upstream: http://patchwork.ozlabs.org/project/buildroot/list/?series=201991

@eaibmz
Copy link

eaibmz commented Sep 25, 2020

IBM s390x and Z arch has officially landed today in buildroot master 😄

@nickdesaulniers
Copy link
Member

@eaibmz thank you so much for the work that went into adding s390x buildroot support! I owe you a 🍺 !

It looks like from our QEMU boot test repo, we're using buildroot release 2020.02.
https://github.com/ClangBuiltLinux/boot-utils/blob/master/buildroot/rebuild.sh#L42

So once we know the latest release that contains support, we can easily update that line to make use of the newer buildroot release. It looks like the latest release is 2020.08 which was last modified 2020-09-01. It looks like v3 was submitted 2020-09-16, so it looks like we'll need to wait for the 2020.09 release (or one of the 2020.09-rc* release candidates) of buildroot. I don't want to use the snapshot. Does that sound like the correct version?

@nickdesaulniers
Copy link
Member

It looks like 2020.08.1 was released on 2020-10-12. We should be able to use that.

nickdesaulniers added a commit to ClangBuiltLinux/boot-utils that referenced this issue Oct 16, 2020
Link: ClangBuiltLinux/continuous-integration#232
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
nickdesaulniers added a commit to ClangBuiltLinux/boot-utils that referenced this issue Oct 16, 2020
Link: ClangBuiltLinux/continuous-integration#232
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
nickdesaulniers added a commit that referenced this issue Oct 16, 2020
Now that we have the buildroot image, we can boot test.

Fixes: #232
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
@nickdesaulniers nickdesaulniers linked a pull request Oct 16, 2020 that will close this issue
nickdesaulniers added a commit to ClangBuiltLinux/boot-utils that referenced this issue Oct 17, 2020
Link: ClangBuiltLinux/continuous-integration#232
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
@eaibmz
Copy link

eaibmz commented Oct 19, 2020

It looks like 2020.08.1 was released on 2020-10-12. We should be able to use that.

I think it was just a bugfix release and it doesn't have s390x support yet.
The next release which shall support s390x is 2020.11, in November 2020.
The s390x was merged on 24. September, after the 2020.08 release, unfortunately.

@nickdesaulniers
Copy link
Member

I think it was just a bugfix release and it doesn't have s390x support yet.

Then what image file is in ClangBuiltLinux/boot-utils#26 then? Spooky

@nickdesaulniers
Copy link
Member

oh, indeed, the buildroot/src/ dir has nothing that looks s390 related in it...

@eaibmz
Copy link

eaibmz commented Oct 20, 2020

This shall work if s390x is present:
ls -l configs/qemu_s390x_defconfig

@eaibmz
Copy link

eaibmz commented Oct 20, 2020

I think it was just a bugfix release and it doesn't have s390x support yet.

Then what image file is in ClangBuiltLinux/boot-utils#26 then? Spooky

Indeed, I wonder what you built :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants