am335x(linux3.2.0内核)编译安装Graphics_SDK_setuplinux_4_09_00_01

am335x linux3.2.0内核 编译Graphics_SDK_setuplinux_4_09_00_01_hardfp_minimal_demos.bin

注:sd卡启动盘插入到ubuntu10.04,sd卡显示的目录是/media/rootfs

一、Ubuntu 10.04 LTS 32位系统下安装ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin

ubuntu-10.04-desktop-i386.iso下载地址:

http://old-releases.ubuntu.com/releases/10.04.0/

ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin下载地址:

http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/index_FDS.html

安装ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin到/home/username/ti-sdk-am335x-evm-06.00.00.00

二、编译linux内核

参考http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/exports/sitara-linuxsdk-sdg-06.00.00.00.pdf

cd /home/username/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11

export PATH="/home/username/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin:$PATH"

 

To clean the kernel:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mrproper

 

To build SDK configuration for AM335x:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am335x-evm_defconfig

 

To build uImage target:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage

 

To build modules:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

 

安装内核

sudo make ARCH=arm INSTALL_MOD_PATH= modules_install 

示例:sudo make ARCH=arm INSTALLMOD_PATH=/media/rootfs modules_install

三、编译Graphics SDK(Graphics_SDK_setuplinux_4_09_00_01_hardfp_minimal_demos.bin)

安装Graphics_SDK_setuplinux_4_09_00_01_hardfp_minimal_demos.bin到/home/username/Graphics_SDK_4_09_00_01

cd /home/username/Graphics_SDK_4_09_00_01

export ARCH=arm

vi  ./Graphics_SDK_4_09_00_01/Rules.make

 

HOME=/home/username

GRAPHICS_INSTALL_DIR=${HOME}/Graphics_SDK_4_09_00_01

CSTOOL_DIR = /home/username/ti-sdk-am335x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin

CSTOOL_PREFIX = arm-linux-gnueabi-

KERNEL_INSTALL_DIR=/home/username/ti-sdk-am335x-evm-06.00.00.00/board-support/linux-3.2.0-psp04.06.00.11

TARGETFS_INSTALL_DIR = /media/rootfs

 

编译和安装

make BUILD=release  OMAPES=8.x  SUPPORT_XORG=1  PM_RUNTIME=1 all

make BUILD=release  OMAPES=8.x  SUPPORT_XORG=1  PM_RUNTIME=1 install

 

修改linux 启动盘的/etc/profile文件

#export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0 

export QT_QPA_PLATFORM=eglfs:fb=/dev/fb0                                     

export QT_QPA_EGLFS_FB=/dev/fb0                                              

export QT_QPA_EGLFS_WIDTH=1024                                               

export QT_QPA_EGLFS_HEIGHT=768                                               

export QT_QPA_EGLFS_PHYSICAL_WIDTH=100                                    

export QT_QPA_EGLFS_PHYSICAL_HEIGHT=100       

#增加qtquickcontrol支持

export QML2_IMPORT_PATH=$QTDIR/qml

 

修改linux 启动盘的/etc/powervr.ini

ParamBufferSize=33554432

 

初始化eglfs运行环境

仪器开机后运行 /etc/init.d/335x-demo          

你可能感兴趣的:(Linux)