9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Fwd:  9pi on qemu failure
       [not found] <D0AA9853-AFD7-455A-BA05-792F6BF97354@hamnavoe.com>
@ 2014-06-08 16:02 ` Richard Miller
  2014-06-09  7:40   ` [9fans] " Yoann Padioleau
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Miller @ 2014-06-08 16:02 UTC (permalink / raw)
  To: 9fans

>> This works though with a linux kernel compiled for the raspberry, e.g.
>> from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
>> wget http://xecdesign.com/downloads/linux-qemu/kernel-qemu

I would bet that linux kernel isn't actually configured for the
raspberry pi -- it will be for a generic arm1176.  The pi's processor isn't
an arm1176 exactly; it's a Broadcom bcm2835 videocore gpu, with an arm
core grafted on.  It's highly unlikely that qemu knows how to emulate
this well enough for a native bcm kernel like 9pi to run successfuly.
The "emulating raspberry pi the easy way" is not really emulating the
pi, just using a generic arm kernel to run linux software from a
raspberry pi linux distribution image.

If you want to run 9pi, I recommend buying a raspberry pi.  They aren't
expensive, and native Plan 9 is a much more rewarding experience.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] 9pi on qemu failure
  2014-06-08 16:02 ` [9fans] Fwd: 9pi on qemu failure Richard Miller
@ 2014-06-09  7:40   ` Yoann Padioleau
  2014-06-09  8:30     ` Skip Tavakkolian
  0 siblings, 1 reply; 5+ messages in thread
From: Yoann Padioleau @ 2014-06-09  7:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi,

I have a raspberry pi :) but I've found it incredibly convenient to have an emulator
to test things. The development iterative loop is far faster when you can cross-compile
from your pc and test directly on your pc. Then once it works you can deploy
and test on the real machine. Anyway, I understand it would be complicated
to make plan9 works on qemu for arm1176.

On Jun 8, 2014, at 9:02 AM, Richard Miller <9fans@hamnavoe.com> wrote:

>>> This works though with a linux kernel compiled for the raspberry, e.g.
>>> from https://urldefense.proofpoint.com/v1/url?u=http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=%2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=xtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg6YJxYvceJz4dKM6VilU%3D%0A&s=aafa0b698d8faa75b24756ff8567b8699fd2686c0d38562cc6c97e5a00bcf362 
>>> wget https://urldefense.proofpoint.com/v1/url?u=http://xecdesign.com/downloads/linux-qemu/kernel-qemu&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=%2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=xtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg6YJxYvceJz4dKM6VilU%3D%0A&s=bbec0427d0c6670d2da7f7bb614919390a9829436af5205dc85696cf4cb582e5
> 
> I would bet that linux kernel isn't actually configured for the
> raspberry pi -- it will be for a generic arm1176.  The pi's processor isn't
> an arm1176 exactly; it's a Broadcom bcm2835 videocore gpu, with an arm
> core grafted on.  It's highly unlikely that qemu knows how to emulate
> this well enough for a native bcm kernel like 9pi to run successfuly.
> The "emulating raspberry pi the easy way" is not really emulating the
> pi, just using a generic arm kernel to run linux software from a
> raspberry pi linux distribution image.
> 
> If you want to run 9pi, I recommend buying a raspberry pi.  They aren't
> expensive, and native Plan 9 is a much more rewarding experience.
> 
> 




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] 9pi on qemu failure
  2014-06-09  7:40   ` [9fans] " Yoann Padioleau
