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

U-boot compilation fails

Open loglux opened this issue 3 years ago • 2 comments

vagrant@ubuntu-xenial:~/u-boot$ make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf- am335x_boneb
lack_defconfig
make[1]: 'am335x_boneblack_defconfig' is up to date.
vagrant@ubuntu-xenial:~/u-boot$ make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
scripts/kconfig/conf  --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
scripts/kconfig/Makefile:46: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
Makefile:478: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.r
elease'.  Stop.
vagrant@ubuntu-xenial:~/u-boot$ 
vagrant@ubuntu-xenial:~/u-boot$ cp am335x_boneblack_defconfig .config
vagrant@ubuntu-xenial:~/u-boot$ make CROSS_COMPILE=arm-cortex_a8-linux-gnueabihf-
scripts/kconfig/conf  --silentoldconfig Kconfig
*
* Restart config...
*
*
* U-Boot 2017.01 Configuration
*
Architecture select
  1. ARC architecture (ARC) (NEW)
> 2. ARM architecture (ARM)
  3. AVR32 architecture (AVR32) (NEW)
  4. Blackfin architecture (BLACKFIN) (NEW)
  5. M68000 architecture (M68K) (NEW)
  6. MicroBlaze architecture (MICROBLAZE) (NEW)
  7. MIPS architecture (MIPS) (NEW)
  8. NDS32 architecture (NDS32) (NEW)
  9. Nios II architecture (NIOS2) (NEW)
  10. OpenRISC architecture (OPENRISC) (NEW)
  11. PowerPC architecture (PPC) (NEW)
  12. Sandbox (SANDBOX) (NEW)
  13. SuperH architecture (SH) (NEW)
  14. SPARC architecture (SPARC) (NEW)
  15. x86 architecture (X86) (NEW)
  16. Xtensa architecture (XTENSA) (NEW)
choice[1-16]: 

loglux avatar Feb 04 '21 12:02 loglux

compiling with soft float works, namely arm-cortex_a8-linux-gnueabi

BigSully avatar Feb 26 '21 12:02 BigSully

See https://github.com/PacktPublishing/Mastering-Embedded-Linux-Programming-Second-Edition/issues/6 , might solve the issue

robamu avatar Jul 27 '21 16:07 robamu