FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6136 Discussions

make sd card image failed

CAlex
New Contributor II
285 Views

Hi

I put the u-boot-spl in -P 2A and bin-image.bin in FAT32(sdfsys/*) trying to get a baremetal system.

And sudo python3 ./make_sd_image.py failed.

 

Error:

sudo python3 ./make_sdimage_p3.py -f -P u-boot-spl,num=3,format=raw,size=10M,type=2A -P sdfsys/*,num=1,format=fat32,size=100M -P rootfs/*,num=2,format=ext3,size=300M -s 512M -n MCV_SD_BM.img
info: creating the image MCV_SD_BM.img
info: creating the partition table
image_name set to MCV_SD_BM.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.

 

//================================== EOE

 

attached is the SD file I made.

 

 

Reguards

Alex

Labels (2)
0 Kudos
9 Replies
khtan
Employee
235 Views

We sincerely apologize for the inconvenience caused by the delay in addressing your Forum queries. Due to an unexpected back-end issue in our system, your Forum cases, along with others, did not get through as intended. As a result, we have a backlog of cases that we are currently working through one by one.

Please be assured that we are doing everything we can to resolve this issue as quickly as possible. However, this process will take some time, and we kindly ask for your patience and understanding during this period. The cases will be attended by AE shortly.

We appreciate your patience and understanding, and we are committed to providing you with the best support possible. 

Thank you for your understanding.


0 Kudos
CAlex
New Contributor II
144 Views

Hi 

It seems doesn't work.

It returns the same error

 

Alex

0 Kudos
JingyangTeh
Employee
149 Views

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

2024-10-11_10h22_20.png

 

Regards

Jingyang, Teh

 

0 Kudos
CAlex
New Contributor II
145 Views

Hi 

the version is 3.10.12

 

I'll try to add some dummy files into root file

 

Thank you 

Alex

0 Kudos
CAlex
New Contributor II
117 Views

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

//===========================================================================================

0 Kudos
CAlex
New Contributor II
144 Views

Hi

It returns the same error message,

I'll try to use the same python version as you did.

0 Kudos
CAlex
New Contributor II
143 Views

Hi 

I can't get the python3.8 through apt.

Is there other ways to get that version?

 

Alex

0 Kudos
JingyangTeh
Employee
40 Views

Hi


Could you share with me the files in your "BM_bin/*" folder?

Or you could try the one in the sd card that you shared.


Regards

Jingyang, Teh


0 Kudos
CAlex
New Contributor II
38 Views

HI

file atached 

 

Thank you for your help

0 Kudos
Reply