GlobalscaleTechnologiesInc / D3-Firmware

This is the source code of Uboot boot-loader for the D3 Plug from Globalscale Technologies Inc.
http://www.globalscaletechnologies.com/p-61-d3.aspx
Other
1 stars 0 forks source link

Unable to compile published source.. #1

Open dharmeshds opened 10 years ago

dharmeshds commented 10 years ago

Despite the updates provided subsequent to my email the published source cannot be compiled still.. I encountered newer issues that I managed to resolve but still the outcome is same.. Find below full log capture.. I'm unable to put my new D3Plug to good use due to the old uboot it's being shipped with and I would appreciate your urgent help to resolve this issue...

root@epad:/data/work# export declare -x ARCH="arm" declare -x BOARD="db88ap510bp" declare -x CINNAMON_VERSION="1.8.8" declare -x COLORTERM="gnome-terminal" declare -x CROSS_COMPILE="/data/xcompile/toolchains/arm-marvell-linux-gnueabi-vfp/bin/arm-marvell-linux-gnueabi-" declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-moY2BejHwi,guid=ba81afd451088c961cd66fe3522a98a9" declare -x DESKTOP_SESSION="cinnamon" declare -x DISPLAY=":0" declare -x GJS_DEBUG_OUTPUT="stderr" declare -x GJS_DEBUG_TOPICS="JS ERROR;JS LOG" declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated" declare -x GNOME_KEYRING_CONTROL="/root/.cache/keyring-6CQpPr" declare -x GNOME_KEYRING_PID="3597" declare -x GPG_AGENT_INFO="/root/.cache/keyring-6CQpPr/gpg:0:1" declare -x HOME="/root" declare -x LANG="en_US.UTF-8" declare -x LOGNAME="root" declare -x LS_COLORS="" declare -x MDMSESSION="cinnamon" declare -x MDM_LANG="en_US.UTF-8" declare -x MDM_XSERVER_LOCATION="local" declare -x OLDPWD declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/data/android-sdk-linux/tools:/data/android-sdk-linux/platform-tools:/data/xcompile/toolchains/arm-marvell-linux-gnueabi-vfp/bin:/data/android-sdk-linux/tools:/data/android-sdk-linux/platform-tools:/data/xcompile/toolchains/arm-marvell-linux-gnueabi-vfp/bin" declare -x PWD="/data/work" declare -x SESSION_MANAGER="local/epad:@/tmp/.ICE-unix/3606,unix/epad:/tmp/.ICE-unix/3606" declare -x SHELL="/bin/bash" declare -x SHLVL="2" declare -x SSH_AGENT_PID="3677" declare -x SSH_AUTH_SOCK="/root/.cache/keyring-6CQpPr/ssh" declare -x TERM="xterm" declare -x USER="root" declare -x USERNAME="root" declare -x WINDOWID="46311411" declare -x WINDOWPATH="8" declare -x XAUTHORITY="/root/.Xauthority" declare -x XDG_DATA_DIRS="/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/" declare -x XDG_SESSION_COOKIE="3c57545fd9007fcac1f08fcd00001118-1378523305.244146-2042870890"

root@epad:/data/work# git clone https://github.com/GlobalscaleTechnologiesInc/D3-Firmware.git Cloning into 'D3-Firmware'... remote: Counting objects: 7242, done. remote: Compressing objects: 100% (4693/4693), done. remote:nTotale7242 (delta72474),4reused.7240i(delta02472)/s Receiving objects: 100% (7242/7242), 17.11 MiB | 1.75 MiB/s, done. Resolving deltas: 100% (2474/2474), done.

root@epad:/data/work# cd D3-Firmware/

root@epad:/data/work/D3-Firmware# make distclean Generating include/autoconf.mk.dep Generating include/autoconf.mk rm: cannot remove include/asm/proc': Is a directory rm: cannot removeinclude/asm': Is a directory make: *\ [clobber] Error 1

root@epad:/data/work/D3-Firmware# make mrproper rm: cannot remove include/asm/proc': Is a directory rm: cannot removeinclude/asm': Is a directory make: *\ [clobber] Error 1

root@epad:/data/work/D3-Firmware# rm -rf include/asm root@epad:/data/work/D3-Firmware# make distclean root@epad:/data/work/D3-Firmware# make mrproper

