Skip to main content
Share Your Experience: Take the 2024 Developer Survey
23 votes

Linux - couldn't mount RDWR because of unsupported optional features (400)

The ext4 feature (400) is the new metadata_csum feature. If this feature is enabled and old tools are used to mount the filesystem they will only be able to mount read-only. https://ext4.wiki.kernel....
jjcf89's user avatar
  • 332
18 votes

How to extract files from uImage?

U-Boot brings its own dumpimage tool (find it in the tools directory of your U-Boot tree) Of course it works with simple images, but it also supports the old-style multi images $ ~2/tools/dumpimage -...
Uwe Geuder's user avatar
9 votes
Accepted

How do I tell which device tree blob (dtb file) I'm using?

I'm way late on this, but I implemented this script and I'll address this for anyone who finds this using an internet search engine. This computer on module can be put on almost any off the shelf TS ...
Mark Featherston's user avatar
8 votes

uboot write kernel into mmc partition

The short answer to burning u-boot to the mmc is probably tftp ${loadaddr} u-boot.bin mmc partconf 0 ${emmc_boot_ack} ${emmc_boot_part} 1 mmc write ${fileaddr} 0 800 mmc partconf 0 ${emmc_boot_ack} ${...
bob2's user avatar
  • 181
7 votes
Accepted

Linux - couldn't mount RDWR because of unsupported optional features (400)

The error "EXT4-fs : couldn't mount RDWR because of unsupported optional features (400)" is due to different versions between the partition formatter (mkfs.ext4) and the mounter. You have two options:...
tormes's user avatar
  • 139
5 votes

How to extract files from uImage?

In case there are several images inside here is a quick bash script to extract them all into the files image_0, image_1, …: #!/bin/bash src_file=uImage declare -ia sizes=( $(mkimage -l "$src_file" |...
phk's user avatar
  • 5,973
5 votes
Accepted

Getting U-Boot to load dtb from FIT image

The answer to this exact problem comes from understanding that U-Boot tries to be extremely flexible and this can lead to some confusion at times. Looking at the provided environment we can see that ...
Tom Rini's user avatar
  • 495
4 votes

Access root filesystem from U-boot

I guess you need to Follow the Third stage of U-boot. The third stage is the loading of the Linux kernel. However, before the Linux kernel takes control, u-boot passes a command line to the kernel ...
Vinood NK Maheshwari's user avatar
3 votes

U-boot 2016.07: ext4fs_devread read outside partition

(I will leave my answer here for googlers, because it took good three days to figure it out) The latest and greatest e2fsprogs (>1.43) has turned on 64bit feature for EXT4 filesystems. You can verify ...
Roman Saveljev's user avatar
3 votes

Linux kernel hangs at "Starting kernel ..."

I have had faced the same issue and have found a solution. The issue is in one of the u-boot structure field that stores the size of the uncompressed linux kernel. The u-boot is not populating this ...
Sachin Mokashi's user avatar
3 votes

Linux kernel hangs at "Starting kernel ..."

May be you can dump the memory of the linux early prints using following procedure. The cause may be, kernel is booting but it hung before console init. Also put prints in kernel entry point of uboot ...
Rajeshkumar's user avatar
3 votes

U-Boot shell - show memory usage (like Linux free command)

The answer is no, in terms of free(1) type information. We simply do not do that type of accounting and then have the ability to report it back. The closest we have is 'bdinfo' (or bdi for short): &...
Tom Rini's user avatar
  • 495
3 votes

How to load files from an EMMC's General Purpose Partition or Boot Partition, using Uboot

We have managed to access GP partitions from U-Boot. U-boot 2017 didn't recognize our GP partitions due to not supporting MMC version 5.1 (5.0 was last supported and therefore fallback to version 4.0 ...
Stef Boerrigter's user avatar
3 votes

u-boot can't save environment parameters when 'bootm 'specified

I am assuming that you are calling this at the u-boot command line. bootcmd tftpboot 0x80800000 192.168.2.2:uImage2; bootm The important note here is that the semicolon is a command separator. A ...
jc__'s user avatar
  • 2,635
3 votes

Getting U-Boot to load dtb from FIT image

add load in fdt node fdt@1 { description = "Flattened Device Tree blob"; data = /incbin/("arch/arm/boot/dts/tx6.dtb"); type = "flat_dt"; arch = "arm"; load = <0x18000000> ...
user1979289's user avatar
3 votes
Accepted

No more output is seen on the console after "Starting Kernel..."

Since I did not receive any answers/suggestions I finally decided to go through a painful git bisect operation (~13 iterations) in between the two tags: v4.10.1 (good) & v4.11.1 (bad). This lead ...
malat's user avatar
  • 3,082
3 votes
Accepted

When can Linux boot with a Read-Only Root Filesystem

At boot, you are supposed to check your filesystems to see if the system was shut down properly or if it crashed, and perform the necessary recovery actions in the latter case. On modern journaled ...
telcoM's user avatar
  • 98.1k
3 votes
Accepted

Flashing U-boot on beaglebone black

The README file for the board, which is found at board/ti/am335x/README in the source tree has a section on writing to the eMMC. It talks about Falcon Mode, which is having U-Boot run Linux, but ...
Tom Rini's user avatar
  • 495
3 votes
Accepted

Building Kernel Image for Embedded Linux Platform

Building embedded linux is an extremely broad yet very arcane topic, not sure if it has a good fit in either the EE.SE or the Unix/Linux.SE site. Some of the books that address your questions can be ...
MarkU's user avatar
  • 146
3 votes
Accepted

U-Boot "Wrong Ramdisk Image Format" with initramfs on BeagleBone black

Simple answer You need to enable CONFIG_LEGACY_IMAGE_FORMAT in U-Boot: Go to the u-boot source directory. Type: $ make menuconfig In Boot images -> Enable support for the legacy image format Exit ...
csimmonds's user avatar
3 votes
Accepted

How the startup code access the filesystem to load the kernel under /boot directory to RAM when the filesystem is mounted by the kernel?

Bootloaders contain their own file system drivers, that’s how they can load the kernel and associated files (the initramfs) before the kernel loads. These drivers are typically simpler than the kernel’...
Stephen Kitt's user avatar
2 votes

Disabling PHY auto-negotiation during Linux boot process on Xilinx

Question 2: I believe those prints are from uboot. If so, I believe you have "CONFIG_PHY_RESET" defined - could you please check your uboot configuration for for that? To disable this feature, you'd ...
GeminiDakota's user avatar
2 votes
Accepted

ICMP - Destination unreachable (Port unreachable)

The problem was with configuration of tftpd-hpa server on host. According to guide the file /etc/default/tftpd-hpa must be something like: TFTP_USERNAME="tftp" TFTP_DIRECTORY="/home/bogdan_liulko/...
Dropper's user avatar
  • 195
2 votes
Accepted

uboot mmc card already partitioned

Yes — the hardware partitioning is a permanent operation that can only be performed once. You will need to replace your eMMC or get a new board if you want to redo the hardware partitioning. ...
GeminiDakota's user avatar
2 votes

How to create Uboot Initramfs Image for arm64

After installing the proper uboot tools in host machine, i am able to get the AARCH64 initramfs image successfully. Cmd: sudo apt-get install u-boot-tools root@OptiPlex-790:~$ mkimage -A arm64 -O ...
Rajeshkumar's user avatar
2 votes

u-boot how to mark bad blocks

https://community.nxp.com/thread/334536#comment-453692 the error is related to a problem in the flashing of the board, that is: you flash a new image incorrectly - you do not erase whole ...
sourcejedi's user avatar
  • 50.6k
2 votes

How to extract files from uImage?

7z "just works" for me, though this may be specific to OpenWRT and SquashFS. I tried it based on a comment on the OpenWRT forums. $ file image.bin image.bin: u-boot legacy uImage, OpenWrt ...
Codebling's user avatar
  • 805
2 votes

How to specify U-Boot not to use uramdisk

My guess is that it is not running the sdboot that is in uEnv.txt but rather the sdboot that is in the default environment. Evidence of this is that you don't see Copying Device Tree from SD to RAM......
Murray Jensen's user avatar
2 votes

Change kernel command line parameters for the next boot on OpenWRT

A quick search of OpenWrt wiki under Das U-Boot Environment... "Das U-Boot uses a small amount of space on the flash storage usually on the same partition it is stored on to store some important ...
jc__'s user avatar
  • 2,635
2 votes

Enabling saveenv command in u-boot for baltos ir2110

The problem was with the version of u-boot. The u-boot-2017-01 version does not support environment macros configuration from the configuration file. This has to be done in the header file for the ...
Aditya Purohit's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible