OpenWrt Forum Archive

Topic: Kamizake 7.09 SDK Atheros-2.6

The content of this topic has been archived on 11 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Now i have downloaded the SDK on your site

http://downloads.openwrt.org/kamikaze/7 … 64.tar.bz2

Problems:

1) The file is corrupted.  (downloaded 3 time ) md5sum is always the same and is wrong

0c951d3344ef234faebde95db40347d7 ( different from 8d052fd3ed21001cb40fe217d3586a5c )

and the archive do not uncompress the files inside

I have resolved downloading the file from a mirror ( finded with Google search )




2)  I have uncompressend the files i have done a make command ( with no additional packages ) to test the SDK

result:

ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
  make[2] package/compile
  make[3] -C package compile
/bin/sh: -c: line 4: syntax error near unexpected token `('
/bin/sh: -c: line 4: `          xargs -n1 cmd() { &>/dev/null make $* || {  echo "Build failed. Please re-run make with V=99 to see what's going on"; false; } } 3>&1 4>&2; cmd compile -C; \'

and

result:

make V=99

ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
make package/compile
ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
make[1]: Entering directory `/home/I-BIRD/Desktop/OpenWRT/SDK/kamikaze'
ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
make -C package compile SDK=1
make[2]: Entering directory `/home/I-BIRD/Desktop/OpenWRT/SDK/kamikaze/package'
make[2]: `compile' is up to date.
make[2]: Leaving directory `/home/I-BIRD/Desktop/OpenWRT/SDK/kamikaze/package'
make[1]: Leaving directory `/home/I-BIRD/Desktop/OpenWRT/SDK/kamikaze'
( \
                cd package; \
                find . -maxdepth 2 -name Config.in | \
                        sed -e 's,/Config.in,,g' | \
                        xargs -n1 make compile -C; \
        )
make: option requires an argument -- C
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for i686-redhat-linux-gnu
Report bugs to <bug-make@gnu.org>
make: [world] Error 123 (ignored)

PS the package say x86_64, my PC is not 64 but i have not finded another package

It might be easiest to build it yourself:
BuildingKamikazeHowTo

I doubt the x86_64 version of the SDK would work on a 32bit PC.

I always would prefer using the build-system instead of the SDK or the IB.

The build-system compiles from source and works mostly for all packages on both 32bit and 64bit machines.

i have used the Build system and i only see a way to compile OpenWRT and the standard packages

but I have not finded a way to create and compile a MY package or application. The Docs say to use SDK
and don' t refers to the build system.


UPDATE

I have fonded  mips-linux-uclibc-gcc is a gcc for cross compiling ?

(Last edited by IBirdSoft on 20 Feb 2008, 01:04)

It compile but when i send to the router do not start ( Permission denied )

the code

#include <stdio.h>

int main(void)
{
    printf("First Program\n");
    return 0;
}

compiled with

mips-linux-uclibc-gcc -o hw hw.c

and tried also mips-linux-gcc
same thing

I have also tried to compile the SDK from kamikaze_7.09.tar.bz2     

but

doing make generate

ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
ls: package/*/Makefile: No such file or directory
...................

same as posted above


Tried also the SDK compiled with Kamikaze-trunk ( downloaded with svn )
Do not have the problem. 



I will try to compile my package with this SDK

(Last edited by IBirdSoft on 20 Feb 2008, 19:15)

IBirdSoft wrote:

but I have not finded a way to create and compile a MY package or application. The Docs say to use SDK
and don' t refers to the build system.

You can compile your own package on the Buildroot in the same way as you do using SDK. See http://forum.openwrt.org/viewtopic.php?pid=56425.

(Last edited by ggp81 on 21 Feb 2008, 09:16)

I also did not konw how to deal with that.

IBirdSoft wrote:

Now i have downloaded the SDK on your site

http://downloads.openwrt.org/kamikaze/7 … 64.tar.bz2

Problems:

1) The file is corrupted.  (downloaded 3 time ) md5sum is always the same and is wrong

0c951d3344ef234faebde95db40347d7 ( different from 8d052fd3ed21001cb40fe217d3586a5c )

and the archive do not uncompress the files inside

I downloaded a copy of the SDK myself and had no problem to extract and use it (see below and the downloaded file still has its original stamp date). Probably, there is a problem with your Internet connection.

[mazilo@Mi:/tmp 54%] ~ wget http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
--08:45:53--  http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
           => `OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2'
Resolving downloads.openwrt.org... 195.56.146.238
Connecting to downloads.openwrt.org|195.56.146.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45,146,649 (43M) [application/x-tar]

100%[====================================>] 45,146,649   770.73K/s    ETA 00:00

08:46:39 (960.52 KB/s) - `OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2' saved [45146649/45146649]

0.096u+1.224s=0:46.40e(2.8%) TDSavg=0k+0k+0k max=0k 0+0io 3pf+0sw
[mazilo@Mi:/tmp 55%] ~ dir OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
-rw-r--r-- 1 mazilo users 45146649 2007-09-30 14:18 OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
[mazilo@Mi:/tmp 56%] ~ md5sum OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
8d052fd3ed21001cb40fe217d3586a5c  OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
[mazilo@Mi:/tmp 57%] ~ tar -jxf /tmp/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2
13.648u+1.984s=0:17.80e(87.7%) TDSavg=0k+0k+0k max=0k 0+0io 0pf+0sw
[mazilo@Mi:/tmp 58%] ~

After compiled my first ( Working ) program with mips-linux-uclibc-gcc

I finaly have understanded how SDK work ( and probably the Build system ),
and created my package: ipkg + configure script + binary from my test
program with source loaded localy ( But probably i have understanded also
how to load remotely )

Due the lackness of documentation this need a lot of patience

(Last edited by IBirdSoft on 21 Feb 2008, 23:21)

I downloaded a copy of the SDK myself and had no problem to extract and use it (see below and the downloaded file still has its original stamp date). Probably, there is a problem with your Internet connection.

Thx for reply i have solved the problem.
Is not a connection problems ( md5sum is the same for all corrupted download ), so the problem is systematic.
I have only understanded that wget work, instead download directly from the Browser ( Opera  ) do not work
I have not compared the binary to understand why ( I have only searched an answer with Google ..... founded nothing ) .

The discussion might have continued from here.