Re: Building Kernels and Kernel modules
Jamie Beverly <[email protected]>
| Newsgroups | gmane.linux.aurora.devel |
|---|---|
| Message-ID | <[email protected]> |
make xconfig breaks a few sparc specifics (items not in the pretty gui) just use make config (or if you are not prone to typo, just edit the configuration file directly, it's pretty strait forward.) On Fri, 2003-04-25 at 12:41, Kevin Curtis wrote: > Hi, > I've been working on Linux on ia32 for some time now. This week we > decided to see what it would take to port our drivers to ultraLinux. > > I have a ultra spar 60, on which I installed aurora 1.0 (I didn't > worry about X at this stage). I seem to have two problems at the moment: > > 1) Building the 2.4.20 Kernel > I have downloaded the 2.4.20 Kernel from www.kernel.org and started with the > default config file (defconfig) from the /usr/src/linux/arch/sparc64 > directory. The first time I built the Kernel all was OK. However it didn't > load because the required scsi driver wasn't included. So I ran make > xconfig to add it. But then after a > make dep > make vmlinux > > I go an error from fonts.c in driver/video indicating that no fonts were > defined. > > #ifdef NO_FONTS > #error No fonts configured. > #endif > > This error wouldn't go away until I did a > > make mrproper > make oldconfig > make dep > make vmlinux > > I then made another change to the Kernel config and the same thing happened. > > Can anyone throw some light on this? > > Also, in an effort to reduce the number of modules, and therefore the build > time, I have tries to trim the config. I seem to have done something that > produces the following message when the boot process tries to start init > > INIT: cannot fork, retry.. > > it does this ad infinitum. > > > > 2) 32 bit User / 64 Bit Kernel > For sparc64 I realise that userland is 32 bits and Kernel space is 64 bits. > I have built a Kernel module in userland and I am trying to load it into the > Kernel. I get the following error message: > > [root@icarus kernel]# /sbin/insmod fred.o > fsx25.o: ELF file fred.o not for this architecture > > I assume this is to do with the 32/64 bit issue. What magic do I need to > place in my Makefile or which tool do I need to use to build a module that > can be loaded. > > > > I have spent a couple of hours searching with google but haven't found any > help with either of these two matters. I hope someone can help. > > > Thanks > > Kevin Curtis > Linux Development > FarSite Communications Ltd > [email protected] > tel: +44 1256 330461 > fax: +44 1256 854931 > http://www.farsite.co.uk > _______________________________________________ > aurora-sparc-devel mailing list > [email protected] > http://lists.linuxpower.org/mailman/listinfo/aurora-sparc-devel -- Jamie Beverly MTS Linux Systems Administrator Nielsen Media Research Palm Harbor Fl. 727-738-3000 Ext. 2488 (phone) 727-738-3442 (Fax) [email protected]