Using repo branch khadas-vim4-r-64bit , as mentioned in the link ,
vim4 UI is not coming up. checked adb also ,it is also not started.
debugged further on serial port and captured the logs.
Using repo branch khadas-vim4-r-64bit , as mentioned in the link ,
vim4 UI is not coming up. checked adb also ,it is also not started.
debugged further on serial port and captured the logs.
Kernel logs,
[ 7.785439@0] init: Service 'exec 8 (/system/bin/vdc --wait cryptfs init_user0)' (pid 320) exited with status 0 waiting took 1.059000 seconds
[ 7.786359@1] init: Sending signal 9 to service 'exec 8 (/system/bin/vdc --wait cryptfs init_user0)' (pid 320) process group...
[ 7.787953@1] libprocessgroup: Successfully killed process cgroup uid 0 pid 320 in 0ms
[ 7.789226@1] init: starting service 'apexd-snapshotde'...
[ 7.791586@1] init: SVC_EXEC service 'apexd-snapshotde' pid 323 (uid 0 gid 1000+0 context default) started; waiting...
[ 7.792274@1] init: Command 'exec_start apexd-snapshotde' action=post-fs-data (/system/etc/init/hw/init.rc:767) took 3ms and succeeded
[ 7.811636@1] apexd: This device does not support updatable APEX. Exiting
[ 7.811822@0] apexd: Marking APEXd as ready
[ 7.814128@0] init: Service 'apexd-snapshotde' (pid 323) exited with status 0 waiting took 0.023000 seconds
[ 7.814679@1] init: Sending signal 9 to service 'apexd-snapshotde' (pid 323) process group...
[ 7.815878@1] libprocessgroup: Successfully killed process cgroup uid 0 pid 323 in 0ms
[ 7.820671@1] selinux: SELinux: Skipping restorecon on directory(/data)
[ 7.847384@3] dvb_demux: Unknown symbol aml_aucpu_strm_get_load_firmware_status (err -2)
[ 7.847894@2] dvb_demux: Unknown symbol aml_aucpu_strm_stop (err -2)
[ 7.848562@2] dvb_demux: Unknown symbol aml_aucpu_strm_remove (err -2)
[ 7.849368@2] dvb_demux: Unknown symbol aml_aucpu_strm_start (err -2)
[ 7.850162@2] dvb_demux: Unknown symbol aml_aucpu_strm_get_dst (err -2)
[ 7.850999@2] dvb_demux: Unknown symbol aml_aucpu_strm_create (err -2)
[ 7.994173@2] load module: aml_hardware_dmx
[ 7.996709@6] init: Top-level directory needs encryption action, eg mkdir /data/media <mode> <uid> <gid> encryption=Require
[ 7.997424@5] init: Not setting encryption policy on: /data/media
[ 7.998614@5] type=1400 audit(7.989:7): avc: denied { getattr } for comm="init" path="/data/media" dev="dm-5" ino=8169 scontext=u:r:vendor_init:s0 tcontext=u:object_r:media_rw_data_file:s0 tclass=dir1
[ 8.017693@1] logd.daemon: reinit
[ 8.061790@7] update_verifier: Started with arg 1: nonencrypted
[ 8.064127@1] update_verifier: Booting slot 0: isSlotMarkedSuccessful=1
[ 8.064325@3] update_verifier: Leaving update_verifier.
[ 8.123371@3] file system registered
[ 8.126314@7] using random self ethernet address
[ 8.126342@1] using random host ethernet address
[ 8.130758@1] assign_ffs_buffer FFS_BUFFER_MAX=256!!!
[ 8.134366@1] assign_ffs_buffer FFS_BUFFER_MAX=256!!!
[ 8.136570@6] assign_ffs_buffer FFS_BUFFER_MAX=256!!!
[ 8.150844@1] load module: amvdec_mh264
[ 8.150881@4] ammvdec_h264 module init
[ 8.158618@4] load module: amvdec_mh264_v4l
[ 8.158648@2] ammvdec_h264 module init
[ 8.162186@2] load module: amvdec_h264mvc
[ 8.168797@6] load module: amvdec_h265
[ 8.175589@0] load module: amvdec_h265_v4l
[ 8.180065@5] load module: amvdec_mmjpeg
[ 8.183249@6] load module: amvdec_mmjpeg_v4l
[ 8.188609@2] load module: amvdec_mmpeg12
[ 8.188636@0] ammvdec_mpeg12 module init
[ 8.191649@0] load module: amvdec_mmpeg12_v4l
[ 8.191676@3] ammvdec_mpeg12 module init
[ 8.195099@3] load module: amvdec_mmpeg4
[ 8.195124@0] ammvdec_mpeg4_driver_init_module
[ 8.197896@0] load module: amvdec_mmpeg4_v4l
[ 8.197924@3] ammvdec_mpeg4_driver_init_module
[ 8.201071@3] load module: amvdec_vc1
[ 8.206515@6] load module: amvdec_vp9
[ 8.214258@2] load module: amvdec_vp9_v4l
[ 8.218889@5] load module: amvdec_avs2
[ 8.221737@1] load module: encoder
[ 8.221761@3] T7 doesn't support hcodec avc encoder!!
[ 8.269826@3] load module: vpu
[ 8.269855@0] vpu_init
[ 8.269870@0] The chip is not support hevc encoder
[ 8.321767@0] load module: amvdec_ports
[ 8.321801@5] v4l dec module init
[ 8.323378@5] decoder registered as /dev/video26
[ 8.324940@5] amlogic_fbc_lib: disagrees about version of symbol module_layout
[ 8.325417@0] amlogic_fbc_lib: disagrees about version of symbol register_amlogic_afbc_dec_fun
[ 8.326775@0] load module: amlogic_fbc_lib
[ 8.326803@0] register_amlogic_afbc_dec_fun
[ 8.327291@0] register_amlogic_afbc_dec_fun
[ 8.331051@0] load module: amvdec_mavs
[ 8.340352@2] load module: amvdec_av1
[ 8.348391@5] load module: amvdec_av1_v4l
[ 8.350421@7] load module: media_sync
[ 8.355805@1] load module: amvenc_multi
[ 8.355837@5] vpu_init
[ 8.356519@5] vpu_probe
[ 8.356536@5] reset cma_cfg_size to 200
[ 8.356539@5] MultiEnc reserved memory config fail.
[ 8.357323@5] MultiEnc - cma memory pool size: 100 MB
[ 8.357977@5] MultiEnc -irq: 75
[ 8.358386@5] MultiEnc. clock get success
[ 8.358896@5] vpu base address get from platform driver
[ 8.358898@5] physical addr=0xfe310000, virtual addr=0xffffffc0130a0000
[ 8.360600@5] success to probe vpu device with video memory
[ 8.361093@5] to be allocate from CMA pool_size 0x6400000
[ 8.365840@5] load module: jpegenc
[ 8.366312@7] set mem spec to JPEGENC_BUFFER_LEVEL_8M
[ 8.366351@7] [jpegenc_probe:4456] get irq dos_mbox_slow_irq2, res_irq=66
[ 8.367111@7] [jpegenc_probe] get irq success: 66!, manual_irq_num=2
[ 8.368112@7] jpeg_enc_clk_get: get clk_dos OK
[ 8.368499@7] jpeg_enc_clk_get: get clk_apb_dos OK
[ 8.369087@7] jpeg_enc_clk_get: get clk_jpeg_enc OK
[ 8.548273@7] type=1400 audit(8.537:8): avc: denied { search } for comm="android.hardwar" name="graphics" dev="sysfs" ino=14486 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs_display:s0 1
[ 8.549597@4] gxbb_pm: early_suspend_state=0
[ 8.550250@3] type=1400 audit(8.537:9): avc: denied { read } for comm="android.hardwar" name="fb0" dev="sysfs" ino=28911 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs_display:s0 tclass=1
[ 8.568617@4] healthd: No battery devices found
[ 8.582710@2] map_store:rm default
[ 8.583024@4] map_store:add default decoder ppmgr deinterlace amvideo
[ 8.583696@7] audio_dsp: drc high cut scale set to 0%
[ 8.584199@1] audio_dsp: drc low boost scale set to 0%
[ 8.585157@3] audio_dsp: drc mode set to RF
[ 8.589316@5] vdin0 req vs irq 87
[ 8.589357@5] vdin0 req meta_wr_done_irq
[ 8.786257@5] aml_media: osd_open, 1481, fb_index=0,fb_rmem_size=26738688
[ 8.786455@3] aml_media: osd_open, 1481, fb_index=1,fb_rmem_size=1048576
[ 8.787307@3] aml_media: osd_open, 1481, fb_index=2,fb_rmem_size=1048576
[ 8.788141@3] aml_media: osd_open, 1481, fb_index=3,fb_rmem_size=1048576
[ 8.789090@3] video_composer_open iminor(inode) =0
[ 8.789846@3] video_composer_open iminor(inode) =1
[ 8.790294@3] video_composer_open iminor(inode) =2
[ 8.859455@3] [DV] module not install
[ 8.868295@1] [TEE] E/TC:? 00 ta_open:202 ree system is not ready, ta can not be loaded.
[ 8.868624@2] [TEE] E/LD: init_elf:259 sys_open_ta_bin(526fc4fc-7ee6-4a12-96e3-83da9565bce8)
[ 8.869704@2] [TEE] E/TC:? 00 init_with_ldelf:229 ldelf failed with res: 0xffff0007
[ 8.892399@2] video_composer_release enable=0
[ 8.892467@3] video_composer_release enable=0
[ 8.892845@3] video_composer_release enable=0
[ 8.893422@3] aml_media: osd_release:index=3,open_count=1
[ 8.894056@3] aml_media: osd_release:index=2,open_count=1
[ 8.894730@3] aml_media: osd_release:index=1,open_count=1
[ 8.895413@3] aml_media: osd_release:index=0,open_count=1
[ 9.034970@3] dim:load 0x200 pq table len 25 later.
[ 9.046105@5] dim:load 0x1000 pq table len 17 later.
[ 9.047398@5] dim:load 0x2000 pq table len 32 later.
[ 9.055237@5] dim:load 0x800 pq table len 103 later.
[ 9.073899@5] dim:load 0x400 pq table len 168 later.
[ 9.229594@5] selinux: SELinux: Could not set context for /sys/devices/virtual/net/ipsec_test/carrier: No such file or directory
[ 9.230379@0] selinux:
[ 9.230854@0] selinux: SELinux: Could not set context for /sys/devices/virtual/net/ipsec_test/dev_id: No such file or directory
[ 9.232137@0] selinux:
[ 9.232555@0] selinux: SELinux: Could not set context for /sys/devices/virtual/net/ipsec_test/carrier_down_count: No such file or directory
[ 9.234032@0] selinux:
[ 9.234433@0] selinux: SELinux: Could not set context for /sys/devices/virtual/net/ipsec_test/proto_down: No such file or directory
[ 9.235840@0] selinux:
[ 9.236225@0] selinux: SELinux: Could not set context for /sys/devices/virtual/net/ipsec_test/address: No such file or directory
[ 9.237633@0] selinux:
[ 9.523156@0] atv_demod: priv == NULL
[ 9.523359@0] [RX]-edid: use Top edid
[ 9.523393@0] [RX]-err: invalid edid size!
[ 9.549672@0] type=1107 audit(9.541:10): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=persist.audio.debug.search pid=349 uid=1041 gid=1005 scontext=u:r:'
[ 9.608641@5] binder: release 375:375 transaction 998 out, still active
[ 9.608793@0] binder: undelivered TRANSACTION_COMPLETE
[ 9.656590@0] binder: release 349:349 transaction 998 in, still active
[ 9.656729@0] binder: send failed reply for transaction 998, target dead
[ 9.702688@0] type=1400 audit(9.693:11): avc: denied { read } for comm="android.hardwar" name="u:object_r:default_prop:s0" dev="tmpfs" ino=3798 scontext=u:r:mediacodec:s0 tcontext=u:object_r:default_1
[ 9.704713@3] type=1400 audit(9.693:12): avc: denied { open } for comm="android.hardwar" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=3798 scontext=u:r:mediacodec:s0 tcontext1
[ 9.707448@3] type=1400 audit(9.693:13): avc: denied { getattr } for comm="android.hardwar" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=3798 scontext=u:r:mediacodec:s0 tcont1
[ 9.710297@3] type=1400 audit(9.693:14): avc: denied { map } for comm="android.hardwar" path="/dev/__properties__/u:object_r:default_prop:s0" dev="tmpfs" ino=3798 scontext=u:r:mediacodec:s0 tcontext=1
[ 9.744698@3] read descriptors
[ 9.744725@2] read strings
[ 9.892388@2] [TEE] E/TC:? 00 ta_open:202 ree system is not ready, ta can not be loaded.
[ 9.892722@2] [TEE] E/LD: init_elf:259 sys_open_ta_bin(ff2a4bea-ef6d-11e6-89cc-d4ae52a7b3b3)
[ 9.893800@2] [TEE] E/TC:? 00 init_with_ldelf:229 ldelf failed with res: 0xffff0007
[ 9.986702@2] unifykey: already inited!
[ 9.986770@7] unifykey: name_store() 936, name hdcp14_rx, 9
[ 9.987208@7] unifykey: could not found key hdcp14_rx
[ 9.999129@7] cec: port_seq:4321
[ 10.001535@7] [RX]-HDMIRX: fill edid buf, size 1536
[ 10.002214@7] [RX]-edid select for UI HDMI4~1: 0x0, for portD~A: 0x0
[ 10.002362@7] [RX]-func-4 to
[ 10.002369@7] rx_set_port_hpd, port:0, val:0
[ 10.003230@7] [RX]-edid: use Top edid
[ 10.004342@7] [RX]-hdmirx_hw_config port:0
[ 10.004423@7] [RX]-phy reg init
[ 10.004625@7] [RX]-hdmirx_hw_config 0 Done!
[ 10.005172@7] [RX]-force_fsm_init
[ 10.005592@7] [RX]-*update edid*
[ 10.006242@7] [RX]-phy_bw
[ 10.006598@7] [RX]-pll done
[ 10.145522@7] TVIN_IOC_CLOSE(0) you have not opened port
[ 10.153087@4] VID: VD1 off
[ 10.790690@0] read descriptors
[ 10.790744@7] read strings
[ 11.861104@7] read descriptors
[ 11.861494@4] read strings
[ 12.916684@4] read descriptors
[ 12.916710@2] read strings
[ 13.100615@2] init: starting service 'netd'...
[ 13.101058@3] init: Created socket '/dev/socket/dnsproxyd', mode 660, user 0, group 3003
[ 13.101722@3] init: Created socket '/dev/socket/mdns', mode 660, user 0, group 1000
[ 13.102641@3] init: Created socket '/dev/socket/fwmarkd', mode 660, user 0, group 3003
[ 13.107572@3] init: starting service 'zygote'...
[ 13.107991@3] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[ 13.108704@3] init: Created socket '/dev/socket/usap_pool_primary', mode 660, user 0, group 1000
@khurananish81 The log given is incomplete. You can upload the firmware and I’ll download it to see what the problem is.
Firmware size (update.img) is big around 1.8 GB , it can’t be uploaded. shall I share google drive link ?
@khurananish81 it can’t be uploaded. shall I share google drive link ?===>yes
no i have not made changes.
As mentioned earlier i used the commands from khadas link,
Download The Android Source Code | Khadas Documentation.
and
Building Android Source Code | Khadas Documentation
@khurananish81 First of all, the link document you gave is wrong. Please post the compilation process command manually, otherwise I can’t help you.
compilation process,
How to fix it? I also meet the same as problem @goenjoy
@jojok It needs to be compiled according to the document, including uboot, kernel and android.
https://docs.khadas.com/products/sbc/vim4/development/android/build-android