Mastering-Embedded-Linux-Programming-Second-Edition
Mastering-Embedded-Linux-Programming-Second-Edition copied to clipboard
Cannot build u-boot for beaglebone black
After building the toolchain and the example sqlite:
git clone git://git.denx.de/u-boot.git
cd u-boot/
git checkout v2017.01
export CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
export ARCH=arm
make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf- am335x_boneblack_defconfig
make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
And I get the following:
.
.
.
CC arch/arm/cpu/armv7/cache_v7.o
cc1: warning: target CPU does not support THUMB instructions
{standard input}: Assembler messages:
{standard input}:42: Error: selected processor does not support dsb sy' in ARM mode {standard input}:46: Error: selected processor does not support
isb sy' in ARM mode
{standard input}:240: Error: selected processor does not support dsb sy' in ARM mode {standard input}:244: Error: selected processor does not support
isb sy' in ARM mode
{standard input}:368: Error: selected processor does not support dsb sy' in ARM mode {standard input}:460: Error: selected processor does not support
dsb sy' in ARM mode
{standard input}:464: Error: selected processor does not support isb sy' in ARM mode {standard input}:594: Error: selected processor does not support
dsb sy' in ARM mode
scripts/Makefile.build:280: recipe for target 'arch/arm/cpu/armv7/cache_v7.o' failed
make[1]: *** [arch/arm/cpu/armv7/cache_v7.o] Error 1
Makefile:1217: recipe for target 'arch/arm/cpu/armv7' failed
make: *** [arch/arm/cpu/armv7] Error 2
If I try to use the latest master branch of u-boot it compiles but I have to use
make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf- am335x_boneblack_vboot_defconfig
And then when trying to boot u-boot I get "Unrecognized filesystem type" on the serial and it continuously tries to boot from PXE...
Assistance would be appreciated.
More specifically, this is what happens when I try to use the MLO and u-boot.img from the latest version (serial output):
U-Boot 2019.07-rc4-00001-g68b90e57bc (Jun 13 2019 - 16:00:26 +0300)
CPU : AM335X-GP rev 2.1 Model: TI AM335x BeagleBone Black DRAM: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from FAT... ** No partition table - mmc 0 ** Loading Environment from MMC... *** Warning - bad CRC, using default environment
And on my computer: sudo fdisk -l :
Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x20b3fe10
Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 2048 133119 131072 64M c W95 FAT32 (LBA) /dev/mmcblk0p2 133120 2230271 2097152 1G 83 Linux
So there are partition tables and I copied MLO and u-boot.img, I also tried u-boot.bin and it didn't work
did you managed to work it out?