1,070 questions
1
vote
0
answers
62
views
U-boot recipe failing to apply patch
I am trying to make GPIOs start up low based on a patch to my yocto u-boot recipe. I apply a patch to my u-boot recipe using devtool. The patch adds new inputs to the board_init file in u-boot (which ...
-1
votes
1
answer
77
views
Passing kernel lsm parameter through U-boot
I'm trying to set
lsm=landlock,lockdown,yama,integrity,apparmor,bpf
on a Arch Linux ARM system.
The options seems to be set in /boot/boot.txt. In its original form, it looks like this:
# After ...
-1
votes
0
answers
94
views
U-boot loading kernel from FIT fail
I using u-boot v2017.09 for rk3566, i want to load kernel from FIT(kernel, dtb, ramdisk).
I hardcoded bootargs(boot_get_cmdline) in u-boot:
int boot_get_cmdline(struct lmb *lmb, ulong *cmd_start, ...
1
vote
0
answers
50
views
Problems with building SPL in buildroot 2015.01
I need your help or advice on how to assemble the SPL(MLO) for my b2232 board from St. When building without SPL, uboot.bin is being assembled, and I can run it via JTAG like this, but I'm trying to ...
1
vote
0
answers
246
views
How to add an UBOOT environment Variable with a Buildroot configuration
I am trying to create a buildroot config (with make menuconfig) that adds a uboot environment variable.
I detected already BR2_TARGET_UBOOT_DEFAULT_ENV_FILE but this one replaces all existing ...
0
votes
0
answers
200
views
U-Boot and MAC addresses in production
I'm porting a board over to a newer version of Yocto and this includes U-Boot. In the old U-Boot the MAC address was set in uEnv.txt by setting the ethaddr variable. This worked well as every board ...
2
votes
1
answer
225
views
u-boot fails to boot for qemu on x86_64 platform
I have compiled u-boot from source for x86_64 platform.
git clone https://source.denx.de/u-boot/u-boot.git
cd u-boot
make qemu-x86_64_defconfig
The u-boot.bin binary is generated successfully.
...
0
votes
0
answers
269
views
u-boot 4 byte addressing spi nor flash on boot
How do I force u-boot to read spi nor flash in 4 byte addressing mode rather than switching from 3 bytes to 4?
Hardware:
I have a custom-built board based on mt7628nn with 128 MB DDR2 RAM and 32 mb ...
3
votes
0
answers
105
views
Implementing U-Boot bootcount for TI AM62x
I'm interested in porting the bootcount feature in u-boot to the TI AM62x SoC. The AM62x appears to take inspiration from its predecessor, the popular AM33x. Both SoCs have an RTC register block ...
0
votes
0
answers
69
views
Boot U-boot from PC instead of SD Card
I am new to Linux and I have a question about U-boot. Currently I am using an Agilex 7 FPGA development board that is connected to my PC through PCIe, and I am uploading my u-boot.bin from the SD Card ...
0
votes
1
answer
113
views
STM U-Boot Version Compatibility with Linux 5.15-stm32mp-r2.2
I am currently using Linux kernel version v5.15-stm32mp-r2.tar.gz and U-Boot version v2021.10-stm32mp-r2.tar.gz for my project based on the STM32MP family. I have recently upgraded the Linux kernel to ...
4
votes
1
answer
600
views
What is necessary in the RISC-V boot process?
I'm struggling to understand what U-Boot and/or Coreboot does that a RISC-V SBI (Supervisor Binary Interface) doesn't. I understand that the SBI's function in abstracting features, but I don't ...
-1
votes
1
answer
147
views
Reset driver not probed in uboot while port uboot to mainline
Currently im porting the vendor's uboot2022.10 for spacemit k1 soc on bananapi bpif3/lpi3a to the mainline version, and encounter some problems.
I've add the driver definition in defconfig
...
0
votes
1
answer
288
views
Building ARM Trusted Firmware for i.MX8 - bl31 hangs when setting Exception Vector
I'm trying to build ARM Trusted Firmware and U-Boot for the i.MX8M Plus on a Phytec phyCORE-i.MX 8M Plus/phyBOARD-Pollux dev kit.
When I attempt to run it, I find that execution hangs after the U-Boot ...
1
vote
0
answers
117
views
Can I inspect the rootfs from this QSPI dump?
I was messing around with a cheap IP camera from Amazon. The board uses an Ingenic T20, which seems to be very common for this application. I desoldered the QSPI NOR Flash and dumped it with another ...
0
votes
0
answers
163
views
How do I get u-boot to boot a signed (non-Linux) firmware image on my AM64x?
I have a working system, based on the EVM board for the TI Sitara AM64x.
It is running u-boot 2024.04, compiled from the TI SDK 10 and can boot my ELF file containing my app and threatX OS using the ...
0
votes
1
answer
411
views
RAUC not working due to problems with fw_printenv & fw_setenv when setting up Custom Yocto Image
I'm setting up a custom Yocto distro that will go into a custom board (right now still using dev board).
I have custom partitions A & B for boot & root and I'm implementing RAUC, I've reached ...
-1
votes
1
answer
85
views
Not getting past TPL (Device tree issues?)
I am trying to upgrade a yocto build to scarthgap.
On kirkstone everything worked fine and we got a bootable image.
While doing so, I struggle with u-boot. Already had to use 2023.07.02, because the ...
0
votes
0
answers
246
views
"Synchronous Abort" error when running baremetal code in U-Boot on SK-TDA4VM (Cortex-R5)
I’m trying to run a simple baremetal code on U-Boot on my SK-TDA4VM board (Texas Instruments), which has ARM Cortex-A72 and Cortex-R5 processors. The code works fine when executed via Code Composer ...
0
votes
1
answer
199
views
dtb_overlay don't work more than one overlay
I am trying to enable all UARTs on beaglebone with adding their Device Tree overlays. I am able to do it by adding uEnv.txt like this:
uboot_overlay_addr4=/lib/firmware/BB-UART1-00A0.dtbo
...
0
votes
0
answers
139
views
Where is the code about jumps to kernel code section in U-Boot?
I've been studying how U-Boot gets loaded into RAM, and how it loads the kernel into RAM and then transfers control to the kernel.
First, the MLO loads the U-Boot program into RAM. Through the U-Boot ...
1
vote
0
answers
218
views
USB not working in u-boot on Raspberry Pi 4B with custom Yocto image
On my Raspberry Pi 4B board, I'm trying to load file from USB during my boot.scr script, but when I call USB start or USB reset command, I get following error:
starting USB...
Bus xhci_pci: ...
0
votes
0
answers
100
views
Set a static MAC address on STM32MP157 board with OTP fuses via U-Boot
I have programmed the OTP fuses in U-Boot to set the MAC by following this guide.
https://wiki.st.com/stm32mpu/wiki/How_to_update_OTP_with_U-Boot#:~:text=The%20fuse%20command%20allows%20you,(for%20a%...
0
votes
1
answer
153
views
How to use the U-Boot API from a bare-metal ARM program loaded by U-Boot?
Is there a way to call U-Boot API functions from within an ARM program loaded with the go command ?
I see that the U-Boot API is available after startup at an address defined in the environment ...
0
votes
1
answer
565
views
issue in Rpi4-8gb When I try change bcm2711-rpi-4-b.dtb in Debian-12 64 bits
neuberfran@raspberrypi:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
neuberfran@raspberrypi:~...
1
vote
2
answers
1k
views
Cannot interrupt uboot "Hit any key to stop autoboot:" with pySerial
I have a python script that is supposed to run a Linux update on an iMX6 device. I can reboot Linux via serial connection. I can see the device rebooting (console output is transferred). However, when ...
0
votes
1
answer
502
views
Uboot/Linux Kernel. Pure SD Boot
Having trouble booting linux from an SD card on a RK3566 Board
Here is my partition structure.
Part Start LBA End LBA Name
Attributes
Type GUID
Partition GUID
...
-1
votes
2
answers
1k
views
Custom U-Boot writes to environment file but cannot read from it
I am trying to boot up a virtualized machine using QEMU. I have created a raw disk image named disk.img. It contains two partitions: the first being a FAT32 bootable partition and the second being a ...
0
votes
0
answers
140
views
Failed to build envtools
I want to build envtools for my Ti chip.
And I use the command to build it, but I got error below.
#make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- envtools
scripts/kconfig/conf --syncconfig Kconfig
*...
1
vote
0
answers
760
views
How to choose the boot partition for u-boot?
U-boot with raspberry pi defaults to booting from the first FAT partition on the image.
To work well with a system update tool (RAUC) u-boot needs to somehow know to change to the updated partition ...
0
votes
0
answers
378
views
ext4 boot partition setup for a raspberrypi with u-boot
I'm trying to make a raspberry-pi CM4 work with u-boot and an ext4 boot partition instead of the regular vfat. This is necessary for an OTA update to happen also for the boot partition with a tool ...
0
votes
0
answers
189
views
How to run u-boot shell command from kernel image written in c?
I'm creating standalone application for u-boot that is run as a os kernel image. I need to do some setup on custom hardware and after I'm done I would like to set some u-boot env variables. In u-boot ...
1
vote
0
answers
235
views
How can I open directories of ext4 format filesystem partition in uboot
fs_opendir is not supported in ext4 filesystem, but I need to access files in a ext4 filesystem directory in uboot.
Here is what I found in uboot source code:
#if CONFIG_IS_ENABLED(FS_EXT4)
{
...
0
votes
1
answer
738
views
U-boot Loading Issue from SD Card
I am trying to boot an embedded system on the Beaglebone Black (BBB). I'm using Buildroot to build my boot files and root filesystem. After setting up a boot partition with the necessary files on an ...
2
votes
1
answer
293
views
Unable to hit breakpoint with JTAG gdb on Raspberry Pi
I prepared an SD card with RPi OS Lite and have modified my config.txt to enable jtag and point it to boot u-boot.bin file, instead of default kernel.img file. When I insert an SD card, my RPi-3B+ is ...
0
votes
1
answer
264
views
Starting a firmware on imx7d m4 core with bootaux, on u-boot, fail when using TCM memory but not when using DDR memory
I want to load a firmware on the imx7d M4 core.
I am using a colibri imx7d-eMMC (MCIMX7D5EVM10S) SoC with a yocto linux build installed which include u-boot bootloader (details below).
When I load the ...
12
votes
1
answer
819
views
How to stop a U-Boot macro using itest
I need to create a 3-step macro in U-Boot:
Use dhcp to download an image to memory. This sets filesize
Test if $filesize > $SOMELIMIT, print a message, and stop
Would write the downloaded image to ...
0
votes
0
answers
775
views
How to add the bootargs parameter between the bootcmds parameters
These days I'm playing with my old ARM Chromebook model "SNOW". As you probably know,this kind of Netbook can load an external operating system using the sd card slot or the usb port. ...
0
votes
1
answer
1k
views
Yocto. How to keep u-boot splash screen and then how to keep kernel splash screen on
I am porting Yocto into my board. I wrote u-boot & kernel graphics drivers for my display. Everything works fine. The only problem I have is:
u-boot splash screen is displayed for a while when ...
1
vote
1
answer
2k
views
Buildroot, U-boot: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I'm using an image I created for Orangepi Zero with Buildroot. Trying to manually load a device tree overlay.
Here's what I do in Uboot command line:
load mmc 0:1 ${kernel_addr_r} /boot/zImage
load ...
0
votes
2
answers
6k
views
ERROR: Kernel panic - not syncing: No working init found. Try passing init= option to kernel
I have built the busybox minimal file system which works fine if I mount the rootfs from the SD card. But, if i convert the file system into initramfs and load it in the ram, it is not able to run the ...
0
votes
1
answer
1k
views
How to flash whole emmc as single image using fastboot
I have a proprietary ARM device with very limited tools and SDK, but I can manage to start an Android bootloader in RAM. On the host PC, I see:
# fastboot devices
SERIAL Android Fastboot
# lsusb
...
0
votes
0
answers
354
views
eMMC Memory Layout for SWUpdate
In order to implement SWUpdate Dual Copy (A/B) update on an eMMC embedded Linux sistem, I'd like to partitioning the eMMC so as to have two kernel partitions with the goal of switch from uImageA to ...
0
votes
1
answer
223
views
Mismatch in device-tree found by U-Boot and deployed
We are currently in the process of migrating a yocto project from whatever is compatible with Xilinx v2020.2 to whatever is compatible with Xilinx v2022.2. One particular problem is the mismatch ...
0
votes
1
answer
735
views
How to modify default empty string on U-Boot to stop Autoboot in Yocto
I am using the SAMA5D27-SOM1-EK-SD evaluation kit and I would like to make some changes to U-Boot, in particular the Autoboot settings. I am able to load a kernel image using Yocto, and by default ...
0
votes
1
answer
730
views
Yocto rootfs allocation when booting from RAM
I'm currently working on a test build for an embedded yocto build that runs from RAM.
Using yocto I generate a fitimage containing an initramfs which is run from RAM on boot. In the past this has ...
1
vote
1
answer
816
views
Enabling UART TTY for an RK3128 Embedded Linux Device
Background
I have an embedded Android device device that uses the U-Boot bootloader. The system also uses the Busybox suite.
I have access to the U-Boot shell through a UART port and can dump, modify, ...
1
vote
0
answers
51
views
Uboot compilation issue on Zync7045 Xilinx
I am compiling u-boot v2020.01 source code separately (petalinux not involved) for Xilinx Zync706 Board on Ubuntu 18.04.06 LTS
Executed the below following command for compilation.
export ...
0
votes
1
answer
3k
views
re-build buildroot to include custom device tree dts modification
Hi I was able build a system image and successfully boot my Orange PI Zero 3 using buildroot.
In my endeavour of learning Linux Device Drivers, I now need to modify the device tree. To do this I ...
0
votes
1
answer
291
views
U-boot cross compilation: why isn't make using chosen toolchain?
I have an odd problem, that I have noticed. For the purpose of building ancient uboot (2012.10), I am using an external toolchain (uClibc-ng). I am building ARM target. Here's the command that I am ...