From: "Ramón Finger Lilienthal" <ramon@instramed.com.br>
To: "Premi, Sanjeev" <premi@ti.com>, linux_omap <linux-omap@vger.kernel.org>
Subject: Re: Problems compiling kernel
Date: Wed, 22 Oct 2008 11:05:06 -0200 [thread overview]
Message-ID: <48FF2502.2010208@instramed.com.br> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB59301B04166E6@dbde02.ent.ti.com>
Dear Sanjeev,
Thanks for your help.
Now, I am building for omap5912osk, and we have a new board omap5912
based. I hope in some months changing my efforts to OMAP35.
Part of my .config file is listed below. The flag CONFIG_CPU_FREQ_TABLE
was set to "m", I changed to "y". I tried to compile again, but the
error still happening.
I took a look at .config after compiling and CONFIG_CPU_FREQ_TABLE got
back to "m" (automatically).
==== .config ===
#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=m
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_STAT_DETAILS=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
#
=============
After, i changed the flags CONFIG_CPU_FREQ_TABLE=y and
CONFIG_CPU_FREQ_STAT=y.
Then that error didn't occurred again, but another error happened:
====
CHK include/linux/compile.h
CC [M] drivers/net/b44.o
Kernel: arch/arm/boot/Image is ready
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 1059 modules
FATAL: drivers/net/b44: sizeof(struct ssb_device_id)=6 is not a modulo
of the size of section __mod_ssb_device_table=16.
Fix definition of struct ssb_device_id in mod_devicetable.h
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
====
Again, thanks for your help
Regards,
Eng. Ramon F. Lilienthal
Project Engineer
Instramed Ltda. - www.instramed.com.br
+55 (51) 33344199 ext. 213
Premi, Sanjeev wrote:
> Ramon,
>
> Can you confirm if you have CONFIG_CPU_FREQ_TABLE=y in the .config?
>
> The 'undefined' functions in your compile log are defined in drivers/cpufreq/freq_table.c
> If you look at Makefile in the same dir, this file is included in compile based on the flag mentioned above.
>
> Which platform are you building for?
> Are you sure you haven't disabled CPU_FREQ manually?
> If you haven't made any modifications the problem could be in the defconfig?
>
> Though, I believe that cpu-omap.c may also need to be updated to take care of CONFIG_CPU_FREQ OR specifically CONFIG_CPU_FREQ_TABLE.
>
> Best regards,
> Sanjeev
>
>
>> -----Original Message-----
>> From: linux-omap-owner@vger.kernel.org
>> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Ramón
>> Finger Lilienthal
>> Sent: Tuesday, October 21, 2008 7:13 PM
>> To: linux_omap
>> Subject: Problems compiling kernel
>>
>> Dear fellows,
>>
>> I am facing some compiling errors in my kernel.
>>
>> My kernel version is:
>>
>> VERSION = 2
>> PATCHLEVEL = 6
>> SUBLEVEL = 27
>> EXTRAVERSION =
>> NAME = Rotary Wombat
>>
>> And I updated the source using "git pull" today, before
>> trying to compile the kernel.
>>
>> I got these errors:
>>
>> MODPOST vmlinux.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/plat-omap/built-in.o: In function `omap_verify_speed':
>> /home/ramon/work/linux-omap-2.6.new.teste/arch/arm/plat-omap/c
>> pu-omap.c:46:
>> undefined reference to `cpufreq_frequency_table_verify'
>> arch/arm/plat-omap/built-in.o: In function `omap_cpu_init':
>> /home/ramon/work/linux-omap-2.6.new.teste/arch/arm/plat-omap/c
>> pu-omap.c:119:
>> undefined reference to `cpufreq_frequency_table_cpuinfo'
>> /home/ramon/work/linux-omap-2.6.new.teste/arch/arm/plat-omap/c
>> pu-omap.c:121:
>> undefined reference to `cpufreq_frequency_table_get_attr'
>> arch/arm/plat-omap/built-in.o:(.data+0x91c): undefined
>> reference to `cpufreq_freq_attr_scaling_available_freqs'
>> make: *** [.tmp_vmlinux1] Error 1
>>
>> I looked in "plat-omap.c" and it calls the library cpufreq.h.
>> cpufreq.h has the prototipes of that undefined references and
>> cpufreq.c has the impementations of it.
>>
>> So, I don't understand why it is happening. By the way, I am
>> a begginer in linux development.
>>
>> Any help will be welcome.
>>
>>
>> --
>> Regards,
>> Eng. Ramon F. Lilienthal
>> Project Engineer
>> Instramed Ltda. - www.instramed.com.br
>> +55 (51) 33344199 ext. 213
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>> --
>>
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-10-22 13:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 13:43 Problems compiling kernel Ramón Finger Lilienthal
2008-10-21 20:47 ` Premi, Sanjeev
2008-10-22 13:05 ` Ramón Finger Lilienthal [this message]
2008-10-23 15:36 ` Premi, Sanjeev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48FF2502.2010208@instramed.com.br \
--to=ramon@instramed.com.br \
--cc=linux-omap@vger.kernel.org \
--cc=premi@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.