humhh575 发表于 2022-5-13 13:35:11

docker ubuntu18.04 ls1046a-c2开发板自带源码编译失败

Created filesystem with 73972/457856 inodes and 707221/1828608 blocks
/usr/Downloads/t4240/ok1046c2/OK10xx-linux-fs/flexbuild/build/images/ubuntu.img   
arm64: Build ubuntu userland and apps components in /usr/Downloads/t4240/ok1046c2/OK10xx-linux-fs/flexbuild/build/images!   
total 2753432
-rw-r--r-- 1 root root   14990338 May 13 05:26 firmware_ls1046ardb_uboot_qspiboot_1040_5506.img
-rw-r--r-- 1 root root   14990338 May 13 05:26 firmware_ls1046ardb_uboot_qspiboot_1133_5a59.img
-rw-rw-r-- 1 mhhmhh    14986242 May 13 05:26 firmware_ls1046ardb_uboot_sdboot_1040_5506.img
-rw-rw-r-- 1 mhhmhh    14986242 May 13 05:26 firmware_ls1046ardb_uboot_sdboot_1133_5a59.img
-rw-r--r-- 1 root root 2786528296 May 13 05:29 ubuntu.img
INSTRUCTION: mkupdate
fatal: not a git repository (or any parent up to mount point /usr)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
20+0 records in
20+0 records out
20971520 bytes (21 MB, 20 MiB) copied, 0.120856 s, 174 MB/s
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: done                           
Creating filesystem with 20480 1k blocks and 5136 inodes
Filesystem UUID: 502b2bdc-7359-4702-902e-ed76acdcec7d
Superblock backups stored on blocks:
    8193

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

mount: ./mntrd: mount failed: Operation not permitted.
mknod: ./mntrd/dev/console: File exists
mknod: ./mntrd/dev/null: File exists
umount: ./mntrd: must be superuser to unmount.
mount: mntrd: mount failed: Operation not permitted.
FATAL ERROR: Couldn't open "../../packages/rfs/ramdiskrfs/ramdisk_rootfs_usb_update.ext4.gz": No such file or directory
mkimage: Can't open /usr/Downloads/t4240/ok1046c2/OK10xx-linux-fs/flexbuild/build/images/usb_update.itb.tmp: No such file or directory


hai 发表于 2022-5-13 14:21:32

您好,从您的打印信息来看,是因为需要在root权限下进行编译。若果已经是root权限下还出现这个问题,我这边想了解一下您是否使用的是我们飞凌官方提供的开发环境,或者您是否修改过源码。

humhh575 发表于 2022-5-13 14:29:56

vmware 开发太麻烦哪了,在ubuntu 20.04用docker 虚拟机环境下,用的您们源码

humhh575 发表于 2022-5-13 14:31:35

用普通用户还是root用户,都出现这个问题,
INSTRUCTION: mkupdate
fatal: not a git repository (or any of the parent directories): .git
20+0 records in
20+0 records out
20971520 bytes (21 MB, 20 MiB) copied, 0.00746151 s, 2.8 GB/s
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: done                           
Creating filesystem with 20480 1k blocks and 5136 inodes
Filesystem UUID: 8d7627eb-0709-40b6-b3c0-3b77c5c21bd5
Superblock backups stored on blocks:

humhh575 发表于 2022-5-13 14:32:48

Superblock backups stored on blocks:
        8193

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

mount: ./mntrd: mount failed: Operation not permitted.
umount: ./mntrd: must be superuser to unmount.
mount: mntrd: mount failed: Operation not permitted.
FATAL ERROR: Couldn't open "../../packages/rfs/ramdiskrfs/ramdisk_rootfs_usb_update.ext4.gz": No such file or directory
mkimage: Can't open /home/mhh/OK10xx-linux-fs/flexbuild/build/images/usb_update.itb.tmp: No such file or directory

humhh575 发表于 2022-5-13 15:05:26

最后找到了,docker创建的时候 docker run --privileged=true
就可以了, 最后image

drwxrwxr-x 3 mhhmhh      4096 May 13 07:02 ./
drwxr-xr-x 7 mhhmhh      4096 May 13 05:04 ../
drwxr-xr-x 2 root root       4096 May 13 07:02 boot/
-rw-r--r-- 1 root root      196 May 13 07:02 config.ini
-rw-r--r-- 1 root root   14990338 May 13 06:59 firmware_ls1046ardb_uboot_qspiboot_1040_5506.img
-rw-r--r-- 1 root root   14990338 May 13 06:59 firmware_ls1046ardb_uboot_qspiboot_1133_5a59.img
-rw-rw-r-- 1 mhhmhh    14986242 May 13 06:59 firmware_ls1046ardb_uboot_sdboot_1040_5506.img
-rw-rw-r-- 1 mhhmhh    14986242 May 13 06:58 firmware_ls1046ardb_uboot_sdboot_1133_5a59.img
-rw-r--r-- 1 root root      365 May 13 07:02 ls1046ardb_update.scr
-rw-r--r-- 1 root root 2786528296 May 13 07:02 ubuntu.img
-rw-r--r-- 1 root root   15873356 May 13 07:02 usb_update.itb

Linuxgdb 发表于 2022-10-11 15:35:01

docker镜像地址 多少
页: [1]
查看完整版本: docker ubuntu18.04 ls1046a-c2开发板自带源码编译失败