Firefly开源社区

12
发表新贴
打印 上一主题 下一主题

[Android] RK3566开发板自己编译的android11通过,但是系统进不去,请教下大家?

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361

RK3566开发板自己编译的android11通过,但是系统进不去,请教下大家?

发表于 2022-8-8 09:25:57      浏览:12861 | 回复:19        打印     [复制链接] 楼主
开发板可以烧公版的android11系统,但是自己编译的烧系统后无法进入系统。编译环境ubuntu16.04,虚拟机,

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

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

QQ截图20220808092329.png

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

D073A227430908314D663E15C741F67F.png
回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 09:39:37      沙发
本帖最后由 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桌面)。   
回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 09:53:22      板凳

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$
回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 09:56:24      地板

第一编译我给虚拟机分配了15G左右,第二编译后我给13308M。第二次编译后是通过的。分配内存的时候,我是没关机虚拟机的。 扩容磁盘200G是必须关闭ubuntu16.04
回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 10:01:59      5#
zyk 发表于 2022-8-8 09:59
是否有接串口,系统异常时提供一下串口log或logcat日志。板子的内存是多大的,可以拍下核心板的照片看一下

做昨天晚上买了这个开发板的串口打印线,等明天到了,我才能提供。
回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 10:14:45      6#
Liuth 发表于 2022-8-8 10:10
板子的内存是多大的?是不是 4G+32G 规格的?

你好 存储是4G+32G, 规格:核心板+底板  Core-3566JD4
回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 10:32:17      7#
Liuth 发表于 2022-8-8 10:17
你把SDK/kernel/arch/arm64/boot/dts/rockchip/rk3566-firefly-aiojd4.dtsi
里面,dmc节点的status,从o ...

谢谢了,我先试试。不管结果,我都会回复你。
回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 11:13:57      8#
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$



回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 11:20:52      9#
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桌面。
回复

使用道具 举报

361

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
361
发表于 2022-8-8 11:38:35      10#
/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 是不是先可以跑起来我自己的系统
回复

使用道具 举报

返回列表
12
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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