@ 2014-06-09  8:30     ` Skip Tavakkolian
  0 siblings, 0 replies; 5+ messages in thread
From: Skip Tavakkolian @ 2014-06-09  8:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 2095 bytes --]

if you setup an auth+fs+cpu machine, then you can tftp boot the pi(s); it
is just as fast.


On Mon, Jun 9, 2014 at 12:40 AM, Yoann Padioleau <pad@fb.com> wrote:

> Hi,
>
> I have a raspberry pi :) but I've found it incredibly convenient to have
> an emulator
> to test things. The development iterative loop is far faster when you can
> cross-compile
> from your pc and test directly on your pc. Then once it works you can
> deploy
> and test on the real machine. Anyway, I understand it would be complicated
> to make plan9 works on qemu for arm1176.
>
> On Jun 8, 2014, at 9:02 AM, Richard Miller <9fans@hamnavoe.com> wrote:
>
> >>> This works though with a linux kernel compiled for the raspberry, e.g.
> >>> from
> https://urldefense.proofpoint.com/v1/url?u=http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=%2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=xtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg6YJxYvceJz4dKM6VilU%3D%0A&s=aafa0b698d8faa75b24756ff8567b8699fd2686c0d38562cc6c97e5a00bcf362
> >>> wget
> https://urldefense.proofpoint.com/v1/url?u=http://xecdesign.com/downloads/linux-qemu/kernel-qemu&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=%2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=xtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg6YJxYvceJz4dKM6VilU%3D%0A&s=bbec0427d0c6670d2da7f7bb614919390a9829436af5205dc85696cf4cb582e5
> >
> > I would bet that linux kernel isn't actually configured for the
> > raspberry pi -- it will be for a generic arm1176.  The pi's processor
> isn't
> > an arm1176 exactly; it's a Broadcom bcm2835 videocore gpu, with an arm
> > core grafted on.  It's highly unlikely that qemu knows how to emulate
> > this well enough for a native bcm kernel like 9pi to run successfuly.
> > The "emulating raspberry pi the easy way" is not really emulating the
> > pi, just using a generic arm kernel to run linux software from a
> > raspberry pi linux distribution image.
> >
> > If you want to run 9pi, I recommend buying a raspberry pi.  They aren't
> > expensive, and native Plan 9 is a much more rewarding experience.
> >
> >
>
>
>

[-- Attachment #2: Type: text/html, Size: 3366 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] 9pi on qemu failure
  2014-06-08  0:57 Yoann Padioleau
@ 2014-06-08 11:56 ` erik quanstrom
  0 siblings, 0 replies; 5+ messages in thread
From: erik quanstrom @ 2014-06-08 11:56 UTC (permalink / raw)
  To: 9fans

On Sat Jun  7 20:58:54 EDT 2014, pad@fb.com wrote:

> Hi,
>
> I've tried to run 9pi from richard miller on qemu but failed
> http://plan9.bell-labs.com/sources/contrib/miller/
>
> qemu-system-arm -cpu arm1176 -m 512 -M versatilepb -kernel 9pi
> qemu: fatal: Trying to execute code outside RAM or ROM at 0x80010028

does anyone have the s9pi kernel image that corresponds to this?
i don't so i can't connect this failure to the source.

- erik



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [9fans] 9pi on qemu failure
@ 2014-06-08  0:57 Yoann Padioleau
  2014-06-08 11:56 ` erik quanstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Yoann Padioleau @ 2014-06-08  0:57 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1611 bytes --]

Hi,

I've tried to run 9pi from richard miller on qemu but failed
http://plan9.bell-labs.com/sources/contrib/miller/

qemu-system-arm -cpu arm1176 -m 512 -M versatilepb -kernel 9pi
qemu: fatal: Trying to execute code outside RAM or ROM at 0x80010028

R00=00000000 R01=00052078 R02=00000552 R03=00000fff
R04=00003000 R05=000009ff R06=1ff0040e R07=21000000
R08=7f000000 R09=00000000 R10=00000000 R11=00001805
R12=000a8ffc R13=80002ffc R14=00010058 R15=80010028
PSR=000001d3 ---- A svc32
s00=00000000 s01=00000000 d00=0000000000000000
s02=00000000 s03=00000000 d01=0000000000000000
s04=00000000 s05=00000000 d02=0000000000000000
s06=00000000 s07=00000000 d03=0000000000000000
s08=00000000 s09=00000000 d04=0000000000000000
s10=00000000 s11=00000000 d05=0000000000000000
s12=00000000 s13=00000000 d06=0000000000000000
s14=00000000 s15=00000000 d07=0000000000000000
s16=00000000 s17=00000000 d08=0000000000000000
s18=00000000 s19=00000000 d09=0000000000000000
s20=00000000 s21=00000000 d10=0000000000000000
s22=00000000 s23=00000000 d11=0000000000000000
s24=00000000 s25=00000000 d12=0000000000000000
s26=00000000 s27=00000000 d13=0000000000000000
s28=00000000 s29=00000000 d14=0000000000000000
s30=00000000 s31=00000000 d15=0000000000000000
FPSCR: 00000000
abort trap: 6



This works though with a linux kernel compiled for the raspberry, e.g.
from http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/

  *   wget http://xecdesign.com/downloads/linux-qemu/kernel-qemu


and then
qemu-system-arm -cpu arm1176 -m 512 -M versatilepb -kernel kernel-qemu

works.


[-- Attachment #2: Type: text/html, Size: 3502 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-09  8:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <D0AA9853-AFD7-455A-BA05-792F6BF97354@hamnavoe.com>
2014-06-08 16:02 ` [9fans] Fwd: 9pi on qemu failure Richard Miller
2014-06-09  7:40   ` [9fans] " Yoann Padioleau
2014-06-09  8:30     ` Skip Tavakkolian
2014-06-08  0:57 Yoann Padioleau
2014-06-08 11:56 ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).