openbouffalo / buildroot_bouffalo

Linux Image for the BL808 CPU by Bouffalo Lab
126 stars 34 forks source link

configs: add missing host package #52

Closed newluhux closed 1 year ago

eeucalyptus commented 1 year ago

Please consider adding a description to your PR, it is not clear why the packages are "missing" in the upstream repo. It seems more like an application specific requirement, so it might be better to just have it in your fork.

newluhux commented 1 year ago

genimage use mkdosfs command to create xxxx.vfat file, not all linux distro have pre installed dosfstools. this project use mkdosfs to create boot.vfat file system image:

board/pine64/ox64/genimage.cfg:31 https://github.com/openbouffalo/buildroot_bouffalo/blob/ce5648e52763f3df6f9ca41a04d4e7231cf5faf4/board/pine64/ox64/genimage.cfg#L32 https://github.com/pengutronix/genimage/blob/fa614899a550ed0bb4c3ca38cb32308169a37b72/image-vfat.c#L41 https://github.com/pengutronix/genimage/blob/master/README.rst#vfat

    26                  size = 1G
    27          }
    28          partition boot {
    29                  size = 200M
    30                  partition-type-uuid = F
    31                  bootable = "true"
    32                  image = "boot.vfat"
    33          }
    34          partition rootfs {
    35                  #partition-type = 0x83

compile log:

table='/home/luhui/pub/buildroot/output/build/buildroot-fs/full_devices_table.txt'
>>>   Executing post-image script /home/luhui/work/buildroot_bouffalo/board/pine64/ox64/post-build.sh
Compressing UBoot Image
Compressed 519746 bytes into 315599 bytes ==> 60.72%                           
Creating OpenSBI/DTB/Uboot Image
DEBUG: offset=00030100, next=00700000, diff=006cff00
DEBUG: offset=00010100, next=00030100, diff=00020000
DEBUG: offset=00000100, next=00010100, diff=00010000
DEBUG: offset=00000000, next=00000100, diff=00000100
header size:       0 -        0 (  0 %, max 256 bytes) - Start 00000000
dtb size:          1 -    14314 ( 21 %, max   64 kB) - Start 00000100
opensbi size:      2 -   109864 ( 83 %, max  128 kB) - Start 00010100
linux size:        3 -   315599 (  4 %, max 7143168 bytes) - Start 00030100
Copying Boot Script
Image Name:   
Created:      Tue Mar 28 20:37:59 2023
Image Type:   RISC-V Linux Script (uncompressed)
Data Size:    286 Bytes = 0.28 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 278 Bytes = 0.27 KiB = 0.00 MiB
Image Name:   
Created:      Tue Mar 28 20:37:59 2023
Image Type:   RISC-V Linux Script (uncompressed)
Data Size:    288 Bytes = 0.28 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 280 Bytes = 0.27 KiB = 0.00 MiB
Creating Filesystem Image
INFO: cmd: "mkdir -p "/home/luhui/pub/buildroot/output/build/genimage.tmp"" (stderr):
INFO: cmd: "rm -rf "/home/luhui/pub/buildroot/output/build/genimage.tmp"/*" (stderr):
INFO: cmd: "mkdir -p "/home/luhui/pub/buildroot/output/build/genimage.tmp"" (stderr):
INFO: cmd: "cp -a "/tmp/tmp.hWjrqehbQm" "/home/luhui/pub/buildroot/output/build/genimage.tmp/root"" (stderr):
INFO: cmd: "mkdir -p "/home/luhui/pub/buildroot/output/images"" (stderr):
INFO: vfat(boot.vfat): cmd: "mkdosfs   '/home/luhui/pub/buildroot/output/images/boot.vfat'" (stderr):
/bin/sh: line 1: mkdosfs: command not found
INFO: vfat(boot.vfat): cmd: "rm -f "/home/luhui/pub/buildroot/output/images/boot.vfat"" (stderr):
ERROR: vfat(boot.vfat): failed to generate boot.vfat
Completed - Images are at /home/luhui/pub/buildroot/output/images
luhui@x230 ~/pub/buildroot$ 
Fishwaldo commented 1 year ago

Thanks!