码迷,mamicode.com
首页 > 其他好文 > 详细

全志a13开发资料总结

时间:2015-03-31 18:12:34      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:全志a13   linux   7zip   

这几天由于工作的原因,开始接触全志a13芯片,本人在网上搜集了好长时间,但是网上的资料对这方面的描述是非常少的,

所以,只能靠数据手册还有官网上面的英文文档进行开发了,以下只是开发中的很少的一部分,先大致总结下,之后等玩的熟练了

,再写一个完整版本的与大家共享。

相关资料可以在官网上面进行查询  https://www.olimex.com/wiki/A13-OLinuXino#Linux

DDR3 使用的是海力士 

首先下载对应的内核版本

把镜像写到SD卡中你必须解压A13_debian_34_75_WIFI_RALINK_GCC_GPIO_X_I2C_100KHz_UVC_TS_FTDI_video_release_9.7z 这个
文件

如果是windows 则用7zip进行解压,然后使用Win32DiskImager.exe进行对镜像文件的烧写

如果使用linux 则使用p7zip包  ,若没有安装则使用命令
#apt-get install p7zip   进行包的安装
拷贝A13_debian_34_75_WIFI_RALINK_GCC_GPIO_X_I2C_100KHz_UVC_TS_FTDI_video_release_9.7z
文件  到你的目录然后进行解压
#7za e A13_debian_34_75_WIFI_RALINK_GCC_GPIO_X_I2C_100KHz_UVC_TS_FTDI_video_release_9.7z

解压后应该得到一个新的4G文件
A13_debian_34_75_WIFI_RALINK_GCC_GPIO_X_I2C_100KHz_UVC_TS_FTDI_video_release_9.7z
把4G的SD卡放到读卡器里面
然后输入命令进行查看
   # ls /dev/sd 

输入命令按匹配件(table键)进行sd后续的匹配  在你进行进一步的操作之前你要确定哪个是你的SD卡  要不然会损坏你的硬盘的   可以来回进行插拔进行确定

 Once you know which device is your sdcard like sda use this text instead of the sdX name in the references below:
   #dd if=A13_debian_34_75_WIFI_RALINK_GCC_GPIO_X_I2C_100KHz_UVC_TS_FTDI_video_release_9.7z 
of=/dev/sdX

如何把linux镜像文件烧写到SD卡 ?
在windows环境下进行烧写:
    1 insert card
    2 start program
    3 select file
    4 click "write"
在linux环境下进行烧写,假设要烧写的镜像文件是debian_2g.img
    1 # dd bs=4M oflag=sync if=debian_2g.img of=/dev/sdX
    2# cp debian_2g.img /dev/sdX
    其中sdX是挂载在linux上面的SD卡

Build Bootable SD Card with Debian 建立一个可以启动linux的SD卡 

 1  创建工具连 toolchain
    

# apt-get install gcc-arm-linux-gnueabihf ncurses-dev uboot-mkimage build-essential git

# Older (prior to 2013): apt-get install gcc-4.6-arm-linux-gnueabi ncurses-dev uboot-mkimage build-essential git


building bootable sd card with debian linux image for a13 olinuxino

Building Uboot

# mkdir olinuxino # cd olinuxino
# git clone -b sunxi https://github.com/linux-sunxi/u-boot-sunxi.git
# cd uboot-allwinner/
# make CROSS_COMPILE=arm-linux-gnueabihf- A13-OLinuXino_config
# make CROSS_COMPILE=arm-linux-gnueabihf-
# (Older (prior 2013): make a13_olinuxino CROSS_COMPILE=arm-linux-gnueabi
# ls u-boot.bin spl/sunxi-spl.bin
技术分享


Building the Kernal
    
# cd ..
下载内核  这个大概700M左右  时间会有点长的
# git clone https://github.com/linux-sunxi/linux-sunxi.git
下载之后进入内核的目录
# cd linux-sunxi/
之后进行相关的配置
# make ARCH=arm a13_defconfig
# make ARCH=arm menuconfig

if you want to use GPIOs for instance they are not enabled by default and you can do this by adding:

SUN4I_GPIO_UGLY = y inside .config

then you can contiue with:

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage

when this finish‘s you will have uImage ready and you can build the kernel modules:

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=out modules

# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=out modules_install

 


 

全志a13开发资料总结

标签:全志a13   linux   7zip   

原文地址:http://blog.csdn.net/u011401496/article/details/44781469

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!