Re: AmigaONE && Debian (unstable?)
- To: Ken Moffat <ken@kenmoffat.uklinux.net>
- Cc: Sven Luther <sven.luther@wanadoo.fr>, Turbo Fredriksson <turbo@debian.org>, Debian PowerPC List <debian-powerpc@lists.debian.org>
- Subject: Re: AmigaONE && Debian (unstable?)
- From: Geert Uytterhoeven <geert@linux-m68k.org>
- Date: Sun, 1 Aug 2004 12:03:17 +0200 (MEST)
- Message-id: <[🔎] Pine.GSO.4.58.0408011152240.25657@waterleaf.sonytel.be>
- In-reply-to: <Pine.LNX.4.58.0407311742220.13315@ppg_penguin.kenmoffat.uklinux.net>
- References: <87ekoslzl7.fsf@papadoc.bayour.com> <hhhdtn6dht.fsf@alsvidh.mathematik.uni-muenchen.de> <20040608015815.GB7853@pegasos> <87fz7avl6q.fsf@papadoc.bayour.com> <Pine.LNX.4.58.0407302152180.9189@ppg_penguin.kenmoffat.uklinux.net> <87d62cik71.fsf@papadoc.bayour.com> <20040731112628.GA19182@pegasos> <Pine.LNX.4.58.0407311501360.12559@ppg_penguin.kenmoffat.uklinux.net> <20040731143408.GA20803@pegasos> <Pine.LNX.4.58.0407311607340.12931@ppg_penguin.kenmoffat.uklinux.net> <20040731153938.GA21388@pegasos> <Pine.LNX.4.58.0407311742220.13315@ppg_penguin.kenmoffat.uklinux.net>
On Sat, 31 Jul 2004, Ken Moffat wrote:
> On Sat, 31 Jul 2004, Sven Luther wrote:
> > On Sat, Jul 31, 2004 at 04:24:09PM +0100, Ken Moffat wrote:
> > > On Sat, 31 Jul 2004, Sven Luther wrote:
> > > > What graphic card and thus fbdev are you using ?
> > > >
> > > The notorious radeon 9200se, but under 2.6.7 I'm not using a console fb
> > > yet, just a vga console. X11R6.7.0 just recognises the card and works
> > > without any of the old magic incantations.
> >
> > Interesting, i was not able to use the vgaconsole on my pegasos. Do you have
> > any patches for that ?
> >
>
> From the A1 2.4 stuff -
>
> diff -Nuar linux-2.4.25-vanilla/drivers/video/vgacon.c linux-2.4.25-amigaone/drivers/video/vgacon.c
> --- linux-2.4.25-vanilla/drivers/video/vgacon.c 2002-08-24 13:27:39.000000000 +0100
> +++ linux-2.4.25-amigaone/drivers/video/vgacon.c 2004-06-19 18:00:53.000000000 +0100
> @@ -212,7 +212,11 @@
> else /* If not, it is color. */
> {
> vga_can_do_color = 1;
> +#ifdef CONFIG_AMIGAONE
> + vga_vram_base = 0xFD0B8000; /* Mapped by the startup */
> +#else
> vga_vram_base = 0xb8000;
> +#endif
> vga_video_port_reg = 0x3d4;
> vga_video_port_val = 0x3d5;
> if ((ORIG_VIDEO_EGA_BX & 0xff) != 0x10)
That's not the correct fix. VGA_MAP_MEM() should take into account the ISA
memory space offset.
And in fact it does, cfr. include/asm-ppc/vga.h, just make sure to initialize
vgacon_remap_base with the correct ISA memory space offset.
> There's a similar patch for vga16fb.c -
Vga16fb doesn't use VGA_MAP_MEM(), it just uses ioremap() on the VGA memory.
But arch/ppc/mm/pgtable.c has a special case for mapping memory below 16 MiB,
and adds _ISA_MEM_BASE to such addresses. So you have to make sure to
initialize _ISA_MEM_BASE with the correct ISA memory space offset as well.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Reply to: