Re: How to build custom sparc64 kernel?

2004-03-29 Thread laura halliday

I upgraded my eBay-special Ultra 5 (running woody) to
kernel 2.4.25 over the weekend. I ended up using egcs64
and everything went fine - the kernel build found the
compiler itself and everything fell in to place.

GCC 3.3 built a kernel that appeared to run, but it had
enough issues (unimplemented SPARC system calls,
bizarre numbers from ext2 file systems) that I backed
it off.

The former issue is known; the latter was insane
numbers for size/used/available on the root file system.
Probably a 64-vs-32 bit issue; my workaround (for now)
is the kernel I built with egcs64. If it ain't broke... :-)

GCC 3.3 didn't like the 2.6.4 source one bit, complaining at
length about deprecated use of casts in lvalues and
eventually throwing its hands up and quitting in disgust.
Another issue, for another rainy weekend.

Laura Halliday VE7LDH Que les nuages soient notre
Grid: CN89mg   pied a terre...
ICBM: 49 16.05 N 122 56.92 W - Hospital/Shafte

_
Free yourself from those irritating pop-up ads with MSn Premium. Get 2months 
FREE*  
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines




Re: How to build custom sparc64 kernel?

2004-03-05 Thread Frederik Schueler
Hi,

presumed you use unstable, installing gcc-3.3 and lib64ncurses5-dev
should be enough to make menuconfig and build the kernel. At least 
it is on my U2, wich needs a 64bit kernel too. 

HTH
Frederik Schueler

-- 
ENOSIG



Re: How to build custom sparc64 kernel?

2004-03-05 Thread Igmar Palsenberg

 presumed you use unstable, installing gcc-3.3 and lib64ncurses5-dev
 should be enough to make menuconfig and build the kernel. At least 
 it is on my U2, wich needs a 64bit kernel too. 

The kernel that Sarge ships doesn't support 64 bit ELF's, and that is what 
GCC spits out by default.



Igmar



How to build custom sparc64 kernel?

2004-03-04 Thread Small, Jim
I can't figure out how to build a custom Sparc64 kernel.  I need to build a
64bit custom SMP kernel for an Ultra 60 (2 CPUs).

I have gotten the 2.4.25 source (both Debian and from kernel.org).  I can't
get either (or 2.4.24) to work.

(Note that in between each attempt I do a make mrproper to clean up any
mess)

If I do a make menuconfig, it hangs.

If I do a sparc32 make arch=sparc64 menuconfig, I can create the .config
file:
If I do a make dep, it doesn't work.  It appears that it can't
execute /usr/src/kernel-source-2.4.25/arch/sparc64/kernel/check_asm:
/bin/sh: line 1: ./check_asm: cannot execute binary file
This is a 64bit file.  My current kernel is a 64bit 2.4.18 kernel,
so I'm not sure why it can't execute this file.  Could this have something
to do with the problem?  Why can't I execute a 64bit file?

If I do a sparc32 make arch=sparc64 dep, it will compile
successfully.  However, the output is a collection of 32bit SparcV7
binaries.  This is WRONG!  I need a collection of 64bit SparcV9 binaries.
How do I do that?  If I then do a sparc32 make arch=sparc64 vmlinux modules
modules_install, I end up with a 32bit SparcV7 vmlinux kernel that is not
bootable on an UltraSPARC (my Ultra 60).


I also got the egcs64 package and altered my CC line to:
CC  = $(CROSS_COMPILE)sparc64-linux-gcc.egcs64

This has no effect.  If I repeat the above, I get the same results (doesn't
work or 32bit binaries).



This can't be this hard.  What am I doing wrong?  Does anyone have a step by
step guide to building a 64bit SparcV9 SMP kernel on an UltraSparc machine?


My current configuration:
Linux debian 2.4.18 #2 Thu Apr 11 14:37:17 EDT 2002 sparc64 GNU/Linux

I am running the latest of all packages (unstable) except for SILO.  The
latest version of SILO won't load the vmlinuz kernel on my machine.

Any help would be greatly appreciated.

Thanks,
Jim