Date: Fri, 29 Mar 2024 12:20:09 +0100 (CET) Message-ID: <733473577.4315.1711711209235@confluence> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4314_848455570.1711711209234" ------=_Part_4314_848455570.1711711209234 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Some of the reference designs from Trenz Electronics include a preconfig= ured Yocto BSP layer. This is a short description of how to use the BSP lay= er to create a Linux image with the Yocto project for the Board.
The Yocto BSP layer will be generated with the quartus project in the
Add the generated BSP layer meta-<machin= e> to /yocto/poky/build/conf/bblayers.conf with:
bitbake-laye= rs add-layer ../meta-<module>
There are two options to generate an image with the provided Yocto BSP l= ayer:
For the reference design, the generation of an image with an init RAM fi= lesystem is preferred.
e.g. for the board TEI0022-03 see TEI0022 Test Board#Hardware =E2=86= =92 here the MACHINE name is tei0022-a5-c8-2gb.
run following commands to redefine 'MACHINE= ':
sed -i '/^MA= CHINE/s/MACHINE/#MACHINE/g' conf/local.conf echo -e '\nMACHINE =3D "<module>-<Board-Part-Short-Name>"' >= > conf/local.conf
Define the variables INITRAMFS_IMAGE_BUNDLE= and INITRAMFS_IMAGE to create an image with initial RAM filesystem
echo -e '\nI= NITRAMFS_IMAGE_BUNDLE =3D "1"' >> conf/local.conf echo -e 'INITRAMFS_IMAGE =3D "te-initramfs"' >> conf/local.conf
Build the image with following command (the= image recipes are located in meta-<module>/recipes-core/images/<= /em>):
bitbake te-i= mage-minimal
e.g. for the board TEI0022-03 see TEI0022 Test Board#Hardware =E2=86= =92 here the MACHINE name is tei0022-a5-c8-2gb.
run following commands to redefine 'MACHINE= ':
sed -i '/^MA= CHINE/s/MACHINE/#MACHINE/g' conf/local.conf echo -e '\nMACHINE =3D "<module>-<Board-Part-Short-Name>"' >= > conf/local.conf
Build the image with following command (the= image recipes are located in meta-<module>/recipes-core/images/<= /em>):
bitbake te-i= mage-minimal
Yocto generates a .wic file which contains all needed files like u-boot,= zImage and so on. This file is stored i= n path/to/yocto/poky/build/tmp/deploy/images/<machine>/<image_= name>.wic. If you generate the linux yocto project yourself, using = the .wic file is a very simple way to prepare the SD card for booting linux= .
Do following steps to copy the .wic file to the SD card:
Run following command to get the device nam= e of the SD card (e.g. /dev/sdx):
lsblk
Copy the generated *.wic image to the SD ca= rd (replace 'sdx' in 'of=3D/dev/sdx' with the correct sd card device name:<= /p>
sudo dd if= =3Dpath/to/yocto/poky/build/tmp/deploy/images/<machine>/<image_nam= e>.wic of=3D/dev/sdx bs=3D1M seek=3D0
Insert the SD card into your board, set boot mode to sd card (if the set= ting is available) and boot it.
select COM Port
Win OS: see device manager
Linux OS: see dmesg | grep tty&nb= sp; (UART is *USB1)
Login data:
Note: Wait until Linux boot finished
Username: ro= ot Password: root
You can us= e Linux shell now.
i2cdetect -y= -r 1 (check I2C 1 Bus, if available) dmesg | grep rtc (RTC check, if available) udhcpc (ETH0 check, if available) lsusb (USB check, if available)