Skip to content

Instantly share code, notes, and snippets.

View sdrabb's full-sized avatar
🤟

Alberto Merciai sdrabb

🤟
View GitHub Profile
@Scott31393
Scott31393 / Rauc-Yocto-Integration-Tips.md
Last active May 14, 2024 14:31
Rauc-Yocto-Integration-Tips.md

Rauc Yocto Integration Tips

Create .ext4 fs Images and Boot.img

core-image-minimal.bbappend

do_image_complete() {
    # Create etc.ext4 part
    dd if=/dev/zero of="${WORKDIR}/etc.ext4" bs=1M count=${ETC_PART_SIZE_MB};
    mke2fs -d ${IMAGE_ROOTFS}/etc -t ext4 -L etc_image ${WORKDIR}/etc.ext4;
 cp -rf ${WORKDIR}/etc.ext4 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.etc.ext4;

Android-Embedded-Porting-Note

Compile Kernel/U-Boot inside Android source tree

#After run this script clean kernel tree using:
#make clean
#make mrproper

export ARCH=arm64
@Scott31393
Scott31393 / Embedded-Linux-Test-Tool-Cheatsheet.md
Last active May 7, 2025 10:33
Embedded-Linux-Test-Tool-Cheatsheet.md

Linux Test Tool Cheatsheet

Compile Main test Tool (Using Yocto)

Append these lines into:

conf/local.conf

BB_NUMBER_THREADS = "5"

Bring-up Cheatsheet

U-Boot

Boot using .scr

To enable this feature you need the following U-Boot config:

CONFIG_CMD_RUN=y
@janjongboom
janjongboom / 1_instructions.md
Created June 18, 2018 03:23
DISCO_F413ZH debugging with OpenOCD and Visual Studio Code
  1. Download OpenOCD.

  2. Place the folder in ~/openocd - so that the scripts is directly under ~/openocd/scripts.

  3. Add it to your PATH via:

    ln -s ~/openocd/bin/openocd /usr/local/bin/openocd

  4. Make sure no applications are bound to port 3333.

  5. Place launch.json and tasks.json in your .vscode folder.

Note: Set the right path in debugServerArgs.