编译出现问题!
我不管用./build 的哪个编译都编译不过去,情况类似下面yqb@ubuntu:~/work/OK8MP-linux-sdk$./build.sh kernel
~/work/OK8MP-linux-sdk/OK8MP-linux-kernel ~/work/OK8MP-linux-sdk
./build.sh: line 68: make: command not found
./build.sh: line 69: make: command not found
./build.sh: line 70: make: command not found
./build.sh: line 71: make: command not found
~/work/OK8MP-linux-sdk
~/work/OK8MP-linux-sdk/OK8MP-linux-kernel/extra/vvcam/v4l2 ~/work/OK8MP-linux-sdk
./build.sh: line 75: make: command not found
./build.sh: line 76: make: command not found
~/work/OK8MP-linux-sdk
~/work/OK8MP-linux-sdk/OK8MP-linux-kernel/extra/basler-camera-driver ~/work/OK8MP-linux-sdk
./build.sh: line 80: make: command not found
./build.sh: line 81: make: command not found
~/work/OK8MP-linux-sdk
~/work/OK8MP-linux-sdk/OK8MP-linux-kernel/extra/cryptodev ~/work/OK8MP-linux-sdk
./build.sh: line 85: make: command not found
./build.sh: line 86: make: command not found
~/work/OK8MP-linux-sdk
~/work/OK8MP-linux-sdk/OK8MP-linux-kernel/extra/jailhouse ~/work/OK8MP-linux-sdk
./build.sh: line 90: make: command not found
./build.sh: line 91: make: command not found
~/work/OK8MP-linux-sdk
cp: cannot stat 'OK8MP-linux-kernel/arch/arm64/boot/dts/freescale/OK8MP-C.dtb': No such file or directory
cp: cannot stat 'OK8MP-linux-kernel/arch/arm64/boot/Image': No such file or directory
mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
/home/yqb/work/OK8MP-linux-sdk/images/kernel/Image: No such file or directory
/home/yqb/work/OK8MP-linux-sdk/images/kernel/OK8MP-C.dtb: No such file or directory
/home/yqb/work/OK8MP-linux-sdk/OK8MP-linux-fs/rootfs/lib/firmware/hello_world.bin: No such file or directory
编译uboot 和内核的时候除了上面的还有
cp: cannot stat 'OK8MP-linux-kernel/arch/arm64/boot/dts/freescale/OK8MP-C.dtb': No such file or directory
cp: cannot stat 'OK8MP-linux-kernel/arch/arm64/boot/Image': No such file or directory
mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
/home/yqb/work/OK8MP-linux-sdk/images/kernel/Image: No such file or directory
/home/yqb/work/OK8MP-linux-sdk/images/kernel/OK8MP-C.dtb: No such file or directory
/home/yqb/work/OK8MP-linux-sdk/OK8MP-linux-fs/rootfs/lib/firmware/hello_world.bin: No such file or directory
~/work/OK8MP-linux-sdk/appsrc/forlinx-qt ~/work/OK8MP-linux-sdk
./build.sh: line 219: make: command not found
./build.sh: line 220: make: command not found
~/work/OK8MP-linux-sdk
~/work/OK8MP-linux-sdk/appsrc/forlinx-cmd ~/work/OK8MP-linux-sdk
./build.sh: line 224: make: command not found
./build.sh: line 225: make: command not found
~/work/OK8MP-linux-sdk
~/work/OK8MP-linux-sdk/tools/ramdisk ~/work/OK8MP-linux-sdk
36222 blocks
~/work/OK8MP-linux-sdk
Image Name: ramdisk
Created: Wed Apr 20 02:46:26 2022
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 7762143 Bytes = 7580.22 KiB = 7.40 MiB
Load Address: 00000000
Entry Point:00000000
0+0 records in
0+0 records out
0 bytes copied, 0.000128171 s, 0.0 kB/s
mke2fs 1.45.5 (07-Jan-2020)
Discarding device blocks: done
Creating filesystem with 1966080 4k blocks and 1966080 inodes
Filesystem UUID: 76f62e68-8bdb-4fe6-9783-69bef33d1e03
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Copying files into the device:
这种 我看编译手册也没这个啊,而且说是在images下会有结果也没有,是我哪操作错了吗?
yqb@ubuntu:~/work/OK8MP-linux-sdk$ ls -al
total 64
drwxr-xr-x8 yqb yqb4096 Apr 20 02:49 .
drwxrwxr-x3 yqb yqb4096 Apr 20 02:59 ..
drwxr-xr-x4 yqb yqb4096 Jan 21 00:15 appsrc
-rwxr-xr-x1 yqb yqb6465 Jan 21 00:15 build.sh
-rw-r--r--1 yqb yqb 16384 Apr 20 02:49 .build.sh.swp
-rw-r--r--1 yqb yqb 61 Jan 21 01:11 commit_id.txt
-rwxr-xr-x1 yqb yqb 354 Jan 21 00:15 environment-setup-aarch64-poky-linux
drwxr-xr-x3 yqb yqb4096 Apr 20 02:49 images
drwxr-xr-x 11 yqb yqb4096 Apr 20 02:58 OK8MP-FreeRTOS
drwxr-xr-x3 yqb yqb4096 Jan 21 00:50 OK8MP-linux-fs
drwxr-xr-x 25 yqb yqb4096 Jan 21 00:50 OK8MP-linux-kernel
drwxr-xr-x5 yqb yqb4096 Apr 20 02:46 tools
这是sdk目录下的 本帖最后由 Q_Y_X 于 2022-4-21 11:34 编辑
. /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux
. environment-setup-sourcetree
编译前设置一下这两个环境变量再试一下
Q_Y_X 发表于 2022-4-21 11:27
. /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux
. environment-setup-sourcetre ...
还是不对,跟之前一样 a456094144 发表于 2022-4-21 11:34
还是不对,跟之前一样
你解压的SDK包是完整的嘛,我这是6.8G的。 Q_Y_X 发表于 2022-4-21 12:10
你解压的SDK包是完整的嘛,我这是6.8G的。
6.8G的这个SDK我都弄两三遍肯定没问题的了 我这里跟你一样,任何编译都报错,而且,也解压了好几遍了,压缩包都是没问题的。 a456094144 发表于 2022-4-21 14:06
6.8G的这个SDK我都弄两三遍肯定没问题的了
请问您这个问题解决了吗,怎么解决的呀。 圆心008 发表于 2022-9-12 10:52
请问您这个问题解决了吗,怎么解决的呀。
在编译之前需要先安装交叉编译环境,在编译手册3.3章节,之后设置两条环境变量,注意. /之间有一个空格
. /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux 任意目录
. environment-setup-aarch64-poky-linux 需要在OK8MP-linux-sdk这个目录下执行
您再试下
编译了好几次,环境也有,也成功了。但是没有.dtb 和 Iamge 文件,后续修改设备树一直报错。。。。 jinshiyi95 发表于 2022-9-23 01:17
编译了好几次,环境也有,也成功了。但是没有.dtb 和 Iamge 文件,后续修改设备树一直报错。。。。
这个需要看一下您具体的报错信息。 Q_Y_X 发表于 2022-9-23 10:37
这个需要看一下您具体的报错信息。
没报错啊,和教程里成功的结果一样,就是没有.dtb和Image, MD5也测过都没问题 jinshiyi95 发表于 2022-9-23 15:09
没报错啊,和教程里成功的结果一样,就是没有.dtb和Image, MD5也测过都没问题
生成的这两个文件在OK8MP-linux-sdk/images/kernel该目录下,您那里没有嘛?
页:
[1]