PacktPublishing / Mastering-Embedded-Linux-Programming-Third-Edition

Mastering Embedded Linux Programming Third Edition, published by Packt
MIT License
532 stars 151 forks source link

RE: First off and Secondly #54

Closed silver2row closed 2 years ago

silver2row commented 2 years ago

Hello,

Thank you for making this book. It is finally a good read. The more I learn, the more I can function with my own set of settings and standards. Outside of being grateful here...

  1. I have come across an error in u-boot while compiling with the crosstool-ng toolchain.
 make
scripts/kconfig/conf  --syncconfig Kconfig
  CFG     u-boot.cfg
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     spl/include/autoconf.mk
  UPD     include/generated/timestamp_autogenerated.h
  ENVC    include/generated/env.txt
  ENVP    include/generated/env.in
  ENVT    include/generated/environment.h
  CC      lib/asm-offsets.s
cc1: error: bad value (‘generic-armv7-a’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake tigerlake cooperlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native
make[1]: *** [scripts/Makefile.build:147: lib/asm-offsets.s] Error 1
make: *** [Makefile:1965: prepare0] Error 2
  1. I have tried numerous ways to get around it. Do you know if this still works for u-boot?

First: CROSS_COMPILE=/location/to/the/toolchain
Second: make am335x_evm_defconfig
Third: make

This is creating the issue from above. I am only on chapter 3 but the interesting book keeps trying to make me perform better at Linux. Send rations!

silver2row commented 2 years ago

Forget whatever I was saying. u-boot compiles just like you stated.