Advertisement
davisroman

Compiling uboot-2016.11 with Realtek prebuilt toolchain(rsdk-6.5.0-5281-EL-4.9-u1.0-m32fut-191025p1)

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