* 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
* Re: SGI, MIPS, Hardhat Linux question...
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
1 sibling, 1 reply; 4+ messages in thread
From: Juan J. Sierralta P. @ 1999-11-02 23:42 UTC (permalink / raw)
To: Jeff Harrell; +Cc: linux
Hi:
I got the CVS sources for Kernel (2.3.19) and exactly the
same error messages appears I'm using an HardHat 5.1 with
2.1.100 on a SGI Indy 5000 so maybe it isn't a
cross-compiler error. I also checked the symlinks and seems
ok....
Any suggestions ?
Thanks.
------------------------------------------------------------------
Juan Jose Sierralta P. | juanjo@atmlab.utfsm.cl
Ayudante de Proyecto Fondef III | Fono: +56-32-654093
Departamento de Electronica. | "In a world without fences
UTFSM. | who needs Gates ?"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SGI, MIPS, Hardhat Linux question...
1999-11-02 23:42 ` Juan J. Sierralta P.
@ 1999-11-02 23:53 ` Ulf Carlsson
0 siblings, 0 replies; 4+ messages in thread
From: Ulf Carlsson @ 1999-11-02 23:53 UTC (permalink / raw)
To: Juan J. Sierralta P.; +Cc: Jeff Harrell, linux
> I got the CVS sources for Kernel (2.3.19) and exactly the
> same error messages appears I'm using an HardHat 5.1 with
> 2.1.100 on a SGI Indy 5000 so maybe it isn't a
> cross-compiler error. I also checked the symlinks and seems
> ok....
Are you using gcc or egcs to cross-compiler? If I remember correctly that
message is caused by the gcc specs file that isn't compatible with the current
MIPS kernels. Use this cross-compiler instead:
ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/mips-linux/
And don't forget to turn off the -N option in arch/mips/Makefiles, or it will
not boot.
Ulf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SGI, MIPS, Hardhat Linux question...
1999-11-02 21:30 SGI, MIPS, Hardhat Linux question Jeff Harrell
1999-11-02 23:42 ` Juan J. Sierralta P.
@ 1999-11-08 17:59 ` Frank B. Pound
1 sibling, 0 replies; 4+ messages in thread
From: Frank B. Pound @ 1999-11-08 17:59 UTC (permalink / raw)
To: Jeff Harrell; +Cc: linux
I got the same message when trying to compile the ftape driver on an x86
box.
It's been a long time since I tried it but I do distinctly remember
tracing it to
what you were talking about.
"It seems to have problems with the #include <asm/current.h>."
I'm not sure if your problem is related to mine but could be.
It happened after a kernel upgrade, using RH.
Frank
--
_______________________________________________________________
Frank B. Pound Phone: 703-560-5000 ext. 4008
Raytheon Systems Company Strategic Systems Division
E-mail: fpound@fallschurch.esys.com
Web: http://www.raytheon.com/rsc/c3/c300.htm
_______________________________________________________________
^ 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