Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread Avik Sil
On Tuesday 21 June 2011 12:52 PM, Amit Mahajan wrote:
 On Tue, 2011-06-21 at 12:14 +0530, Avik Sil wrote:
 On Tuesday 21 June 2011 12:06 PM, Amit Mahajan wrote:
 Hi,

 I have booted panda board using 11.05 natty release of ubuntu. It worked
 great.

 Now, I am trying to compile the kernel myself. I am using the sources
 from tarball provided on 11.05 release page as well as from linaro git
 2.6.38 tree.


 I have extracted the .config from running ubuntu(of 11.05 LEB) and using
 it to compile my own kernels. Then I am just replacing the uImage on
 sdcard(generated using 11.05 LEB) by my compiled kernel.

 Boot process goes fine till the init process but then it fails to bring
 on the graphics and goes to console mode.

 Any help on this?

 You may want to install modules on the SD card too:

 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
 INSTALL_MOD_PATH=/media/rootfs modules_install
 
 I am getting these errors while building the modules. I have linaro
 gcc-4.5.1. Is it related to older gcc?
 
 
   AS  arch/arm/boot/compressed/lib1funcs.o
   LD  arch/arm/boot/compressed/vmlinux
   OBJCOPY arch/arm/boot/zImage
   Kernel: arch/arm/boot/zImage is ready
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8974.ko]
 undefined!
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8940.ko]
 undefined!
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8510.ko]
 undefined!
 WARNING: modpost: Found 2 section mismatch(es).
 To see full details build your kernel with:
 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
 make[1]: *** [__modpost] Error 1
 make: *** [modules] Error 2
 
 

I don't know the fix, but to work around it, either disable or make it
built-in in Device Drivers - Sound card support - Advanced Linux Sound
Architecture - ALSA for SoC audio support - Build all ASoC CODEC drivers

Regards,
Avik


___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread Dave Martin
On Tue, Jun 21, 2011 at 12:52:12PM +0530, Amit Mahajan wrote:
 On Tue, 2011-06-21 at 12:14 +0530, Avik Sil wrote:
  On Tuesday 21 June 2011 12:06 PM, Amit Mahajan wrote:
   Hi,
   
   I have booted panda board using 11.05 natty release of ubuntu. It worked
   great.
   
   Now, I am trying to compile the kernel myself. I am using the sources
   from tarball provided on 11.05 release page as well as from linaro git
   2.6.38 tree.
   
   
   I have extracted the .config from running ubuntu(of 11.05 LEB) and using
   it to compile my own kernels. Then I am just replacing the uImage on
   sdcard(generated using 11.05 LEB) by my compiled kernel.
   
   Boot process goes fine till the init process but then it fails to bring
   on the graphics and goes to console mode.
   
   Any help on this?
  
  You may want to install modules on the SD card too:
  
  make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
  INSTALL_MOD_PATH=/media/rootfs modules_install
 
 I am getting these errors while building the modules. I have linaro
 gcc-4.5.1. Is it related to older gcc?
 
 
   AS  arch/arm/boot/compressed/lib1funcs.o
   LD  arch/arm/boot/compressed/vmlinux
   OBJCOPY arch/arm/boot/zImage
   Kernel: arch/arm/boot/zImage is ready
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8974.ko]
 undefined!
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8940.ko]
 undefined!
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8510.ko]
 undefined!
 WARNING: modpost: Found 2 section mismatch(es).
 To see full details build your kernel with:
 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
 make[1]: *** [__modpost] Error 1
 make: *** [modules] Error 2

John, do you know why the packaged kernel builds don't get these errors?

I do tend to get this whenever I try to build a full set of kernel from
the packaged kernel config.  I haven't reproduced it recently though, so
I don't know exactly what tool versions are affected.

Doing long long divisions anywhere in the kernel is apparently
considered wrong, but in this instance it may be a compiler bug that is
leaving a stray reference to the division helper in the code:

