Package: u-boot-omap
Version: 2020.07+dfsg-1
Severity: normal
I've successfully installed u-boot to an SD card and set my BeagleBone
Black to not boot from MMC. However, when u-boot runs, it cannot
boot the kernel:
======================================================================
U-Boot SPL 2020.07+dfsg-1 (Jul 08 2020 - 23:29:02 +0000)
Trying to boot from MMC1
U-Boot 2020.07+dfsg-1 (Jul 08 2020 - 23:29:02 +0000)
CPU : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM: 512 MiB
WDT: Started with servicing (60s timeout)
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 0:1... <ethaddr> not set.
Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is c8:df:84:dc:f1:6a
, eth1: usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unrecognized filesystem type **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
1634 bytes read in 7 ms (227.5 KiB/s)
## Executing script at 80000000
4260352 bytes read in 277 ms (14.7 MiB/s)
SCRIPT FAILED: continuing...
...
======================================================================
For some reason, the u-boot environment has `board_name=BBG1` so it
thinks the board is a BeagelBone Green. If I reset the environment,
the board_name variable is set to:
======================================================================
=> env default -a -
## Resetting to default environment
=> pri
...
board_name=am335x
...
======================================================================
Which likewise fails to boot:
======================================================================
=> boot
WARNING: Could not determine device tree to use
...
======================================================================
If I set the board_name variable to `A335BNLT` then it can boot OK.
However, I cannot save the environment using an ext2 root:
======================================================================
=> setenv board_name A335BNLT
=> saveenv
Saving Environment to FAT... Unable to use mmc 0:1... Failed (1)
======================================================================
If I try to build an image using a vfat /boot partition then
flash-kernel causes an error while installing the kernel:
======================================================================
Installing /usr/lib/linux-image-4.19.0-9-armmp/am335x-boneblack.dtb into
/boot/dtbs/4.19.0-9-armmp/./am335x-boneblack.dtb
Installing new am335x-boneblack.dtb.
/usr/bin/ln: failed to create symbolic link '/boot/dtb-4.19.0-9-armmp':
Operation not permitted
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-4.19.0-9-armmp (--configure):
installed linux-image-4.19.0-9-armmp package post-installation script
subprocess returned error exit status 1
======================================================================
So the package is unfortunatley unusable on the BeagleBone Black.
-- System Information:
Debian Release: 10.4
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: armhf (armv7l)
Kernel: Linux 4.19.0-9-armmp (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set
LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default
locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "C.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory