LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   compiling linux 2.6.19.2 failed with "undefined reference to s3c2410_pm_drvinit" (https://www.linuxquestions.org/questions/linux-hardware-18/compiling-linux-2-6-19-2-failed-with-undefined-reference-to-s3c2410_pm_drvinit-661903/)

cucmi 08-11-2008 12:27 AM

compiling linux 2.6.19.2 failed with "undefined reference to s3c2410_pm_drvinit"
 
Hello, I have problem when compiling linux kernel for S3C2440 SoC, everytime the compiling failed with the following message,

Code:

  GEN    /tmp/kbuild/Makefile
scripts/kconfig/conf -s arch/arm/Kconfig
drivers/net/fec_mpc52xx/Kconfig:7:warning: 'select' used by config symbol 'FEC_MPC52xx' refer to undefined symbol 'PPC_BESTCOMM'
  CHK    include/linux/version.h
  SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c2410
make[2]: `include/asm-arm/mach-types.h' is up to date.
  Using /home/jy/linux/linux-2.6.19.2 as source for kernel
  GEN    /tmp/kbuild/Makefile
  CHK    include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CHK    include/linux/compile.h
  LD      kernel/power/built-in.o
  LD      kernel/built-in.o
  GEN    .version
  CHK    include/linux/compile.h
  UPD    include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/arm/mach-s3c2410/built-in.o: In function `s3c2410_pm_drvinit':
common-smdk.c:(.init.text+0xb98): undefined reference to `s3c2410_sysclass'
make[1]: *** [.tmp_vmlinux1] Error 1

And I have read some of the related code, doesn't find any clue. I am new to embedded linux, can anyboday give me some suggestion ? The toolchain used to compile it is arm-linux-gcc 4.0.0 (comes from ELDK4.1 for ARM).

business_kid 08-11-2008 06:48 AM

Just googling for your symbol, it apparently causes some people issues if void. I'm no expert here btw.

http://www.fluff.org/ben/linux-26/26...0-ifdefs.patch

How do I phrase this neatly? Competitor sites also have references to it.

cucmi 08-18-2008 10:21 PM

Quote:

Originally Posted by business_kid (Post 3243445)
Just googling for your symbol, it apparently causes some people issues if void. I'm no expert here btw.

http://www.fluff.org/ben/linux-26/26...0-ifdefs.patch

How do I phrase this neatly? Competitor sites also have references to it.


Thank you. I apply the patch, still cannot compiling the kernel.

But I find if I choose to include support for smdk2410 besides smdk2440, then I can compiling the kernel successfully without error and get a zImage.

What I want is a zImage for smdk2440 but not smdk2410. I don't know why should I include smdk2410 in kernel config ? I havn't tried to run the kernel been build in real hardware. I will try it later.


All times are GMT -5. The time now is 11:40 AM.