Message-ID: <1991469165.5245.1711689841440.JavaMail.root@dns3> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_5244_639623200.1711689841439" ------=_Part_5244_639623200.1711689841439 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This document provides instructions for advanced users how Embedian offe= rs patches and builds Debian Bullseye for Embedian's SMARC-iM= X8M product platform and how to install the images to bring the e= valuation board up and running.
Our aim is to fully support our hardw= are through device drivers. We also provide unit tests so that testing a bo= ard is easy and custom development can start precisely. The recommended hos= t environment is Ubuntu 16.04.
= SMARC-iMX8M from Embedian
= EVK-STD-CARRIER-S20 (universal carrier board for all SMARC 2.0 mod= ules) from Embedian
We recommend you use SSH keys to establish a secure connection between y= our computer and Embedian Gitlab server. To download u-boot and kernel sour= ce codes from Embedian server. You need to register from Embedian's Gitlab = server and put your ssh public key there. The steps below will walk you thr= ough generating an SSH key and then adding the public key to our Gitlab acc= ount.
First, we need to check for existing ssh keys on your computer. Open up&= nbsp;Git Bash and run:
$ cd ~/.ssh $ ls # Lists the files in your .ssh directory=20
Check the directory listing to see if you have a file named either =
id_rsa.pub
or id_dsa.pub
. If you don't =
have either of those files go to step 2. Otherwise, y=
ou already have an existing keypair, and you can skip to step =
3.
To generate a new SSH key, enter the code below. We want the default set= tings so when asked to enter a file in which to save the key, just press en= ter.
$ ssh-keygen -t rsa -C "your_email@example.com" # Creates a new ssh key, using the provided email as a label # Generating public/private rsa key pair. # Enter file in which to save the key (/c/Users/you/.ssh/id_rsa): [Press en= ter] $ ssh-add id_rsa=20
Now you need to enter a passphrase.
Enter passphrase (empty for no passphrase): [Type a passphrase] Enter same passphrase again: [Type passphrase again]=20
Which should give you something like this:
Your identification has been saved in /c/Users/you/.ssh/id_rsa. Your public key has been saved in /c/Users/you/.ssh/id_rsa.pub. The key fingerprint is: 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@example.com=20
Copy the key to your clipboard.
$ cat ~/.ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAABDAQABAAABAQDQUEnh8uGpfxaZVU6+uE4bsDrs/tEE5/BPW7j= MAxak 6qgOh6nUrQGBWS+VxMM2un3KzwvLRJSj8G4TnTK2CSmlBvR+X8ZeXNTyAdaDxULs/StVhH+QRtF= EGy4o iMIzvIlTyORY89jzhIsgZzwr01nqoSeWWASd+59JWtFjVy0nwVNVtbek7NfuIGGAPaijO5Wnshr= 2uChB Pk8ScGjQ3z4VqNXP6CWhCXTqIk7EQl7yX2GKd6FgEFrzae+5Jf63Xm8g6abbE3ytCrMT/jYy5OO= j2XSg 6jlxSFnKcONAcfMTWkTXeG/OgeGeG5kZdtqryRtOlGmOeuQe1dd3I+Zz3JyT your_email@exa= mple.c om=20
Go to Embedian Git Server. At Profile Setting --> SSH Keys --> Add SSH Key
Paste your public key and press "Add Key" and your are done.
On Ubuntu machine:
=20 =20Download archive containing the build script and support files f= or building Debian Bullseye
=20 =20This environment prepared to build.
=20 =20 =20The internet connection in your= host PC has to be available.
=20 =20 =20 =20=20 =20
=20 =20
=20 =20
=20 =20 =20 =20
=20 =20
where "/dev/sdX" is the SD block device in your host sys=
tem. Shunt the "TEST#" pin of your device to Ground. Insert the S=
D card and you will see SMARC-iMX8M booting with Debian Bullseye. Console p=
ort is defined on SER3<=
/span>.
Selecting display configuration is a = matter of selecting an appropriate DTB file.
All available DTB files are listed in= the table below.
DTB File Name | Description |
---|---|
=
imx8mq-smarc.dtb |
Device tree b= lob for no display configuration. |
=
imx8mq-smarc-hdmi.dtb |
Device tree b= lob for HDMI display configuration (DCSS). |
=
imx8mq-smarc-dp.dtb |
Device tree b= lob for Display Port (DP) display configuration (DCSS). |
=
imx8mq-smarc-lcdif-lvds.dtb |
Device tree b= lob for LCDIF LVDS display configuration. |
=
imx8mq-smarc-dcss-lvds.dtb |
Device tree b= lob for DCSS LVDS display configuration. |
=
imx8mq-smarc-dual-display.dtb |
Device tree b= lob for dual LVDS+HDMI display configuration. |
For these instruction, we are assuming: DISK=3D/dev/mmcblk0, "lsblk= " is very useful for determining the device id.
=20 =20Erase SD card:
=20 =20Create Partition Layout: Leave 2MB offset for flash.bin.
With util-linux v2.26, sfdisk was rewritten and is now based on = libfdisk.
=20 =20Create Partitions:
=20 =20 =20Format Partitions:
=20 =20Mount Partitions:
On some systems, these partitions may be auto-mounted...
=20 =20Users need to shunt cross the
Fuse flash.bin to the SD card.
= =20 =20Copy uEnv.txt to the boot partition:
=20 =20Copy Image to the boot partition:
=20 =20Selecting display configuration is a = matter of selecting an appropriate DTB file.
All available DTB files are listed in= the table below.
DTB File Name | Description |
---|---|
=
imx8mq-smarc.dtb |
Device tree b= lob for no display configuration. |
=
imx8mq-smarc-hdmi.dtb |
Device tree b= lob for HDMI display configuration (DCSS). |
=
imx8mq-smarc-dp.dtb |
Device tree b= lob for Display Port (DP) display configuration (DCSS). |
=
imx8mq-smarc-lcdif-lvds.dtb |
Device tree b= lob for LCDIF LVDS display configuration. |
=
imx8mq-smarc-dcss-lvds.dtb |
Device tree b= lob for DCSS LVDS display configuration. |
=
imx8mq-smarc-dual-display.dtb |
Device tree b= lob for dual LVDS+HDMI display configuration. |
Remove SD card:
The resulted images are locared in=
~/smarc_mx8mq_debian/output
directo=
ry:
Image Name | Description |
---|---|
rootfs.tar.gz | Root filesystem tarball for installation on SD c= ard and eMMC |
Image | Linux Kernel Image |
imx-boot-sd.bin | Boot file for SD card and eMMC |
DTB File Name | Description |
---|---|
=
imx8mq-smarc.dtb |
Device tree b= lob for no display configuration. |
=
imx8mq-smarc-hdmi.dtb |
Device tree b= lob for HDMI display configuration (DCSS). |
=
imx8mq-smarc-dp.dtb |
Device tree b= lob for Display Port (DP) display configuration (DCSS). |
=
imx8mq-smarc-lcdif-lvds.dtb |
Device tree b= lob for LCDIF LVDS display configuration. |
=
imx8mq-smarc-dcss-lvds.dtb |
Device tree b= lob for DCSS LVDS display configuration. |
=
imx8mq-smarc-dual-display.dtb |
Device tree b= lob for dual LVDS+HDMI display configuration. |
User Name | User Password | User Descriptor |
---|---|---|
root | root | system administrator |
user | user | local user |
x_user | used for X session access |
Shunt TEST# pin to Ground and boot up from your SD card. Run the followi=
ng command as =
root
user.
To modify the kernel configuration (add/remove features and drivers). Pl= ease follow the step below.
=20 =20For playing video, we can use three solutions to support it. <= /span>
a) # gplay-1.0 <video =
file>
b) # gst-launch-1.0 playb=
in uri=3Dfile://<video absolute path>
c) ( i ) if video container on .mp4 format
#
gst-launch-1.0 filesrc location=3D<file name.mp4> typef=
ind=3Dtrue ! video/quicktime ! qtdemux ! queue max-size-time=3D0 ! vpudec !=
queue max-size-time=3D0 ! kmssink force-hantrope=3Dtrue sync=3Dfalse &=
( ii ) if video container on .ts format
&=
nbsp; # gst-launch-1.0 filesrc location=3D<file name.ts> typefin=
d=3Dtrue ! video/mpegts ! tsdemux ! queue max-size-time=3D0 ! vpudec ! queu=
e max-size-time=3D0 ! waylandsink
version 1.0a, 6/12/2020
Last updated 2020-06-12