From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoann Padioleau To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Sun, 8 Jun 2014 00:57:17 +0000 Message-ID: Content-Type: multipart/alternative; boundary="_000_C29BC174DBDD42D980FE400C00963341fbcom_" MIME-Version: 1.0 Subject: [9fans] 9pi on qemu failure Topicbox-Message-UUID: f7808f1c-ead8-11e9-9d60-3106f5b1d025 --_000_C29BC174DBDD42D980FE400C00963341fbcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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=3D00000000 R01=3D00052078 R02=3D00000552 R03=3D00000fff R04=3D00003000 R05=3D000009ff R06=3D1ff0040e R07=3D21000000 R08=3D7f000000 R09=3D00000000 R10=3D00000000 R11=3D00001805 R12=3D000a8ffc R13=3D80002ffc R14=3D00010058 R15=3D80010028 PSR=3D000001d3 ---- A svc32 s00=3D00000000 s01=3D00000000 d00=3D0000000000000000 s02=3D00000000 s03=3D00000000 d01=3D0000000000000000 s04=3D00000000 s05=3D00000000 d02=3D0000000000000000 s06=3D00000000 s07=3D00000000 d03=3D0000000000000000 s08=3D00000000 s09=3D00000000 d04=3D0000000000000000 s10=3D00000000 s11=3D00000000 d05=3D0000000000000000 s12=3D00000000 s13=3D00000000 d06=3D0000000000000000 s14=3D00000000 s15=3D00000000 d07=3D0000000000000000 s16=3D00000000 s17=3D00000000 d08=3D0000000000000000 s18=3D00000000 s19=3D00000000 d09=3D0000000000000000 s20=3D00000000 s21=3D00000000 d10=3D0000000000000000 s22=3D00000000 s23=3D00000000 d11=3D0000000000000000 s24=3D00000000 s25=3D00000000 d12=3D0000000000000000 s26=3D00000000 s27=3D00000000 d13=3D0000000000000000 s28=3D00000000 s29=3D00000000 d14=3D0000000000000000 s30=3D00000000 s31=3D00000000 d15=3D0000000000000000 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. --_000_C29BC174DBDD42D980FE400C00963341fbcom_ Content-Type: text/html; charset="us-ascii" Content-ID: <013A1BD4ADAFFC49A8D1405AC754B2E3@fb.com> Content-Transfer-Encoding: quoted-printable 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=3D00000000 R01=3D00052078 R02=3D00000552 R03=3D00000fff
R04=3D00003000 R05=3D000009ff R06=3D1ff0040e R07=3D21000000
R08=3D7f000000 R09=3D00000000 R10=3D00000000 R11=3D00001805
R12=3D000a8ffc R13=3D80002ffc R14=3D00010058 R15=3D80010028
PSR=3D000001d3 ---- A svc32
s00=3D00000000 s01=3D00000000 d00=3D0000000000000000
s02=3D00000000 s03=3D00000000 d01=3D0000000000000000
s04=3D00000000 s05=3D00000000 d02=3D0000000000000000
s06=3D00000000 s07=3D00000000 d03=3D0000000000000000
s08=3D00000000 s09=3D00000000 d04=3D0000000000000000
s10=3D00000000 s11=3D00000000 d05=3D0000000000000000
s12=3D00000000 s13=3D00000000 d06=3D0000000000000000
s14=3D00000000 s15=3D00000000 d07=3D0000000000000000
s16=3D00000000 s17=3D00000000 d08=3D0000000000000000
s18=3D00000000 s19=3D00000000 d09=3D0000000000000000
s20=3D00000000 s21=3D00000000 d10=3D0000000000000000
s22=3D00000000 s23=3D00000000 d11=3D0000000000000000
s24=3D00000000 s25=3D00000000 d12=3D0000000000000000
s26=3D00000000 s27=3D00000000 d13=3D0000000000000000
s28=3D00000000 s29=3D00000000 d14=3D0000000000000000
s30=3D00000000 s31=3D00000000 d15=3D0000000000000000
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-wa= y/ 


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

works.

