Miral on Dragonboard
Having seen Kevin Gunn’s post on the mir-kiosk I thought I’d give it a try. This is what I found.
First, I dug out the Dragonboard I’d been testing Mir on a few months ago from a drawer and borrowed the Logitech k400r keyboard I use in my “den”. (This is convenient there because it provides both keyboard and mouse input from one device I can use from my lap.)
There was still a micro SD card in the board, so I extracted that and inserted it via a micro SD adapter into my desktop. Then I downloaded the dragonboard image from the link in Kevin’s article, verified the checksum and discovered that “Disk Image Writer” was the default app for opening the file. That sounded promising, so I opened the file with it, selected the SD card and started writing the image.
While that was going on I found an HDMI/VGA adapter and an old monitor to connect to the Dragonboard and started checking how to install from the SD. The main thing was to get the boot switches on the back of the board into 0110 positions (which means it will boot from the micro SD card).
With all that ready I went to brew tea while “Disk Image Writer” continued reporting progress.
Returning with my tea I found that the image was written, so I disconnected the card and put it into the Dragonboard and connected the power.
I was greeted by a blank screen.
After a bit of experimentation I found that I need to connect to a real HDMI monitor during boot, but can switch to the adapter+VGA monitor after that. Annoying, but it works. (As I’m not yet sure where the fault lies I won’t mention the brands.)
Setup is a few simple questions, the only annoyance I had was that the keyboard layout defaults to US which makes typing my network password “interesting” on a UK keyboard.
One thing that could be a trap is that it asked for my email address to connect to the snap store. I’ve never been there before but I took a punt and used my canonical email address. That seemed to work and pick up the credentials on Launchpad.
That meant I could ssh into the Dragonboard from my desktop.
Installing the mir libraries and the miral kiosk looks really easy using the commands Kevin provides (in the ssh session):
$ sudo snap install mir-libs --channel=edge --devmode error: cannot perform the following tasks: - Download snap "mir-libs" (3) from channel "edge" (unexpected EOF)
Actually, before that message was shown I got one estimating the download time at over an hour! Try again…
$ sudo snap install mir-libs --channel=edge --devmode mir-libs (edge) 0.1 from 'albaguirre' installed
That’s better! (And only took a few seconds.)
$ sudo snap install mir-kiosk --channel=edge --devmode mir-kiosk (edge) 0.1 from 'albaguirre' installed
Wow, I see the orange miral-kiosk startup “splash” and a mouse pointer! miral-kiosk is running on the Dragonboard.
A Client Application
To get a client application kg’s blog continues with the instructions:
“Download the appropriate architecture of the mir-client snap and then copy that over to your running ubuntu-core image. “
$ scp Downloads/mir-client_0.24.1_arm64.snap firstname.lastname@example.org:~ mir-client_0.24.1_arm64.snap 100% 103MB 173.7KB/s 10:05
That took an unexpectedly long time. Back to ssh session:
$ sudo snap install mir-client_0.24.1_arm64.snap --channel=edge --devmode mir-client 0.24.1 installed
And there it is – kg’s sample client application running on miral-kiosk.