root@epad:/data/work/D3-Firmware# make db88ap510bp_config BOOTROM=1 SPIBOOT=1 SPI=1 NAND=1 /bin/bash: /data/work/D3-Firmware/mkconfig: Permission denied make[1]: * [mv_dove] Error 126 make: * [db88ap510bp_config] Error 2

root@epad:/data/work/D3-Firmware# chmod u+x mkconfig root@epad:/data/work/D3-Firmware# make db88ap510bp_config BOOTROM=1 SPIBOOT=1 SPI=1 NAND=1 Configuring for mv_dove board... rm: cannot remove `asm-arm/proc': Is a directory make[1]: * [mv_dove] Error 1 make: * [db88ap510bp_config] Error 2

root@epad:/data/work/D3-Firmware# rm -rf include/asm-arm/proc root@epad:/data/work/D3-Firmware# make db88ap510bp_config BOOTROM=1 SPIBOOT=1 SPI=1 NAND=1 Configuring for mv_dove board...

root@epad:/data/work/D3-Firmware# make -s -j3 /bin/bash: /data/work/D3-Firmware/tools/setlocalversion: Permission denied In file included from doimage.c:77:0: bootstrap_os.h: In function ‘MV_MEMIO_LE16_READ’: bootstrap_os.h:375:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] bootstrap_os.h: In function ‘MV_MEMIO_LE32_READ’: bootstrap_os.h:389:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] doimage.c: In function ‘main’: doimage.c:396:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] doimage.c:396:20: warning: assignment makes integer from pointer without a cast [enabled by default] jffs2_1pass.c: In function 'get_fl_mem': jffs2_1pass.c:399: warning: unused variable 'id' jffs2_1pass.c: In function 'get_node_mem': jffs2_1pass.c:423: warning: unused variable 'id' dev.c: In function 'ext2fs_devread': dev.c:55: warning: initialization from incompatible pointer type part_dos.c: In function 'get_partition_info_extended': part_dos.c:194: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness /data/work/D3-Firmware/include/common.h:617: note: expected 'char ' but argument is of type 'uchar ' ubifs.c: In function 'gzip_decompress': ubifs.c:41: warning: implicit declaration of function 'zunzip' nand_bbt.c: In function 'write_bbt': nand_bbt.c:707: warning: passing argument 4 of 'mtd->read' from incompatible pointer type nand_bbt.c:707: note: expected 'uint64_t ' but argument is of type 'size_t ' macronix.c: In function 'macronix_protect': macronix.c:305: warning: unused variable 'mcx' stmicro.c: In function 'stmicro_protect':e1000.c: In function 'e1000_transmit': e1000.c:5022: warning: cast from pointer to integer of different size

