Forum Discussion
make sd card image failed
Hi
the version is 3.10.12
I'll try to add some dummy files into root file
Thank you
Alex
Hi
python 3.8 didn't work well.
Here is my environment:
ubuntu 22std
with SOC EDS 22.1 std.
//==========================================================================================
chun@LEV:~/MCV/MCV_24_10_10$ python3.8 --version
Python 3.8.20
chun@LEV:~/MCV/MCV_24_10_10$ sudo python3.8 ./make_sdimage_p3.py -f \
-P u-boot-spl,num=3,format=raw,size=10M,type=2A \
-P BM_bin/*,num=1,format=fat32,size=100M \
-P root/*,num=2,format=ext3,size=300M \
-s 512M \
-n sdcard_mcv.img
info: creating the image sdcard_mcv.img
image removed
info: creating the partition table
image_name set to sdcard_mcv.img
Partition return code [ 0 ]
now delete loopback
info: processing partitions...
partition #3...
do_partition entry
partition #1...
do_partition entry
error: format: failed. Return code=1
params=['-F 32', '-I'], cmd=mkfs.vfat
stdout=mkfs.fat 4.2 (2021-01-31)
Bad FAT type : 32
stderr=Usage: mkfs.vfat [OPTIONS] TARGET [BLOCKS]
Create FAT filesystem in TARGET, which can be a block device or file. Use only
up to BLOCKS 1024 byte blocks if specified. With the -C option, file TARGET will be
created with a size of 1024 bytes times BLOCKS, which must be specified.
Options:
-a Disable alignment of data structures
-A Toggle Atari variant of the filesystem
-b SECTOR Select SECTOR as location of the FAT32 backup boot sector
-c Check device for bad blocks before creating the filesystem
-C Create file TARGET then create filesystem in it
-D NUMBER Write BIOS drive number NUMBER to boot sector
-f COUNT Create COUNT file allocation tables
//===========================================================================================