下载了ti-sdk-am335x-evm-07.00.00.00-Linux-x86-Install.bin安装后,执行了./setup 后发现了 ,uboot和kernel 源码,问题如下:
1,以上步骤安装的,交叉编译链是否需要单独安装,怎么确认交叉编译链安装成功了呢?
2,执行 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage 时,是在内核源码目录下执行,还是在软件包根目录下面执行阿?同问编译uboot呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
下载了ti-sdk-am335x-evm-07.00.00.00-Linux-x86-Install.bin安装后,执行了./setup 后发现了 ,uboot和kernel 源码,问题如下:
1,以上步骤安装的,交叉编译链是否需要单独安装,怎么确认交叉编译链安装成功了呢?
2,执行 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage 时,是在内核源码目录下执行,还是在软件包根目录下面执行阿?同问编译uboot呢?
1. 安装完那个bin文件后,交叉编译工具就安装好了。在SDK目录下。只需要在环境变量里面设置好工具所在的路径就行。setup那个配置的是tftp,nfs服务等。
详细信息请参考:http://processors.wiki.ti.com/index.php/Sitara_Linux_SDK_GCC_Toolchain
2.在内核源码目录下执行。uboot也是这样。当然也可以使用如下的方式进行编译:
http://processors.wiki.ti.com/index.php/Sitara_Linux_SDK_Top-Level_Makefile
关于uboot,kernel,最好不要依赖sdk进行编译,这两部分虽然跟随sdk发布,但是相对独立
请参考
http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User%27s_Guide#Building_U-Boot
http://processors.wiki.ti.com/index.php/AMSDK_Linux_User%27s_Guide
每次编译都要输入 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-,有没有办法设置一下,能不每次都输入这些东西啊?
能说的详细点吗?放到那个 目录下面的bashrc,放什么内容?
谢谢,已经google到,用alias 在$home下面!
sudo vim /etc/profile
找到 ARCH =?
CROSS_COMPILE =?
修改成 ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-