Skip to content
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

s390 image #11

Closed
tpimh opened this issue Apr 28, 2020 · 5 comments
Closed

s390 image #11

tpimh opened this issue Apr 28, 2020 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@tpimh
Copy link

tpimh commented Apr 28, 2020

As buildroot no longer supports s390, an alternative should be found.

Relevant issue: ClangBuiltLinux/continuous-integration#232

@tpimh tpimh added the help wanted Extra attention is needed label Apr 28, 2020
@nathanchance
Copy link
Member

ClangBuiltLinux/continuous-integration#229 (comment) needs to be dealt with first.

$ timeout 15s unbuffer qemu-system-s390x -M s390-ccw-virtio -kernel out/s390x/arch/s390/boot/bzImage -m 512 -display none  -serial mon:stdio
KASLR disabled: CPU has no PRNG
Linux version 5.7.0-rc3 (nathan@ubuntu-s3-xlarge-x86) #1 SMP Tue Apr 28 00:12:23 MST 2020Kernel fault: interruption code 0005 ilc:2
PSW : 0000200180000000 00000000000177ea
      R:0 T:0 IO:0 EX:0 Key:0 M:0 W:0 P:0 AS:0 CC:2 PM:0 RI:0 EA:3
GPRS: 0000000000000008 0000000c00000000 00000003fffffff4 0000000000000002
      0000000000000000 00000000fffffff8 000000000000000c 00000000fffffff0
      00000000fffffffc 0000000000000000 00000000fffffff0 000000000086b5a8
      0000000000000009 0000000000000001 00000000fffffff4 000000000000bce0

We should be able to boot all the way until init.

I've started messing around with creating a simple busybox initramfs though.

@nathanchance
Copy link
Member

An incoherent brain dump around the busybox initramfs: https://gist.github.com/nathanchance/3c947281c4fe246be45cdd3dcd4b1e8c

cc @nickdesaulniers from ClangBuiltLinux/continuous-integration#232.

It might be nice to reach out to the s390 folks about it, along with asking if they have done any formal testing around clang (since getting it simply building vs. booting is a completely different story).

@nathanchance
Copy link
Member

WIP: #26

@nathanchance nathanchance linked a pull request Jan 3, 2021 that will close this issue
@nathanchance
Copy link
Member

Looks like QEMU side fixes are needed for clang s390 kernels to boot?

https://lore.kernel.org/qemu-devel/[email protected]/

https://lore.kernel.org/qemu-devel/[email protected]/

I will mess around with those two patches and #26 tomorrow.

@nickdesaulniers
Copy link
Member

fixed in #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants