• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

UBport new device porting problem

Scheduled Pinned Locked Moved Porting
23 Posts 7 Posters 4.4k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      amrith
      last edited by amrith 11 Sept 2019, 10:40

      I have

      25019.271313] audit: type=1107 audit(1568197260.187:772): pid=1080 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" bolded textmember="DeviceAdded" name=":1.12" mask="receive" pid=18156 label="snap.telegram-desktop.telegram-desktop" peer_pid=1081 peer_label="unconfined"

      details:
      I am porting halium and ubports ubuntu touch to my phone oneplus x onyx
      it has kernel 3.4 and i have successfully generated system image boot image and have boot into Ubuntu touch loading screen (with 4-5 dots as animation). It gets stuck there nothing happens after that .
      2019-09-11-133001.jpg

      I asked in halium telegram groups and they have mentioned it is better to askUbports .
      How to solve Apparmour =denied ?
      I am also adding full dmesg logs here
      dmesg log
      logcat
      (Is anyone having any apparmor related patches for kernel 3.4 to work please share)

      1. how to patch for this to work?

      update1;
      unity8.log link

      Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
      std::exception::what: could not select EGL config for use with framebuffer
        
      [1971-04-04:15:32:35.724] ERROR: QMirServer - Mir failed to start
      

      TEST_EGL_CONFIGS
      output

      TEST_EGL

      root@ubuntu-phablet:~# test_egl
      library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it
      Segmentation fault  
      

      update 2 :
      So i have understood the main problem here Mir doesnt start unity8 because EGL thows exception at

      select_egl_config_with_format() 
      

      function
      as given in logs
      previous errors were caused by ownership as well as permission problem
      update 3
      sudo chown -R $USER /dev/input
      $ QML_BAD_GUI_RENDER_LOOP=1 QT_QPA_PLATFORM=mirserver unity8
      should start unity8 successfully once accidentally but was just flickering although i will have to fix the screen resolution.
      problem seems to be 1. ownership
      2.environment variables not set properly
      3.Dbus errors

      A D S A D 5 Replies Last reply 11 Sept 2019, 17:01 Reply Quote 1
      • A Offline
        Aka @amrith
        last edited by 11 Sept 2019, 17:01

        @amrith
        Have you created udev rules?

        A 1 Reply Last reply 12 Sept 2019, 04:11 Reply Quote 0
        • H Offline
          hacker12
          last edited by 11 Sept 2019, 17:46

          Did you disable apparmor?

          A 1 Reply Last reply 12 Sept 2019, 04:16 Reply Quote 0
          • A Offline
            amrith @Aka
            last edited by 12 Sept 2019, 04:11

            @Aka yes i have

            1 Reply Last reply Reply Quote 0
            • A Offline
              amrith @hacker12
              last edited by 12 Sept 2019, 04:16

              @hacker12 no how to do that? i was searching yesterday for the same

              1 Reply Last reply Reply Quote 0
              • D Offline
                doniks
                last edited by 12 Sept 2019, 04:50

                disable with kernel param apparmor=0

                properly fix with patching see here https://pad.ubports.com/p/porting-faq

                A D 2 Replies Last reply 13 Sept 2019, 02:10 Reply Quote 1
                • A Offline
                  amrith @doniks
                  last edited by 13 Sept 2019, 02:10

                  @doniks yes that disabled apparmor but still no luck

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dobey @amrith
                    last edited by dobey 13 Sept 2019, 14:12

                    @amrith said in UBport new device porting problem:

                    25019.271313] audit: type=1107 audit(1568197260.187:772): pid=1080 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="DeviceAdded" name=":1.12" mask="receive" pid=18156 label="snap.telegram-desktop.telegram-desktop" peer_pid=1081 peer_label="unconfined"

                    This is surely from your PC. Snaps cannot be used on UT.

                    @amrith said in UBport new device porting problem:

                    I asked in halium telegram groups and they have mentioned it is better to askUbports .

                    Check the /home/phablet/.cache/upstart/unity8.log I think. Does this occasionally flash away and then back to the animation? Also maybe check /var/log/syslog.

                    A 2 Replies Last reply 14 Sept 2019, 06:06 Reply Quote 0
                    • A Offline
                      amrith @dobey
                      last edited by 14 Sept 2019, 06:06

                      @dobey sorry i should have guessed when i saw telegram in the log. but anyway i have disabled apparmor

                      No it just stays in the ubuntu loading screen , the animation is alive(not getting stuck or frozen).
                      Is there a way to see console messages instead of ubuntu loading screen?

                      yes i will check those logs too

                      D 1 Reply Last reply 14 Sept 2019, 14:15 Reply Quote 0
                      • D Offline
                        doniks @doniks
                        last edited by 14 Sept 2019, 06:43

                        @doniks said in UBport new device porting problem:

                        see here https://pad.ubports.com/p/porting-faq

                        check the /run/user/32011 fix from the pad

                        A 1 Reply Last reply 14 Sept 2019, 07:59 Reply Quote 0
                        • A Offline
                          amrith @doniks
                          last edited by 14 Sept 2019, 07:59

                          @doniks checked it just now file already exits

                          D 1 Reply Last reply 14 Sept 2019, 14:12 Reply Quote 0
                          • A Offline
                            amrith @dobey
                            last edited by 14 Sept 2019, 08:00

                            @dobey /home/phablet/.cache/unity8.log dives error: file does not exist

                            D 1 Reply Last reply 14 Sept 2019, 14:08 Reply Quote 0
                            • S Offline
                              Stefano @amrith
                              last edited by 14 Sept 2019, 12:36

                              @amrith Contact this guy https://github.com/Vince1171

                              Find him on Telegram @Vince or here @vince1171

                              He is porting for Op2, Op3/t, Op5 , so he might be able to help as he said those devices has similar issues.

                              1 Reply Last reply Reply Quote 1
                              • D Offline
                                doniks @amrith
                                last edited by 14 Sept 2019, 14:08

                                @amrith said in UBport new device porting problem:

                                @dobey /home/phablet/.cache/unity8.log dives error: file does not exist

                                I think it's in ~/.cache/upstart/

                                D 1 Reply Last reply 14 Sept 2019, 16:08 Reply Quote 0
                                • D Offline
                                  doniks @amrith
                                  last edited by 14 Sept 2019, 14:12

                                  @amrith said in UBport new device porting problem:

                                  @doniks checked it just now file already exits

                                  Correct owner and permission? Maybe the dbus fix right below it? Otherwise the unity logs as per docs

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    doniks @amrith
                                    last edited by 14 Sept 2019, 14:15

                                    @amrith said in UBport new device porting problem:

                                    Is there a way to see console messages instead of ubuntu loading screen?

                                    Search for syslog in the pad

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dobey @doniks
                                      last edited by 14 Sept 2019, 16:08

                                      @doniks said in UBport new device porting problem:

                                      I think it's in ~/.cache/upstart/

                                      Oops, yes it is. sorry. 🙂

                                      A 1 Reply Last reply 15 Sept 2019, 05:16 Reply Quote 0
                                      • A Offline
                                        amrith @dobey
                                        last edited by 15 Sept 2019, 05:16

                                        @dobey its ok i got the log. MIR has problem starting i have added logs

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          amrith @amrith
                                          last edited by 15 Sept 2019, 16:14

                                          @amrith maybe @vince1171 can help me

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            doniks @amrith
                                            last edited by 17 Sept 2019, 06:28

                                            @amrith said in UBport new device porting problem:

                                            update1;
                                            unity8.log link

                                            Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
                                            std::exception::what: could not select EGL config for use with framebuffer
                                              
                                            [1971-04-04:15:32:35.724] ERROR: QMirServer - Mir failed to start
                                            

                                            Is this now still your latest status? I'm a bit lost between the verious posts and updates. I don't know this error.

                                            Are you aware that ubports has their own telegram group focused on porting? Maybe try there.

                                            A 2 Replies Last reply 17 Sept 2019, 12:11 Reply Quote 0
                                            10 out of 23
                                            • First post
                                              10/23
                                              Last post