| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
| software:linux:yocto:cb20 [2023-07-07 13:52] – Urs Graf | software:linux:yocto:cb20 [2023-08-08 13:17] (aktuell) – Urs Graf |
|---|
| ======= CB20 ====== | ======= CB20 ====== |
| The ''cb20'' machine provides a platform for our [[embedded_systems:imx6:cb|Controller Board with Colibri Module]] hardware using a real time kernel. | The ''cb20'' machine provides a platform for our [[embedded_systems:imx6:cb|Controller Board with Colibri Module]] hardware using a real time kernel. |
| |
| Note that the ''cb20'' machine requires the ''meta-ost-toradex'' layer that is part of [[meta-ost]]. | Note that the ''cb20'' machine requires the ''meta-ost-toradex'' layer that is part of [[meta-ost]]. |
| |
| Follow the [[software:linux:yocto:setup|Setup and Building]] guide to set up the build environment and change the machine definition in ''local.conf'' | Follow the [[software:linux:yocto:setup|Setup and Building]] guide to set up the build environment. Fetch board and processor specific repositories: |
| | * meta-freescale, github.com/Freescale/meta-freescale.git, branch dunfell |
| | * meta-freescale-3rdparty, github.com/Freescale/meta-freescale-3rdparty.git, branch dunfell |
| | * meta-toradex-bsp-common, git.toradex.com/meta-toradex-bsp-common.git, branch dunfell-5.x.y |
| | * meta-toradex-nxp, git.toradex.com/meta-toradex-nxp.git, branch dunfell-5.x.y |
| | |
| | Next, add the layers to ''bblayers.conf'' |
| | <code> |
| | BBLAYERS ?= " \ |
| | /home/ubuntu/yocto/poky/meta \ |
| | /home/ubuntu/yocto/poky/meta-poky \ |
| | /home/ubuntu/yocto/poky/meta-yocto-bsp \ |
| | \ |
| | /home/ubuntu/yocto/meta-openembedded/meta-oe \ |
| | /home/ubuntu/yocto/meta-ost/meta-ost \ |
| | /home/ubuntu/yocto/meta-ost/meta-ost-toradex \ |
| | /home/ubuntu/yocto/meta-toradex-nxp \ |
| | /home/ubuntu/yocto/meta-toradex-bsp-common \ |
| | /home/ubuntu/yocto/meta-freescale \ |
| | /home/ubuntu/yocto/meta-freescale-3rdparty \ |
| | " |
| | </code> |
| | |
| | and change the machine definition in ''local.conf'' |
| |
| <code> | <code> |
| The //compatible// string determines which driver is loaded, in our case it's the //flink_eim.ko// kernel module (''ntb,flink_eim_driver''). | The //compatible// string determines which driver is loaded, in our case it's the //flink_eim.ko// kernel module (''ntb,flink_eim_driver''). |
| |
| Our device tree has the following changes: | Another change in our device tree is on ''iomux'': some gpios are removed due to conflicts with flexcan and eim. |
| * flexcan: CAN driver included on Colibri iMX6 | |
| * weim: EIM driver for FPGA | |
| * iomux: some gpios removed due to conflicts with flexcan and eim | |
| |
| The current device tree for the iMX6 on the CB20 board can be found on [[https://github.com/ntb-ch/linux/tree/cb20]]. | |
| |
| ===== Installing Images ===== | ===== Getting Images ===== |
| Use the [[..:toradex:toradex-easy-installer | Toradex Easy Installer]] for our images. | Prebuilt images can be obtained from our [[software:linux:images:start|Linux Images]] page. Extract it and flash it onto a SD card or USB stick (see next chapter). |
| |
| |
| ===== Updating the Bootloader / Recovery Mode ===== | ===== Installing Images ===== |
| | Use the [[..:toradex:toradex-easy-installer | Toradex Easy Installer]] to load new images. |
| | |
| | Updating the bootloader / recovery mode |
| * https://developer.toradex.com/knowledge-base/flashing-linux-on-imx6-modules | * https://developer.toradex.com/knowledge-base/flashing-linux-on-imx6-modules |
| * https://developer.toradex.com/knowledge-base/imx-recovery-mode#3-colibri-imx6 | * https://developer.toradex.com/knowledge-base/imx-recovery-mode#3-colibri-imx6 |
| |
| ===== Accessing the Board ===== | ===== Accessing the Board ===== |
| To be done | The login shell can be accessed through UART-A. |
| | * On the Colibri Evaluation board: use a null modem cable. The communication settings are: 115200 8N1. |
| | * On our [[embedded_systems:imx6:cb|Controller Board (cb20)]]: you need a special USB/TTL-Serial-UART converter cable. The connector on the board is a 6-pin SIL connector, e.g. [[http://ch.farnell.com/ftdi/ttl-232r-3v3/kabel-usb-ttl-pegel-seriell-umsetzung/dp/1329311]]. |
| | |
| | ==== User ==== |
| | | user | ost | |
| | | pw | ost | |
| | The ''root'' user is also available over ssh in development images (such as ''ost-devel'' image). |
| | |
| | ==== IP-Address ==== |
| | | IP | ? | |
| | |
| | ==== Using WLAN ==== |
| | See [[software:linux:toradex:wifi|WiFi on iMX6]] for further information. |
| |
| |