Skip to content

Commit

Permalink
Update Lomiri.rst
Browse files Browse the repository at this point in the history
Different commands for creating udev rules depending on halium version.
  • Loading branch information
abkro authored and doniks committed Dec 28, 2021
1 parent bbf4796 commit 14c8f0f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions porting/configure_test_fix/Lomiri.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,22 @@ Before you make any changes to the rootfs (which will be required for the next s
Create and add udev rules
^^^^^^^^^^^^^^^^^^^^^^^^^

You must create some udev rules to allow Ubuntu Touch software to access your hardware. Run the following command, replacing [CODENAME] with your device's codename::
You must create some udev rules to allow Ubuntu Touch software to access your hardware.

If you are building a Halium-7.1 based port, run the following command, replacing [CODENAME] with your device's codename::

sudo -i # And enter your password
cat /var/lib/lxc/android/rootfs/ueventd*.rc|grep ^/dev|sed -e 's/^\/dev\///'|awk '{printf "ACTION==\"add\", KERNEL==\"%s\", OWNER=\"%s\", GROUP=\"%s\", MODE=\"%s\"\n",$1,$3,$4,$2}' | sed -e 's/\r//' >/usr/lib/lxc-android-config/70-[CODENAME].rules
For a Halium-9.0 based port you should use the commands below, again replacing [CODENAME] with your device's codename::

sudo -i # And enter your password
DEVICE=[CODENAME]
cat /var/lib/lxc/android/rootfs/ueventd*.rc /vendor/ueventd*.rc | grep ^/dev | sed -e 's/^\/dev\///' | awk '{printf "ACTION==\"add\", KERNEL==\"%s\", OWNER=\"%s\", GROUP=\"%s\", MODE=\"%s\"\n",$1,$3,$4,$2}' | sed -e 's/\r//' >/etc/udev/rules.d/70-$DEVICE.rules

.. Note::
If you are building a Halium-9.0 based port for a non-treble device, i.e. a device without a separate vendor partition, the command above will give an error. Simply edit and remove the following string from the command: ``/vendor/ueventd*.rc``.

Now, reboot the device. If all has gone well, you will eventually see the Ubuntu Touch spinner followed by Unity 8. Your lock password is the same as you set for SSH.

When Unity 8 is first brought up on your device, you will probably notice that everything is very small. The :ref:`Display` section describes how to deal with this.
When Unity 8 is first brought up on your device, you will probably notice that everything is very small. The :ref:`Display` section describes how to deal with this.

0 comments on commit 14c8f0f

Please sign in to comment.