Re: Fedora PPC console=? to get serial console

2009-06-12 Thread James Laska
On Fri, 2009-06-12 at 10:59 +0100, Daniel P. Berrange wrote:
> On Thu, Jun 11, 2009 at 01:34:25PM -0400, Josh Boyer wrote:
> > On Thu, Jun 11, 2009 at 10:38 AM, Richard W.M. Jones 
> > wrote:
> > >
> > > (Posting here because the fedora-ppc list is a bit overrun with spam
> > > http://lists.infradead.org/pipermail/fedora-ppc/ )
> > >
> > > Does anyone know what 'console=...' parameter I should give the Fedora
> > > PPC kernel to get it to use a serial console?
> > >
> > > Debian uses the non-standard form console=ttyPZ0
> > 
> > That is for the special G5 serial cards I believe.
> > 
> > > I've also seen console=hvc0 mentioned.  Obviously I also tried
> > > console=ttyS0.
> > 
> > hvc0 is for machines like POWER4/5/6 and possibly a couple others.
> 
> hvc0 is a virtual console device. As well as some PPC machines, its used
> for Xen paravirt console, and KVM's virtio console device, and possibly
> s390 too IIRC

Along with console=hvc0 for ppc blades and virtual ppc systems, I use
console=hvsi0 on some bare metal Power5 ppc64 systems.

Thanks,
James


signature.asc
Description: This is a digitally signed message part
-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Re: Fedora PPC console=? to get serial console

2009-06-12 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 01:34:25PM -0400, Josh Boyer wrote:
> On Thu, Jun 11, 2009 at 10:38 AM, Richard W.M. Jones wrote:
> >
> > (Posting here because the fedora-ppc list is a bit overrun with spam
> > http://lists.infradead.org/pipermail/fedora-ppc/ )
> >
> > Does anyone know what 'console=...' parameter I should give the Fedora
> > PPC kernel to get it to use a serial console?
> >
> > Debian uses the non-standard form console=ttyPZ0
> 
> That is for the special G5 serial cards I believe.
> 
> > I've also seen console=hvc0 mentioned.  Obviously I also tried
> > console=ttyS0.
> 
> hvc0 is for machines like POWER4/5/6 and possibly a couple others.

hvc0 is a virtual console device. As well as some PPC machines, its used
for Xen paravirt console, and KVM's virtio console device, and possibly
s390 too IIRC

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Fedora PPC console=? to get serial console

2009-06-11 Thread Josh Boyer
On Thu, Jun 11, 2009 at 4:36 PM, Richard W.M. Jones wrote:
> On Thu, Jun 11, 2009 at 09:49:03PM +0300, Jussi Lehtola wrote:
>> On Thu, 2009-06-11 at 19:33 +0100, Richard W.M. Jones wrote:
>> > It's useful to be able to run Fedora on qemu-system-ppc, if only
>> > because it allows me to track down build problems that only affect the
>> > ppc builders.  (Which in fact is what got me into this in the first
>> > place).
>>
>> btw, we don't currently have a howto: debug failing builds on esoteric
>> architectures. Is it as simple as running mock
>>  $ mock -r fedora-11-ppc package.srpm
>> and testing the binaries with
>>  $ qemu-system ./binary
>
> I'm pretty sure this won't work.  mock would (via yum) try to install
> RPMs which had %post scripts that would need to run PPC binaries.
> Then the whole make/compiler would also be PPC binaries and so
> wouldn't run in mock.
>
> What I'm trying is to boot a Fedora PPC virtual machine, which I then
> log into and run mock (or rpmbuild or whatever) inside.
>
>        - - -
>
> PPC64 is a complete mystery to me though.  The errors I get from qemu
> seem to indicate that 'qemu-system-ppc64 -cpu ppc64' doesn't
> understand the 64 bit opcodes in the ppc64 kernel.  But it claims to
> be emulating a PowerPC 970FX (which is a 64 bit processor, commonly
> known as the G5).
>

64-bit opcodes would be odd, since the opcodes on ppc64 are still 32-bit.

For ppc64 systems, it also depends on what class of arch it is
presenting.  I would expect a CHRP setup for ppc970, but I have no
idea.

If you send me an ssh pubkey, I can get you an account on a G5.  That
should work for anything except kernel or glibc debug.

> Doesn't Fedora PPC64 have a 64 bit kernel and 32 bit userland?

Mostly, yes.

josh

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Fedora PPC console=? to get serial console

2009-06-11 Thread Richard W.M. Jones
On Thu, Jun 11, 2009 at 09:49:03PM +0300, Jussi Lehtola wrote:
> On Thu, 2009-06-11 at 19:33 +0100, Richard W.M. Jones wrote:
> > It's useful to be able to run Fedora on qemu-system-ppc, if only
> > because it allows me to track down build problems that only affect the
> > ppc builders.  (Which in fact is what got me into this in the first
> > place).
> 
> btw, we don't currently have a howto: debug failing builds on esoteric
> architectures. Is it as simple as running mock
>  $ mock -r fedora-11-ppc package.srpm
> and testing the binaries with
>  $ qemu-system ./binary

I'm pretty sure this won't work.  mock would (via yum) try to install
RPMs which had %post scripts that would need to run PPC binaries.
Then the whole make/compiler would also be PPC binaries and so
wouldn't run in mock.

What I'm trying is to boot a Fedora PPC virtual machine, which I then
log into and run mock (or rpmbuild or whatever) inside.

- - -

PPC64 is a complete mystery to me though.  The errors I get from qemu
seem to indicate that 'qemu-system-ppc64 -cpu ppc64' doesn't
understand the 64 bit opcodes in the ppc64 kernel.  But it claims to
be emulating a PowerPC 970FX (which is a 64 bit processor, commonly
known as the G5).

Doesn't Fedora PPC64 have a 64 bit kernel and 32 bit userland?

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Fedora PPC console=? to get serial console

2009-06-11 Thread Jussi Lehtola
On Thu, 2009-06-11 at 19:33 +0100, Richard W.M. Jones wrote:
> It's useful to be able to run Fedora on qemu-system-ppc, if only
> because it allows me to track down build problems that only affect the
> ppc builders.  (Which in fact is what got me into this in the first
> place).

btw, we don't currently have a howto: debug failing builds on esoteric
architectures. Is it as simple as running mock
 $ mock -r fedora-11-ppc package.srpm
and testing the binaries with
 $ qemu-system ./binary
?
-- 
Jussi Lehtola
Fedora Project Contributor
jussileht...@fedoraproject.org

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Fedora PPC console=? to get serial console

2009-06-11 Thread Richard W.M. Jones
On Thu, Jun 11, 2009 at 01:34:25PM -0400, Josh Boyer wrote:
> On Thu, Jun 11, 2009 at 10:38 AM, Richard W.M. Jones wrote:
> > I'm using qemu-system-ppc, not a real machine.
> 
> I have no idea.  I've never used that and the last time I looked it
> was emulating some kind of really old system we don't even support.

It's useful to be able to run Fedora on qemu-system-ppc, if only
because it allows me to track down build problems that only affect the
ppc builders.  (Which in fact is what got me into this in the first
place).

Fedora ppc (32 bit) boots on qemu from git, but not our build of qemu
(BZ 505109).  Albeit without serial console[1].

I haven't been able to get Fedora ppc64 to do anything at all, neither
with Fedora's qemu, nor with qemu from git.  I'm not even sure I'm
doing it right.

Rich.

[1] qemu-system-ppc emulates PC-style serial ports (ie. 16550A).  The
Fedora ppc kernel contains the right driver and prints a message
indicating that ports are available, but for some reason nothing is
actually sent or received.  I guess that no real PPC hardware would
have such serial ports.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Fedora PPC console=? to get serial console

2009-06-11 Thread Josh Boyer
On Thu, Jun 11, 2009 at 10:38 AM, Richard W.M. Jones wrote:
>
> (Posting here because the fedora-ppc list is a bit overrun with spam
> http://lists.infradead.org/pipermail/fedora-ppc/ )
>
> Does anyone know what 'console=...' parameter I should give the Fedora
> PPC kernel to get it to use a serial console?
>
> Debian uses the non-standard form console=ttyPZ0

That is for the special G5 serial cards I believe.

> I've also seen console=hvc0 mentioned.  Obviously I also tried
> console=ttyS0.

hvc0 is for machines like POWER4/5/6 and possibly a couple others.


> None of the above seem to work ...
>
> I'm using qemu-system-ppc, not a real machine.

I have no idea.  I've never used that and the last time I looked it
was emulating some kind of really old system we don't even support.

josh

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Fedora PPC console=? to get serial console

2009-06-11 Thread Richard W.M. Jones

(Posting here because the fedora-ppc list is a bit overrun with spam
http://lists.infradead.org/pipermail/fedora-ppc/ )

Does anyone know what 'console=...' parameter I should give the Fedora
PPC kernel to get it to use a serial console?

Debian uses the non-standard form console=ttyPZ0

I've also seen console=hvc0 mentioned.  Obviously I also tried
console=ttyS0.

None of the above seem to work ...

I'm using qemu-system-ppc, not a real machine.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 75 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list