How to use the arm trusted firmware with a raspberry pi - raspberry-pi

I am pretty new to arm architecture. I am trying to understand the arm trusted firmware and how to use it
My test device is a raspberry pi 4 and is currently running Ubuntu.
My question is how to boot the raspberry pi using arm trusted firmware?
Another naive question that follows is can I also boot ubuntu along with this firmware?
I am pretty new to this any help would really be appreciated
Thanks & Regards

Related

Twincat/BSD on Raspberry PI?

Is it possible or did someone manage to get TwinCAT BSD running on a raspberry pi?
I heard that ARM devices are not yet supported by this OS, but on the beckhoff website it is stated:
Quote: "FreeBSD supports both 32 and 64 bit platforms and makes scalable systems possible with ARM CPUs extending up to powerful Xeon CPUs"
Source: https://www.beckhoff.com/en-us/products/ipc/software-and-tools/twincat-bsd/
If not, would it be possible via a virtual machine running on the raspberry pi?
Or does it really need to run on top of a x86 or x64 CPU?
PS: I know that it's possible to get it running on VirtualBox on Windows, but I am specifically asking about a solution with a raspberry pi.
TcBSD/TwinCat is currently only available for x86 (32 bit) and x64 (64 bit) Intel and officially only supported on their industrial/embedded hardware.
FreeBSD, however is supported on Raspberry PI:
Raspberry Pi 3/4
I've never tried, but you should be able to install FreeBSD on a Rock Pi X which is compatible with many Raspberry Pi Hats but is Intel based. The Rock Pi X also runs Windows 10 and Ubuntu.
On the question of whether or not you could run TC/BSD on unsupported hardware:
You’d likely need to modify it and it would depend on FreeBSD working on the RockPi X first.

Configuring Barebox bootloader for Raspberry Pi CM4

Advice on working with barebox bootloader on Raspberry Pi Cmpute Module 4 will be helpful.
I recently got my hands on a RPi CM4 Lite and now I want to build Yocto image with barebox as bootloader. I have few doubts before I get started.
How should I do the Barebox configuration? For example, for raspberrypi3 we can have machine config in conf/local.conf as:
BAREBOX_CONFIG_raspberrypi3 = "rpi_defconfig"
BAREBOX_IMAGE_SRC_raspberrypi3 = "images/barebox-raspberry-pi-3.img"
COMPATIBLE_MACHINE_pn-barebox_raspberrypi3 = "raspberrypi3"
For RPi CM4, I am using MACHINE="raspberrypi4-64". How should this be used for barebox config?
In order to boot from uSD (for CM4 Lite) how should I copy the bootloader files? Will there be any difference between BCM283x RPi like RPi2/3 and BCM2711 based RPi CM4 Lite? In the Barebox manual steps are given for BCM283x machines.
I am trying to understand how boot process happens for RPi CM4 with barebox bootloader and yocto. My goal is to build an update with RAUC and Barebox.
Has anyone tried to configure barebox for RPi CM4?
Your help will be much appreciated.
Thanks in advance.
Starting with barebox v2022.08.0, there's now first upstream barebox support for the Raspberry Pi 4. There's still stuff missing, e.g. Ethernet for network boot, but Linux can be booted from SD. If you are willing to help with getting it to run on the CM4, you can mention that on the mailing list: https://lists.infradead.org/mailman/listinfo/barebox

How do I make a raspberry pi raspbian application?

I am struggling on how to make a Raspberry Pi app for Raspbian (On a raspberry pi). I have searched and searched for hours but I still can't find out how to make one. There are apps that I can use but I cannot install them. Should I use python??... Please help me!!...
I found a few visual editors like XOJO, I am knew to "RASPBERRY PI" stuff.
It's just a bare machine you can cover it with anything you want. It's basically Lightweight Linux distro which we install mostly on the PI. Can support wide range of applications but IOT related products are more often developed using PI. If this is the case you can start here using android also.
https://developer.android.com/things/hardware/raspberrypi

Installing Windows 10 IoT Core on simulated devices (possibly Azure Hub)

Notice: This might sound like a not-so-thought-through question to
some people.
Hello,
I need to make a simple demo application running on Windows 10 IoT Core and test it properly for educational purposes. The problem is that I have no available Raspberry Pi devices (or anything embedded). Apparently, it is possible to set-up a simulated Raspberry Pi device running on Azure Hub - like explained in Microsoft's documentation.
Is it possible to install Windows 10 IoT on such a simulated device? If not, what are the other approaches to simulating Raspberry devices and running Windows IoT on them?
You can run the Windows 10 IoT Core on the VMware workstation:
More details can be found in the How to run Windows 10 IoT Core in VMware Workstation
That won't work. It is not running an OS of any kind, it just makes it look like you have node running on a Pi. You need to look at something like qemu. I've run Raspbian in qemu. Never tried Windows IoT core.
https://www.qemu.org/

Using MSMQ on Raspberry Pi 2 with Windows 10

I want to create an application that runs on Raspberry Pi 2 and send messages with some collected data using MSMQ. I have installed Windows 10 on my Raspberry Pi.
I have created a test project (Windows Universal type) for this purpose using MS Visual Studio 2015. Also I can't use a lot of references (for example System.Messaging), because of the Raspberry architecture reasons as I understand.
Is it even possible to use MSMQ on Raspberry Pi 2? Or help me please to find any analogs of MSMQ to send messages from Raspberry Pi.
Thank you in advance!
Windows 10 IoT Core is meant for IoT scenarios, which means that you'll ultimately have to connect to the cloud. The best approach here would be to connect your Windows 10 Universal App on the Raspberry Pi 2 the Azure using Service Bus Queues. This MSDN mag article explains the approach: https://msdn.microsoft.com/en-us/magazine/dn574801.aspx.
In terms of implementation, the Service Bus docs for Azure are at http://azure.microsoft.com/en-us/documentation/services/service-bus/. Queues are covered at https://azure.microsoft.com/en-us/documentation/articles/service-bus-dotnet-how-to-use-queues/. the Azure SDK will be available to your app on the Pi.
I hope this helps.