嵌入式爱好者

查看: 10022|回复: 3

[Linux] imx6ul制作SD卡启动问题

[复制链接]

1

主题

3

帖子

10

积分

i.MX6UL通行证

扫一扫,手机访问本帖
发表于 2021-11-10 14:35:50 | 显示全部楼层 |阅读模式
SD卡在windows用sd_formtter格式化后,在linux执行sudo ./create-sdcard.sh后,没有生成boot文件夹。制作终端打印log为




root@100ask:/home/book/work/imx6ul/createSdcard# ./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

sdb1  sdb2   sdb3
15554048


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

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


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

                Now ** 1 partitions

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

1+0 records in
1+0 records out
1024 bytes (1.0 kB, 1.0 KiB) copied, 0.00890667 s, 115 kB/s
DISK SIZE - 15931539456 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: /home/book/work/imx6ul/createSdcard/boot: 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
sdrun/
sdrun/u-boot.imx
sdrun/zImage
sdrun/imx6ul-14x14-evk.dtb
sdrun/ramdisk.img.u
target/
target/modules.tar.bz2
target/imx6ul-14x14-evk-emmc-c-bak.dtb
target/u-boot.imx
target/imx6ul-14x14-evk-emmc-c-10.4-800x600.dtb
target/rootfs.tar.bz2
target/logo.bmp
target/zImage
target/imx6ul-14x14-evk-emmc-c-7-1024x600.dtb
target/imx6ul-14x14-evk-emmc-c-8-800x600.dtb
target/imx6ul-14x14-evk-emmc-c-10.1-1280x800.dtb
target/imx6ul-14x14-evk-emmc-c-5.6-640x480.dtb
target/imx6ul-14x14-evk-emmc-c-7-800x480.dtb
target/imx6ul-14x14-evk-emmc-c-3.5-320x240.dtb
target/imx6ul-14x14-evk-emmc-c-4.3-480x272.dtb
Buring th u-boot.imx to sdcard
129+0 records in
129+0 records out
132096 bytes (132 kB, 129 KiB) copied, 0.157855 s, 837 kB/s
371+0 records in
371+0 records out
379904 bytes (380 kB, 371 KiB) copied, 0.373231 s, 1.0 MB/s

Syncing....


Un-mount the partitions
umount: boot: not mounted.

Remove created temp directories

Operation Finished

root@100ask:/home/book/work/imx6ul/createSdcard#



回复

使用道具 举报

1

主题

3

帖子

10

积分

i.MX6UL通行证

 楼主| 发表于 2021-11-10 17:56:04 | 显示全部楼层
使用的ubuntu是18.4的,按照官方的指南烧写的SD卡

点评

whl
由于Ubuntu版本不同,需要修改一下制卡脚本。参考这边知识库修改一下,把卡重新格式化,再重新制卡 http://bbs.witech.com.cn/article-415-1.html  详情 回复 发表于 2021-11-11 08:38
点评回复 支持 反对

使用道具 举报

0

主题

41

帖子

221

积分

i.MX6Q通行证i.MX6UL通行证RK3588通行证FCU11xx通行证

发表于 2021-11-11 08:38:51 | 显示全部楼层
阿强 发表于 2021-11-10 17:56
使用的ubuntu是18.4的,按照官方的指南烧写的SD卡

由于Ubuntu版本不同,需要修改一下制卡脚本。参考这边知识库修改一下,把卡重新格式化,再重新制卡
http://bbs.witech.com.cn/article-415-1.html

点评

感谢,可以了  详情 回复 发表于 2021-11-11 11:10
点评回复 支持 反对

使用道具 举报

1

主题

3

帖子

10

积分

i.MX6UL通行证

 楼主| 发表于 2021-11-11 11:10:29 | 显示全部楼层
whl 发表于 2021-11-11 08:38
由于Ubuntu版本不同,需要修改一下制卡脚本。参考这边知识库修改一下,把卡重新格式化,再重新制卡
http ...

感谢,可以了
:victory:
点评回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 23:04

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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