Mastering-Embedded-Linux-Programming-Second-Edition icon indicating copy to clipboard operation
Mastering-Embedded-Linux-Programming-Second-Edition copied to clipboard

Cannot build u-boot for beaglebone black

Open guyo13 opened this issue 5 years ago • 2 comments

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.

guyo13 avatar Jun 12 '19 12:06 guyo13

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

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 34:03:de:6a:34:f9 , eth1: usb_ether Press SPACE to abort autoboot in 2 seconds switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 ** Unrecognized filesystem type ** ** Unrecognized filesystem type ** switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... 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... switch to partitions #0, OK mmc1(part 0) is current device SD/MMC found on device 1 ** No partition table - mmc 1 ** ** No partition table - mmc 1 ** Error: "bootcmd_nand0" not defined starting USB...

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

guyo13 avatar Jun 13 '19 13:06 guyo13

did you managed to work it out?

jgav1 avatar May 26 '20 00:05 jgav1