* I cannot build a new kernel image when I add a assembly module to It
@ 2005-08-08 13:21 mhb
2005-08-08 19:17 ` Stephen Ray
0 siblings, 1 reply; 2+ messages in thread
From: mhb @ 2005-08-08 13:21 UTC (permalink / raw)
To: linux-newbie; +Cc: linux-assembly
Hi
I had added an assembly program to the networking
section of kernel linux 2.2.16 without any problem.
But when I add it to kerenel 2.4.1 I could build that
kernel, but I faced with kernel panic error when I
boot
system with new builded image. I use the following
Make file to build It in the 2.4.1 kernel.
/*--------------------------------*/
L_TARGET := libtest.a
obj-$(CONFIG_TEST) += test.o
override CFLAGS += -Wpointer-arith
override CFLAGS += -Wbad-function-cast
override CFLAGS += -DTERMIO
#-----------------------------------------------------------------------------
# Section 3 - Conversion routines from new style to
old style for Rules.make
#-----------------------------------------------------------------------------
# Section 4 - Rules.make section
include $(TOPDIR)/Rules.make
#-----------------------------------------------------------------------------
# Section 5
$(obj-y): $(TOPDIR)/include/linux/config.h\
$(TOPDIR)/include/linux/autoconf.h
clean:
-rm -f *.o
tags:
ctags libtest.a
tar:
tar -cvf /dev/f1 .
test.o: test1.o test2.o test3.o
$(LD) -r -o $@ test1.o test2.o test3.o
test3.o: test3.s
$(AS) -o $@ $<
#-----------------------------------------------------------------------------
As you can see test3.s is an assembly file.
I guess this problem is related to this Makefile.
Is this Make file true?
How can I win over this problem?
thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: I cannot build a new kernel image when I add a assembly module to It
2005-08-08 13:21 I cannot build a new kernel image when I add a assembly module to It mhb
@ 2005-08-08 19:17 ` Stephen Ray
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Ray @ 2005-08-08 19:17 UTC (permalink / raw)
To: mhb; +Cc: linux-newbie, linux-assembly
mhb wrote:
> Hi
>
> I had added an assembly program to the networking
> section of kernel linux 2.2.16 without any problem.
> But when I add it to kerenel 2.4.1 I could build that
> kernel, but I faced with kernel panic error when I
> boot
> system with new builded image.
...
> As you can see test3.s is an assembly file.
> I guess this problem is related to this Makefile.
> Is this Make file true?
> How can I win over this problem?
>
> thanks
>
Sorry, I'm not much of a linux assembly guru, but I am wondering why you
assume the Makefile is the problem. It could be, I'm not a makefile
guru either. But, as far as I know, make works the same no matter what
kernel it's running on. My first suspicion would be that calling
conventions were changed between kernel versions, or that you use a
kernel function that changed functionality. Also, the version of gcc
may be important. I think something in the 2.9xx series is recommended
for compiling the kernel.
Stephen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-08 19:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 13:21 I cannot build a new kernel image when I add a assembly module to It mhb
2005-08-08 19:17 ` Stephen Ray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).