【s5p4418嵌入式学习】开篇01
作者: Linux-小企鹅
博客地址:http://blog.****.net/u012319379/article/details/77803806
硬件平台
-
芯片平台
- Samsung s5p4418,据说是Nexell公司代理研发的,具体什么渊源感兴趣的朋友可以去百度。
-
开发板平台
- itop4418开发板
软件平台
-
uboot版本
- u-boot-2014.07
-
kernel内核版本
- kernel-3.4.39
-
android系统版本
- android5.1.1.r6
编译
-
uboot配置
cp nsih-2G16b-4418.txt nsih.txt
-
kernel配置
cp -r config_for_iTOP4418_android_5.1 .config
export ARCH=arm -
android5.1.1编译
./build_android.sh_4418
烧写系统
-
TF卡启动
核心板空片或者uboot损坏的时候可以SD卡启动
- TF启动卡制作
- Windows系统使用PartitionManager.exe分区
- Ubuntu系统使用gparted软件分区
- 预留64MB,剩余空间格式化为Fat32格式
- 重新插入SD卡,区别SD卡,烧录uboot到SD卡
mkuboot /dev/sd* uboot,(sd*代表你的SD卡,有可能为sdc,sdd,sde)
- Windows系统使用PartitionManager.exe分区
A. 插入TF卡开发板上电adb下载
- 开发板端敲空格可以进入命令模式,执行fastboot命令
- 通过usb数据线连接电脑,pc端在result目录下执行
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
B. TF卡直接下载
- 在TF卡里建立目录mkdir sdupdate目录,拷贝boot.img,cache.img,system.img,u-boot-itop-4418.bin,userdata.img
- 将T卡插入开发板,进入uboot敲空格,执行sdfuse flashall
- TF启动卡制作
-
设置环境变量
- 重启设置环境变量setenv bootsystem android,“setenv fastboot”,“setenv androidversion 5.1”setenv lcdtype 9.7”
编译错误
- 错误一 make: * [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
解决办法:
cp /usr/bin/ld.gold /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld
make update-api
./build_android.sh_4418