Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk full error when calling u-boot/tools/mkimage #2

Open
dmcclung opened this issue Dec 16, 2023 · 1 comment
Open

Disk full error when calling u-boot/tools/mkimage #2

dmcclung opened this issue Dec 16, 2023 · 1 comment

Comments

@dmcclung
Copy link

During the build process, make from top level, I encountered the error below

/home/dylan/mars-buildroot-sdk/work/u-boot/tools/mkimage -f /home/dylan/mars-buildroot-sdk/conf/visionfive2-fit-image.its -A riscv -O linux -T flat_dt /home/dylan/mars-buildroot-sdk/work/image.fit
FIT description: U-boot FIT image for visionfive2
Created:         Sat Dec 16 01:05:50 2023
 Image 0 (vmlinux)
  Description:  vmlinux
  Created:      Sat Dec 16 01:05:50 2023
  Type:         Kernel Image
  Compression:  uncompressed
  Data Size:    24180736 Bytes = 23614.00 KiB = 23.06 MiB
  Architecture: RISC-V
  OS:           Linux
  Load Address: 0x40200000
  Entry Point:  0x40200000
 Image 1 (ramdisk)
  Description:  buildroot initramfs
  Created:      Sat Dec 16 01:05:50 2023
  Type:         RAMDisk Image
  Compression:  uncompressed
  Data Size:    289585425 Bytes = 282798.27 KiB = 276.17 MiB
  Architecture: RISC-V
  OS:           Linux
  Load Address: 0x46100000
  Entry Point:  unavailable
  Hash algo:    sha256
  Hash value:   069dc1437e3e82a4f8c5be9960c5309706da4e05c687e2d76696a39cc7945190
 Image 2 (fdt)
  Description:  unavailable
  Created:      Sat Dec 16 01:05:50 2023
  Type:         Flat Device Tree
  Compression:  uncompressed
  Data Size:    52701 Bytes = 51.47 KiB = 0.05 MiB
  Architecture: RISC-V
  Load Address: 0x46000000
  Hash algo:    sha256
  Hash value:   f0224b4b1b6bfba25cfc81a0403804a4b7851af1a2bb385b01c9a880025c8b3d
 Default Configuration: 'config-1'
 Configuration 0 (config-1)
  Description:  visionfive2 with opensbi
  Kernel:       vmlinux
  FDT:          fdt
  Loadables:    ramdisk
inFile: /home/dylan/mars-buildroot-sdk/work/opensbi/platform/generic/firmware/fw_payload.bin
inSize: 2957960 (0x002d2288, LE:0x88222d00)
outFile: /home/dylan/mars-buildroot-sdk/work/opensbi/platform/generic/firmware/fw_payload.bin.out
outSize: 2957964 (0x002d228c)
dd if=/dev/zero of=/home/dylan/mars-buildroot-sdk/work/starfive-visionfive2-vfat.part bs=512 count=598016
598016+0 records in
598016+0 records out
306184192 bytes (306 MB, 292 MiB) copied, 0.479575 s, 638 MB/s
/sbin/mkfs.vfat /home/dylan/mars-buildroot-sdk/work/starfive-visionfive2-vfat.part
mkfs.fat 4.2 (2021-01-31)
PATH=/home/dylan/mars-buildroot-sdk/work/buildroot_initramfs/host/bin:/home/dylan/.nvm/versions/node/v18.18.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/usr/local/go/bin:/home/dylan/go/bin:/home/dylan/.bin 

MTOOLS_SKIP_CHECK=1 mcopy -i /home/dylan/mars-buildroot-sdk/work/starfive-visionfive2-vfat.part /home/dylan/mars-buildroot-sdk/work/image.fit ::starfiveu.fit
Disk full
make: *** [Makefile:431: /home/dylan/mars-buildroot-sdk/work/starfive-visionfive2-vfat.part] Error 1

This error indicates that the VFAT image doesn't have enough free space to accommodate image.fit.

@dmcclung
Copy link
Author

image.fit is 300mb and starfive-visionfive2-vfat.part is only 292mb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant