From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: In-Reply-To: From: Alexander Sychev Date: Mon, 8 Jul 2019 10:51:34 +0300 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="0000000000003546d7058d26b773" Subject: Re: [9fans] Plan 9 won't boot on Xen 8.0 Topicbox-Message-UUID: 0148c7f2-eada-11e9-9d60-3106f5b1d025 --0000000000003546d7058d26b773 Content-Type: text/plain; charset="UTF-8" Hi, Xen now looks for a section with name '__xen_guest' starting from a second section. A simple workaround is to make two '__xen_guest' sections (with a small patch of xenelf.c): diff -r xen/mkfile xen2/mkfile 105c107,108 < ./xenelf.$cputype $target.elf $target __xen_guest ''$XENELF'' --- > ./xenelf.$cputype $target.elf $target.elf2 __xen_guest ''$XENELF'' > ./xenelf.$cputype $target.elf2 $target __xen_guest ''$XENELF'' diff -r xen/xenelf.c xen2/xenelf.c 131c131,132 < ns = 0; //GETS(&e.shnum); --- > ns = GETS(&e.shnum); I run it on Xen 4.10.3 On Fri, Jul 5, 2019 at 9:25 AM Alexander Kapshuk < alexander.kapshuk@gmail.com> wrote: > I had Plan 9 running on Xen 7.5. After upgrading to Xen 8.0 Plan 9 > won't boot any more. > I get a 'No bootable device' message displayed. > > The system was previously setup by someone else. > If I can, I would like to try and make it run on Xen 8.0. > > Any tips would be much appreciated. > > -- Best regards, Alexander --0000000000003546d7058d26b773 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Xen now looks for = a section with name '__xen_guest' starting from a second section.
A simple workaround is to make two '__xen_guest' sections = (with a small patch of xenelf.c):

diff -r xen/mkfi= le xen2/mkfile
105c107,108
< =C2=A0 =C2=A0 =C2=A0 ./xenelf.$cputyp= e $target.elf $target __xen_guest ''$XENELF''
---
>= ; =C2=A0 =C2=A0 =C2=A0 ./xenelf.$cputype $target.elf $target.elf2 __xen_gue= st ''$XENELF''
> =C2=A0 =C2=A0 =C2=A0 ./xenelf.$cputy= pe $target.elf2 $target __xen_guest ''$XENELF''
diff -r = xen/xenelf.c xen2/xenelf.c
131c131,132
< =C2=A0 =C2=A0 =C2=A0 ns = =3D 0; //GETS(&e.shnum);
---
> =C2=A0 =C2=A0 =C2=A0 ns =3D GET= S(&e.shnum);

I run it on Xen 4.10.3

On Fri, Jul 5, 201= 9 at 9:25 AM Alexander Kapshuk <alexander.kapshuk@gmail.com> wrote:
I had Plan 9 running on Xen 7.5. After up= grading to Xen 8.0 Plan 9
won't boot any more.
I get a 'No bootable device' message displayed.

The system was previously setup by someone else.
If I can, I would like to try and make it run on Xen 8.0.

Any tips would be much appreciated.



--
Best regards,
=C2=A0 A= lexander
--0000000000003546d7058d26b773--