Re: I cannot build a new kernel image when I add a assembly module to It

Stephen Ray <[email protected]>
Newsgroups org.kernel.vger.linux-assembly,org.kernel.vger.linux-newbie
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.