Halium / projectmanagement

143 stars 32 forks source link

[device-port][libra] Xiaomi 4C #214

Open tylinux opened 4 years ago

tylinux commented 4 years ago

Tree: halium-7.1

tylinux commented 3 years ago

image

tylinux commented 3 years ago
root@localhost:~# lxc-checkconfig
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: missing
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
Bridges: enabled
Advanced netfilter: enabled
CONFIG_NF_NAT_IPV4: enabled
CONFIG_NF_NAT_IPV6: enabled
CONFIG_IP_NF_TARGET_MASQUERADE: enabled
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled
FUSE (for use with lxcfs): enabled

--- Checkpoint/Restore ---
checkpoint restore: enabled
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: enabled
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: enabled
CONFIG_NETLINK_DIAG: enabled
File capabilities: enabled

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
tylinux commented 3 years ago

WiFI error:

root@localhost:~# echo sta > /sys/module/wlan/parameters/fwpath
-bash: echo: write error: No such device

Fixed, problem is fstab.qcom missing persist and bt_firmware mount point.

tylinux commented 3 years ago

test-egl error:

root@localhost:~# test_egl
library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it
Segmentation fault
tylinux commented 3 years ago

EGL_PLATFORM=hwcomposer test_hwcomposer error:

root@localhost:~# EGL_PLATFORM=hwcomposer test_hwcomposer
cannot locate symbol "android_create_namespace" referenced by "/system/lib/libgui.so"...
test_hwcomposer: test_hwcomposer.cpp:179: int main(int, char**): Assertion `err == 0' failed.
Aborted
tylinux commented 3 years ago

dmesg spam:

[ 2811.157503] IPC_RTR: msm_ipc_router_bind: pm-service Do not have permissions
[ 2811.157592] IPC_RTR: msm_ipc_router_bind: pm-service Do not have permissions
[ 2811.157677] IPC_RTR: msm_ipc_router_bind: pm-service Do not have permissions

fixed by apply https://docs.halium.org/en/latest/porting/debug-build/wifi.html#kernel-3-10-ping-socket-permission-denied

tylinux commented 3 years ago

test_gps output:

root@localhost:~# test_gps 
*** setup signal handler
*** get gps interface
*** device info
 id = gps
 name = loc_api GPS Module
 author = Qualcomm USA, Inc.
*** init gps interface
 ** Creating thread: 'Loc_hal_worker' (start=0xf6fa3cd1, arg=0x1f4368)
 ** After thread_create: 'Loc_hal_worker', error=0 (start=0xf6fa3cd1, arg=0x1f4368)
 **** Thread wrapper start (start=0xf6fa3cd1, arg=0x1f4368) ****
library "libizat_api_pds.so" not found
*** setting positioning mode
*** start gps track
*** gps tracking started
*** tracking.... 
*** set capabilities
capability is 00000007
*** nmea info
timestamp:      1784305102
nmea (30):      $GPGSA,A,1,,,,,,,,,,,,,,,*1E

*** nmea info
timestamp:      1784305102
nmea (30):      $GNGSA,A,1,,,,,,,,,,,,,,,*00

*** nmea info
timestamp:      1784305102
nmea (25):      $GPVTG,,T,,M,,N,,K,N*2C

*** nmea info
timestamp:      1784305102
nmea (25):      $GPRMC,,V,,,,,,,,,,N*53