http://thread.gmane.org/gmane.linux.alsa.devel/84361/focus=115079

I don't know if anything has been done about this.

Cheers
---Dave


___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread Andy Doan
On 06/21/2011 01:44 AM, Avik Sil wrote:
 On Tuesday 21 June 2011 12:06 PM, Amit Mahajan wrote:
 Hi,

 I have booted panda board using 11.05 natty release of ubuntu. It worked
 great.

 Now, I am trying to compile the kernel myself. I am using the sources
 from tarball provided on 11.05 release page as well as from linaro git
 2.6.38 tree.


 I have extracted the .config from running ubuntu(of 11.05 LEB) and using
 it to compile my own kernels. Then I am just replacing the uImage on
 sdcard(generated using 11.05 LEB) by my compiled kernel.

 Boot process goes fine till the init process but then it fails to bring
 on the graphics and goes to console mode.

 Any help on this?
 
 You may want to install modules on the SD card too:
 
 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
 INSTALL_MOD_PATH=/media/rootfs modules_install

You'll also need to create an initramfs. Take a look at this wiki page
for detailed instructions:

  https://wiki.linaro.org/Resources/HowTo/KernelDeploy

___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread Andy Doan
On 06/21/2011 04:53 AM, Dave Martin wrote:
 On Tue, Jun 21, 2011 at 12:52:12PM +0530, Amit Mahajan wrote:
  On Tue, 2011-06-21 at 12:14 +0530, Avik Sil wrote:
   On Tuesday 21 June 2011 12:06 PM, Amit Mahajan wrote:
Hi,

I have booted panda board using 11.05 natty release of ubuntu. It 
worked
great.

Now, I am trying to compile the kernel myself. I am using the sources
from tarball provided on 11.05 release page as well as from linaro 
git
2.6.38 tree.


I have extracted the .config from running ubuntu(of 11.05 LEB) and 
using
it to compile my own kernels. Then I am just replacing the uImage on
sdcard(generated using 11.05 LEB) by my compiled kernel.

Boot process goes fine till the init process but then it fails to 
bring
on the graphics and goes to console mode.

Any help on this?
   
   You may want to install modules on the SD card too:
   
   make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
   INSTALL_MOD_PATH=/media/rootfs modules_install
  
  I am getting these errors while building the modules. I have linaro
  gcc-4.5.1. Is it related to older gcc?
  
  
AS  arch/arm/boot/compressed/lib1funcs.o
LD  arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8974.ko]
  undefined!
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8940.ko]
  undefined!
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8510.ko]
  undefined!
  WARNING: modpost: Found 2 section mismatch(es).
  To see full details build your kernel with:
  'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  make[1]: *** [__modpost] Error 1
  make: *** [modules] Error 2
 John, do you know why the packaged kernel builds don't get these errors?

I think this only happens when cross-compiling

___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread John Rigby
On Tue, Jun 21, 2011 at 7:25 AM, Andy Doan andy.d...@linaro.org wrote:
 On 06/21/2011 04:53 AM, Dave Martin wrote:
 On Tue, Jun 21, 2011 at 12:52:12PM +0530, Amit Mahajan wrote:
  On Tue, 2011-06-21 at 12:14 +0530, Avik Sil wrote:
   On Tuesday 21 June 2011 12:06 PM, Amit Mahajan wrote:
Hi,
   
I have booted panda board using 11.05 natty release of ubuntu. It 
worked
great.
   
Now, I am trying to compile the kernel myself. I am using the 
sources
from tarball provided on 11.05 release page as well as from linaro 
git
2.6.38 tree.
   
   
I have extracted the .config from running ubuntu(of 11.05 LEB) and 
using
it to compile my own kernels. Then I am just replacing the uImage on
sdcard(generated using 11.05 LEB) by my compiled kernel.
   
Boot process goes fine till the init process but then it fails to 
bring
on the graphics and goes to console mode.
   
Any help on this?
  
   You may want to install modules on the SD card too:
  
   make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
   INSTALL_MOD_PATH=/media/rootfs modules_install
 
  I am getting these errors while building the modules. I have linaro
  gcc-4.5.1. Is it related to older gcc?
 
 
    AS      arch/arm/boot/compressed/lib1funcs.o
    LD      arch/arm/boot/compressed/vmlinux
    OBJCOPY arch/arm/boot/zImage
    Kernel: arch/arm/boot/zImage is ready
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8974.ko]
  undefined!
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8940.ko]
  undefined!
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8510.ko]
  undefined!
  WARNING: modpost: Found 2 section mismatch(es).
  To see full details build your kernel with:
  'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  make[1]: *** [__modpost] Error 1
  make: *** [modules] Error 2
 John, do you know why the packaged kernel builds don't get these errors?

 I think this only happens when cross-compiling


I don't see this when cross compiling the packaged kernel.  Perhaps my
toolchain is an older rev?

___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread Amit Mahajan
On Tue, 2011-06-21 at 07:29 -0600, John Rigby wrote:
 On Tue, Jun 21, 2011 at 7:25 AM, Andy Doan andy.d...@linaro.org wrote:
  On 06/21/2011 04:53 AM, Dave Martin wrote:
  On Tue, Jun 21, 2011 at 12:52:12PM +0530, Amit Mahajan wrote:
   On Tue, 2011-06-21 at 12:14 +0530, Avik Sil wrote:
On Tuesday 21 June 2011 12:06 PM, Amit Mahajan wrote:
 Hi,

 I have booted panda board using 11.05 natty release of ubuntu. It 
 worked
 great.

 Now, I am trying to compile the kernel myself. I am using the 
 sources
 from tarball provided on 11.05 release page as well as from 
 linaro git
 2.6.38 tree.


 I have extracted the .config from running ubuntu(of 11.05 LEB) 
 and using
 it to compile my own kernels. Then I am just replacing the uImage 
 on
 sdcard(generated using 11.05 LEB) by my compiled kernel.

 Boot process goes fine till the init process but then it fails to 
 bring
 on the graphics and goes to console mode.

 Any help on this?
   
You may want to install modules on the SD card too:
   
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
INSTALL_MOD_PATH=/media/rootfs modules_install
  
   I am getting these errors while building the modules. I have linaro
   gcc-4.5.1. Is it related to older gcc?
  
  
 AS  arch/arm/boot/compressed/lib1funcs.o
 LD  arch/arm/boot/compressed/vmlinux
 OBJCOPY arch/arm/boot/zImage
 Kernel: arch/arm/boot/zImage is ready
   ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8974.ko]
   undefined!
   ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8940.ko]
   undefined!
   ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8510.ko]
   undefined!
   WARNING: modpost: Found 2 section mismatch(es).
   To see full details build your kernel with:
   'make CONFIG_DEBUG_SECTION_MISMATCH=y'
   make[1]: *** [__modpost] Error 1
   make: *** [modules] Error 2
  John, do you know why the packaged kernel builds don't get these errors?
 
  I think this only happens when cross-compiling
 
 
 I don't see this when cross compiling the packaged kernel.  Perhaps my
 toolchain is an older rev?
 

I confirm to get it with both gcc-4.5.1 and 4.5.2 from linaro toolchian
ppa's with both the kernel tarball from 11.05 release page as well as
from 2.6.38 kernel git with commit till linaro-11.05 tag.



-- 

Thanks
Amit Mahajan


