Questions tagged [u-boot]

Das U-boot is a GPL'd bootloader for embedded boards supporting multiple processor architectures.

Das U-Boot (Universal Bootloader) is an open source, primary boot loader used in embedded devices. It is available for a number of different computer architectures, including PPC, ARM, MIPS, AVR32, x86, 68k, Nios, and MicroBlaze.

1037 questions
7
votes
10 answers

loading u-Boot in memory instead of flashing it

In my ARM based custom board, I flash u-boot to NAND whenever I do changes on that. (putting some debug statements/modification). Is there any way to directly load the uboot image in RAM memory instead of flashing it every time? For linux kernel…
Yaj
  • 81
  • 1
  • 1
  • 4
7
votes
2 answers

Passing Bootargs via Chosen node in Device Tree not working for Beaglebone Black

As per my understanding chosen node is used to send boot arguments to the kernel. The following is the chosen node of the existing device code (am335x-bone-common.dtsi). chosen { stdout-path = &uart0; }; So, I have modified chosen node to pass…
7
votes
2 answers

Why using a uImage instead of a zImage

I'am trying to learn the difference between a zImage and a uImage. In my understanding uImage is got by running mkimage on the Image and as a result it adds a U-Boot wrapper (i don't know what it contains exactly) that contains a header plus the…
Mouin
  • 1,025
  • 4
  • 19
  • 33
7
votes
2 answers

U-Boot: How to evaluate one environment variable inside another

In U-Boot I have these two environment variables: filepath=myimages kernelfile=${filepath}/uImage.bin When I run this command: echo ${kernelfile} I get this output: ${filepath}/uImage.bin However, I want it to instead evaluate the filepath…
user5071535
  • 1,312
  • 8
  • 25
  • 42
7
votes
3 answers

Linux: boot arguments with U-Boot and Flat Image Tree (FIT)

I am trying to get my own build of U-Boot to boot Linux on a Jetson TK1 board. As we are pushing for verified boot I am using the Flat Image Tree (unifying kernel image, device tree blob, ...) to describe my system. U-Boot can load the ITB file and…
LostBoy
  • 948
  • 2
  • 9
  • 21
7
votes
2 answers

Upload firmware from Flash using U-Boot

I have a problem. My system is an embedded Linux plaform. I am connecting to my board using serial port and I can access U-Boot. I need to extract the complete firmware residing in flash through the console or through Ethernet. It looks like…
user3396423
  • 73
  • 1
  • 1
  • 4
6
votes
1 answer

How to change U-Boot memory map

The U-Boot(2009.03) on MS104-SH4 has the RAM memory map shown below. 0x8c000000 Not for use (4kB) 0x8c001000 for Linux kernel & root file system (3MB) 0x8c400000 for Linux process (28MB) For me, 3MB for Linux kernel & root file system is too small…
mura_no
  • 83
  • 1
  • 2
  • 6
6
votes
2 answers

How to write new MLO and u-boot.img to an SD card without erasing the OS

I have an SD card with a standard Beaglebone Debian image. I also have the MLO and u-boot.img files from building u-boot. I'd like to install the new u-boot on the SD card and then flash the modified image to MMC on a Beaglebone Black. I can flash…
jmilloy
  • 7,875
  • 11
  • 53
  • 86
6
votes
1 answer

What does fatload mmc and bootm means in the uboot?

I am unable to understand these commands like fatload mmc 0 0x3000000 uImage fatload mmc 0 0x2A00000 devicetree.dtb bootm 0x3000000 - 0x2A00000 #fatload mmc 0 0x3000000 uImage. What is it doing? Is it loading uImage as a fat partition and loading…
user11473963
6
votes
2 answers

Running Linux 4.9 on Cortex-M4 STM32F4 (29I-DISC1)

I spend a few days trying to understand but I'm stuck. I get no more than a "Starting kernel..." message after entering 'bootm 8100000' on my STM32F429I-DISC1 board. Before I update uboot from 2011 to 2016 It was a "Starting Kernel..." + UNHANDED…
svalsesia
  • 303
  • 2
  • 13
6
votes
3 answers

U-Boot. Where does it all begin?

Newbie question here. I'm looking at a u-boot boardfile, and it has many functions in it. For example; board_mmc_init(), enet_board_init(), setup_splash_img(), etc. Most of these functions don't get called from within the boardfile. They get called…
Andy J
  • 1,479
  • 6
  • 23
  • 40
6
votes
1 answer

U-boot with redundant environment, fw_setenv does not update both environments

why fw_setenv tool set value of variable only for one environment? I am using uboot with redundant env (#define CONFIG_ENV_OFFSET 0xc0000, #define CONFIG_ENV_OFFSET_REDUND 0x100000 ), and I am going to set value of uboot env variable from linux.…
Yuri
  • 1,179
  • 4
  • 13
  • 27
6
votes
3 answers

How do I find ARM Linux entry point when it fails to uncompress?

I am trying to boot Linux via U-boot on a custom board with i.MX6 (CPU core is ARM Cortex A9) We seem to have ported Das U-Boot(2009.08) successfully. But booting Linux fails at the last U-Boot message: "Starting kernel ..." Here is my relevant…
Atilla Filiz
  • 2,383
  • 8
  • 29
  • 47
6
votes
2 answers

Embedded: C Coding for Ctrl-C interrupt in u-boot terminal

I'm a beginner in embedded programming. I'm working on craneboard (ARM Cortex A8). The source code is available at github. I have created a C code to make an external LED connected via GPIO, to blink. It can be executed in the u-boot console as a…
Gomu
  • 1,004
  • 5
  • 16
  • 36
5
votes
2 answers

U-Boot 2020.04: Probing SPI flash fails - Invalid bus 0 (err=-19)

I'm just compiled U-Boot 2020.04 for a PINE64 ROCK64 media board. It compiles fine without errors. But I run into an issue when I try to probe the SPI flash. The output from U-Boot command line: => sf probe Invalid bus 0 (err=-19) Failed to…
user10008009
1 2
3
69 70