POWER8 boot.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

POWER8 boot.

Karel Gardas

Hello,

first of all, many thanks to Mark Kettenis & other developers for brand
new powerpc64 port. I've noticed it is developed on P9 machines, but Mr.
Kettenis also provided some patches
which looks like to be intended for P8 machines.

I do have Tyan P8 testing box here and since the note on obsd web site
claims port was not tested on P8, here I'm with my testing results.

I've used miniroot68.img from
https://ftp.openbsd.org/pub/OpenBSD/6.8/powerpc64/ I've dded it to USB
flash like usual on my Ubuntu machine and attempt to boot on P8 brings here:

[28480380148,3] OPAL: Trying a CPU re-init with flags: 0x1
[28507781652,3] OPAL: Trying a CPU re-init with flags:
0x1─────────────────────
[28507873754,3] OPAL: Trying a CPU re-init with flags: 0x4
H[29564120410,3] OPAL: Called with bad token 117 !
e[29564190417,3] OPAL: Called with bad token 117 !
l[29568101915,3] OPAL: Called with bad token 117 !
l[29569392415,3] OPAL: Called with bad token 117 !
o[29569964383,3] OPAL: Called with bad token 117 !
,[29570028351,3] OPAL: Called with bad token 117 !
  [29570602446,3] OPAL: Called with bad token 117 !
W[29571173275,3] OPAL: Called with bad token 117 !
o[29571737229,3] OPAL: Called with bad token 117 !
r[29572221697,3] OPAL: Called with bad token 117 !
l[29572285761,3] OPAL: Called with bad token 117 !
d[29572802151,3] OPAL: Called with bad token 117 !
![29573322202,3] OPAL: Called with bad token 117 !

[29574399295,3] OPAL: Called with bad token 117 !
[29574470494,3] OPAL: Called with bad token 117 !

^ here machine resetted itself. On next boot it complains about some
corrupted values somewhere, hence rebooted again.

The machine itself is able to run (tested by me): ubuntu 18.04.x LTS,
ubuntu 20.04.x LTS, debian unstable and freebsd 13-current. I'm
attaching dmesg of boot from debian and freebsd for the reference.

Unfortunately I don't have P9 machine here so I'm not easily able to
test diffs. The only possibility may be to install OpenBSD into qemu's
PowerNV emulation VM.
If anyone here does have experience with it especially with required
command-line of qemu start, I would appreciate any notes on it.

Thanks!
Karel


debian-boot-power8.txt (66K) Download Attachment
freebsd-boot-power8.txt (107K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: POWER8 boot.

Mark Kettenis
> From: Karel Gardas <[hidden email]>
> Date: Mon, 19 Oct 2020 16:59:41 +0200
>
> Hello,
>
> first of all, many thanks to Mark Kettenis & other developers for brand
> new powerpc64 port. I've noticed it is developed on P9 machines, but Mr.
> Kettenis also provided some patches
> which looks like to be intended for P8 machines.
>
> I do have Tyan P8 testing box here and since the note on obsd web site
> claims port was not tested on P8, here I'm with my testing results.
>
> I've used miniroot68.img from
> https://ftp.openbsd.org/pub/OpenBSD/6.8/powerpc64/ I've dded it to USB
> flash like usual on my Ubuntu machine and attempt to boot on P8 brings here:
>
> [28480380148,3] OPAL: Trying a CPU re-init with flags: 0x1
> [28507781652,3] OPAL: Trying a CPU re-init with flags:
> 0x1─────────────────────
> [28507873754,3] OPAL: Trying a CPU re-init with flags: 0x4
> H[29564120410,3] OPAL: Called with bad token 117 !
> e[29564190417,3] OPAL: Called with bad token 117 !
> l[29568101915,3] OPAL: Called with bad token 117 !
> l[29569392415,3] OPAL: Called with bad token 117 !
> o[29569964383,3] OPAL: Called with bad token 117 !
> ,[29570028351,3] OPAL: Called with bad token 117 !
>   [29570602446,3] OPAL: Called with bad token 117 !
> W[29571173275,3] OPAL: Called with bad token 117 !
> o[29571737229,3] OPAL: Called with bad token 117 !
> r[29572221697,3] OPAL: Called with bad token 117 !
> l[29572285761,3] OPAL: Called with bad token 117 !
> d[29572802151,3] OPAL: Called with bad token 117 !
> ![29573322202,3] OPAL: Called with bad token 117 !
>
> [29574399295,3] OPAL: Called with bad token 117 !
> [29574470494,3] OPAL: Called with bad token 117 !
>
> ^ here machine resetted itself. On next boot it complains about some
> corrupted values somewhere, hence rebooted again.
>
> The machine itself is able to run (tested by me): ubuntu 18.04.x LTS,
> ubuntu 20.04.x LTS, debian unstable and freebsd 13-current. I'm
> attaching dmesg of boot from debian and freebsd for the reference.
>
> Unfortunately I don't have P9 machine here so I'm not easily able to
> test diffs. The only possibility may be to install OpenBSD into qemu's
> PowerNV emulation VM.
> If anyone here does have experience with it especially with required
> command-line of qemu start, I would appreciate any notes on it.

Hi Karel,

I just committed a fix that should stop these messages:

> [29574470494,3] OPAL: Called with bad token 117 !

That probably doesn't fix things, but nevertheless it would be
interesting to try a new snapshot in a day or two.  Snapshots can be
downloaded from:

  https://ftp.openbsd.org/pub/OpenBSD/snapshots/powerpc64/

At this point OpenBSD does not run under QEMU's PowerNV emulation.  I
don't understand why, but I see some meory corruption that doesn't
happen on real hardware.

It is actually possible to build powerpc64 kernels on (for example) an
amd64 machine.  If you install the llvm port:

# pkg_add llvm

And then build the kernel as follows:

$ cd /usr/src/sys/arch/powerpc64/compile/GENERIC
$ make obj
$ make config
$ make CC="/usr/local/bin/clang --target=powerpc64-openbsd"

stripping the final bsd kernel will fail, but the unstripped bsd.gdb
can be used.  If you put the bsd.gdb kernel on an HTTP server,
together with a file with something like:

label OpenBSD
    kernel http://server/bsd.gdb
    initrd http://server/bsd.gdb

in it, you should be able to boot the kernel by using the "Retreive
config from URL" menu option in Petitboot.

I can also provide pre-compiled kernels or images for you to test.

Cheers,

Mark

Reply | Threaded
Open this post in threaded view
|

Re: POWER8 boot.

Theo de Raadt-2
> That probably doesn't fix things, but nevertheless it would be
> interesting to try a new snapshot in a day or two.

New powerpc64 snapshots are landing about twice a day.