qixbin 发表于 2022-3-2 14:55:00

A40I安卓源码编译后打包报错

根据PDF的步骤下来完成了安卓源码的编译,当执行pack指令后显示Permission denied然后报错ERROR: Conver script to dts failed,怎么获取权限

qixbin 发表于 2022-3-2 14:58:18

源码编译和打包都是使用docker环境的bluesky用户

qixbin 发表于 2022-3-2 15:18:37

使用exit后退回到root用户,进入到lichee目录中使用./build.sh pack后,继续报错,错误如下

qixbin 发表于 2022-3-2 15:56:44

查看lichee/tools/pack/out目录下,发现几个fex地址有问题,是否和我在pack中设置的ANDROID_IMAGE_OUT有关,地址是否正确

Alright 发表于 2022-3-2 16:06:38

您解压安卓源码时,使用forlinx用户解压。如果您使用root用户解压源码,源码的用户就会为root。在用打包镜像时,bluesky用户没有权限打包root用户的源码。

qixbin 发表于 2022-3-2 16:12:21

Alright 发表于 2022-3-2 16:06
您解压安卓源码时,使用forlinx用户解压。如果您使用root用户解压源码,源码的用户就会为root。在用打包镜 ...

那后面遇到的一系列问题也都是权限的问题吗

zhichao 发表于 2022-3-2 16:46:34

后边的问题需要往上翻打印信息,找到报错的信息才能确定

qixbin 发表于 2022-3-3 15:23:57

bluesky@723d9a944c1f:/root/workspace/allwinner/android/lichee$ ./build.sh pack
buildroot/scripts
INFO: packing firmware ...
copying tools file
copying configs file
./out/aultls32.fex
./out/aultools.fex
./out/boot_package.cfg
./out/boot_package.fex
./out/boot_package_nor.cfg
./out/cardscript.fex
./out/cardscript_secure.fex
./out/cardtool.fex
./out/diskfs.fex
./out/env.cfg
./out/env_burn.cfg
./out/image.cfg
./out/image_linux.cfg
./out/split_**x.fex
./out/sunxi.fex
./out/sys_config-evb1_0-rgblcd.fex
./out/sys_config.fex
./out/sys_config1024x600.fex
./out/sys_config1024x600_v1.fex
./out/sys_config1024x600mipi.fex
./out/sys_config1024x600mipi_v1.fex
./out/sys_config1280x800.fex
./out/sys_config1280x800_v1.fex
./out/sys_config800x480.fex
./out/sys_config800x480_v1.fex
./out/sys_partition.fex
./out/sys_partition_dragonboard.fex
./out/sys_partition_dump.fex
./out/sys_partition_linux.fex
./out/sys_partition_private.fex
./out/test_config.fex
./out/toc0.fex
./out/toc1.fex
./out/usbtool.fex
./out/usbtool_test.fex
copying boot resource
copying boot file
p=soc c=product state=0
p=soc c=platform state=0
p=soc c=target state=0
p=soc c=norflash state=0
p=soc c=power_sply state=0
p=soc c=card_boot state=0
p=soc c=pm_para state=0
p=soc c=card0_boot_para state=0
p=soc c=card2_boot_para state=0
p=soc c=twi_para state=0
p=soc c=uart_para state=0
p=soc c=jtag_para state=0
p=soc c=clock state=0
p=soc c=dram state=0
p=soc c=emac0 state=0
p=soc c=gmac0 state=0
p=soc c=can0 state=0
p=soc c=can0 state=1
p=soc c=twi0 state=0
p=soc c=twi1 state=0
p=soc c=twi2 state=0
p=soc c=twi3 state=0
p=soc c=twi4 state=0
p=twi2 c=rx8010 state=0
p=twi4 c=at24 state=0
p=soc c=ir0 state=0
p=soc c=uart0 state=0
p=soc c=uart0 state=1
p=soc c=uart1 state=0
p=soc c=uart1 state=1
p=soc c=uart2 state=0
p=soc c=uart2 state=1
p=soc c=uart3 state=0
p=soc c=uart3 state=1
p=soc c=uart4 state=0
p=soc c=uart4 state=1
p=soc c=uart5 state=0
p=soc c=uart5 state=1
p=soc c=uart6 state=0
p=soc c=uart6 state=1
p=soc c=uart7 state=0
p=soc c=uart7 state=1
p=soc c=spi0 state=0
p=soc c=spi1 state=0
p=soc c=spi2 state=0
p=soc c=spi3 state=0
p=soc c=rtp_para state=0
p=soc c=ctp state=0
p=soc c=ctp_list state=0
p=soc c=tkey_para state=0
p=soc c=motor_para state=0
p=soc c=nand0 state=0
p=soc c=sata state=0
p=soc c=disp state=0
p=soc c=tv0 state=0
p=soc c=tv1 state=0
p=soc c=tvd state=0
p=soc c=tvd0 state=0
p=soc c=tvd1 state=0
p=soc c=tvd2 state=0
p=soc c=tvd3 state=0
p=soc c=lcd0 state=0
p=soc c=lcd0 state=1
p=soc c=pwm0 state=0
p=soc c=pwm0 state=1
p=soc c=car_reverse state=0
p=soc c=Transmit_fm state=0
p=soc c=hdmi state=0
p=soc c=ak7601 state=0
p=soc c=csi0 state=0
p=csi0 c=csi0_dev0 state=0
p=soc c=csi1 state=0
p=csi1 c=csi1_dev0 state=0
p=soc c=tvout_para state=0
p=soc c=tvin_para state=0
p=soc c=di state=0
p=soc c=sdc0 state=0
p=soc c=sdc1 state=0
p=soc c=sdc2 state=0
p=soc c=sdc3 state=0
p=soc c=smc state=0
p=soc c=gpio_para state=0
p=soc c=usbc0 state=0
p=soc c=usbc1 state=0
p=soc c=usbc2 state=0
p=soc c=gsensor_para state=0
p=soc c=gps_para state=0
p=soc c=ril_para state=0
p=soc c=wlan state=0
p=soc c=bt state=0
p=soc c=btlpm state=0
p=soc c=gy_para state=0
p=soc c=ls_para state=0
p=soc c=compass_para state=0
p=soc c=spdif state=0
p=soc c=sndspdif state=0
p=soc c=audiohdmi state=0
p=soc c=sndhdmi state=0
p=soc c=snddaudio0 state=0
p=soc c=daudio0 state=0
p=soc c=snddaudio1 state=0
p=soc c=daudio1 state=0
p=soc c=sndcodec state=0
p=soc c=codec state=0
p=soc c=pmu0 state=0
p=soc c=charger0 state=0
p=soc c=powerkey0 state=0
p=soc c=regulator0 state=0
p=soc c=axp_gpio0 state=0
p=soc c=dvfs_table state=0
p=soc c=Vdevice state=0
p=soc c=gpu_mali400_0 state=0
Conver script to dts ok.
dtbpath=/root/workspace/allwinner/android/lichee/tools/pack/out/sunxi.fex
update_fdt: u-boot.fex will merage sunxi.fex, generate u-boot.fex
---0xd0, 0xd
update_fdt: num 848212 randto1k
update_fdt: num 159408 randto1k
file1_len = cf400, file2_len = 29000
dtb offset cf400,size 29000
update_fdt:genrate /root/workspace/allwinner/android/lichee/tools/pack/out/u-boot.fex ok
pack boot package
GetPrivateProfileSection read to end
content_count=1
packing for android
normal
ERROR: update_mbr failed我将修改了lichee文件夹的权限,现在bulesky用户也可以执行pack命令,但执行的效果和root用户执行的效果相同,一样报错,报错信息见代码

