Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[device-port] [ether]: Nextbit Robin #93

Open
10 of 21 tasks
devmaster64 opened this issue Jul 28, 2018 · 6 comments
Open
10 of 21 tasks

[device-port] [ether]: Nextbit Robin #93

devmaster64 opened this issue Jul 28, 2018 · 6 comments
Assignees
Labels

Comments

@devmaster64
Copy link

devmaster64 commented Jul 28, 2018

Tree: halium-7.1

  • Create manifest nextbit_ether.xml
  • Boot image and system image build successfully
  • Device boots into rootfs, usb: Manufacturer: GNU/Linux Device appears in dmesg on host.
  • LXC container starts and does not crash
  • libhybris tests
    • test_gps
    • test_hwcomposer
    • test_lights
    • test_vibrator
    • test_wifi (partially. very unstable)
    • test_sensors
    • test_audio
    • test_camera
    • test_input
    • test_nfc
    • test_recorder
  • Test various rootfs
    • UBports rootfs
    • Plasma Mobile rootfs
    • LuneOS rootfs
    • ArchLinuxArm rootfs

Changes to the kernel source have been put up here: https://github.com/devmaster64/android_kernel_nextbit_msm8992/tree/halium-7.1

Edit: removed information not related to the halium project.

@devmaster64
Copy link
Author

devmaster64 commented Jul 28, 2018

Test: test_hwcomposer
Output:

root@localhost:/home/phablet# EGL_PLATFORM=hwcomposer test_hwcomposer
width: 1080 height: 1920
OpenGL ES 2.0 (OpenGL ES 3.2 V@145.0 (GIT@I750f7f2fa6))

img-0466

@devmaster64
Copy link
Author

Test: test_sensors
Output:

root@localhost:/home/phablet# test_sensors 
Hardware module ID: sensors
Hardware module Name: MultiHal Sensor Module
Hardware module Author: Google, Inc
Hardware module API version: 0x1
Hardware HAL API version: 0x1
Poll device version: 0x1040001
API VERSION 0.1 (legacy): 0x1
API VERSION 0.1: 0x65537
API VERSION 1.0: 0x16777217
API VERSION 1.1: 0x16842753
API VERSION 1.2: 0x16908289
API VERSION 1.3: 0x16973825
API VERSION 1.4: 0x17039361
Got 39 sensors
=== Sensor 0 ==
Name: BMA2X2 Accelerometer/Temperature/Double-tap
Vendor: BOSCH
Version: 0x1
Handle: 0x1
Type: 1
maxRange: 39
resolution: 0
power: 0 mA
minDelay: 5000



=== Sensor 1 ==
Name: BMM150 Magnetometer
Vendor: BOSCH
Version: 0x1
Handle: 0x2
Type: 2
maxRange: 0
resolution: 0
power: 0 mA
minDelay: 10000



=== Sensor 2 ==
Name: BMM150 Magnetometer Uncalibrated
Vendor: BOSCH
Version: 0x1
Handle: 0x3
Type: 14
maxRange: 0
resolution: 0
power: 0 mA
minDelay: 10000



=== Sensor 3 ==
Name: BMG160 Gyroscope
Vendor: BOSCH
Version: 0x1f0180
Handle: 0x4
Type: 4
maxRange: 35
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 4 ==
Name: BMG160 Gyroscope Uncalibrated
Vendor: BOSCH
Version: 0x1f0180
Handle: 0x5
Type: 16
maxRange: 35
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 5 ==
Name: stk3x1x alsprx
Vendor: Sensortek
Version: 0x2
Handle: 0x6
Type: 8
maxRange: 5
resolution: 5
power: 0 mA
minDelay: 0



=== Sensor 6 ==
Name: stk3x1x alsprx
Vendor: Sensortek
Version: 0x1
Handle: 0x7
Type: 5
maxRange: 4096
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 7 ==
Name: BMA2X2 Accelerometer/Temperature/Double-tap -Wakeup Secondary
Vendor: BOSCH
Version: 0x1
Handle: 0x8
Type: 1
maxRange: 39
resolution: 0
power: 0 mA
minDelay: 5000



=== Sensor 8 ==
Name: BMM150 Magnetometer -Wakeup Secondary
Vendor: BOSCH
Version: 0x1
Handle: 0x9
Type: 2
maxRange: 0
resolution: 0
power: 0 mA
minDelay: 10000



=== Sensor 9 ==
Name: BMM150 Magnetometer Uncalibrated -Wakeup Secondary
Vendor: BOSCH
Version: 0x1
Handle: 0xa
Type: 14
maxRange: 0
resolution: 0
power: 0 mA
minDelay: 10000



=== Sensor 10 ==
Name: BMG160 Gyroscope -Wakeup Secondary
Vendor: BOSCH
Version: 0x1f0180
Handle: 0xb
Type: 4
maxRange: 35
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 11 ==
Name: BMG160 Gyroscope Uncalibrated -Wakeup Secondary
Vendor: BOSCH
Version: 0x1f0180
Handle: 0xc
Type: 16
maxRange: 35
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 12 ==
Name: stk3x1x alsprx -Non Wakeup Secondary
Vendor: Sensortek
Version: 0x2
Handle: 0xd
Type: 8
maxRange: 5
resolution: 5
power: 0 mA
minDelay: 0



=== Sensor 13 ==
Name: stk3x1x alsprx -Wakeup Secondary
Vendor: Sensortek
Version: 0x1
Handle: 0xe
Type: 5
maxRange: 4096
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 14 ==
Name: Gravity
Vendor: QTI
Version: 0x2
Handle: 0xf
Type: 9
maxRange: 39
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 15 ==
Name: Linear Acceleration
Vendor: QTI
Version: 0x2
Handle: 0x10
Type: 10
maxRange: 39
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 16 ==
Name: Rotation Vector
Vendor: QTI
Version: 0x2
Handle: 0x11
Type: 11
maxRange: 1
resolution: 0
power: 6 mA
minDelay: 5000



=== Sensor 17 ==
Name: Step Detector
Vendor: QTI
Version: 0x2
Handle: 0x12
Type: 18
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 18 ==
Name: Step Counter
Vendor: QTI
Version: 0x2
Handle: 0x13
Type: 19
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 19 ==
Name: Significant Motion Detector
Vendor: QTI
Version: 0x2
Handle: 0x14
Type: 17
maxRange: 1
resolution: 1
power: 0 mA
minDelay: -1



=== Sensor 20 ==
Name: Game Rotation Vector
Vendor: QTI
Version: 0x2
Handle: 0x15
Type: 15
maxRange: 1
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 21 ==
Name: GeoMagnetic Rotation Vector
Vendor: QTI
Version: 0x2
Handle: 0x16
Type: 20
maxRange: 1
resolution: 0
power: 1 mA
minDelay: 10000



=== Sensor 22 ==
Name: Orientation
Vendor: QTI
Version: 0x2
Handle: 0x17
Type: 3
maxRange: 360
resolution: 0
power: 6 mA
minDelay: 5000



=== Sensor 23 ==
Name: Tilt Detector
Vendor: QTI
Version: 0x2
Handle: 0x18
Type: 22
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 24 ==
Name: Gravity -Wakeup Secondary
Vendor: QTI
Version: 0x2
Handle: 0x19
Type: 9
maxRange: 39
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 25 ==
Name: Linear Acceleration -Wakeup Secondary
Vendor: QTI
Version: 0x2
Handle: 0x1a
Type: 10
maxRange: 39
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 26 ==
Name: Rotation Vector -Wakeup Secondary
Vendor: QTI
Version: 0x2
Handle: 0x1b
Type: 11
maxRange: 1
resolution: 0
power: 6 mA
minDelay: 5000



