huangyubin 发表于 2018-6-15 15:18:23

SD卡烧写问题

使用SD卡烧写   用户资料/Linux/tools/SD/烧写/256Mnand/createSdCard-qt4 在制作SD卡时成功完成,但却无法烧写,过程如下

sudo ./createSDcard.sh
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

sdb1sdb2   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:
:




huangyubin 发表于 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

Marss 发表于 2018-6-15 17:40:16

卡制作完成以后里面是否有bin和system目录啊,bin,system里面的内容是不是都正确了?
正常都不会有问题,还有你核心板是多大的就烧多大的不要弄混了,SD卡的格式是不是FAT

huangyubin 发表于 2018-6-19 11:11:12

卡制作完后无法识别,在Windows上提示未格式化

liyang 发表于 2018-6-19 13:32:59

huangyubin 发表于 2018-6-19 11:11
卡制作完后无法识别,在Windows上提示未格式化

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

huangyubin 发表于 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:
:

liyang 发表于 2018-6-19 16:27:14

huangyubin 发表于 2018-6-19 16:11
现在是这样的情况

Normal Boot


您好,首先需要确定您的板子和使用的烧写镜像是否一致。您可以在下面的网址中下载我们所提供的做卡环境,进行SD卡的制作。
http://bbs.witech.com.cn/forum.php?mod=viewthread&tid=68102&extra=page%3D1
页: [1]
查看完整版本: SD卡烧写问题