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
4
votes
3 answers

gcc: error: unrecognized command line option

I'm trying create an u-boot image file. But have i have some error. gcc version: 7.3.0 make PATH=/opt/CodeSourcery/Sourcery_G++_Lite/arm-2011.03-41-arm-none-linux-gnueabi:$PATH export CROSS_COMPILE=arm-linux-gnueabihf-(or…
EBBulut
  • 63
  • 1
  • 1
  • 6
4
votes
1 answer

U-Boot with OpenSBI on HiFive Unleashed in QEMU: Store/AMO access fault

I've been trying to get U-Boot to work in QEMU for the sifive_u machine. I've tried using both the built in OpenSBI 'BIOS' and building my own OpenSBI, but I keep running into the same issue. I'm building U-Boot using the riscv64 toolchain from the…
p0llard
  • 439
  • 6
  • 17
4
votes
1 answer

memory location for linux kernel for u-boot

Currently, I have a ARM device that uses U-boot to load android OS. I wish to replace android with linux. So what I've done is loaded a copy of linux compiled for ARM devices onto a sd-card, boot into the U-boot bootloader. The problem now is what…
sean
  • 11,164
  • 8
  • 48
  • 56
4
votes
1 answer

Custom u-boot environment variables using buildroot

How do you add a new set of custom environment variables to u-boot using buildroot as the os build system? I attempted to patch the include/configs/rpi.h using an external tree patch to add a new variable but kconfig got grumpy (patch shown after…
Chris
  • 367
  • 4
  • 13
4
votes
0 answers

aarch64-linux-gnu-cpp: error: unrecognized command line option ‘-mthumb’

I am trying to build U-boot. After doing make xconfig I run make CROSS_COMPILE=aarch64-linux-gnu- and I encounter this error: OBJCOPY u-boot.srec OBJCOPY u-boot.bin OBJCOPY u-boot.hex fatal: bad revision 'HEAD' Building…
Saleh
  • 1,819
  • 1
  • 17
  • 44
4
votes
4 answers

How to configure fw-utils to store environment on FAT filesystem?

I'm struggling with setting U-boot env variables from userspace using fw_setenv. U-Boot uses the env variables stored on a file u-boot.env on /dev/mmcblk0p1. This is a FAT32 partition on a SD card. I also have the tools fw_setenv and fw_printenv…
OrangeTux
  • 11,142
  • 7
  • 48
  • 73
4
votes
1 answer

Is it possible: TFTP in u-boot to load root filesystem to SD card? (I don't want NFS)

I know we can use NFS, but I just don't want to use it. (don't want to keep network connection to NFS server all the time). I know we can use tftp in u-boot to load kernel and device-tree! But can we use tftp in u-boot to download root-filesystem,…
Jerry
  • 71
  • 1
  • 5
4
votes
1 answer

include/config.h: fatal error: configs/.h: No such file or directory

I am using Poky distro version 2.0.1 to build u-boot v2015.07 (porting task). But, I've run into the following error | In file included from ./include/common.h:18:0: | include/config.h:5:22: fatal error: configs/.h: No such file or directory | In…
Thảo M. Hoàng
  • 1,224
  • 3
  • 20
  • 42
4
votes
2 answers

Is there Linux or U-Boot support to read a MAC address from a chip at startup?

My company builds custom hardware in such low quantities that it doesn't make financial sense to buy a whole block of MAC addresses. What chip, if any, could I design into my embedded Linux board that could be used to automatically assign a…
edj
  • 523
  • 7
  • 17
4
votes
3 answers

embedded linux ARM booting address

I follow some document to boot embedded Linux on ARM board (ex: Freescale Vybrid tower) via sdcard. in the document there are steps to build uImage and write u-boot into sdcard as below: sudo dd if=u-boot.imx of=/dev/sdX bs=512 seek=2 mkimage -A…
dvn0zzz
  • 337
  • 3
  • 13
4
votes
2 answers

How can I build a Linux distro?

Disclaimer: This is my first time delving into the embedded Linux world (Ubuntu and Debian), despite being a Linux user for some time and having used distros such as Raspbian, Armstrong(beaglebone) and embedded debian. The title may also seem…
morcillo
  • 1,091
  • 5
  • 19
  • 51
4
votes
2 answers

How to check if file exists in u-boot script?

I would like, from my u-boot script, to check the existence of a file on a device before running the image on this device. Indeed, this would ensure to have access to the requested device before booting from it. How could I test the file existence…
Nitch
  • 41
  • 1
  • 5
4
votes
0 answers

Can I use wildcards in U-Boot?

I'm attempting to run a simple u-boot script that will load a file from an SDcard into RAM before the Linux Kernel starts booting, and so far have had success with the 'load' command. Unfortunately, I have to hardcode the filename into this u-boot…
Tom Bailey
  • 41
  • 1
4
votes
1 answer

Beaglebone Black not booting due to modification of uEnv.txt

I accidently modified uEnv.txt file located in eMMC of my Beaglebone black. Now the board is not booting. I can not even see BBB for serial connection from terra term. How can I get access to the board? If I can just access to uboot I could reflash…
Frank Coool
  • 91
  • 1
  • 6
4
votes
2 answers

Why doesn't U-Boot disable the console output

I have this system which is accessed by a serial Debug Port. I want to disable all of the output, that was made during the U-Boot boot. Therefore there is the setenv silent 1 parameter, which i put into the BOOTCMD string like: #define…
user3085931
  • 1,757
  • 4
  • 29
  • 55