Linux MIPS Architecture development
 help / color / mirror / Atom feed
* SGI, MIPS, Hardhat Linux question...
@ 1999-11-02 21:30 Jeff Harrell
  1999-11-02 23:42 ` Juan J. Sierralta P.
  1999-11-08 17:59 ` Frank B. Pound
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Harrell @ 1999-11-02 21:30 UTC (permalink / raw)
  To: linux

[-- Attachment #1: filename="text1.txt" --]
[-- Type: text/plain, Size: 4146 bytes --]

I am currently working on a project that is using a MIPS R4x00 core on a 
single board computer and would like to leverage the work the SGI team 
has done on the MIPS/Linux port.  I have downloaded the kernel source 
code for Hardhat Linux  (kernel 2.1.100) and applied the patches (i.e.,  
kernel-2.1.100-sgi.patch and kernel-mips-link.patch).  I have also 
downloaded Ralf Bachle's cross compiler tools (486-linux -> MIPS).  We 
are using the little endian version of the tools.   I copied the kernel 
files to my home directory under the structure <my_home_dir>\work\linux  
and applied the patches.  The patches applied properly.  I then did a 
default configuration, following the file kernel-config.sgi as a 
template.  I built the dependencies ( make CROSS_COMPILE=mipsel-linux- 
dep) and did not get any errors.  The problem seems to occur when I 
attempt to build the compressed image, I enter the command:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
make CROSS_COMPILE=mipsel-linux- zImage
mipsel-linux-gcc -D__KERNEL__ -I/home/jharrell/work/linux/include 
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -G 0 -mno-abicalls 
-fno-pic -g -mcpu=r4600 -mips2 -pipe  -c -o init/main.o init/main.c
/home/jharrell/work/linux/include/asm/string.h: In function `bcopy':
In file included from 
/home/jharrell/work/linux/include/linux/string.h:39,
                 from 
/home/jharrell/work/linux/include/asm/termios.h:99,
                 from 
/home/jharrell/work/linux/include/linux/termios.h:5,
                 from 
/home/jharrell/work/linux/include/linux/tty.h:20,
                 from 
/home/jharrell/work/linux/include/linux/sched.h:20,
                 from init/main.c:17:
/home/jharrell/work/linux/include/asm/string.h:134: warning: control 
reaches end of non-void function
/home/jharrell/work/linux/include/linux/sched.h: In function `suser':
In file included from init/main.c:17:
/home/jharrell/work/linux/include/linux/sched.h:545: `current' 
undeclared (first use this function)
/home/jharrell/work/linux/include/linux/sched.h:545: (Each undeclared 
identifier is reported only once
/home/jharrell/work/linux/include/linux/sched.h:545: for each function 
it appears in.)
/home/jharrell/work/linux/include/linux/sched.h: In function `fsuser':
/home/jharrell/work/linux/include/linux/sched.h:554: `current' 
undeclared (first use this function)
/home/jharrell/work/linux/include/linux/sched.h: In function 
`capable':
/home/jharrell/work/linux/include/linux/sched.h:572: `current' 
undeclared (first use this function)
/home/jharrell/work/linux/include/linux/mm.h: In function 
`expand_stack':
In file included from 
/home/jharrell/work/linux/include/linux/slab.h:14,
                 from 
/home/jharrell/work/linux/include/linux/malloc.h:4,
                 from 
/home/jharrell/work/linux/include/linux/proc_fs.h:6,
                 from init/main.c:25:
/home/jharrell/work/linux/include/linux/mm.h:359: `current' undeclared 
(first use this function)
make: *** [init/main.o] Error 1
Compilation exited abnormally with code 2 at Tue Nov  2 14:14:55
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - -

I checked the linkage in the linux/include directory and a link exists 
between  asm and mips-asm.  For some reason it is not able to find the 
files located in the include/asm directory,  I looked over the gcc man 
page and read that if a  -I is used as a parameter to gcc, it should 
be the first directory examined in the search patch.....It seems to 
have problems with the #include <asm/current.h>.  Am I missing 
something? Hmmm....

A second question I would like to ask is concerning the Hardhat 
distribution,  Is this the best starting place to get an embedded 
version of MIPS/Linux?  Is there a better distribution (i.e. 
Cross-compilation tools, etc., that uses a more current version of the 
kernel?)  Any information available would be greatly appreciated....

Thanks,
Jeff Harrell

Jeff Harrell (jharrell@ti.com)		work: (801) 984-0183
TI / Broadband Access Group






[-- Attachment #2: filename="text1.html" --]
[-- Type: text/html, Size: 6268 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-11-08 18:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-02 21:30 SGI, MIPS, Hardhat Linux question Jeff Harrell
1999-11-02 23:42 ` Juan J. Sierralta P.
1999-11-02 23:53   ` Ulf Carlsson
1999-11-08 17:59 ` Frank B. Pound

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox