嵌入式爱好者

查看: 15864|回复: 6

[硬件咨询] SD卡烧写问题

[复制链接]

2

主题

5

帖子

17

积分

i.MX6UL通行证

扫一扫,手机访问本帖
发表于 2018-6-15 15:18:23 | 显示全部楼层 |阅读模式
使用SD卡烧写   用户资料/Linux/tools/SD/烧写/256Mnand/createSdCard-qt4 在制作SD卡时成功完成,但却无法烧写,过程如下

sudo ./createSDcard.sh
[sudo] imx6ul 的密码:

################################################################################

This script will create a bootable SD card from custom or pre-built binaries.

The script must be run with root permissions and from the bin directory of
the SDK

Example:
$ sudo ./create-sdcard.sh

Formatting can be skipped if the SD card is already formatted and
partitioned properly.

################################################################################


Availible Drives to write images to:

#  major   minor    size   name
1:   8       16   15114240 sdb

Enter Device Number: 1


sdb was selected

Checking the device is unmounted

sdb1  sdb2   sdb3


SD Card is not correctly partitioned

################################################################################

                Now ** 1 partitions

################################################################################

记录了1+0 的读入
记录了1+0 的写出
1024 bytes (1.0 kB, 1.0 KiB) copied, 9.54e-05 s, 10.7 MB/s
DISK SIZE - 15476981760 bytes
sfdisk: unsupported unit 'M'

################################################################################

                Partitioning Boot

################################################################################
mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mkfs.vfat: unable to open /dev/sdb1: No such file or directory

Mount the partitions
mount: special device /dev/sdb1 does not exist

Emptying partitions

################################################################################

        Copying files now... will take minutes

################################################################################

Copying boot partition
untar update.tar.bz2 to boot partition
bin/
bin/u-boot.imx
bin/imx6ul-14x14-evk.dtb
bin/ramdisk.img.u
bin/zImage
system/
system/logo-7.bmp
system/imx6ul-14x14-evk-gpmi-5.6-r.dtb
system/u-boot.imx
system/imx6ul-14x14-evk-gpmi-8-r.dtb
system/imx6ul-14x14-evk-gpmi-10.4-r.dtb
system/imx6ul-14x14-evk-gpmi-4.3-r.dtb
system/rootfs.tar.bz2
system/logo-8.bmp
system/logo-4.3.bmp
system/imx6ul-14x14-evk-gpmi-7.dtb
system/zImage
system/logo-5.6.bmp
Buring th u-boot.imx to sdcard
记录了129+0 的读入
记录了129+0 的写出
132096 bytes (132 kB, 129 KiB) copied, 0.428026 s, 309 kB/s
记录了319+0 的读入
记录了319+0 的写出
326656 bytes (327 kB, 319 KiB) copied, 0.827929 s, 395 kB/s

Syncing....


Un-mount the partitions
umount: boot: not mounted

Remove created temp directories

Operation Finished


在板子上启动的输出:
U-Boot 2015.04-g3989e3c (Dec 14 2017 - 19:11:47)

CPU:   Freescale i.MX6UL rev1.2 at 396 MHz
CPU:   Temperature 45 C
Reset cause: POR
Board: MX6UL 14x14 EVK
I2C:   ready
DRAM:  256 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

Display: TFT70AB (800x480)
Video: 800x480x24
Error: no valid bmp image at 83800000 cfb_console.c
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc0 is current device
Net:   Phy 2 not found
PHY reset timed out
FEC0
Error: FEC0 address not set.

Normal Boot
Hit any key to stop autoboot:  0
** No partition table - mmc 0 **
update emmc.........
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
Bad Linux ARM zImage magic!
---------------MAIN MENU---------------
1. Screen Type Menu
2. Change The Calibrate
0. Exit To Boot Shell
Enter your number:
:




回复

使用道具 举报

2

主题

5

帖子

17

积分

i.MX6UL通行证

 楼主| 发表于 2018-6-15 15:21:42 | 显示全部楼层
=> mmcinfo
Device: FSL_SDHC
Manufacturer ID: 2
OEM: 544d
Name: SW16G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.4 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

点评回复 支持 反对

使用道具 举报

0

主题

177

帖子

321

积分

AM5718通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证XX18通行证TCU通行证

发表于 2018-6-15 17:40:16 | 显示全部楼层
卡制作完成以后里面是否有bin和system目录啊,bin,system里面的内容是不是都正确了?
正常都不会有问题,还有你核心板是多大的就烧多大的不要弄混了,SD卡的格式是不是FAT
点评回复 支持 反对

使用道具 举报

2

主题

5

帖子

17

积分

i.MX6UL通行证

 楼主| 发表于 2018-6-19 11:11:12 | 显示全部楼层
卡制作完后无法识别,在Windows上提示未格式化

点评

你好,这种情况应该是您在SD卡制作过程中出现了问题,建议您将SD卡重新格式化后,根据用户手册重新制作SD卡进行烧写  详情 回复 发表于 2018-6-19 13:32
点评回复 支持 反对

使用道具 举报

0

主题

162

帖子

672

积分

AM5718通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证XX18通行证TCU通行证FCU1401通行证FCU1301通行证

发表于 2018-6-19 13:32:59 | 显示全部楼层
huangyubin 发表于 2018-6-19 11:11
卡制作完后无法识别,在Windows上提示未格式化

你好,这种情况应该是您在SD卡制作过程中出现了问题,建议您将SD卡重新格式化后,根据用户手册重新制作SD卡进行烧写
点评回复 支持 反对

使用道具 举报

2

主题

5

帖子

17

积分

i.MX6UL通行证

 楼主| 发表于 2018-6-19 16:11:05 | 显示全部楼层
现在是这样的情况

Normal Boot
Hit any key to stop autoboot:  0
reading boot.scr
** Unable to read file boot.scr **
update emmc.........
reading /bin/zImage
6219672 bytes read in 293 ms (20.2 MiB/s)
reading /bin/ramdisk.img.u
Error reading cluster
** Unable to read file /bin/ramdisk.img.u **
** Can't read partition table on 0:0 **
** Invalid partition 1 **
Kernel image @ 0x80800000 [ 0x000000 - 0x5ee798 ]
## Loading init Ramdisk from Legacy Image at 83800000 ...
   Image Name:   ramdisk
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8157950 Bytes = 7.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
---------------MAIN MENU---------------
1. Screen Type Menu
2. Change The Calibrate
0. Exit To Boot Shell
Enter your number:
:

点评

您好,首先需要确定您的板子和使用的烧写镜像是否一致。您可以在下面的网址中下载我们所提供的做卡环境,进行SD卡的制作。 http://bbs.witech.com.cn/forum.php?mod=viewthread&tid=68102&extra=page%3D1  详情 回复 发表于 2018-6-19 16:27
点评回复 支持 反对

使用道具 举报

0

主题

162

帖子

672

积分

AM5718通行证AM335x通行证i.MX6UL通行证i.MX6Q通行证XX18通行证TCU通行证FCU1401通行证FCU1301通行证

发表于 2018-6-19 16:27:14 | 显示全部楼层
huangyubin 发表于 2018-6-19 16:11
现在是这样的情况

Normal Boot

您好,首先需要确定您的板子和使用的烧写镜像是否一致。您可以在下面的网址中下载我们所提供的做卡环境,进行SD卡的制作。
http://bbs.witech.com.cn/forum.p ... &extra=page%3D1
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-24 12:20

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表