Advertisement
davisroman

Compiling realtek uboot-2016.11 with sourcery toolchain, 2014.05

Dec 29th, 2021
279
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. davis@XPS-15-9570:~/uboot-2016.11$ export PATH=$PATH:/opt/mips-sourcery-2014.05/bin
  2. davis@XPS-15-9570:~/uboot-2016.11$ export CROSS_COMPILE=mips-linux-gnu-
  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
  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 --silentoldconfig Kconfig
  14. #
  15. # configuration written to .config
  16. #
  17. boot.S
  18. boot.lds
  19. ddr3_dq16.bin
  20. ddr3_dq32.bin
  21. dma_copy.c
  22. generate.sh
  23. init.S
  24. init.lds
  25. makefile_boot
  26. makefile_raminit
  27. in uboot
  28. in nor
  29. rootfs_idx: 3
  30. hconf_idx: 1
  31. userdata_idx: 4
  32. global 0x1000000 0x10000
  33. boot 0 6 0
  34. hconf 6 4 0
  35. kernel 10 36 0
  36. rootfs 46 160 0
  37. userdata 206 50 0
  38. CHK include/config.h
  39. UPD include/config.h
  40. CFG u-boot.cfg
  41. GEN include/autoconf.mk
  42. GEN include/autoconf.mk.dep
  43. CHK include/config/uboot.release
  44. UPD include/config/uboot.release
  45. CHK include/generated/version_autogenerated.h
  46. UPD include/generated/version_autogenerated.h
  47. CHK include/generated/timestamp_autogenerated.h
  48. UPD include/generated/timestamp_autogenerated.h
  49. CC lib/asm-offsets.s
  50. CHK include/generated/generic-asm-offsets.h
  51. UPD include/generated/generic-asm-offsets.h
  52. HOSTCC tools/envcrc.o
  53. WRAP tools/lib/crc32.c
  54. HOSTCC tools/lib/crc32.o
  55. WRAP tools/common/env_embedded.c
  56. HOSTCC tools/common/env_embedded.o
  57. WRAP tools/lib/sha1.c
  58. HOSTCC tools/lib/sha1.o
  59. HOSTLD tools/envcrc
  60. HOSTCC tools/gen_eth_addr
  61. HOSTCC tools/mkenvimage.o
  62. HOSTCC tools/os_support.o
  63. HOSTLD tools/mkenvimage
  64. HOSTCC tools/aisimage.o
  65. HOSTCC tools/atmelimage.o
  66. WRAP tools/common/bootm.c
  67. HOSTCC tools/common/bootm.o
  68. HOSTCC tools/default_image.o
  69. WRAP tools/lib/fdtdec_common.c
  70. HOSTCC tools/lib/fdtdec_common.o
  71. WRAP tools/lib/fdtdec.c
  72. HOSTCC tools/lib/fdtdec.o
  73. HOSTCC tools/fit_common.o
  74. HOSTCC tools/fit_image.o
  75. WRAP tools/common/image-fit.c
  76. HOSTCC tools/common/image-fit.o
  77. HOSTCC tools/image-host.o
  78. tools/image-host.c: In function ‘fit_image_write_sig’:
  79. tools/image-host.c:134:13: warning: passing argument 1 of ‘imagetool_get_source_date’ from incompatible pointer type [enabled by default]
  80. time(NULL));
  81. ^
  82. In file included from tools/mkimage.h:23:0,
  83. from tools/image-host.c:12:
  84. tools/imagetool.h:223:8: note: expected ‘struct image_tool_params *’ but argument is of type ‘const char *’
  85. time_t imagetool_get_source_date(
  86. ^
  87. WRAP tools/common/image.c
  88. HOSTCC tools/common/image.o
  89. HOSTCC tools/imagetool.o
  90. HOSTCC tools/imximage.o
  91. HOSTCC tools/kwbimage.o
  92. WRAP tools/lib/md5.c
  93. HOSTCC tools/lib/md5.o
  94. HOSTCC tools/lpc32xximage.o
  95. HOSTCC tools/mxsimage.o
  96. HOSTCC tools/omapimage.o
  97. HOSTCC tools/pblimage.o
  98. HOSTCC tools/pbl_crc32.o
  99. HOSTCC tools/vybridimage.o
  100. WRAP tools/lib/rc4.c
  101. HOSTCC tools/lib/rc4.o
  102. HOSTCC tools/rkcommon.o
  103. HOSTCC tools/rkimage.o
  104. HOSTCC tools/rksd.o
  105. HOSTCC tools/rkspi.o
  106. HOSTCC tools/socfpgaimage.o
  107. WRAP tools/lib/sha256.c
  108. HOSTCC tools/lib/sha256.o
  109. WRAP tools/common/hash.c
  110. HOSTCC tools/common/hash.o
  111. HOSTCC tools/ublimage.o
  112. HOSTCC tools/zynqimage.o
  113. HOSTCC tools/zynqmpimage.o
  114. WRAP tools/lib/libfdt/fdt.c
  115. HOSTCC tools/lib/libfdt/fdt.o
  116. WRAP tools/lib/libfdt/fdt_ro.c
  117. HOSTCC tools/lib/libfdt/fdt_ro.o
  118. WRAP tools/lib/libfdt/fdt_rw.c
  119. HOSTCC tools/lib/libfdt/fdt_rw.o
  120. WRAP tools/lib/libfdt/fdt_strerror.c
  121. HOSTCC tools/lib/libfdt/fdt_strerror.o
  122. WRAP tools/lib/libfdt/fdt_wip.c
  123. HOSTCC tools/lib/libfdt/fdt_wip.o
  124. WRAP tools/lib/libfdt/fdt_region.c
  125. HOSTCC tools/lib/libfdt/fdt_region.o
  126. WRAP tools/lib/libfdt/fdt_sw.c
  127. HOSTCC tools/lib/libfdt/fdt_sw.o
  128. HOSTCC tools/gpimage.o
  129. HOSTCC tools/gpimage-common.o
  130. HOSTCC tools/dumpimage.o
  131. HOSTLD tools/dumpimage
  132. HOSTCC tools/mkimage.o
  133. HOSTLD tools/mkimage
  134. HOSTCC tools/proftool
  135. HOSTCC tools/fdtgrep.o
  136. HOSTLD tools/fdtgrep
  137. CC arch/mips/cpu/time.o
  138. CC arch/mips/cpu/interrupts.o
  139. CC arch/mips/cpu/cpu.o
  140. LD arch/mips/cpu/built-in.o
  141. AS arch/mips/cpu/start.o
  142. CC arch/mips/lib/cache.o
  143. AS arch/mips/lib/cache_init-taroko.o
  144. CC arch/mips/lib/bootm.o
  145. LD arch/mips/lib/built-in.o
  146. CC arch/mips/lib/ashldi3.o
  147. CC arch/mips/lib/ashrdi3.o
  148. CC arch/mips/lib/lshrdi3.o
  149. AR arch/mips/lib/lib.a
  150. CC board/realtek/rlxboard/rlxboard.o
  151. CC board/realtek/rlxboard/serial.o
  152. CC board/realtek/rlxboard/flash.o
  153. CC board/realtek/rlxboard/dma.o
  154. CC board/realtek/rlxboard/efuse.o
  155. CC board/realtek/rlxboard/gpio.o
  156. AS board/realtek/rlxboard/bsp_init.o
  157. AS board/realtek/rlxboard/write_reg_mask.o
  158. AS board/realtek/rlxboard/verify.o
  159. LD board/realtek/rlxboard/built-in.o
  160. CC cmd/boot.o
  161. CC cmd/bootm.o
  162. CC cmd/help.o
  163. CC cmd/version.o
  164. CC cmd/bdinfo.o
  165. CC cmd/console.o
  166. CC cmd/elf.o
  167. CC cmd/load.o
  168. CC cmd/mem.o
  169. CC cmd/misc.o
  170. CC cmd/net.o
  171. CC cmd/fephy.o
  172. CC cmd/pcmcia.o
  173. CC cmd/sf.o
  174. CC cmd/ximg.o
  175. CC cmd/nvedit.o
  176. LD cmd/built-in.o
  177. CC common/init/board_init.o
  178. LD common/init/built-in.o
  179. CC common/main.o
  180. CC common/exports.o
  181. CC common/hash.o
  182. CC common/autoboot.o
  183. CC common/board_f.o
  184. CC common/board_r.o
  185. CC common/board_info.o
  186. CC common/bootm.o
  187. CC common/bootm_os.o
  188. CC common/env_attr.o
  189. CC common/env_callback.o
  190. CC common/env_flags.o
  191. CC common/env_sf.o
  192. CC common/flash.o
  193. CC common/splash.o
  194. CC common/env_common.o
  195. CC common/console.o
  196. CC common/dlmalloc.o
  197. CC common/image.o
  198. CC common/memsize.o
  199. CC common/stdio.o
  200. CC common/cli_simple.o
  201. CC common/cli.o
  202. CC common/cli_readline.o
  203. CC common/command.o
  204. CC common/s_record.o
  205. CC common/xyzModem.o
  206. CC common/hw_parse_env_flash.o
  207. CC common/cmd_setethaddr.o
  208. CC common/cmd_setipaddr.o
  209. CC common/cmd_update.o
  210. LD common/built-in.o
  211. CC disk/part.o
  212. LD disk/built-in.o
  213. LD drivers/adc/built-in.o
  214. CC drivers/block/blk_legacy.o
  215. LD drivers/block/built-in.o
  216. CC drivers/crypto/fsl/sec.o
  217. LD drivers/crypto/fsl/built-in.o
  218. LD drivers/crypto/rsa_mod_exp/built-in.o
  219. LD drivers/crypto/built-in.o
  220. LD drivers/dfu/built-in.o
  221. LD drivers/hwmon/built-in.o
  222. CC drivers/input/input.o
  223. LD drivers/input/built-in.o
  224. LD drivers/mailbox/built-in.o
  225. LD drivers/memory/built-in.o
  226. LD drivers/misc/built-in.o
  227. CC drivers/pcmcia/tqm8xx_pcmcia.o
  228. LD drivers/pcmcia/built-in.o
  229. LD drivers/phy/marvell/built-in.o
  230. LD drivers/pwm/built-in.o
  231. LD drivers/reset/built-in.o
  232. CC drivers/rtc/date.o
  233. LD drivers/rtc/built-in.o
  234. LD drivers/soc/built-in.o
  235. LD drivers/sound/built-in.o
  236. LD drivers/spmi/built-in.o
  237. LD drivers/sysreset/built-in.o
  238. LD drivers/thermal/built-in.o
  239. LD drivers/timer/built-in.o
  240. LD drivers/tpm/built-in.o
  241. LD drivers/twserial/built-in.o
  242. LD drivers/video/bridge/built-in.o
  243. LD drivers/video/built-in.o
  244. LD drivers/watchdog/built-in.o
  245. LD drivers/built-in.o
  246. LD drivers/dma/built-in.o
  247. LD drivers/gpio/built-in.o
  248. LD drivers/i2c/built-in.o
  249. LD drivers/mmc/built-in.o
  250. CC drivers/mtd/mtdcore.o
  251. CC drivers/mtd/mtd_uboot.o
  252. LD drivers/mtd/built-in.o
  253. LD drivers/mtd/onenand/built-in.o
  254. CC drivers/mtd/spi/sf_probe.o
  255. CC drivers/mtd/spi/spi_flash.o
  256. CC drivers/mtd/spi/sf_params.o
  257. CC drivers/mtd/spi/sf.o
  258. LD drivers/mtd/spi/built-in.o
  259. CC drivers/net/rtl8168.o
  260. LD drivers/net/built-in.o
  261. LD drivers/net/phy/built-in.o
  262. LD drivers/pci/built-in.o
  263. LD drivers/power/built-in.o
  264. LD drivers/power/battery/built-in.o
  265. LD drivers/power/domain/built-in.o
  266. LD drivers/power/fuel_gauge/built-in.o
  267. LD drivers/power/mfd/built-in.o
  268. LD drivers/power/pmic/built-in.o
  269. LD drivers/power/regulator/built-in.o
  270. CC drivers/serial/serial.o
  271. LD drivers/serial/built-in.o
  272. CC drivers/spi/spi.o
  273. CC drivers/spi/rts_qspi.o
  274. LD drivers/spi/built-in.o
  275. LD drivers/usb/common/built-in.o
  276. LD drivers/usb/dwc3/built-in.o
  277. LD drivers/usb/emul/built-in.o
  278. LD drivers/usb/eth/built-in.o
  279. LD drivers/usb/gadget/built-in.o
  280. LD drivers/usb/gadget/udc/built-in.o
  281. LD drivers/usb/host/built-in.o
  282. LD drivers/usb/musb-new/built-in.o
  283. LD drivers/usb/musb/built-in.o
  284. LD drivers/usb/phy/built-in.o
  285. LD drivers/usb/ulpi/built-in.o
  286. CC fs/fs.o
  287. LD fs/fat/built-in.o
  288. LD fs/built-in.o
  289. CC lib/zlib/zlib.o
  290. LD lib/zlib/built-in.o
  291. CC lib/crc7.o
  292. CC lib/crc8.o
  293. CC lib/crc16.o
  294. CC lib/gunzip.o
  295. CC lib/initcall.o
  296. CC lib/lmb.o
  297. CC lib/ldiv.o
  298. CC lib/net_utils.o
  299. CC lib/qsort.o
  300. CC lib/rc4.o
  301. CC lib/list_sort.o
  302. CC lib/hashtable.o
  303. CC lib/errno.o
  304. CC lib/display_options.o
  305. CC lib/crc32.o
  306. CC lib/ctype.o
  307. CC lib/div64.o
  308. CC lib/hang.o
  309. CC lib/linux_compat.o
  310. CC lib/linux_string.o
  311. CC lib/membuff.o
  312. CC lib/slre.o
  313. CC lib/string.o
  314. CC lib/tables_csum.o
  315. CC lib/time.o
  316. CC lib/vsprintf.o
  317. CC lib/panic.o
  318. CC lib/strto.o
  319. CC lib/strmhz.o
  320. LD lib/built-in.o
  321. CC net/checksum.o
  322. CC net/arp.o
  323. CC net/bootp.o
  324. CC net/eth_legacy.o
  325. CC net/eth_common.o
  326. CC net/net.o
  327. CC net/nfs.o
  328. CC net/ping.o
  329. CC net/tftp.o
  330. LD net/built-in.o
  331. LD test/built-in.o
  332. LD test/dm/built-in.o
  333. CC examples/standalone/stubs.o
  334. LD examples/standalone/libstubs.o
  335. CC examples/standalone/hello_world.o
  336. LD examples/standalone/hello_world
  337. OBJCOPY examples/standalone/hello_world.srec
  338. OBJCOPY examples/standalone/hello_world.bin
  339. LDS u-boot.lds
  340. LD u-boot
  341. OBJCOPY u-boot.srec
  342. OBJCOPY u-boot-nodtb.bin
  343. COPY u-boot.bin
  344. SYM u-boot.sym
  345. ./scripts/check-config.sh u-boot.cfg \
  346. ./scripts/config_whitelist.txt . 1>&2
  347. chmod +x ./ram_init/generate.sh
  348. ./ram_init/generate.sh
  349. uncompress uboot version
  350. ram version filesize is 189336
  351. mips-linux-gnu-gcc -Os -ffunction-sections -fdata-sections -D__KERNEL__ -DCONFIG_RAM_OFFSET=0x2000 -DCONFIG_RAM_SIZE=189336 -DCONFIG_LOAD_BASE=0x82800000 -I../include -I../arch/mips/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mips-sourcery-2014.05/bin/../lib/gcc/mips-linux-gnu/4.8.3/include -pipe -G 0 -mabicalls -fPIC -EL -fno-strict-aliasing -mabi=32 -D__MIPS__ -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage -msoft-float -g -DDEBUG -D__ASSEMBLY__ -c init.S -o init.o
  352. mips-linux-gnu-gcc -Os -ffunction-sections -fdata-sections -D__KERNEL__ -DCONFIG_RAM_OFFSET=0x2000 -DCONFIG_RAM_SIZE=189336 -DCONFIG_LOAD_BASE=0x82800000 -I../include -I../arch/mips/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mips-sourcery-2014.05/bin/../lib/gcc/mips-linux-gnu/4.8.3/include -pipe -G 0 -mabicalls -fPIC -EL -fno-strict-aliasing -mabi=32 -D__MIPS__ -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage -msoft-float -g -DDEBUG -c dma_copy.c -o dma_copy.o
  353. In file included from dma_copy.c:2:0:
  354. ../include/dma.h:49:4: warning: 'struct udevice' declared inside parameter list [enabled by default]
  355. void *src, size_t len);
  356. ^
  357. ../include/dma.h:49:4: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
  358. ../include/dma.h:72:46: warning: 'struct udevice' declared inside parameter list [enabled by default]
  359. int dma_get_device(u32 transfer_type, struct udevice **devp);
  360. ^
  361. mips-linux-gnu-ld -G 0 -static -n -nostdlib -EL -m elf32ltsmip -T init.lds --gc-sections -pie -Bstatic -Ttext 0xb9000000 -L /opt/mips-sourcery-2014.05/bin/../lib/gcc/mips-linux-gnu/4.8.3 -lgcc init.o ../board/realtek/rlxboard/bsp_init.o dma_copy.o ../board/realtek/rlxboard/dma.o -Map init.map -o init
  362. mips-linux-gnu-objcopy --remove-section=.dynsym --gap-fill=0xff -O binary init init.bin
  363. mips-linux-gnu-gcc -Os -ffunction-sections -fdata-sections -D__KERNEL__ -DCONFIG_RAMINIT_OFFSET=2048 -DCONFIG_RAMINIT_SIZE=3720 -DCONFIG_LOAD_BASE=0xb9000000 -I../include -I../arch/mips/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/mips-sourcery-2014.05/bin/../lib/gcc/mips-linux-gnu/4.8.3/include -pipe -G 0 -mabicalls -fPIC -EL -fno-strict-aliasing -mabi=32 -D__MIPS__ -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage -msoft-float -D__ASSEMBLY__ -c boot.S -o boot.o
  364. mips-linux-gnu-ld -G 0 -static -n -nostdlib -EL -m elf32ltsmip -T boot.lds --gc-sections -pie -Bstatic -Ttext 0xbc000000 -L /opt/mips-sourcery-2014.05/bin/../lib/gcc/mips-linux-gnu/4.8.3 -lgcc boot.o -Map boot.map -o boot
  365. mips-linux-gnu-objcopy --remove-section=.dynsym --gap-fill=0xff -O binary boot sysboot.bin
  366. 3720+0 records in
  367. 3720+0 records out
  368. 3720 bytes (3.7 kB) copied, 0.00555251 s, 670 kB/s
  369. 189336+0 records in
  370. 189336+0 records out
  371. 189336 bytes (189 kB) copied, 0.254274 s, 745 kB/s
  372. davis@XPS-15-9570:~/uboot-2016.11$
  373.  
Advertisement
RAW Paste Data Copied
Advertisement