Firefly开源社区

使用HDMI统编命令时错误中断

244

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
244
发表于 2019-11-17 00:07:31     
本帖最后由 m1843514989 于 2019-11-17 00:12 编辑

在inudstry版的安卓SDK里编译3399J的固件,使用统编命令时出错,日志如下,望得到解答。

ma@U1404:~/proj/industry-rk3399$ ./FFTools/make.sh  -d rk3399-firefly-aio -j4 -l rk3399_firefly_aio_box-userdebug
~/proj/industry-rk3399/u-boot ~/proj/industry-rk3399
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/version_autogenerated.h
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/loaderimage.o
  HOSTCC  tools/mkenvimage.o
tools/loaderimage.c: In function ‘main’:
tools/loaderimage.c:116:28: warning: variable ‘name’ set but not used [-Wunused-but-set-variable]
  char   *magic, *version, *name;
                            ^
tools/loaderimage.c:116:18: warning: variable ‘version’ set but not used [-Wunused-but-set-variable]
  char   *magic, *version, *name;
                  ^
tools/loaderimage.c:339:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
   fread(hdr, sizeof(struct tag_second_loader_hdr), 1, fi);
        ^
  HOSTCC  tools/mkimage.o
  HOSTCC  tools/boot_merger
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  HOSTLD  tools/loaderimage
  HOSTLD  tools/trust_merger
  HOSTLD  tools/checksum
  CC      board/rockchip/rk33xx/rk33xx.o
  LD      board/rockchip/rk33xx/built-in.o
  CC      board/rockchip/common/rkboot/fastboot.o
  CC      common/main.o
  CC      common/board_f.o
  LD      board/rockchip/common/built-in.o
  CC      common/cmd_version.o
  CC      common/cmd_fastboot.o
  CC      common/cmd_bootrk.o
  CC      lib/display_options.o
  LD      lib/built-in.o
  LD      common/built-in.o
  LD      u-boot
  OBJCOPY u-boot.bin
start=$(/home/ma/proj/industry-rk3399/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/home/ma/proj/industry-rk3399/u-boot/../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot.bin 0x00200000 $start $end
  OBJCOPY u-boot.srec
./tools/boot_merger ./tools/rk_tools/RKBOOT/RK3399MINIALL.ini
out:rk3399_loader_v1.23.115.bin
fix opt:rk3399_loader_v1.23.115.bin
merge success(rk3399_loader_v1.23.115.bin)
./tools/trust_merger   ./tools/rk_tools/RKTRUST/RK3399TRUST.ini
out:trust.img
merge success(trust.img)
./tools/loaderimage --pack --uboot u-boot.bin uboot.img

load addr is 0x200000!
pack input u-boot.bin
pack file size: 541444
crc = 0xb936818d
pack uboot.img success!
~/proj/industry-rk3399
~/proj/industry-rk3399/kernel ~/proj/industry-rk3399
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/utsrelease.h
make[1]: “arch/arm64/boot/dts/rockchip/rk3399-firefly-aio.dtb”是最新的。
  CHK     include/generated/timeconst.h
Pack to resource.img successed!
  Image:  resource.img (with rk3399-firefly-aio.dtb logo.bmp ) is ready
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make[1]: “include/generated/vdso-offsets.h”是最新的。
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  CHK     kernel/config_data.h
make[1]: “arch/arm64/boot/Image”是最新的。
  Image:  kernel.img is ready
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make[2]: “include/generated/vdso-offsets.h”是最新的。
  Building modules, stage 2.
  MODPOST 12 modules
  Image:  boot.img (with Image resource.img) is ready
~/proj/industry-rk3399
including device/rockchip/rk3399/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/core/product_config.mk:234: *** Can not locate config makefile for product "rk3399_firefly_aio_box"。 停止。
ma@U1404:~/proj/industry-rk3399$
回复

使用道具 举报

244

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
244
发表于 2019-11-17 00:28:13     
uboot编译成功
kernel,resource也编译成功
那就是安卓编译失败了,原因是没有对应的lunch?

请教各位大神怎么解决呢?
回复

使用道具 举报

265

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
265
发表于 2019-11-21 10:09:35     
首先你可以先source build/envsetup.sh,然后运行lunch命令,看看有没有对应的rk3399_firefly_aio_box-userdebug这个
若没有,你可能是SDK没有更新。
我们的官方WIKI中,都有详细的说明:http://wiki.t-firefly.com/zh_CN/AIO-3399J/compile_android_firmware.html#aio-3399j-chan-pin-bian-yi-fang-fa
回复

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表