* Re: Linux for MIPS Atlas 4Kc board -problems :(
@ 2003-05-02 3:25 Michael Anburaj
2003-05-02 4:18 ` Keith Owens
0 siblings, 1 reply; 10+ messages in thread
From: Michael Anburaj @ 2003-05-02 3:25 UTC (permalink / raw)
To: linux-mips
Hi,
I gave up on the linux source from Redhat 9. Now I pulled source from CVS
$ cvs -d :pserver:cvs@ftp.linux-mips.org:/home/cvs co linux
Then I configured using,
$ make ARCH=mips menuconfig
selected Atlas board & saved it.
Then I get the following errors while trying to build the image:
[root@localhost linux]# make
make -f scripts/Makefile.build obj=arch/mips/kernel
arch/mips/kernel/offset.s
gcc -Wp,-MD,arch/mips/kernel/.offset.s.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -I /usr/src/linux/include/asm/gcc -G 0
-mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -nostdinc
-iwithprefix include -DKBUILD_BASENAME=offset -S -o
arch/mips/kernel/offset.s arch/mips/kernel/offset.c
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [arch/mips/kernel/offset.s] Error 1
make: *** [arch/mips/kernel/offset.s] Error 2
Please somebody, who built linux image for Atlas 4Kc board earlier, show me
the procedure to build Redboot linux images (srec).
will this dream come true? I am new to linux & I could only affored a Atlas
board for myself to learn linux on MIPS at home.
Please help me!!!
Thanks,
-Mike.
>From: "Michael Anburaj" <michaelanburaj@hotmail.com>
>To: linux-mips@linux-mips.org
>Subject: Re: Linux for MIPS Atlas 4Kc board
>Date: Thu, 01 May 2003 01:53:21 -0700
>
>Hi,
>
>I got passed the config issue, Thanks to all & Greg.
>
>Now when I try making "make ARCH=mips", I get a lot of errors:
>
>/usr/src/linux-2.4.20-6/include/linux/mm.h:188: parse error before
>`pte_addr_t'
>/usr/src/linux-2.4.20-6/include/linux/mm.h:188: warning: no semicolon at
>end of
>struct or union
>/usr/src/linux-2.4.20-6/include/linux/mm.h:188: warning: no semicolon at
>end of
>struct or union
>/usr/src/linux-2.4.20-6/include/linux/mm.h:189: warning: type defaults to
>`int'
>in declaration of `pte'
>/usr/src/linux-2.4.20-6/include/linux/mm.h:189: warning: data definition
>has no
>type or storage class
>/usr/src/linux-2.4.20-6/include/linux/mm.h:208: parse error before `}'
>
>
>I get more error like the ones above.
>
>Please let me know the reason for the same.
>
>Thanks,
>-Mike.
>
>_________________________________________________________________
>Protect your PC - get McAfee.com VirusScan Online
>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
2003-05-02 3:25 Linux for MIPS Atlas 4Kc board -problems :( Michael Anburaj
@ 2003-05-02 4:18 ` Keith Owens
2003-05-03 1:09 ` Ralf Baechle
0 siblings, 1 reply; 10+ messages in thread
From: Keith Owens @ 2003-05-02 4:18 UTC (permalink / raw)
To: Michael Anburaj; +Cc: linux-mips
On Thu, 01 May 2003 20:25:20 -0700,
"Michael Anburaj" <michaelanburaj@hotmail.com> wrote:
>Then I configured using,
>$ make ARCH=mips menuconfig
>[root@localhost linux]# make
>make -f scripts/Makefile.build obj=arch/mips/kernel
>arch/mips/kernel/offset.s
> gcc -Wp,-MD,arch/mips/kernel/.offset.s.d -D__KERNEL__ -Iinclude -Wall
>-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
>-fno-strict-aliasing -fno-common -I /usr/src/linux/include/asm/gcc -G 0
>-mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -nostdinc
>-iwithprefix include -DKBUILD_BASENAME=offset -S -o
>arch/mips/kernel/offset.s arch/mips/kernel/offset.c
>gcc: cannot specify -o with -c or -S and multiple compilations
>make[1]: *** [arch/mips/kernel/offset.s] Error 1
>make: *** [arch/mips/kernel/offset.s] Error 2
You have to specify ARCH=mips on _all_ make commands, not just make
*config. Do 'make ARCH=mips' for the second one.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
@ 2003-05-02 5:07 Michael Anburaj
2003-05-02 5:22 ` Keith Owens
0 siblings, 1 reply; 10+ messages in thread
From: Michael Anburaj @ 2003-05-02 5:07 UTC (permalink / raw)
To: linux-mips
Hi Keith,
I did try that too...
[root@localhost linux]# make ARCH=mips
make -f scripts/Makefile.build obj=arch/mips/kernel
arch/mips/kernel/offset.s
gcc -Wp,-MD,arch/mips/kernel/.offset.s.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -I /usr/src/linux/include/asm/gcc -G 0
-mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -nostdinc
-iwithprefix include -DKBUILD_BASENAME=offset -S -o
arch/mips/kernel/offset.s arch/mips/kernel/offset.c
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [arch/mips/kernel/offset.s] Error 1
make: *** [arch/mips/kernel/offset.s] Error 2
Thanks,
-Mike.
>From: Keith Owens <kaos@sgi.com>
>To: "Michael Anburaj" <michaelanburaj@hotmail.com>
>CC: linux-mips@linux-mips.org
>Subject: Re: Linux for MIPS Atlas 4Kc board -problems :( Date: Fri, 02 May
>2003 14:18:13 +1000
>
>On Thu, 01 May 2003 20:25:20 -0700,
>"Michael Anburaj" <michaelanburaj@hotmail.com> wrote:
> >Then I configured using,
> >$ make ARCH=mips menuconfig
> >[root@localhost linux]# make
> >make -f scripts/Makefile.build obj=arch/mips/kernel
> >arch/mips/kernel/offset.s
> > gcc -Wp,-MD,arch/mips/kernel/.offset.s.d -D__KERNEL__ -Iinclude -Wall
> >-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> >-fno-strict-aliasing -fno-common -I /usr/src/linux/include/asm/gcc -G 0
> >-mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -nostdinc
> >-iwithprefix include -DKBUILD_BASENAME=offset -S -o
> >arch/mips/kernel/offset.s arch/mips/kernel/offset.c
> >gcc: cannot specify -o with -c or -S and multiple compilations
> >make[1]: *** [arch/mips/kernel/offset.s] Error 1
> >make: *** [arch/mips/kernel/offset.s] Error 2
>
>You have to specify ARCH=mips on _all_ make commands, not just make
>*config. Do 'make ARCH=mips' for the second one.
>
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
2003-05-02 5:07 Michael Anburaj
@ 2003-05-02 5:22 ` Keith Owens
0 siblings, 0 replies; 10+ messages in thread
From: Keith Owens @ 2003-05-02 5:22 UTC (permalink / raw)
To: Michael Anburaj; +Cc: linux-mips
On Thu, 01 May 2003 22:07:32 -0700,
"Michael Anburaj" <michaelanburaj@hotmail.com> wrote:
>I did try that too...
>
>[root@localhost linux]# make ARCH=mips
>make -f scripts/Makefile.build obj=arch/mips/kernel
>arch/mips/kernel/offset.s
> gcc -Wp,-MD,arch/mips/kernel/.offset.s.d -D__KERNEL__ -Iinclude -Wall
>-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
>-fno-strict-aliasing -fno-common -I /usr/src/linux/include/asm/gcc -G 0
>-mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -nostdinc
>-iwithprefix include -DKBUILD_BASENAME=offset -S -o
>arch/mips/kernel/offset.s arch/mips/kernel/offset.c
>gcc: cannot specify -o with -c or -S and multiple compilations
>make[1]: *** [arch/mips/kernel/offset.s] Error 1
>make: *** [arch/mips/kernel/offset.s] Error 2
Because you mentioned Redhat 9, I have to assume that you are cross
compiling from i386 to mips, is that correct? If so, you need make
ARCH=mips and you have to specify the cross compile tools as well,
something like this :-
make ARCH=mips CROSS_COMPILE=/usr/bin/mips-linux- ...
If you are doing a native mips compile then the problem is that your
version of gcc does not like one or more of the command options, the
unknown option is being treated as a filename.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
@ 2003-05-02 6:47 Michael Anburaj
0 siblings, 0 replies; 10+ messages in thread
From: Michael Anburaj @ 2003-05-02 6:47 UTC (permalink / raw)
To: kaos; +Cc: linux-mips
Hi Keith,
Thanks a lot.
Now its showing some ray of hope....
drivers/char/nvram.c | /sbin/genksyms -k 2.5.47 >
include/linux/modules/drivers/char/nvram.ver.tmp
drivers/char/nvram.c:45: warning: `PC' redefined
include/asm/ptrace.h:18: warning: this is the location of the previous
definition
drivers/char/nvram.c:61: #error Cannot build nvram driver for this machine
configuration.
make[3]: *** [include/linux/modules/drivers/char/nvram.ver] Error 1
make[2]: *** [drivers/char] Error 2
make[1]: *** [_modver_drivers] Error 2
make: *** [.hdepend] Error 2
Is this (NVRAM) not a mandatory device? If so is it possible to remove it
using the menuconfig? I chose Atlas 4Kc. Let me know where it is located or
the issue with this issue.
Thanks again,
-Mike.
>From: Keith Owens <kaos@sgi.com>
>To: "Michael Anburaj" <michaelanburaj@hotmail.com>
>CC: linux-mips@linux-mips.org
>Subject: Re: Linux for MIPS Atlas 4Kc board -problems :( Date: Fri, 02 May
>2003 15:22:13 +1000
>
>On Thu, 01 May 2003 22:07:32 -0700,
>"Michael Anburaj" <michaelanburaj@hotmail.com> wrote:
> >I did try that too...
> >
> >[root@localhost linux]# make ARCH=mips
> >make -f scripts/Makefile.build obj=arch/mips/kernel
> >arch/mips/kernel/offset.s
> > gcc -Wp,-MD,arch/mips/kernel/.offset.s.d -D__KERNEL__ -Iinclude -Wall
> >-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> >-fno-strict-aliasing -fno-common -I /usr/src/linux/include/asm/gcc -G 0
> >-mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -nostdinc
> >-iwithprefix include -DKBUILD_BASENAME=offset -S -o
> >arch/mips/kernel/offset.s arch/mips/kernel/offset.c
> >gcc: cannot specify -o with -c or -S and multiple compilations
> >make[1]: *** [arch/mips/kernel/offset.s] Error 1
> >make: *** [arch/mips/kernel/offset.s] Error 2
>
>Because you mentioned Redhat 9, I have to assume that you are cross
>compiling from i386 to mips, is that correct? If so, you need make
>ARCH=mips and you have to specify the cross compile tools as well,
>something like this :-
>
> make ARCH=mips CROSS_COMPILE=/usr/bin/mips-linux- ...
>
>If you are doing a native mips compile then the problem is that your
>version of gcc does not like one or more of the command options, the
>unknown option is being treated as a filename.
>
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
2003-05-02 4:18 ` Keith Owens
@ 2003-05-03 1:09 ` Ralf Baechle
0 siblings, 0 replies; 10+ messages in thread
From: Ralf Baechle @ 2003-05-03 1:09 UTC (permalink / raw)
To: Keith Owens; +Cc: Michael Anburaj, linux-mips
On Fri, May 02, 2003 at 02:18:13PM +1000, Keith Owens wrote:
> You have to specify ARCH=mips on _all_ make commands, not just make
> *config. Do 'make ARCH=mips' for the second one.
In the MIPS kernel source I've hardwired ARCH=mips. He'd either have
to pass something like CROSS_COMPILE=mips-linux- or set the config
option CONFIG_CROSSCOMPILE.
Ralf
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
@ 2003-05-03 2:36 Michael Anburaj
0 siblings, 0 replies; 10+ messages in thread
From: Michael Anburaj @ 2003-05-03 2:36 UTC (permalink / raw)
To: ralf, kaos; +Cc: linux-mips
Hi Ralph,
It will be great if you or any one from this forum enumerate all the build
steps for building the Linux kernel (to work with Redboot or Flash image)
for Atlas 4Kc board from scratch.
Development platform: Redhat Linux 9
Target Linux source: linux-mipss CVS repository
Mips-linux tool-chain: rpms downloaded from link provided by linux-mips.com
I would be very much grateful for this help.
Thanks & Cheers,
-Mike.
>From: Ralf Baechle <ralf@linux-mips.org>
>To: Keith Owens <kaos@sgi.com>
>CC: Michael Anburaj <michaelanburaj@hotmail.com>,linux-mips@linux-mips.org
>Subject: Re: Linux for MIPS Atlas 4Kc board -problems :(
>Date: Sat, 3 May 2003 03:09:34 +0200
>
>On Fri, May 02, 2003 at 02:18:13PM +1000, Keith Owens wrote:
>
> > You have to specify ARCH=mips on _all_ make commands, not just make
> > *config. Do 'make ARCH=mips' for the second one.
>
>In the MIPS kernel source I've hardwired ARCH=mips. He'd either have
>to pass something like CROSS_COMPILE=mips-linux- or set the config
>option CONFIG_CROSSCOMPILE.
>
> Ralf
>
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
@ 2003-05-03 2:54 Michael Anburaj
0 siblings, 0 replies; 10+ messages in thread
From: Michael Anburaj @ 2003-05-03 2:54 UTC (permalink / raw)
To: ralf, kaos; +Cc: linux-mips
Hi Ralph,
More info.
For the most part it looks like its building. But source files of some of
the drivers are failing. Like for instance NVRAM ( nvram.c ), some file
system files & some video driver files.
A friend of mine said this. Do menuconfig & select the appropriate board
option (for me it is MIPS Atlas 4Kc). And you dont have to worry about all
the other options (like the file systems, & device drivers) At least to
get it to build initially. Is that statement right? What he meant was, when
you select a board the remaining things get customized automatically
according to the board option. So, if I selected Atlas 4Kc board then only
the drivers, file systems & other modules relevant to Atlas 4Kc would get
enabled for the build to follow. Is that right?
If thats true, then I shouldnt face these many number of errors when
building FS & device driver modules.
To work around this, each time I see an error, I do $ make ARCH=mips
menuconfig, go find the option corresponding to the module & disable it. So
that those files never get built & then the build progresses a bit before it
break again. I am yet to complete this activity (probably today after work &
this weekend I will do this). Do you think its best way to go about this?
Thanks & Cheers,
-Mike.
>From: Ralf Baechle <ralf@linux-mips.org>
>To: Keith Owens <kaos@sgi.com>
>CC: Michael Anburaj <michaelanburaj@hotmail.com>,linux-mips@linux-mips.org
>Subject: Re: Linux for MIPS Atlas 4Kc board -problems :(
>Date: Sat, 3 May 2003 03:09:34 +0200
>
>On Fri, May 02, 2003 at 02:18:13PM +1000, Keith Owens wrote:
>
> > You have to specify ARCH=mips on _all_ make commands, not just make
> > *config. Do 'make ARCH=mips' for the second one.
>
>In the MIPS kernel source I've hardwired ARCH=mips. He'd either have
>to pass something like CROSS_COMPILE=mips-linux- or set the config
>option CONFIG_CROSSCOMPILE.
>
> Ralf
>
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
@ 2003-05-03 9:05 Michael Anburaj
0 siblings, 0 replies; 10+ messages in thread
From: Michael Anburaj @ 2003-05-03 9:05 UTC (permalink / raw)
To: linux-mips
Hi all,
Finaly, I could compile vmlinux. I thought of booting this RAM image using
the on board Redboot.
For which I needed a serial com utility ( like the windows Hyperterminal). I
tried minicom & configured for /dev/ttyS1 & 115200 bauds & no hardware
handshaking (PC has a COM1 port). Nothing seems to work. Can any one suggest
a method to debug this issue? Or any other utility.
Thanks,
-Mike.
>From: "Michael Anburaj" <michaelanburaj@hotmail.com>
>To: ralf@linux-mips.org, kaos@sgi.com
>CC: linux-mips@linux-mips.org
>Subject: Re: Linux for MIPS Atlas 4Kc board -problems :(
>Date: Fri, 02 May 2003 19:54:07 -0700
>
>Hi Ralph,
>
>More info.
>
>For the most part it looks like its building. But source files of some of
>the drivers are failing. Like for instance NVRAM ( nvram.c ), some file
>system files & some video driver files.
>
>A friend of mine said this. Do menuconfig & select the appropriate board
>option (for me it is MIPS Atlas 4Kc). And you dont have to worry about all
>the other options (like the file systems, & device drivers) At least to
>get it to build initially. Is that statement right? What he meant was,
>when you select a board the remaining things get customized automatically
>according to the board option. So, if I selected Atlas 4Kc board then only
>the drivers, file systems & other modules relevant to Atlas 4Kc would get
>enabled for the build to follow. Is that right?
>
>If thats true, then I shouldnt face these many number of errors when
>building FS & device driver modules.
>
>To work around this, each time I see an error, I do $ make ARCH=mips
>menuconfig, go find the option corresponding to the module & disable it.
>So that those files never get built & then the build progresses a bit
>before it break again. I am yet to complete this activity (probably today
>after work & this weekend I will do this). Do you think its best way to go
>about this?
>
>Thanks & Cheers,
>-Mike.
>
>
>
>
>
>
>
>>From: Ralf Baechle <ralf@linux-mips.org>
>>To: Keith Owens <kaos@sgi.com>
>>CC: Michael Anburaj <michaelanburaj@hotmail.com>,linux-mips@linux-mips.org
>>Subject: Re: Linux for MIPS Atlas 4Kc board -problems :(
>>Date: Sat, 3 May 2003 03:09:34 +0200
>>
>>On Fri, May 02, 2003 at 02:18:13PM +1000, Keith Owens wrote:
>>
>> > You have to specify ARCH=mips on _all_ make commands, not just make
>> > *config. Do 'make ARCH=mips' for the second one.
>>
>>In the MIPS kernel source I've hardwired ARCH=mips. He'd either have
>>to pass something like CROSS_COMPILE=mips-linux- or set the config
>>option CONFIG_CROSSCOMPILE.
>>
>> Ralf
>>
>
>
>_________________________________________________________________
>The new MSN 8: smart spam protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux for MIPS Atlas 4Kc board -problems :(
@ 2004-05-15 6:24 Michael Anburaj
0 siblings, 0 replies; 10+ messages in thread
From: Michael Anburaj @ 2004-05-15 6:24 UTC (permalink / raw)
To: linux-mips
Hi,
I have requirement in my project where I have to specify an object file
contained in a library file in my linker script.
Something like this:
MySection 0x1000 :
{
myobj.o of mylib.a (.bss, COMMON)
}
In ADS scatter map its enough to specify just the object files name. And the
linker would pull it from the linked-in libraries. I tried the same with GCC
(with it,s linker script), something like this,
ZeroISection 0x1000 :
{
myobj.o (.bss, COMMON)
}
Does not work. Even thought the linker was supplied with mylib.a, which
contains myobj.o; it still gives errors myobj.o not found.
Please help me with this.
Thanks a lot,
-Mike.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-05-15 6:24 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-02 3:25 Linux for MIPS Atlas 4Kc board -problems :( Michael Anburaj
2003-05-02 4:18 ` Keith Owens
2003-05-03 1:09 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2003-05-02 5:07 Michael Anburaj
2003-05-02 5:22 ` Keith Owens
2003-05-02 6:47 Michael Anburaj
2003-05-03 2:36 Michael Anburaj
2003-05-03 2:54 Michael Anburaj
2003-05-03 9:05 Michael Anburaj
2004-05-15 6:24 Michael Anburaj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox