TI E2E Community
Sitara Processors Forum
I am trying to rebuild my application for 3517 based on the latest sdk 5.04.
When compiling I get the following :
In file included from /usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk/include/asm/system.h:153:0, from /usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk/include/asm/bitops.h:27, from /usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk/include/linux/bitops.h:22, from /usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk/include/linux/kernel.h:17, from RTCdrv.c:31:/usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk/include/asm/memory.h:18:25: fatal error: mach/memory.h: No such file or directory
In the sdk include I made a symlink asm pointing to /usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk/arch/arm/include/asm.
Do I need to do something simular for mach?
If I add an include path to /usr/local/ti-sdk-am3517-evm/board-support/linux-2.6.37-psp04.02.00.07.sdk/include/asm this one is gone however then I get the error that plat/memory is not found.
There for I am wondering if I missed something when generating the kernel. I did a sudo make on the sdk root.
Just wanted to make sure that you have performed the kernel configuration step before trying to build the kernel.
The steps are detailed in http://processors.wiki.ti.com/index.php/AMSDK_Linux_User%27s_Guide
For the SDK configuration of AM3517, use the below.
make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- tisdk_am3517-evm_defconfig
Is this then need if I do a sudo make clean and sudo make in the sdk root.?
If I run this from the SDK root it does not run
If you are at the top level SDK directory, you should only need to execute the following commands:
<prompt> export PATH=$PWD/linux-devkit/bin:$PATH<prompt> make linux_clean<prompt> make linux
In the instructions found in http://processors.wiki.ti.com/index.php/AMSDK_Linux_User%27s_Guide it mentioned that if you are building at the SDK level, this is all you need.
I performed these steps just now (after downloading the SDK upon replying to this thread) and it builds successfully.
Building the kernel is not the issue. I can build it error free. The issue is if the kernel headers for userspace are generated?
After buidling the kernel I do not see the asm-arm, plat and mach folders in the include map.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.