From: Jeff Harrell <jharrell@ti.com>
To: linux@cthulhu.engr.sgi.com
Subject: SGI, MIPS, Hardhat Linux question...
Date: Tue, 02 Nov 1999 21:30:37 GMT [thread overview]
Message-ID: <19991102.21303700@jharrell_dt.> (raw)
[-- 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 --]
next reply other threads:[~1999-11-02 21:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-02 21:30 Jeff Harrell [this message]
1999-11-02 23:42 ` SGI, MIPS, Hardhat Linux question Juan J. Sierralta P.
1999-11-02 23:53 ` Ulf Carlsson
1999-11-08 17:59 ` Frank B. Pound
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19991102.21303700@jharrell_dt. \
--to=jharrell@ti.com \
--cc=linux@cthulhu.engr.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox