ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] RE: ARM lpc32xx build fails for linux-2.6.34


From: Kevin Wells
Subject: [Ltib] RE: ARM lpc32xx build fails for linux-2.6.34
Date: Thu, 17 Jun 2010 01:18:12 +0200

Hi Amit,

 

I didn’t put pre-built configurations for the EA and PHY boards in the kernel patch for 2.6.34 so manual kernel builds don’t have a configuration to start with. I meant to, but I forgot… L Next patch!

If the 2.6.34 option isn’t in your main LTIB menu now, do a CVS update and bring up the LTIB menu again to see and switch to it.

 

If you build with LTIB, it will use the default kernel config in the configs/platform/phy3250 or ea3250 area.

But if you build this manually using the kernel source and the comprehensive patch, you will need a prebuilt configuration to start with…

You can use LTIB to build the kernel and it will handle the configuration for you.

 

Or, copy the prebuilt config in the configs/platform/phy3250 into the kernel source.

Move the ./config/platform/phy3250/Linux-2.6.34-phy3250.config file to ./arch/arm/config/phy3250_defconfig in your 2.6.34 source tree.

 

The run make using the phy3250_defconfig configuration

make ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- phy3250_defconfig uImage

 

Note: You might need to add mkimage to your shell’s PATH environment variable to build uImage – another reason to let LTIB handle the kernel build.

 

I hope this helps,

Kevin

 

 

From: Amit Hergass [mailto:address@hidden
Sent: Wednesday, June 16, 2010 4:05 PM
To: Kevin Wells; address@hidden
Subject: RE: ARM lpc32xx build fails for linux-2.6.34

 

Hi Kevin,

 

Thanks for the quick response.

Below is my build line

make ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-

 

Thanks,

Amit

From: Kevin Wells [mailto:address@hidden
Sent: Thursday, 17 June 2010 9:00 AM
To: Amit Hergass; address@hidden
Subject: RE: ARM lpc32xx build fails for linux-2.6.34

 

 

Hi Amit,

 

Can you show the entire ‘make’ line with parameters you use to build the image?

 

thanks,

Kevin

 

From: address@hidden [mailto:address@hidden On Behalf Of Amit Hergass
Sent: Wednesday, June 16, 2010 3:30 PM
To: address@hidden
Subject: [Ltib] ARM lpc32xx build fails for linux-2.6.34

 

Hi,
I am currently upgrading the kernel from LTIB Linux 2.6.27.8 to 2.6.34.
I applied all the patches for the lpc32xx, and tried to build.
The build failed with missing __pfn_to_bus and __bus_to_pfn.
A search through the sources showed that "__arch_page_to_dma" definition is not available for the lpc32xx processors.

Is there a patch that provides the above? Is anyone know of a solution for it?

I am quite new to the Linux kernel and will appreciate any information that will help solving this issue.


Thanks
Amit


Build output:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/dma-mapping.h:103,
from arch/arm/kernel/asm-offsets.c:15:
/home/hergass/dev/linux-2.6.34/arch/arm/include/asm/dma-mapping.h: In function 'page_to_dma':
/home/hergass/dev/linux-2.6.34/arch/arm/include/asm/dma-mapping.h:20: error: implicit declaration of function '__pfn_to_bus'
/home/hergass/dev/linux-2.6.34/arch/arm/include/asm/dma-mapping.h: In function 'dma_to_page':
/home/hergass/dev/linux-2.6.34/arch/arm/include/asm/dma-mapping.h:25: error: implicit declaration of function '__bus_to_pfn'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]