|
地板
楼主 |
发表于 2020-4-21 15:03:28
|
只看该作者
本帖最后由 钟宇泉 于 2020-4-21 20:14 编辑
之前卡住的原因是因为加了看门狗芯片导致的,修改了TF外围的设备树文件后,问题解决。
然后现在遇到新的问题了。
这边按照教程制作更新系统的TF卡,添加镜像文件,修改拨码开关,上电后,调试口没有打印任何东西,
然后我把SD卡重新插回电脑上,发SD卡里原先考进去的镜像文件损坏了。
已经更换了sd卡了,用于制作sd卡的脚本文件都是刚刚重新从官网上下载的,这个可能回是什么原因么?
之前制作成功过,一直用着也好的,忽然就出现这个问题了。板子正常nand启动是可以的。
重复试过好几遍了,更换SD卡。也不行。板子应该是好的,因为正常启动下可以识别到sd卡的。
我的板子是140p 6y 256m nand
制作tf卡使用的是这个命令
sudo ./CreateSdcardDownload.sh myimx6ek140p-6y-256m-nandmyzr@u14045:~/my-work$ sudo sh CreateSdcardDownload.sh myimx6ek140p-6y-256m-nand
################################################################################
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
====USAGE: config is as follow====
myimx6ek140-6g-128m-emmc myimx6ek140-6g-256m-emmc myimx6ek140-6g-512m-emmc
myimx6ek140-6y-128m-emmc myimx6ek140-6y-256m-emmc myimx6ek140-6y-512m-emmc
myimx6ek140p-6g-128m-emmc myimx6ek140p-6g-256m-emmc myimx6ek140p-6g-512m-emmc
myimx6ek140p-6y-128m-emmc myimx6ek140p-6y-256m-emmc myimx6ek140p-6y-512m-emmc
myimx6ek140-6g-128m-nand myimx6ek140-6g-256m-nand myimx6ek140-6g-512m-nand
myimx6ek140-6y-128m-nand myimx6ek140-6y-256m-nand myimx6ek140-6y-512m-nand
myimx6ek140p-6g-128m-nand myimx6ek140p-6g-256m-nand myimx6ek140p-6g-512m-nand
myimx6ek140p-6y-128m-nand myimx6ek140p-6y-256m-nand myimx6ek140p-6y-512m-nand
Example:
$ sudo ./CreateSdcardDownload.sh myimx6ek140p-6y-256m-emmc
Formatting can be skipped if the SD card is already formatted and
partitioned properly.
################################################################################
***config is myimx6ek140p-6y-256m-nand***
Availible Drives to write images to:
# major minor size name
1: 8 16 131072000 sdb
2: 8 32 15558144 sdc
Enter Device Number: 2
sdc was selected
Checking the device is unmounted
sdc1 sdc2 sdc3
512000
################################################################################
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/n] : y
Now partitioning sdc ...
################################################################################
Now making 1 partitions
################################################################################
记录了1+0 的读入
记录了1+0 的写出
1024字节(1.0 kB)已复制,0.0333685 秒,30.7 kB/秒
Disk /dev/sdc doesn't contain a valid partition table
DISK SIZE - 15931539456 bytes
Checking that no-one is using this disk right now ...
OK
磁盘 /dev/sdc:15193 个柱面,64 个磁头,32 个扇区/磁道
sfdisk: ERROR: sector 0 does not have an msdos signature
/dev/sdc: unrecognized partition table type
旧状况:
No partitions found
新状况:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
设备 启动 开头 结束 MiB #块 Id 系统
/dev/sdc1 10 509 500 512000 c W95 FAT32 (LBA)
/dev/sdc2 0 - 0 0 0 空
/dev/sdc3 0 - 0 0 0 空
/dev/sdc4 0 - 0 0 0 空
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
成功写入了新分区表
正在重新读取分区表...;
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.fat 3.0.26 (2014-03-07)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
Mount the partitions
Emptying partitions
################################################################################
Copying files now... will take minutes
################################################################################
Copying boot partition
untar update.tar.bz2 to boot partition
my_environment_emmc.scr
my_environment_nand.scr
myimx6a7bsg-6y-256m-nand.dtb
myimx6cb140cqly-6g-512m-emmc.dtb
myimx6ek140-6g-128m-emmc.dtb
myimx6ek140-6g-128m-nand.dtb
myimx6ek140-6g-256m-emmc.dtb
myimx6ek140-6g-256m-nand.dtb
myimx6ek140-6g-512m-emmc.dtb
myimx6ek140-6g-512m-nand.dtb
myimx6ek140-6y-128m-emmc.dtb
myimx6ek140-6y-128m-nand.dtb
myimx6ek140-6y-256m-emmc.dtb
myimx6ek140-6y-256m-nand.dtb
myimx6ek140-6y-512m-emmc.dtb
myimx6ek140-6y-512m-nand.dtb
myimx6ek140p-6g-128m-emmc.dtb
myimx6ek140p-6g-128m-nand.dtb
myimx6ek140p-6g-256m-emmc.dtb
myimx6ek140p-6g-256m-nand.dtb
myimx6ek140p-6g-512m-emmc.dtb
myimx6ek140p-6g-512m-nand.dtb
myimx6ek140p-6y-128m-emmc.dtb
myimx6ek140p-6y-128m-nand.dtb
myimx6ek140p-6y-256m-emmc.dtb
myimx6ek140p-6y-256m-nand.dtb
myimx6ek140p-6y-512m-emmc.dtb
myimx6ek140p-6y-512m-nand.dtb
rootfs.ramdisk
target/
u-boot.imx
uboot-myimx6ek140-6g-128m-emmc.imx
uboot-myimx6ek140-6g-128m-nand.imx
uboot-myimx6ek140-6g-256m-emmc.imx
uboot-myimx6ek140-6g-256m-nand.imx
uboot-myimx6ek140-6g-512m-emmc.imx
uboot-myimx6ek140-6g-512m-nand.imx
uboot-myimx6ek140-6y-128m-emmc.imx
uboot-myimx6ek140-6y-128m-nand.imx
uboot-myimx6ek140-6y-256m-emmc.imx
uboot-myimx6ek140-6y-256m-nand.imx
uboot-myimx6ek140-6y-512m-emmc.imx
uboot-myimx6ek140-6y-512m-nand.imx
uboot-myimx6ek140p-6g-128m-emmc.imx
uboot-myimx6ek140p-6g-128m-nand.imx
uboot-myimx6ek140p-6g-256m-emmc.imx
uboot-myimx6ek140p-6g-256m-nand.imx
uboot-myimx6ek140p-6g-512m-emmc.imx
uboot-myimx6ek140p-6g-512m-nand.imx
uboot-myimx6ek140p-6y-128m-emmc.imx
uboot-myimx6ek140p-6y-128m-nand.imx
uboot-myimx6ek140p-6y-256m-emmc.imx
uboot-myimx6ek140p-6y-256m-nand.imx
uboot-myimx6ek140p-6y-512m-emmc.imx
uboot-myimx6ek140p-6y-512m-nand.imx
zImage-myimx6a7
Buring the uboot-myimx6ek140p-6y-256m-nand.imx to sdcard
记录了129+0 的读入
记录了129+0 的写出
132096字节(132 kB)已复制,0.648558 秒,204 kB/秒
记录了919+0 的读入
记录了919+0 的写出
941056字节(941 kB)已复制,4.12253 秒,228 kB/秒
Syncing....
Update Finish
附上TF制作的打印信息
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|