--_000_C29BC174DBDD42D980FE400C00963341fbcom_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 8 Jun 2014 07:56:18 -0400 To: 9fans@9fans.net Message-ID: <9c7f562d2d70f5c374f0a2b991a26545@brasstown.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] 9pi on qemu failure Topicbox-Message-UUID: f7b36374-ead8-11e9-9d60-3106f5b1d025 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoann Padioleau To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Mon, 9 Jun 2014 07:40:27 +0000 Message-ID: <6A8E390C-6DFC-4DA1-98F1-BA29D06CFAEA@fb.com> References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-ID: <82D470147356DE41893A745E55E6DB08@fb.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [9fans] 9pi on qemu failure Topicbox-Message-UUID: f8aafae4-ead8-11e9-9d60-3106f5b1d025 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 c= ross-compile from your pc and test directly on your pc. Then once it works you can deplo= y 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=3Dhttp://xecdesign.com/= qemu-emulating-raspberry-pi-the-easy-way/&k=3DZVNjlDMF0FElm4dQtryO4A%3D%3D%= 0A&r=3D%2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=3DxtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg= 6YJxYvceJz4dKM6VilU%3D%0A&s=3Daafa0b698d8faa75b24756ff8567b8699fd2686c0d385= 62cc6c97e5a00bcf362=20 >>> wget https://urldefense.proofpoint.com/v1/url?u=3Dhttp://xecdesign.com/= downloads/linux-qemu/kernel-qemu&k=3DZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=3D%2= FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=3DxtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg6YJxYvceJ= z4dKM6VilU%3D%0A&s=3Dbbec0427d0c6670d2da7f7bb614919390a9829436af5205dc85696= cf4cb582e5 >=20 > 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. >=20 > 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. >=20 >=20 From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <6A8E390C-6DFC-4DA1-98F1-BA29D06CFAEA@fb.com> References: <6A8E390C-6DFC-4DA1-98F1-BA29D06CFAEA@fb.com> Date: Mon, 9 Jun 2014 01:30:51 -0700 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e011824a86d575a04fb63076f Subject: Re: [9fans] 9pi on qemu failure Topicbox-Message-UUID: f8cc33d0-ead8-11e9-9d60-3106f5b1d025 --089e011824a86d575a04fb63076f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 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 complicate= d > 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=3Dhttp://xecdesign.com/qemu-em= ulating-raspberry-pi-the-easy-way/&k=3DZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=3D= %2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=3DxtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg6YJxYvc= eJz4dKM6VilU%3D%0A&s=3Daafa0b698d8faa75b24756ff8567b8699fd2686c0d38562cc6c9= 7e5a00bcf362 > >>> wget > https://urldefense.proofpoint.com/v1/url?u=3Dhttp://xecdesign.com/downloa= ds/linux-qemu/kernel-qemu&k=3DZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=3D%2FN9d7W2= LRwZks3eyFNLr8Q%3D%3D%0A&m=3DxtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg6YJxYvceJz4dKM6V= ilU%3D%0A&s=3Dbbec0427d0c6670d2da7f7bb614919390a9829436af5205dc85696cf4cb58= 2e5 > > > > 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. > > > > > > > --089e011824a86d575a04fb63076f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
if you setup an auth+fs+cpu machine, then you can tftp boo= t the pi(s); it is just as fast.


On Mon, Jun 9, 2014 at 12:40 AM, Yoann Padioleau <= span dir=3D"ltr"><pad@fb= .com> wrote:
Hi,

I have a raspberry pi :) but I've found it incredibly convenient to hav= e an emulator
to test things. The development iterative loop is far faster when you can c= ross-compile
from your pc and test directly on your pc. Then once it works you can deplo= y
and test on the real machine. Anyway, I understand it would be complicated<= br> 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 raspber= ry, e.g.
>>> from https://urldefense.proofpoint.com/v1/url?u=3Dhttp://xecdesign.com/q= emu-emulating-raspberry-pi-the-easy-way/&k=3DZVNjlDMF0FElm4dQtryO4A%3D%= 3D%0A&r=3D%2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=3DxtUc%2B%2BLTD9Nd9zD= zA3%2BHrYrg6YJxYvceJz4dKM6VilU%3D%0A&s=3Daafa0b698d8faa75b24756ff8567b8= 699fd2686c0d38562cc6c97e5a00bcf362
>>> wget https://u= rldefense.proofpoint.com/v1/url?u=3Dhttp://xecdesign.com/downloads/linux-qe= mu/kernel-qemu&k=3DZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=3D%2FN9d7W2LRw= Zks3eyFNLr8Q%3D%3D%0A&m=3DxtUc%2B%2BLTD9Nd9zDzA3%2BHrYrg6YJxYvceJz4dKM6= VilU%3D%0A&s=3Dbbec0427d0c6670d2da7f7bb614919390a9829436af5205dc85696cf= 4cb582e5
>
> I would bet that linux kernel isn't actually configured for the > raspberry pi -- it will be for a generic arm1176. =C2=A0The pi's p= rocessor isn't
> an arm1176 exactly; it's a Broadcom bcm2835 videocore gpu, with an= arm
> core grafted on. =C2=A0It's highly unlikely that qemu knows how to= emulate
> this well enough for a native bcm kernel like 9pi to run successfuly.<= br> > The "emulating raspberry pi the easy way" is not really emul= ating 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. =C2=A0They = aren't
> expensive, and native Plan 9 is a much more rewarding experience.
>
>



--089e011824a86d575a04fb63076f--