Firefly开源社区

标题: RK3566开发板自己编译的android11通过,但是系统进不去,请教下大家? [打印本页]

作者: zhu944567126    时间: 2022-8-8 09:25
标题: RK3566开发板自己编译的android11通过,但是系统进不去,请教下大家?
开发板可以烧公版的android11系统,但是自己编译的烧系统后无法进入系统。编译环境ubuntu16.04,虚拟机,

第一次进入系统hdmi显示器是绿屏,第二次之后都是黑的。接鼠标键盘都不通电,说明系统进入出现问题。

QQ截图20220808092329.png (99.06 KB, 下载次数: 854)

QQ截图20220808092329.png

D073A227430908314D663E15C741F67F.png (82.81 KB, 下载次数: 868)

D073A227430908314D663E15C741F67F.png

作者: zhu944567126    时间: 2022-8-8 09:39
本帖最后由 zhu944567126 于 2022-8-8 09:43 编辑

自己编译固件:
1 Firefly-RK356X_Android11.0_git_20210824


2 zcp@ubuntu:~/Firefly-RK356X_Android11.0_git_20210824$ git log
commit 98378ba401c067a817b9c879616a41105b308f7a
Author: Firefly <service@t-firefly.com>
Date:   Thu Aug 12 11:44:39 2021 +0800

    support RK3568B2 and improve os stability


3 无修改sdk任何代码

4 Firely3566开发板

5 烧自己编译系统就出现类似系统进不去(看不到android桌面),在loader模式烧公版android11系统能进去看到android桌面,再烧自己编译系统又是系统进不去(看不到android桌面)。   
作者: zyk    时间: 2022-8-8 09:44
你好,如何进行编译的。异常时是否有log
作者: firefly_zhongw    时间: 2022-8-8 09:48
内存是多大的?
作者: zhu944567126    时间: 2022-8-8 09:53
标题: RE: RK3566开发板自己编译的android11通过,但是系统进不去,请教下大家?
zyk 发表于 2022-8-8 09:44
你好,如何进行编译的。异常时是否有log

编译错过2次错误,不过我都按照要求解决了。

第一次是虚拟机磁盘空间不足,然后我扩充了虚拟机,后继续编译了,编译它能自动接着上次的编译进度。
磁盘空间100%,我就扩容虚拟机

第二次是(反正第二次是还是报错,什么都没修改,直接编译就正常了。网上说是交换区不足导致的。我这是了交换区2G)
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000099100000, 346030080, 0) failed; error='Not enough space' (errno=12)

最后就到编译通过了
lpmake I 08-07 14:59:14 49383 49383 builder.cpp:1031] [liblp]Partition product will resize from 0 bytes to 194351104 bytes
lpmake I 08-07 14:59:14 49383 49383 builder.cpp:1031] [liblp]Partition odm will resize from 0 bytes to 634880 bytes
2022-08-07 14:59:43 - build_super_image.py - INFO    : Done writing image out/target/product/rk3566_firefly_aiojd4/super.img

#### build completed successfully (48:50 (mm:ss)) ####

Build android ok!

====== make and copy android images
./mkimage.sh
TARGET_PRODUCT=rk3566_firefly_aiojd4
TARGET_BASE_PARAMETER_IMAGE==device/rockchip/rk356x_box/etc/baseparameter_auto.img
HIGH_RELIABLE_RECOVERY_OTA=
BOARD_AVB_ENABLE=false
system filesysystem is ext4
create dtbo.img...
done.
create resource.img...
done.
create boot.img...
done.
create boot-debug.img...
done.
skip copy images: vendor_boot.img
skip copy images: vendor_boot-debug.img
create recovery.img...
done.
create super.img...
done.
create vbmeta.img...
BOARD_AVB_ENABLE is false, use default vbmeta.img
create misc.img.... done.
create uboot.img...
make oem images...
u-boot/trust.img not fount! Please make it from u-boot first!
create loader...
create config.cfg...
create baseparameter...done.
Make image ok!
zcp@ubuntu:~/proj/RK356X_Android11.0$
zcp@ubuntu:~/proj/RK356X_Android11.0$

