Re: creating a tftpboot kernel/compiling a kernel for ultra 5

1999-07-02 Thread Edmund GRIMLEY EVANS
Martin Bruns wrote:
> 
> Compiling a kernel failed with this:
> atyfb.c: In function `atyfb_ioctl':
> atyfb.c:2213: `FBTYPE_PCI_GENERIC' undeclared (first use this function)
> atyfb.c:2213: (Each undeclared identifier is reported only once
> atyfb.c:2213: for each function it appears in.)
> atyfb.c: In function `atyfb_mmap':
> atyfb.c:2251: warning: integer constant out of range
> atyfb.c: In function `atyfb_init':
> atyfb.c:2835: `_PAGE_CACHE' undeclared (first use this function)
> atyfb.c:2836: `_PAGE_E' undeclared (first use this function)
> atyfb.c:2849: `_PAGE_IE' undeclared (first use this function)
> atyfb.c:3029: warning: integer constant out of range
> 
> Kernel-source 2.2.9 or 2.2.10. I guess it compiles sparc and not sparc64
> but how to change this.

Do you mean the other way round? FBTYPE_PCI_GENERIC, _PAGE_CACHE, etc
are only defined in include/asm-sparc64/fbio.h.

The file atyfb.c is only used if CONFIG_FB_ATY. Do you need that? If
not, just unconfigure it, I suppose.

Edmund


Re: creating a tftpboot kernel/compiling a kernel for ultra 5

1999-07-02 Thread Adam Di Carlo
Martin Bruns <[EMAIL PROTECTED]> writes:

> I installed Debian/Sparc on an ultra 5. Since I want to use the
> solaris-emulation I have to recompile the kernel this solris-emul on. The
> stock slink kernel-image is lacking this.
> 
> Compiling a kernel failed with this:
> atyfb.c: In function `atyfb_ioctl':
> atyfb.c:2213: `FBTYPE_PCI_GENERIC' undeclared (first use this function)

> Kernel-source 2.2.9 or 2.2.10. I guess it compiles sparc and not sparc64
> but how to change this.

Have you followed the kernel compilation instructions at 
   http://www.debian.org/ports/sparc64/
?

--
.Adam Di [EMAIL PROTECTED]http://www.onShore.com/>


Re: creating a tftpboot kernel/compiling a kernel for ultra 5

1999-07-01 Thread Eric Delaunay
Andreas Jaehnigen wrote:
> Your Sun can only boot from an A.OUT image- however, the kernel image is
> ELF binary format. (Also, this will be the format of every kernel you
> compile youself.) You may "check" this (in a rather sloppy way) by
> issuing a
>   file 
> Result will be "ELF binary".
> 
> Solution:
> 
> You have to convert your image into A.OUT. For this, use the "elftoaout"
> utility from the netboot package:
>   
> ftp://ftp.debian.org/debian/dists/slink/main/binary-sparc/net/netboot_0.8.1-1.1.deb

Hmm, there is no elftoaout in this release of netboot :(
Better try a look at sparc-utils under the misc section.
It also provides you tilo required to build tftpboot image for both sparc32 and
sparc64 at the same time.

Regards.

-- 
 Eric Delaunay | "La guerre justifie l'existence des militaires.
 [EMAIL PROTECTED] | En les supprimant." Henri Jeanson (1900-1970)


Re: creating a tftpboot kernel/compiling a kernel for ultra 5

1999-07-01 Thread Andreas Jaehnigen
Hi...

> Kernel-source 2.2.9 or 2.2.10. I guess it compiles sparc and not sparc64
> but how to change this.

No clue about this :-( Maybe somebody can help...?

> I also tried to create a tftpboot from the potato kernel-image but I'm not
> able to make it ;-(. 

Your Sun can only boot from an A.OUT image- however, the kernel image is
ELF binary format. (Also, this will be the format of every kernel you
compile youself.) You may "check" this (in a rather sloppy way) by
issuing a
file 
Result will be "ELF binary".

Solution:

You have to convert your image into A.OUT. For this, use the "elftoaout"
utility from the netboot package:

ftp://ftp.debian.org/debian/dists/slink/main/binary-sparc/net/netboot_0.8.1-1.1.deb

If you have compiled the kernel yourself, it will probably be gzipped. SILO
can handle this, but elftoaout can't. So uncompress the image first!

You can also glimpse at the mailimg list archives, Eric explained the
whole thing to me some time ago... :-) (Thanks again!)


-- 
cya
ANDI