赞
踩
guangjie@ubuntu:~/work/imx6ull/uboot-imx-rel_imx_4.1.15_2.1.0_ga_xgj$ cat make_imx6ull_emmc.sh
#!/bin/bash
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mx6ull_14x14_evk_emmc_defconfig
make V=1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j8
lsblk 命令查看挂载的磁盘
guangjie@ubuntu:~/work/imx6ull/uboot-imx-rel_imx_4.1.15_2.1.0_ga_xgj$ lsblk
......
sda 8:0 0 200G 0 disk
└─sda1 8:1 0 200G 0 part /
sdb 8:16 1 29.7G 0 disk
├─sdb1 8:17 1 488M 0 part
└─sdb2 8:18 1 29.3G 0 part
sr0 11:0 1 1024M 0 rom
sdb是挂载的SD卡。
guangjie@ubuntu:~/work/imx6ull/uboot-imx-rel_imx_4.1.15_2.1.0_ga_xgj$ ./imxdownload u-boot.bin /dev/sdb
I.MX6UL bin download software
Edit by:zuozhongkai
Date:2018/8/9
Version:V1.0
file u-boot.bin size = 419540Bytes
Delete Old load.imx
Create New load.imx
Download load.imx to /dev/sdb ......
825+1 records in
825+1 records out
422612 bytes (423 kB, 413 KiB) copied, 2.86566 s, 147 kB/s
使用正点原子imxdownload 小软件进行烧写
烧写完成在主机下查看会发现SD卡都是空的,不存在任何文件
刚开始误以为是烧写没成功,后面发现是因为烧写的是二进制文件,不是以文件的形式存在的,所以打开SD卡是看不到任何文件的。
测试:
必须将开发板拨码开关设置为从SD卡启动
。插入SD卡,上电,可以看到启动信息:
U-Boot 2016.03 (Apr 04 2022 - 02:57:56 -0700) CPU: Freescale i.MX6ULL rev1.1 69 MHz (running at 396 MHz) CPU: Industrial temperature grade (-40C to 105C) at 43C Reset cause: POR Board: MX6ULL 14x14 EVK I2C: ready DRAM: 512 MiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 Display: TFT43AB (1024x600) Video: 1024x600x24 In: serial Out: serial Err: serial switch to partitions #0, OK mmc0 is current device Net: FEC1 Normal Boot Hit any key to stop autoboot: 0 =>
imx6ull的uboot2016.03编译器版本问题导致的ping,就重启!! - 不明白就去明白 - 博客园
问题就出在交叉编译器版本上,更改交叉编译器版本就解决了。
错误提示现象:
arm-linux-gnueabihf-ld: error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or directory
出错原因是: 缺少lib32z1库
解决方法: sudo apt-get install lib32z1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。