作者: zhu944567126    时间: 2022-8-8 09:56
firefly_zhongw 发表于 2022-8-8 09:48
内存是多大的?

第一编译我给虚拟机分配了15G左右,第二编译后我给13308M。第二次编译后是通过的。分配内存的时候,我是没关机虚拟机的。 扩容磁盘200G是必须关闭ubuntu16.04
作者: zyk    时间: 2022-8-8 09:59
是否有接串口,系统异常时提供一下串口log或logcat日志。板子的内存是多大的,可以拍下核心板的照片看一下
作者: zhu944567126    时间: 2022-8-8 10:01
zyk 发表于 2022-8-8 09:59
是否有接串口,系统异常时提供一下串口log或logcat日志。板子的内存是多大的,可以拍下核心板的照片看一下

做昨天晚上买了这个开发板的串口打印线,等明天到了,我才能提供。
作者: Liuth    时间: 2022-8-8 10:10
zhu944567126 发表于 2022-8-8 10:01
做昨天晚上买了这个开发板的串口打印线,等明天到了,我才能提供。

板子的内存是多大的?是不是 4G+32G 规格的?
作者: zhu944567126    时间: 2022-8-8 10:14
Liuth 发表于 2022-8-8 10:10
板子的内存是多大的?是不是 4G+32G 规格的?

你好 存储是4G+32G, 规格:核心板+底板  Core-3566JD4
作者: Liuth    时间: 2022-8-8 10:17
zhu944567126 发表于 2022-8-8 10:14
你好 存储是4G+32G, 规格:核心板+底板  Core-3566JD4

你把SDK/kernel/arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtsi
里面,dmc节点的status,从okay改为disabled
然后重新编译烧录内核应该就能起来了
作者: zhu944567126    时间: 2022-8-8 10:32
Liuth 发表于 2022-8-8 10:17
你把SDK/kernel/arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtsi
里面,dmc节点的status,从o ...

谢谢了,我先试试。不管结果,我都会回复你。
作者: zhu944567126    时间: 2022-8-8 11:13
Liuth 发表于 2022-8-8 10:17
你把SDK/kernel/arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtsi
里面,dmc节点的status,从o ...

zcp@ubuntu:~/proj/RK356X_Android11.0/kernel$ make ARCH=arm64 firefly_defconfig android-11.config rk356x.config
arch/arm64/configs/firefly_defconfig:980:warning: override: reassigning to symbol MFD_RK628
arch/arm64/configs/firefly_defconfig:981:warning: override: reassigning to symbol DRM_ROCKCHIP_RK628
#
# configuration written to .config
#
Using .config as base
Merging ./kernel/configs/android-11.config
Value of CONFIG_CIFS is redefined by fragment ./kernel/configs/android-11.config:
Previous value: CONFIG_CIFS=y
New value: # CONFIG_CIFS is not set

Value of CONFIG_CIFS_XATTR is redefined by fragment ./kernel/configs/android-11.config:
Previous value: CONFIG_CIFS_XATTR=y
New value: # CONFIG_CIFS_XATTR is not set

Value of CONFIG_CIFS_POSIX is redefined by fragment ./kernel/configs/android-11.config:
Previous value: CONFIG_CIFS_POSIX=y
New value: # CONFIG_CIFS_POSIX is not set

Value of CONFIG_CRYPTO_MD4 is redefined by fragment ./kernel/configs/android-11.config:
Previous value: CONFIG_CRYPTO_MD4=y
New value: # CONFIG_CRYPTO_MD4 is not set

Value of CONFIG_DEVMEM is redefined by fragment ./kernel/configs/android-11.config:
Previous value: CONFIG_DEVMEM=y
New value: # CONFIG_DEVMEM is not set

Value of CONFIG_ANDROID_BINDERFS is redefined by fragment ./kernel/configs/android-11.config:
Previous value: # CONFIG_ANDROID_BINDERFS is not set
New value: CONFIG_ANDROID_BINDERFS=y

Value of CONFIG_IKHEADERS is redefined by fragment ./kernel/configs/android-11.config:
Previous value: CONFIG_IKHEADERS=m
New value: CONFIG_IKHEADERS=y

Value of CONFIG_UNICODE_NORMALIZATION_SELFTEST is redefined by fragment ./kernel/configs/android-11.config:
Previous value: # CONFIG_UNICODE_NORMALIZATION_SELFTEST is not set
New value: CONFIG_UNICODE_NORMALIZATION_SELFTEST=y

#
# merged configuration written to .config (needs make)
#
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
Using .config as base
Merging ./kernel/configs/rk356x.config
Value of CONFIG_MALI_MIDGARD is redefined by fragment ./kernel/configs/rk356x.config:
Previous value: CONFIG_MALI_MIDGARD=y
New value: # CONFIG_MALI_MIDGARD is not set

Value of CONFIG_MALI_EXPERT is redefined by fragment ./kernel/configs/rk356x.config:
Previous value: CONFIG_MALI_EXPERT=y
New value: # CONFIG_MALI_EXPERT is not set

Value of CONFIG_MALI_DEBUG is redefined by fragment ./kernel/configs/rk356x.config:
Previous value: CONFIG_MALI_DEBUG=y
New value: # CONFIG_MALI_DEBUG is not set

#
# merged configuration written to .config (needs make)
#
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
zcp@ubuntu:~/proj/RK356X_Android11.0/kernel$ make ARCH=arm64 BOOT_IMG=../rockdev/Image-rk3566_firefly_aiojd4/boot.img rk3566-firefly-aiojd4.img -j8
scripts/kconfig/conf  --syncconfig Kconfig
  DTC     arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtb
  CALL    scripts/checksyscalls.sh
arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtb: Warning (reg_format): /rkisp-vir1/port:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtb: Warning (avoid_default_addr_size): /rkisp-vir1/port: Relying on default #address-cells value
arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtb: Warning (avoid_default_addr_size): /rkisp-vir1/port: Relying on default #size-cells value
arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtb: Warning (graph_endpoint): /i2c@fe5d0000/XC7022b@1b/port/endpoint: graph connection to node '/csi2-dphy0/ports/port@0/endpoint@1' is not bidirectional
arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtb: Warning (graph_endpoint): /csi2-dphy0/ports/port@0/endpoint@4: graph connection to node '/i2c@fe5d0000/XC7022b@1b/port/endpoint' is not bidirectional
arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtb: Warning (graph_endpoint): /csi2-dphy1/ports/port@1/endpoint@1: graph connection to node '/rkisp-vir0/port/endpoint@0' is not bidirectional
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  CHK     kernel/kheaders_data.tar.xz
  GEN     kernel/kheaders_data.tar.xz
  CC      kernel/kheaders.o
  UPD     kernel/config_data.h
  CC      kernel/configs.o
  AR      kernel/built-in.a
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.a
  AR      built-in.a
  MODPOST vmlinux.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm64/boot/Image
  LZ4C    arch/arm64/boot/Image.lz4
  Image:  kernel.img is ready
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/kheaders_data.tar.xz
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/aiutils.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/siutils.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/sbutils.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmutils.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmwifi_channels.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux_platdev.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux_sched.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_pno.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_common.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_ip.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux_wq.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_custom_gpio.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmevent.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/hndpmu.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/linux_osl.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wldev_common.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_android.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmxtlv.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_debug_linux.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_debug.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_mschdbg.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/hnd_pktq.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/hnd_pktpool.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_config.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_ccode.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_event.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_android_ext.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_escan.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh_linux.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh_sdmmc.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh_sdmmc_linux.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_sdio.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_cdc.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_wlfc.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_rtt.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcm_app_utils.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_gpio.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_iw.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_cfg80211.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_cfgp2p.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_linux_mon.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_cfg_btcoex.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_cfgvendor.o
  CC [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_cfg80211.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.o
  Building modules, stage 2.
  MODPOST 5 modules
  CC      drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.mod.o
  LD [M]  drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmdhd.ko
found ./arch/arm64/boot/dts/rockchip/.rk3566-firefly-aiojd4.dtb.dts.tmp
found ./arch/arm64/boot/dts/rockchip/.rk3566-firefly-aiojd4.dtb.dts.tmp
found ./arch/arm64/boot/dts/rockchip/.rk3566-firefly-aiojd4.dtb.dts.tmp
found ./arch/arm64/boot/dts/rockchip/.rk3566-firefly-aiojd4.dtb.dts.tmp
found ./arch/arm64/boot/dts/rockchip/.rk3566-firefly-aiojd4.dtb.dts.tmp
found ./arch/arm64/boot/dts/rockchip/.rk3566-firefly-aiojd4.dtb.dts.tmp
found ./arch/arm64/boot/dts/rockchip/.rk3566-firefly-aiojd4.dtb.dts.tmp
  Image:  resource.img (with rk3566-firefly-aiojd4.dtb logo.bmp logo_kernel.bmp) is ready
  Image:  boot.img (../rockdev/Image-rk3566_firefly_aiojd4/boot.img + Image) is ready
  Image:  zboot.img (../rockdev/Image-rk3566_firefly_aiojd4/boot.img + Image.lz4) is ready
zcp@ubuntu:~/proj/RK356X_Android11.0/kernel$




作者: zhu944567126    时间: 2022-8-8 11:20
Liuth 发表于 2022-8-8 10:17
你把SDK/kernel/arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtsi
里面,dmc节点的status,从o ...

我用root权限改了 你说的 设备树节点,  编译后我复制/home/zcp/proj/RK356X_Android11.0/kernel 这个新编译的boot.img ,开发板进入loader模式直接烧这一个文件,系统还是到不了android桌面。
作者: Liuth    时间: 2022-8-8 11:28
不应该啊,你改的哪里的文件?为什么要root权限去改?
作者: zhu944567126    时间: 2022-8-8 11:38
/home/zcp/proj/RK356X_Android11.0/kernel/arch/arm64/boot/dts/rockchip  我只是用进入root 用了gedit 改了你说的节点,

我只改你说的节点
&dfi {
    status = "okay";
};

&dmc {
    status = "disabled";
};

&vcc3v3_pcie{
    status="disabled";
};

文件权限是   rk3566-firefly-aiojd4.dtsi
-rw-rw-r-- 1 zcp zcp 7.9K Aug  8 10:36 rk3566-firefly-aiojd4.dtsi


我想问下,我去拆开公版的boot 然后烧我自己系统,再烧公版的boot 是不是先可以跑起来我自己的系统
作者: zhu944567126    时间: 2022-8-8 11:45
Liuth 发表于 2022-8-8 10:17
你把SDK/kernel/arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtsi
里面,dmc节点的status,从o ...

已经进入android系统桌面了,我是拿着公版的系统android11镜像拆开了boot给,我自己编译的andorid系统 重烧公网的boot。我希望有空时候,解决我自己编译的boot能用啊。
作者: Beau    时间: 2022-9-7 14:20
你好我按照步骤来出现了找不到某个文件夹的错误,想问问原因,我的版本是Ubuntu18.04,

1.png (555.66 KB, 下载次数: 841)

1.png

作者: Beau    时间: 2022-9-8 11:55
你好我第一次编译几个小时后出现了ninja失败的提示,我执行的是首次编译命令“./FFTools/make.sh -d rk3568-firefly-aioj -j8 -l rk3568_firefly_aioj-userdebug”出现的,想问问怎么解决

5.png (378.55 KB, 下载次数: 833)

5.png

6.png (614.48 KB, 下载次数: 851)

6.png

作者: zyk    时间: 2022-9-8 14:26
ubuntu是虚拟机吗,配置情况怎样




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1