qixbin 发表于 2022-3-3 15:26:02

zhichao 发表于 2022-3-2 16:46
后边的问题需要往上翻打印信息,找到报错的信息才能确定

报错信息中没有见到明确的指示

qixbin 发表于 2022-3-3 15:59:16

zhichao 发表于 2022-3-2 16:46
后边的问题需要往上翻打印信息,找到报错的信息才能确定

注释掉pack的> /dev/null后多显示以下内容,提示boot.fex size too large,怎么解决mbr count = 4

partitation file Path=/root/workspace/allwinner/android/lichee/tools/pack/out/sys_partition.bin
mbr_name file Path=/root/workspace/allwinner/android/lichee/tools/pack/out/sunxi_mbr.fex
download_name file Path=/root/workspace/allwinner/android/lichee/tools/pack/out/dlinfo.fex

mbr size = 16384
mbr magic softw411
disk name=bootloader
filename = boot-resource.fex
dl_file_size = 10642 sector
part_size = 65536 sector
disk name=env
filename = env.fex
dl_file_size = 256 sector
part_size = 32768 sector
disk name=boot
unable to open file boot.fex
dl file boot.fex size too large
update_for_part_info -1
update mbr file fail

zhichao 发表于 2022-3-3 16:38:49

您的命令不对啊,手册上打包不是这个,您这个是linux的指令,安卓的不同哦

qixbin 发表于 2022-3-3 16:42:44

zhichao 发表于 2022-3-3 16:38
您的命令不对啊,手册上打包不是这个,您这个是linux的指令,安卓的不同哦

按照pdf上来的在android目录下直接执行pack效果一样的,输出的解过也一模一样

qixbin 发表于 2022-3-3 16:47:09

qixbin 发表于 2022-3-3 16:42
按照pdf上来的在android目录下直接执行pack效果一样的,输出的解过也一模一样

看来我看错了,不应该去pack文件夹中增加ANDROID_IMAGE_OUT的,删了就输出成功了
页: [1]
查看完整版本: A40I安卓源码编译后打包报错