booting error from sd card on beaglebone black

Hi

I am trying to boot from uSD card, but I am getting some error. and the board not booted.

I worked by reffering to this site : https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black

I don’t know why it didn’t boot.

please let me know how to resolve it.

here is the terminal messge when it is booting

U-Boot SPL 2018.09-rc3-dirty (Apr 12 2019 - 05:32:30 -0700)
Trying to boot from MMC1
Loading Environment from EXT4… ** File not found /boot/uboot.env **

** Unable to read “/boot/uboot.env” from mmc0:1 **

U-Boot 2018.09-rc3-dirty (Apr 12 2019 - 05:32:30 -0700)

CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver ‘omap_hsmmc’
No match for driver ‘omap_hsmmc’
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4… ** File not found /boot/uboot.env **

** Unable to read “/boot/uboot.env” from mmc0:1 **
Board: BeagleBone Black
not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net: eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] …
board_rev=[00C0] …
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt …
Checking for: /boot.scr …
Checking for: /boot/boot.scr …
Checking for: /boot/uEnv.txt …
gpio: pin 55 (gpio 55) value is 1
29 bytes read in 12 ms (2 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt…
gpio: pin 56 (gpio 56) value is 1
Running uname_boot …
loading /boot/vmlinuz-4.14.106-bone-rt-r20 …
9028096 bytes read in 581 ms (14.8 MiB/s)
debug: [enable_uboot_overlays=] …
loading /boot/dtbs/4.14.106-bone-rt-r20/am335x-boneblack.dtb …
60915 bytes read in 29 ms (2 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable…
debug: [console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait] …
debug: [bootz 0x82000000 - 0x88000000] …

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ffee000, end 8ffffdf2 … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.106-bone-rt-r20 (son@ubuntu) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #1 PREEMPT RT Fri Apr 12 05:04:15 PDT 2019
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0x9d000000
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] random: get_random_bytes called from start_kernel+0x8b/0x37a with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 452740K/524288K available (9216K kernel code, 970K rwdata, 4052K rodata, 1024K init, 638K bss, 22396K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf800000 - 0xbfe00000 ( 6 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0a00000 (10208 kB)
[ 0.000000] .init : 0xc0f00000 - 0xc1000000 (1024 kB)
[ 0.000000] .data : 0xc1000000 - 0xc10f2948 ( 971 kB)
[ 0.000000] .bss : 0xc10fc3e8 - 0xc119bd8c ( 639 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 39504 entries in 78 pages
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU priority boosting: priority 1 delay 500 ms.
[ 0.000000] No expedited grace period (rcu_normal_after_boot).
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000024] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000031] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000432] timer_probe: no matching timers found
[ 0.000613] Console: colour dummy device 80x30
[ 0.000744] WARNING: Your ‘console=ttyO0’ has been replaced by ‘ttyS0’
[ 0.000747] This ensures that you still see kernel messages. Please
[ 0.000749] update your kernel commandline.
[ 0.000766] Calibrating delay loop… 995.32 BogoMIPS (lpj=1990656)
[ 0.019174] pid_max: default: 32768 minimum: 301
[ 0.019414] Security Framework initialized
[ 0.019423] Yama: becoming mindful.
[ 0.019496] AppArmor: AppArmor initialized
[ 0.019687] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.019695] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.020576] CPU: Testing write buffer coherency: ok
[ 0.020625] CPU0: Spectre v2: using BPIALL workaround
[ 0.021383] Setting up static identity map for 0x80100000 - 0x80100054
[ 0.021650] Hierarchical SRCU implementation.
[ 0.024801] EFI services will not be available.
[ 0.026282] devtmpfs: initialized
[ 0.039844] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.040257] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.040284] futex hash table entries: 256 (order: 1, 8192 bytes)
[ 0.043895] xor: measuring software checksum speed
[ 0.083220] arm4regs : 1216.000 MB/sec
[ 0.123174] 8regs : 869.000 MB/sec
[ 0.163169] 32regs : 1051.000 MB/sec
[ 0.163177] xor: using function: arm4regs (1216.000 MB/sec)
[ 0.163195] pinctrl core: initialized pinctrl subsystem
[ 0.163870] DMI not present or invalid.
[ 0.164299] NET: Registered protocol family 16
[ 0.167399] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.184689] omap_hwmod: debugss: _wait_target_disable failed
[ 0.229585] OMAP GPIO hardware version 0.1
[ 0.240405] No ATAGs?
[ 0.240422] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.251524] raid6: using algorithm int32x8 gen() 0 MB/s
[ 0.251542] raid6: … xor() 0 MB/s, rmw enabled
[ 0.251550] raid6: using intx1 recovery algorithm
[ 0.258161] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.260271] SCSI subsystem initialized
[ 0.260866] usbcore: registered new interface driver usbfs
[ 0.260928] usbcore: registered new interface driver hub
[ 0.261036] usbcore: registered new device driver usb
[ 0.261485] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.262575] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 0.262814] media: Linux media interface: v0.10
[ 0.262863] Linux video capture interface: v2.00
[ 0.262919] pps_core: LinuxPPS API ver. 1 registered

Hey :slight_smile:

I’ve run into the very same problem.
I created two partitions:

  • smaller FAT: I copied the
  • MLO (secondary bootloader)
  • u-boot.img on it- Ext4: It contains the:
  • the kernel and device tree under /boot
  • rootfs
    When I insert the SD card into my BBB and power it up while pressing S2, I get the very same error message:

"Loading Environment from EXT4… ** File not found /boot/uboot.env **

** Unable to read “/boot/uboot.env” from mmc0:1 *"

I don’t really understand it. It looks like my bootloader on the first partition didn’t even get started. Furthermore it seems to look for a file which I don’t have (uboot.env). But even if I did have it, my /boot folder in on the second partition, not on the first one…

Did you manage to resolve it?

Thank you in advance!

It's not an error.. /boot/uboot.env is an "environment" file, such
that when you run "saveenv" that's where it would be located, but your
using a different partition layout, so either patch u-boot or just
ignore it..

Regards,