=== Sensor 27 ==
Name: Step Detector -Wakeup Secondary
Vendor: QTI
Version: 0x2
Handle: 0x1c
Type: 18
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 28 ==
Name: Step Counter -Wakeup Secondary
Vendor: QTI
Version: 0x2
Handle: 0x1d
Type: 19
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 29 ==
Name: Game Rotation Vector -Wakeup Secondary
Vendor: QTI
Version: 0x2
Handle: 0x1e
Type: 15
maxRange: 1
resolution: 0
power: 5 mA
minDelay: 5000



=== Sensor 30 ==
Name: GeoMagnetic Rotation Vector -Wakeup Secondary
Vendor: QTI
Version: 0x2
Handle: 0x1f
Type: 20
maxRange: 1
resolution: 0
power: 1 mA
minDelay: 10000



=== Sensor 31 ==
Name: Orientation -Wakeup Secondary
Vendor: QTI
Version: 0x2
Handle: 0x20
Type: 3
maxRange: 360
resolution: 0
power: 6 mA
minDelay: 5000



=== Sensor 32 ==
Name: AMD
Vendor: QTI
Version: 0x2
Handle: 0x21
Type: 33171006
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 33 ==
Name: RMD
Vendor: QTI
Version: 0x2
Handle: 0x22
Type: 33171007
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 34 ==
Name: Basic Gestures
Vendor: QTI
Version: 0x2
Handle: 0x23
Type: 33171000
maxRange: 7
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 35 ==
Name: Facing
Vendor: QTI
Version: 0x2
Handle: 0x24
Type: 33171002
maxRange: 3
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 36 ==
Name: Pedometer
Vendor: QTI
Version: 0x2
Handle: 0x25
Type: 33171009
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 37 ==
Name: Motion Accel
Vendor: QTI
Version: 0x2
Handle: 0x26
Type: 33171011
maxRange: 1
resolution: 1
power: 0 mA
minDelay: 0



=== Sensor 38 ==
Name: Coarse Motion Classifier
Vendor: QTI
Version: 0x3
Handle: 0x27
Type: 33171012
maxRange: 2147483648
resolution: 1
power: 0 mA
minDelay: 0

@devmaster64
Copy link
Author

Failed Test:

root@localhost:/home/phablet# test_audio 
*** Error in `test_audio': corrupted size vs. prev_size: 0x0063c528 ***
Aborted
root@localhost:/home/phablet# test_camera 
library "libcamera_compat_layer.so" not found
dlsym failed: library handle is null
Segmentation fault
root@localhost:/home/phablet# test_media Big_Buck_Bunny_first_23_seconds_1080p.ogv 
library "libis_compat_layer.so" not found
dlsym failed: library handle is null
Segmentation fault
root@localhost:/home/phablet# test_input 
library "libis_compat_layer.so" not found
dlsym failed: library handle is null
Segmentation fault
root@localhost:/home/phablet# test_nfc
Starting test_nfc.
Finding NFC hardware module.
test_nfc: test_nfc.c:156: testNfc: Assertion `hwModule != NULL' failed.
Aborted
root@localhost:/home/phablet# test_sf
library "libsf_compat_layer.so" not found
dlsym failed: library handle is null
Segmentation fault

@vanyasem
Copy link
Member

vanyasem commented Jul 29, 2018

Hi. Please don't post your kernel changes here, they are visible as commits in your kernel's repo, there's no need to post them here again.

Also, "This build uses the plasma-desktop rootfs.". What does that mean? Your Halium build is not related to the rootfs you use. The idea is that you build a common "halium" base, and it works among all of the available rootfs (which is more of an end-goal at the moment, due to immaturity of the project). Instead, make a list of tested rootfs and mark working (tested) ones as "checked". See #28

@vanyasem
Copy link
Member

The tests that are failing are supposed to fail. For example, test_audio is a broken test. At that point you just need to subscribe to project updates, and upload some pictures of Plasma Mobile running on your device :P

@devmaster64
Copy link
Author

I am actually very happy that I was able to do this. The docs were on point!

Plasma mobile working
img-0467

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants