Skip to content

Commit

Permalink
mkvirtdisk: Silence dd stderr msgs
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Chan <[email protected]>
  • Loading branch information
erichchan999 authored and Ivan-Velickovic committed Aug 7, 2024
1 parent c05821b commit 37578e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/mkvirtdisk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ COUNT=$(( MEMSIZE / FDISK_LSIZE ))
COUNT=$(( COUNT / MULTIPLE * MULTIPLE)) # Ensure COUNT is a multiple of sDDF transfer size and logical size

# Create a file to act as a virtual disk
dd if=/dev/zero of=$DISK_IMAGE bs=$FDISK_LSIZE count=$COUNT
dd if=/dev/zero of=$DISK_IMAGE bs=$FDISK_LSIZE count=$COUNT 2> /dev/null

POFFSET=$MULTIPLE

Expand Down Expand Up @@ -78,5 +78,5 @@ mkfs.fat -C $BUILD_DIR/fat.img $(( (FS_COUNT * FDISK_LSIZE) / 1024 ))
for i in $(seq 0 $(( NUM_PARTITIONS - 1 )))
do
echo "Copying FAT filesystem to partition $i, seek=$((POFFSET + i * FS_COUNT)), count=$FS_COUNT, bs=$FDISK_LSIZE"
dd if=$BUILD_DIR/fat.img of=$DISK_IMAGE bs=$FDISK_LSIZE seek="$((POFFSET + i * FS_COUNT))" count=$FS_COUNT
dd if=$BUILD_DIR/fat.img of=$DISK_IMAGE bs=$FDISK_LSIZE seek="$((POFFSET + i * FS_COUNT))" count=$FS_COUNT 2> /dev/null
done

0 comments on commit 37578e3

Please sign in to comment.