Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:yocto [2023/08/16 16:52] – [Build] darrontools:yocto [2023/08/17 15:35] (current) – [Boot] darron
Line 7: Line 7:
  
 Yocto can be used to create a customised Linux installation on an Yocto can be used to create a customised Linux installation on an
-embedded system with a fully writable root filesystem with package+embedded system with a fully writable root filesystem and package
 management. management.
  
Line 73: Line 73:
 git mv recipes-devtools/gcc/gcc-source_12.2.bbappend recipes-devtools/gcc/gcc-source_12.3.bbappend git mv recipes-devtools/gcc/gcc-source_12.2.bbappend recipes-devtools/gcc/gcc-source_12.3.bbappend
 </code> </code>
 +
 +NB the above is a known but unaddressed issue
  
 ==Dev tools== ==Dev tools==
Line 100: Line 102:
      install -d ${D}/${datadir}/gcc-arm-none-eabi      install -d ${D}/${datadir}/gcc-arm-none-eabi
 </code> </code>
 +
 +NB the above patch has been submitted to ST.
  
 ==Cortex-M4== ==Cortex-M4==
Line 128: Line 132:
 </code> </code>
  
 +NB the correct solution would be to update the compiler
 ===Configure=== ===Configure===
  
Line 248: Line 253:
 bitbake core-image-full-cmdline bitbake core-image-full-cmdline
 </code> </code>
 +
 +Eg.
  
 <code> <code>
Line 281: Line 288:
 </code> </code>
  
-===SDCARD===+===Flash=== 
 + 
 +Write image to microsd card identified as /dev/sdc
  
 <code> <code>
 +#! /bin/bash
 cd /opt/src/yocto/build/tmp/deploy/images/stm32mp1 cd /opt/src/yocto/build/tmp/deploy/images/stm32mp1
-./scripts/create_sdcard_from_flashlayout.sh flashlayout_core-image-minimal/optee/FlashLayout_sdcard_stm32mp157d-dk1-optee.tsv+./scripts/create_sdcard_from_flashlayout.sh flashlayout_core-image-full-cmdline/optee/FlashLayout_sdcard_stm32mp157d-dk1-optee.tsv 
 +sudo dd if=FlashLayout_sdcard_stm32mp157d-dk1-optee.raw of=/dev/sdc bs=4M conv=fdatasync,notrunc status=progress 
 +sleep 1 
 +sudo hdparm -z /dev/sdc
 </code> </code>
  
-<code> 
-dd if=FlashLayout_sdcard_stm32mp157d-dk1-optee.raw of=/dev/sdb bs=4M conv=fdatasync,notrunc status=progress 
-</code> 
 ===Boot=== ===Boot===
  
Line 727: Line 737:
 </code> </code>
  
 +It appears that the power controller is probed before the I2C interface is online and consequently it doesn't work
 ===Extra=== ===Extra===
  
-Add package-management to extra features to gain access to RPM in local.conf+Add package-management to extra features to gain access to RPM or dpkg/apt in local.conf
  
 <code> <code>
 EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management" EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management"
 </code> </code>
 +
 +Package format defaults to RPM but can be changed to deb.
  
 Rebuild and boot new image. Rebuild and boot new image.
Line 744: Line 756:
 <code> <code>
 scp e2fsprogs-resize2fs-1.47.0-r0.cortexa7t2hf_neon_vfpv4.rpm root@stm32mp1: scp e2fsprogs-resize2fs-1.47.0-r0.cortexa7t2hf_neon_vfpv4.rpm root@stm32mp1:
-</code> 
- 
-This tool could have been preloaded in local.conf with 
-<code> 
-IMAGE_INSTALL += "e2fsprogs-resize2fs" 
 </code> </code>
  
Line 791: Line 798:
 ===Resources=== ===Resources===
  
-[[https://docs.yoctoproject.org/ref-manual/index.html|Manual]]+[[https://docs.yoctoproject.org/ref-manual/index.html|Yocto manual - Index]]
  
-[[https://docs.yoctoproject.org/ref-manual/images.html|Images]]+[[https://docs.yoctoproject.org/ref-manual/images.html|Yocto manual - Images]]
  
 [[https://www.digikey.com/en/maker/projects/intro-to-embedded-linux-part-2-yocto-project/2c08a1ad09d74f20b9844e566d332da4|Intro to Embedded Linux Part 2 - Yocto Project]] [[https://www.digikey.com/en/maker/projects/intro-to-embedded-linux-part-2-yocto-project/2c08a1ad09d74f20b9844e566d332da4|Intro to Embedded Linux Part 2 - Yocto Project]]
  
 +[[https://web.archive.org/web/20230503192430/https://www.debian.org/doc/manuals/repository-howto/repository-howto#setting-up|Debian repository howto]]
  
 +[[https://u-boot.readthedocs.io/en/latest/board/st/stm32mp1.html|Das U-Boot]]