图片贴不进来,看附件中的word文档吧。
TQi.MX6UL试用体验
1. 开箱测评 产品型号:TQiMX6UL_BASE 3个月的包换,12个月的保修 2. 唯一的一个意外:包装向内包含一条板子用不上的传视频的USB数据线, 整个外观给人的感觉很舒服.
3. 试验环境 操作系统环境Ubuntu14.04 天嵌提供的资料包:天嵌TQIMX6UL 制作启动SD卡 在天嵌TQIMX6UL/Linux平台工具/ 中 获取create_sdcard.sh 以及 u-boot.imx 插入带有存储卡的读卡器到电脑.在root用户下执行命令: shcreate_sdcard.sh 执行结果为:
''' root@fenghuo:/media/fenghuo/新加卷/TQIMX6UL/天嵌TQIMX6UL/Linux平台工具/Linux平 工具/opt/EmbedSky/TQIMX6UL/TQ_COREA/tqimx6ul-tools# sh create_sdcard.sh-a /dev/ sdb total : 3724MB kernle_rom_sizeb: 512MB rootfs_rom_sizeb: 3212MB
create_sdcard.sh: 77: create_sdcard.sh:func tion: not found umount: /dev/sdb2: not mounted umount: /dev/sdb1: not mounted create_sdcard.sh: 82: create_sdcard.sh:function: not found formating android images umount: /dev/sdb1: not mounted umount: /dev/sdb2: not mounted mkfs.fat 3.0.26 (2014-03-07) mke2fs 1.42.9 (4-Feb-2014) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 207168 inodes, 827095 blocks 41354 blocks (5.00%) reserved for the superuser First data block=0 Maximum filesystem blocks=847249408 26 block groups 32768 blocks per group, 32768 fragments pergroup 7968 inodes per group Superblock backups stored on blocks: 32768,98304, 163840, 229376, 294912, 819200
Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystemaccounting information: done
create_sdcard.sh: 92: create_sdcard.sh:function: not found flashing images... 16+0 records in 16+0 records out 8192 bytes (8.2 kB) copied, 0.0163546 s,501 kB/s 1198+0 records in 1198+0 records out 613376 bytes (613 kB) copied, 0.437095 s,1.4 MB/s create_sdcard.sh: 99: create_sdcard.sh:function: not found mount: wrong fs type, bad option, badsuperblock on /dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so
cp: cannot stat ‘zImage’: No such file ordirectory cp: cannot stat ‘imx6ul-14x14-evk.dtb’: Nosuch file or directory tar: rootfs.tar.bz2: Cannot open: No suchfile or directory tar: Error is not recoverable: exiting now umount: /tmp/images/boot: not mounted create_sdcard.sh: 113: create_sdcard.sh:function: not found create_sdcard.sh: 115: create_sdcard.sh:unmount_all: not found 1+0 records in 1+0 records out 1024 bytes (1.0 kB) copied, 0.00190007 s,539 kB/s Error: /dev/sdb: unrecognised disk label Device contains neither a valid DOSpartition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with diskidentifier 0xd0f645f3. Changes will remain in memory only, untilyou decide to write them. After that, of course, the previous contentwon't be recoverable.
Warning: invalid flag 0x0000 of partitiontable 4 will be corrected by w(rite)
Command (m for help): Partition type: p primary (0 primary, 0extended, 4 free) e extended Select (default p): Partition number (1-4,default 1): First sector (2048-7626751, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G}(2048-7626751, default 7626751): Command (m for help): Partition type: p primary (1 primary, 0extended, 3 free) e extended Select (default p): Partition number (1-4,default 2): First sector (1050624-7626751, default 1050624): Using defaultvalue 1050624 Last sector, +sectors or +size{K,M,G}(1050624-7626751, default 7626751): Using default value 7626751
Command (m for help): The partition tablehas been altered!
Calling ioctl() to re-read partition table. Syncing disks. create_sdcard.sh: 148: create_sdcard.sh:create_partition: not found create_sdcard.sh: 151: create_sdcard.sh:format_disk: not found create_sdcard.sh: 154: create_sdcard.sh: flash_android:not found root@fenghuo:/media/fenghuo/新加卷/TQIMX6UL/天嵌TQIMX6UL/Linux平台工具/Linux平 工具/opt/EmbedSky/TQIMX6UL/TQ_COREA/tqimx6ul-tools# root@fenghuo:/media/fenghuo/新加卷/TQIMX6UL/天嵌TQIMX6UL/Linux平台工具/Linux平 工具/opt/EmbedSky/TQIMX6UL/TQ_COREA/tqimx6ul-tools# ''' 从执行结果来看,只是对SD卡分了区,其他的没做,有些脚本函数提示没找到,根据脚本要做的功能,接下来做: 1.格式化存储卡. mkfs.vfat/dev/sdb1 mkfs.ext4/dev/sdb2 3.挂在 mkdir/mnt/boot mkdir/mnt/rootfs mount-t vfat /dev/sdb1 /mnt/boot mount-t ext4 /dev/sdb2 /mnt/rootfs 4.cp u-boot.imx
打开目录: TQIMX6UL/天嵌TQIMX6UL/出厂烧录镜像合集/出厂烧录镜像合集/Linux镜像/tqimx6ul_v1.0 执行命令 tar xvf rootfs.tar.bz2 -C /mnt/rootfs 讲其余的文件复制到/mnt/boot文件夹下. 不要使用sync命令,直接卸载就要,否则会哭的. umount /mnt/boot umount /mnt/rootfs 至此.获得制作好的SD卡.
从拨到从SD卡启动后,在拨回来的时候NAND, 莫名其妙的就不能启动了,未知
TFTP服务安装
sudo apt-get install tftp-hpa sudo mkdir /srv/tftp/
sudo vim /etc/default/tftpd-hpa 内容为: # /etc/default/tftpd-hpa
TFTP_USERNAME="tftp" TFTP_DIRECTORY="/srv/tftp" TFTP_ADDRESS=":69" TFTP_OPTIONS="-l -c -s" #end 重启服务 service tftpd-hpa restart 1.烧写 烧写文件 准备烧写文件,将要烧写的文件放在目录/srv/tftp中.
为了,能使板子能够安装完整的操作系统,手贱做了不该有的seriial串口下载操作,结果,SD卡读不出来了, 现在设备的状态是:
现在的状态是可以使用TFTP烧写,但是SD卡仍然读不出来,也不能够烧写.
目的是朝着能够安装完整发型版的Linux系统迈进,并用来代替生产使用的arm9 开发板,待解决了这个问题,继续搞
|