macktao88 发表于 2020-4-10 23:53:57

create-sdcard.sh sfdisk: invalid option -- 'D'

请问有支持ubuntu16.04以上版本的create-sdcard.sh 脚本吗,执行一直报sfdisk: invalid option -- 'D'。
网上查了下说是sfdisk版本太高的原因。

zhichao 发表于 2020-4-11 10:03:09

没有高版本的脚本,您可以看看-D在高版本被什么命令替代了,自己改一下试试

macktao88 发表于 2020-4-13 20:39:38

sd的大小超过16g可以使用这个脚本吗,在ubuntu12.04下

macktao88 发表于 2020-4-13 20:42:40

我自己尝试改了这个脚本在ubuntu16.04制作sd卡启动盘,用的64g sd卡,但系统起不来:(

zhichao 发表于 2020-4-14 08:37:49

我们一般都是使用8G或16G,最高试过32G,再高就没有试过了

macktao88 发表于 2020-4-14 11:06:03

kernel version 3.2
nand page size 4k
write MLO
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 256 Kibyte @ 1c0000 -- 100 % complete
10+1 records in
10+1 records out
41527 bytes (40.6KB) copied, 0.233135 seconds, 173.9KB/s
write u-boot.img
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 256 Kibyte @ 1c0000 -- 100 % complete
67+1 records in
67+1 records out
277300 bytes (270.8KB) copied, 0.703325 seconds, 385.0KB/s
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 256 Kibyte @ 1c0000 -- 100 % complete
write logo
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 256 Kibyte @ 1c0000 -- 100 % complete
94+1 records in
94+1 records out
385078 bytes (376.1KB) copied, 0.933729 seconds, 402.7KB/s
write kernel
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 256 Kibyte @ 7c0000 -- 100 % complete
870+1 records in
870+1 records out
3566976 bytes (3.4MB) copied, 4.080920 seconds, 853.6KB/s
write rootfs
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 256 Kibyte @ 3e0c0000 -- 98 % comp[   27.301848] yaffs: dev is 32505863 name is "mtdblock7" rw
Erasing 25[   27.308706] yaffs: passed flags ""
Erasing 256 Kibyte @ 3ebc0000 -- 100 % complete
tar: can't open '/tmp/card/rootfs.tar.bz2': No such file or directory
update nand done....

我这边制作完sd卡启动盘后一直这样卡在这里,这个rootfs.tar.bz2不是已经解压到rootfs分区了吗
页: [1]
查看完整版本: create-sdcard.sh sfdisk: invalid option -- 'D'