___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread Dave Martin
On Tue, Jun 21, 2011 at 08:24:19AM -0500, Andy Doan wrote:
 On 06/21/2011 01:44 AM, Avik Sil wrote:
  On Tuesday 21 June 2011 12:06 PM, Amit Mahajan wrote:
  Hi,
 
  I have booted panda board using 11.05 natty release of ubuntu. It worked
  great.
 
  Now, I am trying to compile the kernel myself. I am using the sources
  from tarball provided on 11.05 release page as well as from linaro git
  2.6.38 tree.
 
 
  I have extracted the .config from running ubuntu(of 11.05 LEB) and using
  it to compile my own kernels. Then I am just replacing the uImage on
  sdcard(generated using 11.05 LEB) by my compiled kernel.
 
  Boot process goes fine till the init process but then it fails to bring
  on the graphics and goes to console mode.
 
  Any help on this?
  
  You may want to install modules on the SD card too:
  
  make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
  INSTALL_MOD_PATH=/media/rootfs modules_install
 
 You'll also need to create an initramfs. Take a look at this wiki page
 for detailed instructions:
 
   https://wiki.linaro.org/Resources/HowTo/KernelDeploy

Note that this will only work if the bus, storage and filesystem drivers for
your root fs are built into the kernel.

If those drivers are built in, you can actually get away with never
regenerating the initramfs, if you're feeling lazy.

Cheers
---Dave

___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread Nicolas Pitre
On Tue, 21 Jun 2011, Dave Martin wrote:

 On Tue, Jun 21, 2011 at 12:52:12PM +0530, Amit Mahajan wrote:
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8974.ko]
  undefined!
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8940.ko]
  undefined!
  ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8510.ko]
  undefined!
  WARNING: modpost: Found 2 section mismatch(es).
  To see full details build your kernel with:
  'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  make[1]: *** [__modpost] Error 1
  make: *** [modules] Error 2
 
 John, do you know why the packaged kernel builds don't get these errors?
 
 I do tend to get this whenever I try to build a full set of kernel from
 the packaged kernel config.  I haven't reproduced it recently though, so
 I don't know exactly what tool versions are affected.

http://article.gmane.org/gmane.linux.linaro.toolchain/1123


Nicolas

___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev


Re: Compiling kernel for panda linaro natty 11.05

2011-06-21 Thread Michael Hope
On Tue, Jun 21, 2011 at 7:22 PM, Amit Mahajan amit.maha...@b-labs.com wrote:
 On Tue, 2011-06-21 at 12:14 +0530, Avik Sil wrote:
 On Tuesday 21 June 2011 12:06 PM, Amit Mahajan wrote:
  Hi,
 
  I have booted panda board using 11.05 natty release of ubuntu. It worked
  great.
 
  Now, I am trying to compile the kernel myself. I am using the sources
  from tarball provided on 11.05 release page as well as from linaro git
  2.6.38 tree.
 
 
  I have extracted the .config from running ubuntu(of 11.05 LEB) and using
  it to compile my own kernels. Then I am just replacing the uImage on
  sdcard(generated using 11.05 LEB) by my compiled kernel.
 
  Boot process goes fine till the init process but then it fails to bring
  on the graphics and goes to console mode.
 
  Any help on this?

 You may want to install modules on the SD card too:

 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
 INSTALL_MOD_PATH=/media/rootfs modules_install

 I am getting these errors while building the modules. I have linaro
 gcc-4.5.1. Is it related to older gcc?


  AS      arch/arm/boot/compressed/lib1funcs.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8974.ko]
 undefined!
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8940.ko]
 undefined!
 ERROR: __aeabi_uldivmod [sound/soc/codecs/snd-soc-wm8510.ko]
 undefined!
 WARNING: modpost: Found 2 section mismatch(es).
 To see full details build your kernel with:
 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
 make[1]: *** [__modpost] Error 1
 make: *** [modules] Error 2

Hi Amit.  This is a known issue with the compiler.  See LP: #771832 at:
 https://bugs.launchpad.net/gcc-linaro/+bug/771832

The problem exists in all 4.6 based compilers.  The work around is to
change the kernel configuration and disable Device Drivers - Sound
card support - Advanced Linux Sound
Architecture - ALSA for SoC audio support - Build all ASoC CODEC drivers.

-- Michael

___
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev