Advertisement
davisroman

PHDR segment not covered by LOAD segment

Jan 4th, 2022
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.06 KB | None
  1. davis@XPS-15-9570:~/uboot-2016.11$ . /opt/poky/mips32r2el/3.4.1/environment-setup-mips32r2el-nf-poky-linux
  2. davis@XPS-15-9570:~/uboot-2016.11$ export CROSS_COMPILE=mipsel-poky-linux-
  3. davis@XPS-15-9570:~/uboot-2016.11$ export ARCH=mips
  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$ git diff -no-pager
  18. diff --git a/arch/mips/Makefile b/arch/mips/Makefile
  19. index efe7e44..82950f7 100644
  20. --- a/arch/mips/Makefile
  21. +++ b/arch/mips/Makefile
  22. @@ -29,6 +29,7 @@ arch-$(CONFIG_CPU_MIPS32_R6) += -march=mips32r6 -Wa,-mips32r6
  23. arch-$(CONFIG_CPU_MIPS64_R1) += -march=mips64 -Wa,-mips64
  24. arch-$(CONFIG_CPU_MIPS64_R2) += -march=mips64r2 -Wa,-mips64r2
  25. arch-$(CONFIG_CPU_MIPS64_R6) += -march=mips64r6 -Wa,-mips64r6
  26. +arch-$(CONFIG_CPU_TAROKO) += -march=mips32 -Wa,-mips32
  27.  
  28. # Allow extra optimization for specific CPUs/SoCs
  29. tune-$(CONFIG_MIPS_TUNE_4KC) += -mtune=4kc
  30. davis@XPS-15-9570:~/uboot-2016.11$ make
  31. scripts/kconfig/conf --silentoldconfig Kconfig
  32. #
  33. # configuration written to .config
  34. #
  35. boot.S
  36. boot.lds
  37. ddr3_dq16.bin
  38. ddr3_dq32.bin
  39. dma_copy.c
  40. generate.sh
  41. init.S
  42. init.lds
  43. makefile_boot
  44. makefile_raminit
  45. in uboot
  46. in nor
  47. rootfs_idx: 3
  48. hconf_idx: 1
  49. userdata_idx: 4
  50. global 0x1000000 0x10000
  51. boot 0 6 0
  52. hconf 6 4 0
  53. kernel 10 36 0
  54. rootfs 46 160 0
  55. userdata 206 50 0
  56. CHK include/config.h
  57. UPD include/config.h
  58. CFG u-boot.cfg
  59. GEN include/autoconf.mk
  60. GEN include/autoconf.mk.dep
  61. CHK include/config/uboot.release
  62. UPD include/config/uboot.release
  63. CHK include/generated/version_autogenerated.h
  64. UPD include/generated/version_autogenerated.h
  65. CHK include/generated/timestamp_autogenerated.h
  66. UPD include/generated/timestamp_autogenerated.h
  67. CC lib/asm-offsets.s
  68. CHK include/generated/generic-asm-offsets.h
  69. UPD include/generated/generic-asm-offsets.h
  70. HOSTCC tools/envcrc.o
  71. WRAP tools/lib/crc32.c
  72. HOSTCC tools/lib/crc32.o
  73. WRAP tools/common/env_embedded.c
  74. HOSTCC tools/common/env_embedded.o
  75. WRAP tools/lib/sha1.c
  76. HOSTCC tools/lib/sha1.o
  77. HOSTLD tools/envcrc
  78. HOSTCC tools/gen_eth_addr
  79. HOSTCC tools/mkenvimage.o
  80. HOSTCC tools/os_support.o
  81. HOSTLD tools/mkenvimage
  82. HOSTCC tools/aisimage.o
  83. HOSTCC tools/atmelimage.o
  84. WRAP tools/common/bootm.c
  85. HOSTCC tools/common/bootm.o
  86. HOSTCC tools/default_image.o
  87. WRAP tools/lib/fdtdec_common.c
  88. HOSTCC tools/lib/fdtdec_common.o
  89. WRAP tools/lib/fdtdec.c
  90. HOSTCC tools/lib/fdtdec.o
  91. HOSTCC tools/fit_common.o
  92. HOSTCC tools/fit_image.o
  93. WRAP tools/common/image-fit.c
  94. HOSTCC tools/common/image-fit.o
  95. HOSTCC tools/image-host.o
  96. tools/image-host.c: In function ‘fit_image_write_sig’:
  97. tools/image-host.c:134:13: warning: passing argument 1 of ‘imagetool_get_source_date’ from incompatible pointer type [enabled by default]
  98. time(NULL));
  99. ^
  100. In file included from tools/mkimage.h:23:0,
  101. from tools/image-host.c:12:
  102. tools/imagetool.h:223:8: note: expected ‘struct image_tool_params *’ but argument is of type ‘const char *’
  103. time_t imagetool_get_source_date(
  104. ^
  105. WRAP tools/common/image.c
  106. HOSTCC tools/common/image.o
  107. HOSTCC tools/imagetool.o
  108. HOSTCC tools/imximage.o
  109. HOSTCC tools/kwbimage.o
  110. WRAP tools/lib/md5.c
  111. HOSTCC tools/lib/md5.o
  112. HOSTCC tools/lpc32xximage.o
  113. HOSTCC tools/mxsimage.o
  114. HOSTCC tools/omapimage.o
  115. HOSTCC tools/pblimage.o
  116. HOSTCC tools/pbl_crc32.o
  117. HOSTCC tools/vybridimage.o
  118. WRAP tools/lib/rc4.c
  119. HOSTCC tools/lib/rc4.o
  120. HOSTCC tools/rkcommon.o
  121. HOSTCC tools/rkimage.o
  122. HOSTCC tools/rksd.o
  123. HOSTCC tools/rkspi.o
  124. HOSTCC tools/socfpgaimage.o
  125. WRAP tools/lib/sha256.c
  126. HOSTCC tools/lib/sha256.o
  127. WRAP tools/common/hash.c
  128. HOSTCC tools/common/hash.o
  129. HOSTCC tools/ublimage.o
  130. HOSTCC tools/zynqimage.o
  131. HOSTCC tools/zynqmpimage.o
  132. WRAP tools/lib/libfdt/fdt.c
  133. HOSTCC tools/lib/libfdt/fdt.o
  134. WRAP tools/lib/libfdt/fdt_ro.c
  135. HOSTCC tools/lib/libfdt/fdt_ro.o
  136. WRAP tools/lib/libfdt/fdt_rw.c
  137. HOSTCC tools/lib/libfdt/fdt_rw.o
  138. WRAP tools/lib/libfdt/fdt_strerror.c
  139. HOSTCC tools/lib/libfdt/fdt_strerror.o
  140. WRAP tools/lib/libfdt/fdt_wip.c
  141. HOSTCC tools/lib/libfdt/fdt_wip.o
  142. WRAP tools/lib/libfdt/fdt_region.c
  143. HOSTCC tools/lib/libfdt/fdt_region.o
  144. WRAP tools/lib/libfdt/fdt_sw.c
  145. HOSTCC tools/lib/libfdt/fdt_sw.o
  146. HOSTCC tools/gpimage.o
  147. HOSTCC tools/gpimage-common.o
  148. HOSTCC tools/dumpimage.o
  149. HOSTLD tools/dumpimage
  150. HOSTCC tools/mkimage.o
  151. HOSTLD tools/mkimage
  152. HOSTCC tools/proftool
  153. HOSTCC tools/fdtgrep.o
  154. HOSTLD tools/fdtgrep
  155. CC arch/mips/cpu/time.o
  156. CC arch/mips/cpu/interrupts.o
  157. CC arch/mips/cpu/cpu.o
  158. LD arch/mips/cpu/built-in.o
  159. AS arch/mips/cpu/start.o
  160. CC arch/mips/lib/cache.o
  161. AS arch/mips/lib/cache_init-taroko.o
  162. CC arch/mips/lib/bootm.o
  163. LD arch/mips/lib/built-in.o
  164. CC arch/mips/lib/ashldi3.o
  165. CC arch/mips/lib/ashrdi3.o
  166. CC arch/mips/lib/lshrdi3.o
  167. AR arch/mips/lib/lib.a
  168. CC board/realtek/rlxboard/rlxboard.o
  169. CC board/realtek/rlxboard/serial.o
  170. CC board/realtek/rlxboard/flash.o
  171. CC board/realtek/rlxboard/dma.o
  172. CC board/realtek/rlxboard/efuse.o
  173. CC board/realtek/rlxboard/gpio.o
  174. AS board/realtek/rlxboard/bsp_init.o
  175. AS board/realtek/rlxboard/write_reg_mask.o
  176. AS board/realtek/rlxboard/verify.o
  177. LD board/realtek/rlxboard/built-in.o
  178. CC cmd/boot.o
  179. CC cmd/bootm.o
  180. CC cmd/help.o
  181. CC cmd/version.o
  182. CC cmd/bdinfo.o
  183. CC cmd/console.o
  184. CC cmd/elf.o
  185. CC cmd/load.o
  186. CC cmd/mem.o
  187. CC cmd/misc.o
  188. CC cmd/net.o
  189. CC cmd/fephy.o
  190. CC cmd/pcmcia.o
  191. CC cmd/sf.o
  192. CC cmd/ximg.o
  193. CC cmd/nvedit.o
  194. LD cmd/built-in.o
  195. CC common/init/board_init.o
  196. LD common/init/built-in.o
  197. CC common/main.o
  198. CC common/exports.o
  199. CC common/hash.o
  200. CC common/autoboot.o
  201. CC common/board_f.o
  202. CC common/board_r.o
  203. CC common/board_info.o
  204. CC common/bootm.o
  205. CC common/bootm_os.o
  206. CC common/env_attr.o
  207. CC common/env_callback.o
  208. CC common/env_flags.o
  209. CC common/env_sf.o
  210. CC common/flash.o
  211. CC common/splash.o
  212. CC common/env_common.o
  213. CC common/console.o
  214. CC common/dlmalloc.o
  215. CC common/image.o
  216. CC common/memsize.o
  217. CC common/stdio.o
  218. CC common/cli_simple.o
  219. CC common/cli.o
  220. CC common/cli_readline.o
  221. CC common/command.o
  222. CC common/s_record.o
  223. CC common/xyzModem.o
  224. CC common/hw_parse_env_flash.o
  225. CC common/cmd_setethaddr.o
  226. CC common/cmd_setipaddr.o
  227. CC common/cmd_update.o
  228. LD common/built-in.o
  229. CC disk/part.o
  230. LD disk/built-in.o
  231. LD drivers/adc/built-in.o
  232. CC drivers/block/blk_legacy.o
  233. LD drivers/block/built-in.o
  234. CC drivers/crypto/fsl/sec.o
  235. LD drivers/crypto/fsl/built-in.o
  236. LD drivers/crypto/rsa_mod_exp/built-in.o
  237. LD drivers/crypto/built-in.o
  238. LD drivers/dfu/built-in.o
  239. LD drivers/hwmon/built-in.o
  240. CC drivers/input/input.o
  241. LD drivers/input/built-in.o
  242. LD drivers/mailbox/built-in.o
  243. LD drivers/memory/built-in.o
  244. LD drivers/misc/built-in.o
  245. CC drivers/pcmcia/tqm8xx_pcmcia.o
  246. LD drivers/pcmcia/built-in.o
  247. LD drivers/phy/marvell/built-in.o
  248. LD drivers/pwm/built-in.o
  249. LD drivers/reset/built-in.o
  250. CC drivers/rtc/date.o
  251. LD drivers/rtc/built-in.o
  252. LD drivers/soc/built-in.o
  253. LD drivers/sound/built-in.o
  254. LD drivers/spmi/built-in.o
  255. LD drivers/sysreset/built-in.o
  256. LD drivers/thermal/built-in.o
  257. LD drivers/timer/built-in.o
  258. LD drivers/tpm/built-in.o
  259. LD drivers/twserial/built-in.o
  260. LD drivers/video/bridge/built-in.o
  261. LD drivers/video/built-in.o
  262. LD drivers/watchdog/built-in.o
  263. LD drivers/built-in.o
  264. LD drivers/dma/built-in.o
  265. LD drivers/gpio/built-in.o
  266. LD drivers/i2c/built-in.o
  267. LD drivers/mmc/built-in.o
  268. CC drivers/mtd/mtdcore.o
  269. In file included from drivers/mtd/mtdcore.c:34:
  270. include/linux/log2.h:19:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]
  271. 19 | int ____ilog2_NaN(void);
  272. | ^~~
  273. CC drivers/mtd/mtd_uboot.o
  274. LD drivers/mtd/built-in.o
  275. LD drivers/mtd/onenand/built-in.o
  276. CC drivers/mtd/spi/sf_probe.o
  277. CC drivers/mtd/spi/spi_flash.o
  278. In file included from drivers/mtd/spi/spi_flash.c:18:
  279. include/linux/log2.h:19:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]
  280. 19 | int ____ilog2_NaN(void);
  281. | ^~~
  282. CC drivers/mtd/spi/sf_params.o
  283. CC drivers/mtd/spi/sf.o
  284. LD drivers/mtd/spi/built-in.o
  285. CC drivers/net/rtl8168.o
  286. LD drivers/net/built-in.o
  287. LD drivers/net/phy/built-in.o
  288. LD drivers/pci/built-in.o
  289. LD drivers/power/built-in.o
  290. LD drivers/power/battery/built-in.o
  291. LD drivers/power/domain/built-in.o
  292. LD drivers/power/fuel_gauge/built-in.o
  293. LD drivers/power/mfd/built-in.o
  294. LD drivers/power/pmic/built-in.o
  295. LD drivers/power/regulator/built-in.o
  296. CC drivers/serial/serial.o
  297. LD drivers/serial/built-in.o
  298. CC drivers/spi/spi.o
  299. CC drivers/spi/rts_qspi.o
  300. LD drivers/spi/built-in.o
  301. LD drivers/usb/common/built-in.o
  302. LD drivers/usb/dwc3/built-in.o
  303. LD drivers/usb/emul/built-in.o
  304. LD drivers/usb/eth/built-in.o
  305. LD drivers/usb/gadget/built-in.o
  306. LD drivers/usb/gadget/udc/built-in.o
  307. LD drivers/usb/host/built-in.o
  308. LD drivers/usb/musb-new/built-in.o
  309. LD drivers/usb/musb/built-in.o
  310. LD drivers/usb/phy/built-in.o
  311. LD drivers/usb/ulpi/built-in.o
  312. CC fs/fs.o
  313. LD fs/fat/built-in.o
  314. LD fs/built-in.o
  315. CC lib/zlib/zlib.o
  316. LD lib/zlib/built-in.o
  317. CC lib/crc7.o
  318. CC lib/crc8.o
  319. CC lib/crc16.o
  320. CC lib/gunzip.o
  321. CC lib/initcall.o
  322. CC lib/lmb.o
  323. CC lib/ldiv.o
  324. CC lib/net_utils.o
  325. CC lib/qsort.o
  326. CC lib/rc4.o
  327. CC lib/list_sort.o
  328. CC lib/hashtable.o
  329. CC lib/errno.o
  330. CC lib/display_options.o
  331. CC lib/crc32.o
  332. CC lib/ctype.o
  333. CC lib/div64.o
  334. CC lib/hang.o
  335. CC lib/linux_compat.o
  336. CC lib/linux_string.o
  337. CC lib/membuff.o
  338. CC lib/slre.o
  339. CC lib/string.o
  340. CC lib/tables_csum.o
  341. CC lib/time.o
  342. CC lib/vsprintf.o
  343. CC lib/panic.o
  344. CC lib/strto.o
  345. CC lib/strmhz.o
  346. LD lib/built-in.o
  347. CC net/checksum.o
  348. CC net/arp.o
  349. CC net/bootp.o
  350. CC net/eth_legacy.o
  351. CC net/eth_common.o
  352. CC net/net.o
  353. CC net/nfs.o
  354. CC net/ping.o
  355. CC net/tftp.o
  356. LD net/built-in.o
  357. LD test/built-in.o
  358. LD test/dm/built-in.o
  359. CC examples/standalone/stubs.o
  360. LD examples/standalone/libstubs.o
  361. CC examples/standalone/hello_world.o
  362. LD examples/standalone/hello_world
  363. OBJCOPY examples/standalone/hello_world.srec
  364. OBJCOPY examples/standalone/hello_world.bin
  365. LDS u-boot.lds
  366. LD u-boot
  367. mipsel-poky-linux-ld.bfd: u-boot: error: PHDR segment not covered by LOAD segment
  368. make: *** [u-boot] Error 1
  369. davis@XPS-15-9570:~/uboot-2016.11$
  370.  
Advertisement
RAW Paste Data Copied
Advertisement