stmicro.c:317: warning: unused variable 'stm' io.c: In function 'ubi_io_read': io.c:177: warning: format '%zd' expects type 'signed size_t', but argument 7 has type 'uint64_t' In file included from h/skdrv2nd.h:48, from uboot_drv.c:31: ./h/skgehw.h:2483: warning: useless type name in empty declaration uboot_skb.c: In function 'alloc_skb': uboot_skb.c:92: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'struct skbuff ' uboot_skb.c:92: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'u8 ' uboot_skb.c: In function 'dev_kfree_skb_any': uboot_skb.c:114: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'struct sk_buff ' uboot_skb.c:126: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'struct sk_buff ' uboot_skb.c:126: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'u8 ' In file included from h/skdrv2nd.h:48, from sky2.c:38: ./h/skgehw.h:2483: warning: useless type name in empty declaration sky2.c: In function 'AllocateAndInitLETables': sky2.c:2486: warning: assignment makes integer from pointer without a cast sky2.c: In function 'AllocAndMapRxBuffer': sky2.c:2756: warning: pointer targets in assignment differ in signedness pci_indirect.c: In function 'indirect_read_config_byte': pci_indirect.c:109: warning: implicit declaration of function 'out_le32' pci_indirect.c:109: warning: implicit declaration of function 'in_8' pci_indirect.c: In function 'indirect_read_config_word': pci_indirect.c:110: warning: implicit declaration of function 'in_le16' pci_indirect.c: In function 'indirect_read_config_dword': pci_indirect.c:111: warning: implicit declaration of function 'in_le32' pci_indirect.c: In function 'indirect_write_config_byte': pci_indirect.c:117: warning: implicit declaration of function 'out_8' pci_indirect.c: In function 'indirect_write_config_word': pci_indirect.c:118: warning: implicit declaration of function 'out_le16' In file included from h/skdrv2nd.h:48, from skge.c:81: ./h/skgehw.h:2483: warning: useless type name in empty declaration skge.c: In function 'skge_probe': skge.c:857: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'void ' skge.c:918: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'struct eth_device ' skge.c:928: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'struct eth_device ' skge.c: In function 'DumpLong': skge.c:6675: warning: unused variable 'asc_buffer' skge.c:6673: warning: unused variable 'addr' skge.c: At top level: skge.c:1050: warning: 'SkGeHandleKernelTimer' defined but not used skge.c:179: warning: 'SkDrvInitAdapter' declared 'static' but never defined skge.c:6585: warning: 'DumpMsg' defined but not used skge.c:6668: warning: 'DumpLong' defined but not used In file included from h/skdrv2nd.h:48, from sky2le.c:48: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from skdim.c:38: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from skaddr.c:63: ./h/skgehw.h:2483: warning: useless type name in empty declaration skaddr.c:92: warning: 'Next0' defined but not used skaddr.c: In function 'SkAddrMcAdd': skaddr.c:739: warning: 'ReturnCode' may be used uninitialized in this function skaddr.c: In function 'SkAddrMcClear': skaddr.c:435: warning: 'ReturnCode' may be used uninitialized in this function In file included from h/skdrv2nd.h:48, from skgehwt.c:38: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from skgeinit.c:32: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from skgesirq.c:58: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from sktwsi.c:39: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from sklm80.c:40: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from skqueue.c:39: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from skrlmt.c:57: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from sktimer.c:37: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from skvpd.c:36: ./h/skgehw.h:2483: warning: useless type name in empty declaration In file included from h/skdrv2nd.h:48, from skxmac2.c:31: ./h/skgehw.h:2483: warning: useless type name in empty declaration a - uboot_drv.o a - uboot_skb.o a - sky2.o a - skge.o a - sky2le.o a - skdim.o a - skaddr.o a - skgehwt.o a - skgeinit.o a - skgesirq.o a - sktwsi.o a - sklm80.o a - skqueue.o a - skrlmt.o a - sktimer.o a - skvpd.o a - skxmac2.o a - skcsum.o cmd_bootm.c: In function 'do_bootm_netbsd': cmd_bootm.c:1299: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'ulong' cmd_bootm.c:1301: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'ulong' cmd_bootm.c:1319: warning: passing argument 1 of 'strcpy' discards qualifiers from pointer target type /data/work/D3-Firmware/include/linux/string.h:24: note: expected 'char ' but argument is of type 'volatile char ' cmd_bootm.c:1326: warning: passing argument 1 of 'strcpy' discards qualifiers from pointer target type /data/work/D3-Firmware/include/linux/string.h:24: note: expected 'char ' but argument is of type 'volatile char ' cmd_bootm.c:1348: warning: passing argument 4 of 'loader' discards qualifiers from pointer target type cmd_bootm.c:1348: note: expected 'char ' but argument is of type 'volatile char ' cmd_i2c.c: In function 'do_i2c_md': cmd_i2c.c:254: warning: suggest parentheses around '&&' within '||' cmd_mtdparts.c: In function 'part_validate': cmd_mtdparts.c:400: warning: integer constant is too large for 'long' type cmd_mtdparts.c: In function 'part_parse': cmd_mtdparts.c:602: warning: integer constant is too large for 'long' type cmd_mtdparts.c:613: warning: integer constant is too large for 'long' type cmd_mtdparts.c:647: warning: integer constant is too large for 'long' type cmd_mtdparts.c: In function 'device_parse': cmd_mtdparts.c:883: warning: integer constant is too large for 'long' type ../USP/jump.S: Assembler messages: ../USP/jump.S:61: Error: symbol .text is in a different section make[1]: _* [../USP/jump.o] Error 1 make: *\ [board/marvell/config_dove/libconfig_dove.a] Error 2 make: INTERNAL: Exiting with 4 jobserver tokens available; should be 3!

dharmeshds commented 10 years ago

appreciate a response for this issue...