ARM嵌入式学习笔记(基于iTOP-4412精英版SCP开发板)
作者:互联网
烧写Android
拷贝如下文件到C:\Users\greene\Desktop\USB_fastboot_tool\platform-tools
路径
- ramdisk-uboot.img
- system.img
- u-boot-iTOP-4412.bin
- zImage
进入uboot命令行
分区:fdisk -c 0
格式化:
fatformat mmc 0:1
ext3format mmc 0:2
ext3format mmc 0:3
ext3format mmc 0:4
执行fastboot,连接otg,检查adb设备是否生效
管理员方式启动cmd,进入到C:\Users\greene\Desktop\USB_fastboot_tool\platform-tools路径下
烧写bootloader:
fastboot.exe flash bootloader u-boot-iTOP-4412.bin
烧写内核:
fastboot.exe flash kernel zImage
烧写ramdisk:
fastboot.exe flash ramdisk ramdisk-uboot.img
烧写文件系统:
fastboot.exe flash system system.img
格式化用户空间:
fastboot.exe -w
重启开发板:
fastboot.exe reboot
ubuntu16.04.7搭建开发环境
安装交叉编译工具
mkdir /usr/local/arm
cp arm-2009q3.tar.bz2 /usr/local/arm
tar -xvf arm-2009q3.tar.bz2
将路径加入环境变量
vim ~/.bashrc
export PATH=$PATH:/usr/local/arm/arm-2009q3/bin
source ~/.bashrc
安装库文件、JDK
cp /mnt/hgfs/vm-share/Android_JDK.tar.gz ./
tar -xvf Android_JDK.tar.gz
apt-get install libgl1-mesa-dev-lts-xenial
apt-get install libswitch-perl
apt-get install u-boot-tools
vim /etc/apt/sources.list
deb http://cz.archive.ubuntu.com/ubuntu trusty main universe
sudo apt-get update
sudo apt-get upgrade
cd /root/Android_JDK/jdk6
./install-sun-java6.sh
cd /root/Android_JDK
./install-devel-packages.sh
编译uboot
mkdir ~/uboot
cp /mnt/hgfs/vm-share/iTop4412_uboot_20180320.tar.gz ~/uboot
cp -r /mnt/hgfs/vm-share/CodeSign4SecureBoot_* ~/uboot
cd ~/uboot
tar -xvf iTop4412_uboot_20180320.tar.gz
cd ~/uboot/iTop4412_uboot
./build_uboot.sh SCP_2GDDR
编译内核源码
mkdir ~/Android
cp /mnt/hgfs/vm-share/iTop4412_Kernel_3.0_20220105.tar.gz ~/Android
cd ~/Android
tar -xvf iTop4412_Kernel_3.0_20220105.tar.gz
cd ~/Android/iTop4412_Kernel_3.0
cp config_for_ubuntu_hdmi_scp .config
make zImage
ls ./arch/arm/boot/zImage
标签:uboot,tar,fastboot,gz,4412,arm,iTOP,Android,SCP 来源: https://www.cnblogs.com/greene/p/15824661.html