- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
the version is 3.10.12
I'll try to add some dummy files into root file
Thank you
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
//===========================================================================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
It returns the same error message,
I'll try to use the same python version as you did.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I can't get the python3.8 through apt.
Is there other ways to get that version?
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Weird thing I am able to create the sd card image without any problem on my end.
Could you try installing all the tools on your system with the command below:
sudo apt-get install gawk wget git-core diffstat unzip texinfo \
gcc-multilib build-essential chrpath socat cpio python python3 \
python3-pip python3-pexpect xz-utils debianutils iputils-ping \
python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm \
libncurses-dev gawk flex bison openssl libssl-dev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I found the issue:
change from ``mkfs.fat -F 32 ``to`` mkfs.fat -F32`` in make_sdimage_p3.py
from rocketboards <boot from Stratix10>
But <boot from CycloneV and A10> didn't update it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.
Regards
Jingyang, Teh
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page