Skip to content

The yocto meta-layer suit for STM32MP1-ODYSSEY.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
COPYING.MIT
Notifications You must be signed in to change notification settings

KarlCHansen/meta-st-odyssey

 
 

Repository files navigation

This README file contains information on the contents of the meta-st-odyssey layer.

Please see the corresponding sections below for details.

How to build:

How to burn:

  • Operate with linux
    1. After build successfully,
    2. Plug in sd card by SD-reader
    3. Ensure that sd card has been mounted on Linux system
      • like:
          $ ls /dev/sd*
      • such as mine:
          $ ls /dev/sdb*  #(/dev/sdb is sd card in my linux system)
    4. Erase the sd card partition information
        $ sudo dd if=/dev/zero of=/dev/sdb bs=1M count=10
    5. Create a new information partition information table
          $ sudo sgdisk -o /dev/sdb
          $ sudo sgdisk --resize-table=128 -a 1 \
                            -n 1:34:545      -c 1:fsbl1   \
                            -n 2:546:1057    -c 2:fsbl2   \
                            -n 3:1058:5153   -c 3:fip    \
                            -n 4:5154:136225 -c 4:bootfs    \
                            -n 5:136226:     -c 5:rootfs  \
                            -p /dev/sdb
          $ sudo sgdisk -A 4:set:2 /dev/sdb
    6. burn tf-a,fip firmware
        $ cd <st-yocto pro dir>/<build dir>/tmp-glibc/deploy/image/stm32mp1/
        $ sudo dd if=arm-trusted-firmware/tf-a-stm32mp157c-odyssey-sdcard.stm32  of=$/dev/sdb1
        $ sudo dd if=arm-trusted-firmware/tf-a-stm32mp157c-odyssey-sdcard.stm32  of=$/dev/sdb2
        $ sudo dd if=fip/fip-stm32mp157c-odyssey-trusted.bin  of=$/dev/sdb3
    7. burn bootfs,rootfs
        $ sudo mkfs.ext4 -L bootfs /dev/sdb4
        $ sudo mkfs.ext4 -L rootfs /dev/sdb5
      
        $ sudo mkdir -p /media/boot/
        $ sudo mkdir -p /media/rootfs/
      
        $ sudo mount /dev/sdb4 /media/boot/
        $ sudo mount /dev/sdb5 /media/rootfs/
      
        $ export kernel_version=5.10.10-stm32-r1
        $ sudo cp kernel/stm32mp157c-odyssey.dtb /media/boot/dtbs/${kernel_version}/
        $ sudo cp kernel/zImage /media/boot/
        $ sudo sh -c "echo 'uname_r=${kernel_version}' >> /media/boot/uEnv.txt"
        $ sudo sh -c "echo 'dtb=stm32mp157c-odyssey.dtb' >> /media/boot/uEnv.txt"
        $ mkdir -p rootfs_mount
        $ sudo  mount st-image-weston-openstlinux-weston-stm32mp1.ext4 rootfs_mount/
        $ sudo cp -rf rootfs_mount/*  /media/rootfs/
        $ sync
        $ sudo umount /media/boot/ /media/rootfs/
        $ sudo umount rootfs_mount

About

The yocto meta-layer suit for STM32MP1-ODYSSEY.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
COPYING.MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 38.3%
  • BitBake 35.2%
  • BlitzBasic 16.5%
  • Makefile 10.0%