Jessiezyj 发表于 2019-11-28 09:11:27

imx6ul板子用sd烧写板子失败

本帖最后由 Jessiezyj 于 2019-11-28 21:32 编辑

OKMX6UL-C按照软件手册烧写SD卡成功,但是插到板子上后,无法将文件复制到卡内,烧写卡失败,如下为烧写时打印信息
U-Boot 2015.04-g3989e3c (Dec 14 2017 - 19:11:47)

CPU:   Freescale i.MX6UL rev1.1 at 396 MHz
CPU:   Temperature 41 C
Reset cause: POR
Board: MX6UL 14x14 EVK
I2C:   ready
DRAM:256 MiB
force_idle_bus: sda=1 scl=0 sda.gp=0x1d scl.gp=0x1c
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Card did not respond to voltage select!
MMC init failed
Using default environment

Display: TFT70AB (800x480)
Video: 800x480x24
Error: no valid bmp image at 83800000 cfb_console.c
In:    serial
Out:   serial
Err:   serial
MMC: no card present
Net:   Phy 2 not found
PHY reset timed out
FEC0
Error: FEC0 address not set.

Normal Boot
Hit any key to stop autoboot:0
MMC: no card present
** Bad device mmc 1 **
mmc boot..........
MMC: no card present
** Bad device mmc 1 **
MMC: no card present
** Bad device mmc 1 **
Booting from net ...
*** ERROR: `ethaddr' not set
*** ERROR: `ethaddr' not set
Bad Linux ARM zImage magic!
---------------MAIN MENU---------------
1. Screen Type Menu
2. Change The Calibrate
0. Exit To Boot Shell
Enter your number:
:
在Linux系统执行createSDcard.sh脚本信息如下:
root@ubuntu:/home/work/createSdcard-qt4# ./createSDcard.sh


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

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   15558144 sdb

Enter Device Number: 1


sdb was selected

Checking the device is unmounted
unmounted /dev/sdb1

sdb1sdb2   sdb3
15549896


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

   Detected device has 1 partitions already

   Re-partitioning will allow the choice of 1 partitions

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

Would you like to re-partition the drive anyways : y


Now partitioning sdb ...


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

                Now ** 1 partitions

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

1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.008173 s, 125 kB/s
Disk /dev/sdb doesn't contain a valid partition table
DISK SIZE - 15931539456 bytes
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdb: 15193 cylinders, 64 heads, 32 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdb: unrecognized partition table type
Old situation:
No partitions found
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   IdSystem
/dev/sdb1      10    509    500   512000    cW95 FAT32 (LBA)
/dev/sdb2         0      -      0          0    0Empty
/dev/sdb3         0      -      0          0    0Empty
/dev/sdb4         0      -      0          0    0Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

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

                Partitioning Boot

################################################################################
mkfs.vfat 3.0.12 (29 Oct 2011)

Mount the partitions

Emptying partitions

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

      Copying files now... will take minutes

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

Copying boot partition
untar update.tar.bz2 to boot partition
bin/
bin/zImage
bin/imx6ul-14x14-evk.dtb
bin/u-boot.imx
bin/ramdisk.img.u
system/
system/imx6ul-14x14-evk-gpmi-5.6-r.dtb
system/imx6ul-14x14-evk-gpmi-8-r.dtb
system/zImage
system/logo-4.3.bmp
system/logo-5.6.bmp
system/imx6ul-14x14-evk-gpmi-7.dtb
system/logo-8.bmp
system/logo-7.bmp
system/imx6ul-14x14-evk-gpmi-10.4-r.dtb
system/imx6ul-14x14-evk-gpmi-4.3-r.dtb
system/u-boot-256mnand.imx
Buring th u-boot.imx to sdcard
129+0 records in
129+0 records out
132096 bytes (132 kB) copied, 0.116608 s, 1.1 MB/s
319+0 records in
319+0 records out
326656 bytes (327 kB) copied, 0.317891 s, 1.0 MB/s

Syncing....


Un-mount the partitions

Remove created temp directories

Operation Finished

显示制卡完成。
也曾经尝试过在Windows系统下制作SD卡,也是制作成功,但是烧写失败。
不知道具体原因,请求帮助

Jessiezyj 发表于 2019-11-28 09:14:05

之前用的Ubuntu1604的64位系统,后来换成Ubuntu1204的64位系统,最后换成Ubuntu1204的32位系统,都不行
Windows系统下,开始是win10系统,后来换成win7系统,也是不行

zhichao 发表于 2019-11-28 11:30:34

您烧写时没读到sd卡,换张别的卡试试吧

Jessiezyj 发表于 2019-11-28 13:04:13

zhichao 发表于 2019-11-28 11:30
您烧写时没读到sd卡,换张别的卡试试吧

现在手里4个SD卡换着用,应该是烧进SD卡了,因为bin文件和system文件都复制到SD卡里面了

zhichao 发表于 2019-11-28 14:25:26

拨码开关是设成sd卡烧写了吗,有试过我们提供的虚拟机吗

Jessiezyj 发表于 2019-11-28 14:51:55

zhichao 发表于 2019-11-28 14:25
拨码开关是设成sd卡烧写了吗,有试过我们提供的虚拟机吗

拨码是2,3on,1,4off。就是用的你们的虚拟机

zhichao 发表于 2019-11-28 15:11:10

是我们的底板吗,我们手册上SD 卡烧写设置:1 4 On, 2 3 5 6 7 8 Off (On 代表拨到上方,Off 代表拨到下方)

Jessiezyj 发表于 2019-11-28 15:21:57

zhichao 发表于 2019-11-28 15:11
是我们的底板吗,我们手册上SD 卡烧写设置:1 4 On, 2 3 5 6 7 8 Off (On 代表拨到上方,Off 代表拨到下方 ...

底板稍作了改动

Jessiezyj 发表于 2019-11-28 21:18:11

问题已经解决,看了原版板子的拨码和现有板子的拨码,发现从SD卡启动后,uboot的环境变量不太一样,启动过程中,没有认到SD卡,就是拨码设置的启动方式有问题,修改CPLD程序,改变启动方式后,能够通过SD卡成功升级烧写系统。
页: [1]
查看完整版本: imx6ul板子用sd烧写板子失败