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
104
votes
1 answer

Image vs zImage vs uImage

What is the difference between them? I know that u-boot needs a kernel in uImage format. The system I use first boots from stage 1 loader and then it calls u-boot. I want to discard u-boot and directly boot from stage 1 loader. Which type of kernel…
yildizabdullah
  • 1,895
  • 5
  • 24
  • 37
55
votes
3 answers

what is the use of SPL (secondary program loader)

I am confused in clearing my concepts regarding these three questions why do we need a secondary program loader ? in which memory it gets loaded and relocated ? what is the difference between system internal memory and RAM ? as far as I…
theadnangondal
  • 1,546
  • 3
  • 14
  • 28
23
votes
3 answers

Why Device Tree Structure (DTS) file is needed both in bootloader and kernel source code?

Bootloaders like U-Boot that do not implement the Open Firmware API, are expected to pass to the kernel a binary form of the flattened device tree - LinuxFDTBlob Why are the DTS files present in the kernel as well? Isn't that redundant? As an…
Hamzahfrq
  • 696
  • 1
  • 6
  • 25
18
votes
1 answer

how to make "if" and comparison statement in uboot?

i'm newbie in uboot and tftp programing based on this url, there is how to make if statement like this if imi $addr; then echo Image OK; else echo Image corrupted!!; fi and this is my "if" : => setenv a true => printenv a a=true => setenv b…
Egy Mohammad Erdin
  • 3,402
  • 6
  • 33
  • 57
18
votes
3 answers

u-boot : Relocation

This one is a basic question related to u-boot. Why does the u-boot code relocate itself ? Ok, it makes sense if u-boot is executing from NOR-flash or boot ROM space but if it runs from SDRAM already why does it have to relocate itself once again ? …
Leo Messi
  • 822
  • 10
  • 19
17
votes
8 answers

Getting U-boot's Version from Userspace

Does anyone know of a way to get U-boot version installed from userspace? There is the fw_printenv command that provides access to U-boot's environment variables, but not the version.
waffleman
  • 4,159
  • 10
  • 39
  • 63
15
votes
1 answer

cc1: error: bad value (armv5) for -march= switch

I am compiling u-boot for beagle bone black as per the steps mentioned on this link http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader:U-Boot and getting the following error. cc1: error: bad value (armv5) for -march=…
user2910111
  • 342
  • 2
  • 3
  • 11
15
votes
4 answers

How do I clear environment variables previously saved with u-boot?

I am working with an embedded linux kit that is running u-boot. In order to get everything booting properly, I had to modify some environment variables and store them with the 'saveenv' command. Now I would like to go back and see what the defaults…
KyleL
  • 1,379
  • 2
  • 13
  • 35
15
votes
1 answer

How to get into uboot command prompt?

I have a system that booted into Linux using UBOOT. I can see that it is booting when I connect to it via serial port. How can I stop it booting UBOOT and get the UBOOT command prompt? During boot, I can see the following messages on attached…
mans
  • 17,104
  • 45
  • 172
  • 321
14
votes
1 answer

Understand U-Boot memory footprint

I don't understand what is happening in RAM when loading U-Boot. I'm working on a Xilinx Zynq ZC702 evaluation kit and I'm trying to load a Linux kernel on it using U-Boot. So I used the Xilinx tool Vivado and the SDK to generate a BOOT.bin file…
AwaX
  • 448
  • 3
  • 8
  • 19
14
votes
2 answers

How u-boot bootloader reads/saves its environment Variables?

How u-boot bootloader reads/saves its environment Variables ? How we declare address of u-boot environment Variable section in Flash ? From description at here : The U-Boot environment is a block of memory that is kept on persistent storage and…
Thang Le
  • 1,419
  • 1
  • 17
  • 25
13
votes
1 answer

What is different between u-boot.bin and u-boot.img

I just compiled the U-Boot bootloader and I see a few file names in the u-boot program directory which are: u-boot.bin u-boot.img u-boot.lds u-boot.srec Basically, I'm interested in the files with extensions .img and .bin. What is different between…
FanQt
  • 218
  • 1
  • 3
  • 9
13
votes
2 answers

Understanding Linux load address for U-Boot process

I'm trying to understand embedded Linux principles and can't figure out addresses at u-boot output. For example, I have UDOO board based on i.MX6 quad processor and I got following output from U-Boot: U-Boot 2013.10-rc3 (Jan 20 2014 -…
Ivo Slanina
  • 131
  • 1
  • 1
  • 3
12
votes
2 answers

Nand partitioning in u-boot

I am working on an Embedded ARM9 development board. In that i want rearrange my nand partitions. Can anybody tell me how to do that ? In my u-boot shell if i give the command mtdparts which gives following information . Boardcon> mtdparts …
yuvaeasy
  • 823
  • 2
  • 10
  • 18
12
votes
4 answers

How does the bootloader pick up the command after a "restarting system with command"?

Looking in the android source for the reboot command we find the following line: __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, \ LINUX_REBOOT_CMD_RESTART2, argv[optind]); Which is the standard Linux system call to reboot the system…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
1
2 3
69 70