Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2005 20:44:25 +0100
From:      Rink Springer <rink@stack.nl>
To:        imp@bsdimp.com
Cc:        ed@fxq.nl, freebsd-arch@freebsd.org
Subject:   Re: FreeBSD/xbox: updated 7.0 patchset
Message-ID:  <20051107194424.GA35394@stack.nl>
In-Reply-To: <200511071118.35041.jhb@freebsd.org>
References:  <20051106222359.GC46752@stack.nl> <200511071118.35041.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

OK, I've updated the patchset. Changes:

- opt_xbox.h is now used instead of opt_global.h
- xboxfb.c should follow style(9) better
- boot_font.c is no longer patched
- 128MB XBOX-es should work too [1]

It is fetchable from
http://rink.nu/downloads/xbox-patches/xbox-7-current.v2.diff

Oh, and for John's comment: The reason pic16l.s is coded in assembly, was
that it was used extensively while debugging (it even resided in
locore.s for a while :-), as being able to change the LED's color is
immensely useful if you don't have a framebuffer working already :) This
is why I'd prefer to keep this file as-is.

[1] I have no way of testing this; volunteers are very welcome!

--=20
Rink P.W. Springer                                - http://rink.nu
"God, root, what is difference?"                  - Pitr, Userfriendly

* John Baldwin (jhb@freebsd.org) wrote:
> On Sunday 06 November 2005 05:23 pm, Rink Springer wrote:
> > Hello everyone,
> >
> > I'd like to present my 7.0-CURRENT XBOX patches. If you put 'options
> > XBOX' in your kernel after applying this patch, you will get a kernel
> > that is bootable on both ordinary i386 PC's as well as XBOX'es. 'device
> > xboxfb' is an XBOX-capable frame buffer.
> >
> > You can download the patches from
> > http://rink.nu/downloads/xbox-patches/xbox-7-current.diff. I hope this
> > patch will be committed to the FreeBSD source tree. Let me know any
> > suggestions for improvements.
> >
> > The XBOX option depends on I686_CPU and will error out if it is not
> > supplied. The overall patch is just over 1000 lines, mainly due to the
> > framebuffer driver. You will need the most recent CVS version of
> > Cromwell [1], as it now fakes FreeBSD boot info so the initial entry
> > won't halt the CPU. This removes the patches in the locore.s file.
> >
> > For some reason, the kernel will not work fine if you have syscons in y=
our
> > kernel. This only affects the XBOX, so either syscons crashes it somehow
> > or it gets a higher priority. However, as the current framedriver driver
> > needs to be syscon(4)-ized, I intend to port the framebuffer to the VESA
> > framework. Assistance on this is very welcome.
> >
> > Finally, I am willing to maintain this so future FreeBSD's will run on
> > the XBOX without any issues. Work is underway for the nForce ethernet as
> > well as an improved syscons(4)-able console driver.
> >
> > [1] This is the Linux BIOS for the XBOX; it was patched in order to boot
> >     FreeBSD correctly.
>=20
> It might be nice to have as much of pci16l.s in C as possible for ease of=
=20
> maintenance.  For example, at least two of the functions I looked at in t=
here=20
> just call a p16l_setbits() and that could be done via an inline function =
in a=20
> header file.
>=20
> --=20
> John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve"  =3D  http://www.FreeBSD.org
>=20

--G4iJoqBmSsgzjUCe
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDb66Yb3O60uztv/8RAqASAJ4/iAW1/C/6m1q42EvBQoDtFmGtNgCfUovP
LBEMW9xEHjWZogCslJsTqIg=
=q8zi
-----END PGP SIGNATURE-----

--G4iJoqBmSsgzjUCe--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051107194424.GA35394>