LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-11-2008, 12:27 AM   #1
cucmi
LQ Newbie
 
Registered: May 2004
Location: Shanghai/China
Posts: 28

Rep: Reputation: 15
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).
 
Old 08-11-2008, 06:48 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,200

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
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.
 
Old 08-18-2008, 10:21 PM   #3
cucmi
LQ Newbie
 
Registered: May 2004
Location: Shanghai/China
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by business_kid View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Several "undefined reference to" error when compiling a C programm acer_peri Programming 8 12-11-2008 05:45 AM
"undefined reference"linker error for static field w/ C++ astorm Programming 5 08-27-2008 03:00 AM
Error: Make on kismet-2005-08-R1 "undefined reference" zeevolking Linux - Software 1 12-23-2005 08:40 PM
Undefined Screen " XFree86" reference by serverLayout "XFree86 Configured" comox *BSD 7 01-17-2005 05:47 PM


All times are GMT -5. The time now is 10:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration