Forum Discussion
make sd card image failed
Hi
I have tried out the SD Files that you shared and there was no error seen.
The only changes i made was created a few dummy files in the rootfs folder and run the command.
The below is the result I got.
What python version that you are using? The version I am using is 3.8.10
Regards
Jingyang, Teh
- CAlex1 year ago
Contributor
Hi
the version is 3.10.12
I'll try to add some dummy files into root file
Thank you
Alex
- CAlex1 year ago
Contributor
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=1params=['-F 32', '-I'], cmd=mkfs.vfat
stdout=mkfs.fat 4.2 (2021-01-31)
Bad FAT type : 32stderr=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//===========================================================================================
- CAlex1 year ago
Contributor
Hi
It returns the same error message,
I'll try to use the same python version as you did.
- CAlex1 year ago
Contributor
Hi
I can't get the python3.8 through apt.
Is there other ways to get that version?
Alex