Advertisement
davisroman

Compiling uboot-2016.11 with mips-based yocto musl internal toolchain

Dec 29th, 2021
1,282
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. davis@XPS-15-9570:~/uboot-2016.11$ . /opt/poky/mips-musl/2.1/environment-setup-mips32r2-poky-linux-musl
  2. davis@XPS-15-9570:~/uboot-2016.11$ export ARCH=mips
  3. davis@XPS-15-9570:~/uboot-2016.11$ export CROSS_COMPILE=mips-poky-linux-musl-
  4. davis@XPS-15-9570:~/uboot-2016.11$ cp ~/Downloads/uboot_2016.11_rts3916n_defconfig .config
  5. davis@XPS-15-9570:~/uboot-2016.11$ make oldconfig
  6.   HOSTCC  scripts/basic/fixdep
  7.   HOSTCC  scripts/kconfig/conf.o
  8.   SHIPPED scripts/kconfig/zconf.tab.c
  9.   SHIPPED scripts/kconfig/zconf.lex.c
  10.   SHIPPED scripts/kconfig/zconf.hash.c
  11.   HOSTCC  scripts/kconfig/zconf.tab.o
  12.   HOSTLD  scripts/kconfig/conf
  13. scripts/kconfig/conf  --oldconfig Kconfig
  14. #
  15. # configuration written to .config
  16. #
  17. davis@XPS-15-9570:~/uboot-2016.11$ make
  18. scripts/kconfig/conf  --silentoldconfig Kconfig
  19. #
  20. # configuration written to .config
  21. #
  22. boot.S
  23. boot.lds
  24. ddr3_dq16.bin
  25. ddr3_dq32.bin
  26. dma_copy.c
  27. generate.sh
  28. init.S
  29. init.lds
  30. makefile_boot
  31. makefile_raminit
  32. in uboot
  33. in nor
  34. rootfs_idx:  3
  35. hconf_idx:  1
  36. userdata_idx:  4
  37. global 0x1000000 0x10000
  38. boot 0 6 0
  39. hconf 6 4 0
  40. kernel 10 36 0
  41. rootfs 46 160 0
  42. userdata 206 50 0
  43.   CHK     include/config.h
  44.   UPD     include/config.h
  45.   CFG     u-boot.cfg
  46.   GEN     include/autoconf.mk
  47.   GEN     include/autoconf.mk.dep
  48.   CHK     include/config/uboot.release
  49.   UPD     include/config/uboot.release
  50.   CHK     include/generated/version_autogenerated.h
  51.   UPD     include/generated/version_autogenerated.h
  52.   CHK     include/generated/timestamp_autogenerated.h
  53.   UPD     include/generated/timestamp_autogenerated.h
  54.   CC      lib/asm-offsets.s
  55.   CHK     include/generated/generic-asm-offsets.h
  56.   UPD     include/generated/generic-asm-offsets.h
  57.   HOSTCC  tools/envcrc.o
  58.   WRAP    tools/lib/crc32.c
  59.   HOSTCC  tools/lib/crc32.o
  60.   WRAP    tools/common/env_embedded.c
  61.   HOSTCC  tools/common/env_embedded.o
  62.   WRAP    tools/lib/sha1.c
  63.   HOSTCC  tools/lib/sha1.o
  64.   HOSTLD  tools/envcrc
  65.   HOSTCC  tools/gen_eth_addr
  66.   HOSTCC  tools/mkenvimage.o
  67.   HOSTCC  tools/os_support.o
  68.   HOSTLD  tools/mkenvimage
  69.   HOSTCC  tools/aisimage.o
  70.   HOSTCC  tools/atmelimage.o
  71.   WRAP    tools/common/bootm.c
  72.   HOSTCC  tools/common/bootm.o
  73.   HOSTCC  tools/default_image.o
  74.   WRAP    tools/lib/fdtdec_common.c
  75.   HOSTCC  tools/lib/fdtdec_common.o
  76.   WRAP    tools/lib/fdtdec.c
  77.   HOSTCC  tools/lib/fdtdec.o
  78.   HOSTCC  tools/fit_common.o
  79.   HOSTCC  tools/fit_image.o
  80.   WRAP    tools/common/image-fit.c
  81.   HOSTCC  tools/common/image-fit.o
  82.   HOSTCC  tools/image-host.o
  83. tools/image-host.c: In function ‘fit_image_write_sig’:
  84. tools/image-host.c:134:13: warning: passing argument 1 of ‘imagetool_get_source_date’ from incompatible pointer type [enabled by default]
  85.              time(NULL));
  86.              ^
  87. In file included from tools/mkimage.h:23:0,
  88.                  from tools/image-host.c:12:
  89. tools/imagetool.h:223:8: note: expected ‘struct image_tool_params *’ but argument is of type ‘const char *
  90.  time_t imagetool_get_source_date(
  91.         ^
  92.   WRAP    tools/common/image.c
  93.   HOSTCC  tools/common/image.o
  94.   HOSTCC  tools/imagetool.o
  95.   HOSTCC  tools/imximage.o
  96.   HOSTCC  tools/kwbimage.o
  97.   WRAP    tools/lib/md5.c
  98.   HOSTCC  tools/lib/md5.o
  99.   HOSTCC  tools/lpc32xximage.o
  100.   HOSTCC  tools/mxsimage.o
  101.   HOSTCC  tools/omapimage.o
  102.   HOSTCC  tools/pblimage.o
  103.   HOSTCC  tools/pbl_crc32.o
  104.   HOSTCC  tools/vybridimage.o
  105.   WRAP    tools/lib/rc4.c
  106.   HOSTCC  tools/lib/rc4.o
  107.   HOSTCC  tools/rkcommon.o
  108.   HOSTCC  tools/rkimage.o
  109.   HOSTCC  tools/rksd.o
  110.   HOSTCC  tools/rkspi.o
  111.   HOSTCC  tools/socfpgaimage.o
  112.   WRAP    tools/lib/sha256.c
  113.   HOSTCC  tools/lib/sha256.o
  114.   WRAP    tools/common/hash.c
  115.   HOSTCC  tools/common/hash.o
  116.   HOSTCC  tools/ublimage.o
  117.   HOSTCC  tools/zynqimage.o
  118.   HOSTCC  tools/zynqmpimage.o
  119.   WRAP    tools/lib/libfdt/fdt.c
  120.   HOSTCC  tools/lib/libfdt/fdt.o
  121.   WRAP    tools/lib/libfdt/fdt_ro.c
  122.   HOSTCC  tools/lib/libfdt/fdt_ro.o
  123.   WRAP    tools/lib/libfdt/fdt_rw.c
  124.   HOSTCC  tools/lib/libfdt/fdt_rw.o
  125.   WRAP    tools/lib/libfdt/fdt_strerror.c
  126.   HOSTCC  tools/lib/libfdt/fdt_strerror.o
  127.   WRAP    tools/lib/libfdt/fdt_wip.c
  128.   HOSTCC  tools/lib/libfdt/fdt_wip.o
  129.   WRAP    tools/lib/libfdt/fdt_region.c
  130.   HOSTCC  tools/lib/libfdt/fdt_region.o
  131.   WRAP    tools/lib/libfdt/fdt_sw.c
  132.   HOSTCC  tools/lib/libfdt/fdt_sw.o
  133.   HOSTCC  tools/gpimage.o
  134.   HOSTCC  tools/gpimage-common.o
  135.   HOSTCC  tools/dumpimage.o
  136.   HOSTLD  tools/dumpimage
  137.   HOSTCC  tools/mkimage.o
  138.   HOSTLD  tools/mkimage
  139.   HOSTCC  tools/proftool
  140.   HOSTCC  tools/fdtgrep.o
  141.   HOSTLD  tools/fdtgrep
  142.   CC      arch/mips/cpu/time.o
  143.   CC      arch/mips/cpu/interrupts.o
  144.   CC      arch/mips/cpu/cpu.o
  145.   LD      arch/mips/cpu/built-in.o
  146.   AS      arch/mips/cpu/start.o
  147.   CC      arch/mips/lib/cache.o
  148. {standard input}: Assembler messages:
  149. {standard input}:80: Error: opcode not supported on this processor: mips1 (mips1) `cache 21,0($2)'
  150. {standard input}:84: Error: opcode not supported on this processor: mips1 (mips1) `cache 16,0($2)'
  151. {standard input}:147: Error: opcode not supported on this processor: mips1 (mips1) `cache 21,0($4)'
  152. {standard input}:210: Error: opcode not supported on this processor: mips1 (mips1) `cache 17,0($4)'
  153. make[1]: *** [arch/mips/lib/cache.o] Error 1
  154. make: *** [arch/mips/lib] Error 2
  155. davis@XPS-15-9570:~/uboot-2016.11$
  156.  
Advertisement
RAW Paste Data Copied
Advertisement