Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte ÜberarbeitungBeide Seiten der Revision
software:linux:yocto:cb20 [2023-07-07 13:50] Urs Grafsoftware:linux:yocto:cb20 [2023-08-08 13:17] Urs Graf
Zeile 7: Zeile 7:
 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, https://github.com/Freescale/meta-freescale.git, branch dunfell 
 +  * meta-freescale-3rdparty, https://github.com/Freescale/meta-freescale-3rdparty.git, branch dunfell 
 +  * meta-toradex-bsp-common,
 +  * meta-toradex-nxp, git://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>
Zeile 17: Zeile 40:
 ==== EIM Driver and Device Tree ==== ==== EIM Driver and Device Tree ====
  
-The cb20 board incorporates an FPGA which is connected through the EIM bus instead of two SRAM modules. We use [[https://flink-project.ch/|flink]] to access the FPGA. The ''weim'' node was changed to reflect this hardware change. The relevant part is listed here: +The cb20 board incorporates an FPGA which is connected through the EIM bus instead of two SRAM modules. We use [[https://flink-project.ch/|flink]] to access the FPGA. The relevant part can be found unter the ''weim'' node in [[https://gitlab.ost.ch/tech/inf/public/yocto/meta-ost/-/blob/main/meta-ost-toradex/recipes-kernel/linux/linux-toradex/git/arch/arm/boot/dts/imx6dl-colibri-cb20.dts|imx6dl-colibri-cb20.dts]]:
- +
-<code> +
-&weim { +
- status = "okay"; +
- fsl,weim-cs-gpr = <&gpr>; +
- /* weim memory map: 32MB on CS0, CS1, CS2 and CS3 */ +
- ranges = <0 0 0x08000000 0x02000000 +
-   1 0 0x0a000000 0x02000000 +
-   2 0 0x0c000000 0x02000000 +
-   3 0 0x0e000000 0x02000000>; +
- +
- sram@0,0 { +
- status = "disabled"; +
- }; +
- +
- /* FPGA on CS0 */ +
- fpga@0,0 { +
- compatible = "ntb,flink_eim_driver"; +
- reg = <0 0 0x00080000>; +
- #address-cells = <1>; +
- #size-cells = <1>; +
- bank-width = <2>; +
- fsl,weim-cs-timing = <0x07710081 0x00000100 0x04000000 0x00000000 0x04000040 0x00000000>; +
- }; +
-}; +
- +
-</code>+
  
 The //ranges// property determines the memory areas for 3 chip selects. The size of each region is 32 MB. CS0 starts at 0x08000000 and is used for the FPGA. Only 512 KB are used for the FPGA because the address width is 16 bit. The kernel module maps the amount of memory which is in the //reg// property of the //fpga// node. The //ranges// property determines the memory areas for 3 chip selects. The size of each region is 32 MB. CS0 starts at 0x08000000 and is used for the FPGA. Only 512 KB are used for the FPGA because the address width is 16 bit. The kernel module maps the amount of memory which is in the //reg// property of the //fpga// node.
Zeile 52: Zeile 48:
 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
Zeile 69: Zeile 64:
  
 ===== 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.