Skip to content

Instantly share code, notes, and snippets.

View neuberfran's full-sized avatar

Neuber Sousa neuberfran

View GitHub Profile
DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh
[HOST DISTRIB check]
Linux Distrib: Ubuntu
Linux Release: 22.04
Required packages for Linux Distrib:
bsdmainutils build-essential chrpath cpio debianutils diffstat gawk gcc-multilib git iputils-ping libegl1-mesa libgmp-dev libmpc-dev libsdl1.2-dev libssl-dev lz4 pylint python3 python3-git python3-jinja2 python3-pexpect python3-pip socat texinfo unzip wget xterm xz-utils zstd
Check OK: all required packages are installed on host.
/*
* Copyright 2018 TechNexion Ltd.
*
* Author: Tapani Utriainen <tapani@technexion.com>
* Richard Hu <richard.hu@technexion.com>
* Ray Chang <ray.chang@technexion.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
/*
* Copyright 2018 TechNexion Ltd.
*
* Author: Tapani Utriainen <tapani@technexion.com>
* Richard Hu <richard.hu@technexion.com>
* Ray Chang <ray.chang@technexion.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
.. _ipm_imx:
i.MX IPM example
################
Overview
********
This simple example can be used with multicore i.MX SoCs containing a
Messaging Unit peripheral. It reads the received data from the Messaging Unit
using the IPM and transmits it back unchanged. The information about
/*
* Copyright 2018 TechNexion Ltd.
*
* Author: Tapani Utriainen <tapani@technexion.com>
* Richard Hu <richard.hu@technexion.com>
* Ray Chang <ray.chang@technexion.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
/*
* Copyright 2018 TechNexion Ltd.
*
* Author: Tapani Utriainen <tapani@technexion.com>
* Richard Hu <richard.hu@technexion.com>
* Ray Chang <ray.chang@technexion.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
<pre>cat /proc/iomen
cat: /proc/iomen: No such file or directory
root@scorpion:~#
root@scorpion:~# cat /proc/iomem
00100000-00107fff : 30900000.crypto caam-sm@100000
00901000-0091ffff : 901000.sram sram@901000
30200000-3020ffff : 30200000.gpio gpio@30200000
30210000-3021ffff : 30210000.gpio gpio@30210000
30220000-3022ffff : 30220000.gpio gpio@30220000
30230000-3023ffff : 30230000.gpio gpio@30230000
U-Boot 2022.04-AUTOINC+g5aa5151a53 (May 05 2023 - 17:20:21 +0000)
CPU: i.MX7D rev1.2 at 792 MHz
Reset cause: POR
Model: TechNexion PICO-IMX7D Board and PI baseboard
Board: i.MX7D PICOSOM
I2C: ready
DRAM: 1 GiB
Core: 60 devices, 11 uclasses, devicetree: separate
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
cmake_minimum_required(VERSION 3.8)
set(RPMSG_BASE ../../../../../..)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
#find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(remote_echo)
# +set(ZEPHYR_EXTRA_MODULES driver/ipm)
# find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
/*
==========================================================
========== My linker.ld ==================================
* Copyright (c) 2020, Manivannan Sadhasivam <mani@kernel.org>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/arch/arm/cortex_m/scripts/linker.ld>