LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   NDAS does not cross-compile (http://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/ndas-does-not-cross-compile-814138/)

rhermsen 06-14-2010 04:23 PM

NDAS does not cross-compile
 
Hopefully someone can point me to the problem in (I think) the Makefile that causes it not to cross-compile.


Iím trying to crosscompile NDAS for my router according the following guidelines:
http://code.ximeta.com/trac-ndas/wiki/OpenWRT


I took the ndas source from here:
http://code.ximeta.com/dev/1.1/13/openwrt/


Used commands:
export PATH=$PATH:/opt/toolchains/uclibc-crosstools_gcc-3.4.2_uclibc-20050502/bin/
export NDAS_KERNEL_PATH=/opt/dv20xx_iad/kernel/linux/
export NDAS_KERNEL_VERSION=2.6.8
export NDAS_KERNEL_ARCH=mipsel
export NDAS_CROSS_COMPILE=mips-linux-
export NDAS_CROSS_COMPILE_UM=mips-linux-uclibc-
export NDAS_EXTRA_CFLAGS="-mlong-calls"

make

It fails with the following:
Code:

# make
Invoking make againt the kernel at /opt/dv20xx_iad/kernel/linux/
make -C /opt/dv20xx_iad/kernel/linux/ \
                SUBDIRS=/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13 \
                KBUILD_VERBOSE=1 \
                ndas_root=/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13 \
                modules
make[1]: Entering directory `/opt/dv20xx_iad/kernel/linux'
mkdir -p /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13/.tmp_versions
make -f scripts/Makefile.build obj=/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13
  gcc -Wp,-MD,/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13/block/.block24.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /opt/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mcpu=r4600 -mips2 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer  -DMODULE -DLINUX -I/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=block24 -DKBUILD_MODNAME=ndas_block -c -o /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13/block/block24.o /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13/block/block24.c
gcc: 0: No such file or directory
gcc: unrecognized option `-G'
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
cc1: error: invalid option `no-abicalls'
cc1: error: invalid option `ips2'
cc1: error: invalid option `long-calls'
cc1: error: invalid option `long-calls'
/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13/block/block24.c:1: error: bad value (r4600) for -mtune= switch
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/as: unrecognized option `--trap'
make[2]: *** [/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13/block/block24.o] Error 1
make[1]: *** [_module_/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13] Error 2
make[1]: Leaving directory `/opt/dv20xx_iad/kernel/linux'
make: *** [/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-13/ndas_sal.ko] Error 2
#

It is using the host gcc:
cd /usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/
/usr/i486-slackware-linux/bin#

rhermsen 06-24-2010 04:46 PM

I'm a few steps further by using Scratchbox.
Now the issue that it was not using the cross-compile GCC is solved, but now it is more a programming issue. No idea how to solve this as I'm not a programmer.

Code:

[sbox-DV20x0: ~/ndas/ndas-1.1-24] > export NDAS_KERNEL_PATH=/scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/
[sbox-DV20x0: ~/ndas/ndas-1.1-24] > export NDAS_KERNEL_VERSION=2.6.8
[sbox-DV20x0: ~/ndas/ndas-1.1-24] > export NDAS_KERNEL_ARCH=mips
[sbox-DV20x0: ~/ndas/ndas-1.1-24] > export NDAS_CROSS_COMPILE=mips-linux-
[sbox-DV20x0: ~/ndas/ndas-1.1-24] > export NDAS_CROSS_COMPILE_UM=mips-linux-uclibc-
[sbox-DV20x0: ~/ndas/ndas-1.1-24] > export NDAS_EXTRA_CFLAGS="-mlong-calls"
[sbox-DV20x0: ~/ndas/ndas-1.1-24] > export DESTDIR=/scratchbox/users/[user]/home/[user]/ndas/ndas-1.1-24/builds/

[sbox-DV20x0: ~/ndas/ndas-1.1-24] > make
Invoking make againt the kernel at /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/
make -C /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/ \
                SUBDIRS=/home/[user]/ndas/ndas-1.1-24 \
                KBUILD_VERBOSE=1 \
                ndas_root=/home/[user]/ndas/ndas-1.1-24 \
                modules
make[1]: Entering directory `/scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux'
mkdir -p /home/[user]/ndas/ndas-1.1-24/.tmp_versions
make -f scripts/Makefile.build obj=/home/[user]/ndas/ndas-1.1-24
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/block/.block24.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=block24 -DKBUILD_MODNAME=ndas_block -c -o /home/[user]/ndas/ndas-1.1-24/block/block24.o /home/[user]/ndas/ndas-1.1-24/block/block24.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/block/.block26.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=block26 -DKBUILD_MODNAME=ndas_block -c -o /home/[user]/ndas/ndas-1.1-24/block/block26.o /home/[user]/ndas/ndas-1.1-24/block/block26.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/block/.ctrldev.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=ctrldev -DKBUILD_MODNAME=ndas_block -c -o /home/[user]/ndas/ndas-1.1-24/block/ctrldev.o /home/[user]/ndas/ndas-1.1-24/block/ctrldev.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/block/.ops.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=ops -DKBUILD_MODNAME=ndas_block -c -o /home/[user]/ndas/ndas-1.1-24/block/ops.o /home/[user]/ndas/ndas-1.1-24/block/ops.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/block/.procfs.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=procfs -DKBUILD_MODNAME=ndas_block -c -o /home/[user]/ndas/ndas-1.1-24/block/procfs.o /home/[user]/ndas/ndas-1.1-24/block/procfs.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/.ndas_block_main.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=ndas_block_main -DKBUILD_MODNAME=ndas_block -c -o /home/[user]/ndas/ndas-1.1-24/ndas_block_main.o /home/[user]/ndas/ndas-1.1-24/ndas_block_main.c
cd /home/[user]/ndas/ndas-1.1-24 ; /bin/sh /home/[user]/ndas/ndas-1.1-24/libndas.a.sfx
BY INSTALLING OR USING THIS SOFTWARE OR AUTHORIZING ANY OTHER PERSON TO DO SO,
YOU ACCEPT THIS LICENSE AGREEMENT AND ARE BOUND BY ITS TERMS.


DEFINITIONS

Software.  "Software" means NDAS core binary as a form of "libndas.a." or
"ndas_core.o" or the binary created by linking "libndas.a" with other
executable binaries.

Documentation.  "Documentation" means the manual and any other instructional
or descriptive material, printed or on-line, provided with the Software.

License.  "License" means the license to use the Software. The License is
granted pursuant to the provisions of this Agreement.

Customer.  "Customer" means the person or business entity to whom this copy of
the Software is licensed.

NDAS. XIMETA's patented network storage architecture that allows direct
attachment of existing ATA/ATAPI devices to Ethernet without a separate server.
Unlike other architectures such NAS, SAN, and USB mass storage, no server
computer intervenes between the storage and the client hosts.

NDAS chip. A single 4mmx4mm chip in 0.18um CMOS technology, which has the NDAS
technology to allows direct attachment of existing ATA/ATAPI devices to Ethernet.

NDAS device. Storage Hardware that has the NDAS chip.

LICENSE

Grant of License.  Subject to Customer's compliance with this Agreement, XIMETA
grants to Customer, and Customer purchases, a nonexclusive License to use the
Software for non-commercial use only for the device permitted by XIMETA, and
only for the platform or OS permitted by XIMETA. Rights not expressly granted
by this Agreement are reserved by XIMETA. Customer who wants to use the
Software for commercial use must contact XIMETA to obtain the commercial
License. Customer who wants to use the Software for any other devices not
permitted by XIMETA must contact XIMETA to obtain the proper License. Customer
who wants to use the Software on any other platform or OS not permitted by
XIMETA must contact XIMETA to obtain the proper License.

Customer purchases a License only. XIMETA retains title to and ownership of
the Software and Documentation and any copies thereof, including the originals
provided with this Agreement.

Copies.  Customer may not copy the Software except as necessary to use the
Software.  Such necessary use includes copying the Software to the internal
hard disk, copying the Software to a network file server in order to make the
Software available for use, and copying the Software to archival backup media.
All trademark and copyright notices must be included on any copies made.
Customer may not copy the Documentation.

Transfer and Use.  Customer may not transfer any copy of the Software or
Documentation to any other person or entity unless the transferee first
accepts this Agreement and Customer transfers all copies of the Software and
Documentation, including the originals.

Customer may not rent, loan, lease, sublicense, or otherwise make the Software
or Documentation available for use by any other person except as provided
above.  Customer may not modify, decompile, disassemble, or reverse engineer
the Software or create any derivative works based on the Software or the
Documentation.

Customer may not reverse engineer, decompile, or disassemble the Software, nor
attempt in any other manner to obtain the source code or to understand the
protocol.

Redistribution. Redistribution is prohibited without written permission from
XIMETA, Inc.

The Software is protected by national laws and international agreements on
copyright as well by other agreements on intellectual property.

DISCLAIMER

This software is provided 'as is' with no explicit or implied warranties
in respect of any properties, including, but not limited to, correctness
and fitness for purpose.

GENERAL PROVISIONS

Indemnification.  Customer agrees that Customer shall defend and hold XIMETA
harmless against any liability, claim, or suit and shall pay any related
expense, including but not limited to reasonable attorneys' fees, arising out
of any use of the Software or Content.  XIMETA reserves the right to control
all litigation involving XIMETA, Customer, and third parties.

Entire Agreement.  This Agreement represents the entire agreement between
XIMETA and Customer. No distributor, employee, or other person is authorized
by XIMETA to modify this Agreement or to make any warranty or representation
which is different than, or in addition to, the warranties and representations
of this Agreement.

Governing Law.  This Agreement shall be governed by the laws of the State of
California and of the United States of America.


Do you agree to the above license terms? [yes or no]
yes
cd /home/[user]/ndas/ndas-1.1-24 ; ar x /home/[user]/ndas/ndas-1.1-24/libndas.a ndas.o
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/.ndas_core_main.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=ndas_core_main -DKBUILD_MODNAME=ndas_core -c -o /home/[user]/ndas/ndas-1.1-24/ndas_core_main.o /home/[user]/ndas/ndas-1.1-24/ndas_core_main.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/.ndas_emu_main.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=ndas_emu_main -DKBUILD_MODNAME=ndas_emu -c -o /home/[user]/ndas/ndas-1.1-24/ndas_emu_main.o /home/[user]/ndas/ndas-1.1-24/ndas_emu_main.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/sal/.debug.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=debug -DKBUILD_MODNAME=ndas_sal -c -o /home/[user]/ndas/ndas-1.1-24/sal/debug.o /home/[user]/ndas/ndas-1.1-24/sal/debug.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/sal/.io.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=io -DKBUILD_MODNAME=ndas_sal -c -o /home/[user]/ndas/ndas-1.1-24/sal/io.o /home/[user]/ndas/ndas-1.1-24/sal/io.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/sal/.libc.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=libc -DKBUILD_MODNAME=ndas_sal -c -o /home/[user]/ndas/ndas-1.1-24/sal/libc.o /home/[user]/ndas/ndas-1.1-24/sal/libc.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/sal/.mem.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=mem -DKBUILD_MODNAME=ndas_sal -c -o /home/[user]/ndas/ndas-1.1-24/sal/mem.o /home/[user]/ndas/ndas-1.1-24/sal/mem.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/sal/.net.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=net -DKBUILD_MODNAME=ndas_sal -c -o /home/[user]/ndas/ndas-1.1-24/sal/net.o /home/[user]/ndas/ndas-1.1-24/sal/net.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/sal/.sal.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=sal -DKBUILD_MODNAME=ndas_sal -c -o /home/[user]/ndas/ndas-1.1-24/sal/sal.o /home/[user]/ndas/ndas-1.1-24/sal/sal.c
  gcc -Wp,-MD,/home/[user]/ndas/ndas-1.1-24/sal/.sync.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -I /scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Iinclude/asm-mips/mach-bcm963xx -Iinclude/asm-mips/mach-generic  -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -DLINUX -I/home/[user]/ndas/ndas-1.1-24/inc  -D_MIPS -mlong-calls  -DMODULE -mlong-calls -DKBUILD_BASENAME=sync -DKBUILD_MODNAME=ndas_sal -c -o /home/[user]/ndas/ndas-1.1-24/sal/sync.o /home/[user]/ndas/ndas-1.1-24/sal/sync.c
/home/[user]/ndas/ndas-1.1-24/sal/sync.c: In function `sal_event_wait':
/home/[user]/ndas/ndas-1.1-24/sal/sync.c:484: error: invalid type argument of `->'
/home/[user]/ndas/ndas-1.1-24/sal/sync.c:484: error: invalid type argument of `->'
/home/[user]/ndas/ndas-1.1-24/sal/sync.c:484: error: invalid type argument of `->'
/home/[user]/ndas/ndas-1.1-24/sal/sync.c:484: error: invalid type argument of `->'
/home/[user]/ndas/ndas-1.1-24/sal/sync.c:484: error: invalid type argument of `->'
/home/[user]/ndas/ndas-1.1-24/sal/sync.c:484: error: invalid type argument of `->'
make[2]: *** [/home/[user]/ndas/ndas-1.1-24/sal/sync.o] Error 1
make[1]: *** [_module_/home/[user]/ndas/ndas-1.1-24] Error 2
make[1]: Leaving directory `/scratchbox/users/[user]/home/[user]/dv20xx_iad/kernel/linux'
make: *** [/home/[user]/ndas/ndas-1.1-24/ndas_sal.ko] Error 2
[sbox-DV20x0: ~/ndas/ndas-1.1-24] >


escolom 05-15-2012 02:00 PM

curious george
 
did you ever get this thing to work? I have a ndas network drive enclosure and I am wondering should I bust my 'cohones' trying to get this to work too.

rhermsen 05-21-2012 06:20 AM

Hi escolom,

The cross-compile for my ADSL router no.

But in the past I did compile it often for my Slackware system.
It depents a bit on the kernel version you are using which patches you would need, and with the latest kernel version it will probably be difficult to get it working.

From the links I have only the top one seems to be still working, and a lot of links on that page are also broken:
http://linux.iocellnetworks.com/
http://ndas4linux.iocellnetworks.com/
http://ndas4linux.iocellnetworks.com...i/NDASForLinux
http://linux.ximeta.com:8000/trac/report/3

escolom 05-21-2012 10:47 AM

hi rhermsen,
thanks this confirms my fears. I was at ubunto forums earlier thinking I should post an idea
for all future releases of ubunto to have built in ndas support since ximeta claims they
shifted support to linux community...i don't think the proprietory drivers should be a problem.

I need to try and get people to post the idea.
I bet there are lots of people on linux with worthless net drives now.

Thanks

rhermsen 08-12-2012 04:13 PM

Tried crosscompiling NDAS for my ADSL router again today, got a few steps further, but stuck again.

ld: /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas.o: compiled for a little endian system and target is big endian
ld: /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas.o: endianness incompatible with that of the selected emulation
ld: failed to merge target specific data of file /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas.o
make[2]: *** [/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas_core.o] Error 1
make[1]: *** [_module_/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22] Error 2
make[1]: Leaving directory `/opt/dv20xx_iad/kernel/linux'
make: *** [/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas_sal.ko] Error 2



Escolom,
You might want to look again at http://ndas4linux.iocellnetworks.com/
I compiled NDAS succesfully for Slackware 13.37-x86_64 using package ndas-2.6.43 x86_64. I only had to refert back fix: http://ndas4linux.iocellnetworks.com...gi/ticket/1167 (Slackware 13.37 is using kernel 2.6.37.6).

If you look at the changes you see there is progress: http://ndas4linux.iocellnetworks.com...x.cgi/timeline
There are packages for a few later kernels (latest 3.4.5). If you want to give it a try than also have a look at the tickets: http://ndas4linux.iocellnetworks.com...x.cgi/report/1

escolom 05-20-2013 04:47 PM

Quote:

Originally Posted by rhermsen (Post 4752595)
Tried crosscompiling NDAS for my ADSL router again today, got a few steps further, but stuck again.

ld: /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas.o: compiled for a little endian system and target is big endian
ld: /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas.o: endianness incompatible with that of the selected emulation
ld: failed to merge target specific data of file /opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas.o
make[2]: *** [/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas_core.o] Error 1
make[1]: *** [_module_/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22] Error 2
make[1]: Leaving directory `/opt/dv20xx_iad/kernel/linux'
make: *** [/opt/dv20xx_iad/userapps/opensource/ndas/ndas-1.1-22/ndas_sal.ko] Error 2



Escolom,
You might want to look again at http://ndas4linux.iocellnetworks.com/
I compiled NDAS succesfully for Slackware 13.37-x86_64 using package ndas-2.6.43 x86_64. I only had to refert back fix: http://ndas4linux.iocellnetworks.com...gi/ticket/1167 (Slackware 13.37 is using kernel 2.6.37.6).

If you look at the changes you see there is progress: http://ndas4linux.iocellnetworks.com...x.cgi/timeline
There are packages for a few later kernels (latest 3.4.5). If you want to give it a try than also have a look at the tickets: http://ndas4linux.iocellnetworks.com...x.cgi/report/1

thank you


All times are GMT -5. The time now is 02:54 PM.