wireless iwconfig

yargic
firstly attach usb device TL-WN321G in mini2440 but I did not make any set
up...
What settings should I do first before. wireless,wpa exp.. and how

usb 1-1: new full speed USB device using s3c2410-ohci and address 3        
    
usb 1-1: New USB device found, idVendor=148f, idProduct=2573               
    
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3          
    
usb 1-1: Product: 54M.USB.......                                           
    
usb 1-1: Manufacturer: Ralink                                              
    
usb 1-1: SerialNumber: 12345                                               
    
usb 1-1: configuration #1 chosen from 1 choice 



[root@miniarm /]#iwconfig
-/bin/sh: iwconfig: not found

yargic
ok..
how to download wireless tools . I don't understand lib,module...
I make only copy scan-wifi,start-wifi,wpa-supplicant
and

# scan-wifi                                                    
modprobe: chdir(/lib/modules): No such file or directory                   
    
modprobe: chdir(/lib/modules): No such file or directory                   
    
modprobe: chdir(/lib/modules): No such file or directory                   
    
modprobe: chdir(/lib/modules): No such file or directory                   
    
ifconfig: SIOCGIFFLAGS: No such device                                     
    
0 Access Point Found 

I get this.
How do I solve this problem

yargic
I compiled wireless tool-29 as down
 ARCH=arm CC=arm-linux-gcc-4.3.2 make
 ARCH=arm CC=arm-linux-gcc-4.3.2 make install 

and iwconfig iwlist iwpriv iwspy iwgetid iwevent ifrename files copy in
/usr/sbin/  and 
libiw.so.29  iwlib.so files copy in /lib

and run iwconfig,iwlist I get eror 
[root@mini2440 /]# iwconfig                                                
       
/usr/sbin/iwconfig: line 2: syntax error: unexpected word (expecting ")")  
    
[root@mini2440 /]# iwlist                                                  
       
/usr/sbin/iwlist: line 1: syntax error: unexpected "("

davef
What kernel and root filesystem are you using?

davef
Ah, you did check that you generated armv4t binaries?

yargic
kernel linux-2.6.32.2  I built root file system with buysbox 
'ARCH=arm CC=arm-linux-gcc-4.3.2 make oldconfig' 
rsC in

#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel

# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
trap ":" INT QUIT TSTP
hostname BYROKON

# mounting file system specified in /etc/fstab
mount -n -t proc none /proc
mount -n -t sysfs none /sys
mount -n -t usbfs none /proc/bus/usb
mount -t ramfs none /dev

mkdir -p /dev/pts /dev/shm /proc/sys/kernel
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s

mount -n -t devpts none /dev/pts -o mode=0622
mount -n -t tmpfs tmpfs /dev/shm
mount -n -t ramfs none /tmp
mount -n -t ramfs none /var
mkdir -p /var/empty /var/log /var/lock /var/run /var/tmp

hwclock -s

# start logging utility services
echo -n > /etc/syslog.conf
syslogd

# set host and config loopback interface
ifconfig lo 127.0.0.1
/etc/init.d/ifconfig-eth0

# prepare qt embedded library
source /etc/profile

if [ -r "/etc/pointercal" ] 
 then  /usr/project/deneme -qws
 else 
  /usr/local/tslib/bin/ts_calibrate
  sleep 3
  /usr/project/deneme -qws
 fi



in lib list

-rwxr-xr-x    1 root     root         27096 Jan  1 00:11 iwlib.so          
    
-rwxr-xr-x    1 root     root        148622 Nov 18  2008 ld-2.8.so         
    
lrwxrwxrwx    1 root     root             9 Feb  4  2009 ld-linux.so.3 ->
ld-2.o
-rwxr-xr-x    1 root     root          7542 Nov 18  2008
libBrokenLocale-2.8.so 
lrwxrwxrwx    1 root     root            22 Feb  4  2009
libBrokenLocale.so.1 -o
-rwxr-xr-x    1 root     root         12603 Nov 18  2008 libSegFault.so    
    
-rwxr-xr-x    1 root     root         14677 Nov 18  2008 libanl-2.8.so     
    
lrwxrwxrwx    1 root     root            13 Feb  4  2009 libanl.so.1 ->
libanl-o
-rwxr-xr-x    1 root     root       1565653 Nov 18  2008 libc-2.8.so       
    
lrwxrwxrwx    1 root     root            11 Feb  4  2009 libc.so.6 ->
libc-2.8.o
-rwxr-xr-x    1 root     root        189247 Nov 18  2008 libcidn-2.8.so    
    
lrwxrwxrwx    1 root     root            14 Feb  4  2009 libcidn.so.1 ->
libcido
-rwxr-xr-x    1 root     root         45479 Nov 18  2008 libcrypt-2.8.so   
    
lrwxrwxrwx    1 root     root            15 Feb  4  2009 libcrypt.so.1 ->
libcro
-rwxr-xr-x    1 root     root         15080 Nov 18  2008 libdl-2.8.so      
    
lrwxrwxrwx    1 root     root            12 Feb  4  2009 libdl.so.2 ->
libdl-2.o
lrwxrwxrwx    1 root     root            13 Feb  4  2009 libgcc_s.so ->
libgcc_1
-rw-r--r--    1 root     root         69584 Nov 18  2008 libgcc_s.so.1     
    
lrwxrwxrwx    1 root     root            18 Oct 28  2011 libid3tag.so ->
libid30
lrwxrwxrwx    1 root     root            18 Oct 28  2011 libid3tag.so.0 ->
libi0
-rwxr-xr-x    1 root     root        235051 Sep 14  2011 libid3tag.so.0.3.0
    
-rwxr-xr-x    1 root     root         30728 Jan  1 00:11 libiw.so.29       
    
lrwxrwxrwx    1 root     root            17 Oct 28  2011 libjpeg.so ->
libjpeg.0
lrwxrwxrwx    1 root     root            17 Oct 28  2011 libjpeg.so.62 ->
libjp0
-rwxr-xr-x    1 root     root        136104 Sep 14  2011 libjpeg.so.62.0.0 
    
-rwxr-xr-x    1 root     root        749831 Nov 18  2008 libm-2.8.so       
    
lrwxrwxrwx    1 root     root            11 Feb  4  2009 libm.so.6 ->
libm-2.8.o
lrwxrwxrwx    1 root     root            15 Oct 28  2011 libmad.so ->
libmad.so1
lrwxrwxrwx    1 root     root            15 Oct 28  2011 libmad.so.0 ->
libmad.1
-rwxr-xr-x    1 root     root        188424 Sep 14  2011 libmad.so.0.2.1   
    
-rwxr-xr-x    1 root     root         22795 Nov 18  2008 libmemusage.so    
    
-rwxr-xr-x    1 root     root        103057 Nov 18  2008 libnsl-2.8.so     
    
lrwxrwxrwx    1 root     root            13 Feb  4  2009 libnsl.so.1 ->
libnsl-o
-rwxr-xr-x    1 root     root         35393 Nov 18  2008
libnss_compat-2.8.so   
lrwxrwxrwx    1 root     root            20 Feb  4  2009 libnss_compat.so.2
-> o
-rwxr-xr-x    1 root     root         18312 Nov 18  2008 libnss_dns-2.8.so 
    
lrwxrwxrwx    1 root     root            17 Feb  4  2009 libnss_dns.so.2 ->
libo
-rwxr-xr-x    1 root     root         52001 Nov 18  2008
libnss_files-2.8.so    
lrwxrwxrwx    1 root     root            19 Feb  4  2009 libnss_files.so.2
-> lo
-rwxr-xr-x    1 root     root         19807 Nov 18  2008
libnss_hesiod-2.8.so   
lrwxrwxrwx    1 root     root            20 Feb  4  2009 libnss_hesiod.so.2
-> o
-rwxr-xr-x    1 root     root         51030 Nov 18  2008 libnss_nis-2.8.so 
    
lrwxrwxrwx    1 root     root            17 Feb  4  2009 libnss_nis.so.2 ->
libo
-rwxr-xr-x    1 root     root         57137 Nov 18  2008
libnss_nisplus-2.8.so  
lrwxrwxrwx    1 root     root            21 Feb  4  2009
libnss_nisplus.so.2 ->o
-rwxr-xr-x    1 root     root          7849 Nov 18  2008 libpcprofile.so   
    
lrwxrwxrwx    1 root     root            16 Oct 28  2011 libpng.so ->
libpng.so0
lrwxrwxrwx    1 root     root            16 Oct 28  2011 libpng.so.3 ->
libpng.0
-rwxr-xr-x    1 root     root        201040 Sep 14  2011 libpng.so.3.35.0  
    
lrwxrwxrwx    1 root     root            18 Oct 28  2011 libpng12.so ->
libpng10
lrwxrwxrwx    1 root     root            18 Oct 28  2011 libpng12.so.0 ->
libpn0
-rwxr-xr-x    1 root     root        189364 Sep 14  2011 libpng12.so.0.35.0
    
-rwxr-xr-x    1 root     root        131890 Nov 18  2008 libpthread-2.8.so 
    
lrwxrwxrwx    1 root     root            17 Feb  4  2009 libpthread.so.0 ->
libo
-rwxr-xr-x    1 root     root         75532 Nov 18  2008 libresolv-2.8.so  
    
lrwxrwxrwx    1 root     root            16 Feb  4  2009 libresolv.so.2 ->
libro
-rwxr-xr-x    1 root     root         40807 Nov 18  2008 librt-2.8.so      
    
lrwxrwxrwx    1 root     root            12 Feb  4  2009 librt.so.1 ->
librt-2.o
lrwxrwxrwx    1 root     root            19 Oct 28  2011 libstdc++.so ->
libstd0
lrwxrwxrwx    1 root     root            19 Oct 28  2011 libstdc++.so.6 ->
libs0
-rwxr-xr-x    1 root     root       1250667 Sep 14  2011
libstdc++.so.6.0.10    
-rwxr-xr-x    1 root     root         36459 Nov 18  2008
libthread_db-1.0.so    
lrwxrwxrwx    1 root     root            19 Feb  4  2009 libthread_db.so.1
-> lo
-rwxr-xr-x    1 root     root         13607 Nov 18  2008 libutil-2.8.so    
    
lrwxrwxrwx    1 root     root            14 Feb  4  2009 libutil.so.1 ->
libutio
lrwxrwxrwx    1 root     root            14 Oct 28  2011 libuuid.so ->
libuuid.2
lrwxrwxrwx    1 root     root            14 Oct 28  2011 libuuid.so.1 ->
libuui2
-rwxr-xr-x    1 root     root         15368 Sep 14  2011 libuuid.so.1.2    
    
-rw-r--r--    1 root     root         92728 Mar 26  2009 libz.a

yargic
how to check armv4t binaries

Juergen Beisert
It should look like this:

$ readelf -A <the-binary-to-test>
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "4T"
  Tag_CPU_arch: v4T
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_VFP_arch: VFPv2
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align8_needed: Yes
  Tag_ABI_align8_preserved: Yes, except leaf SP
  Tag_ABI_enum_size: int
  Tag_unknown_44: 1 (0x1)

The important line is "Tag_CPU_arch: v4T"

yargic
how to install linux-usb-wifi_linux-2.6.32.2_20100728 in mini2440 
this contain lib usr folder and where you have copied into the

yargic
readelf -A <the-binary-to-test> ....how to use it

yargic
root@yargic-pc:~# readelf -A <the-binary-to-test>
bash: syntax error near unexpected token `newline'

yargic
I check all binary .so

Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "4T"
  Tag_CPU_arch: v4T
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_ABI_optimization_goals: Aggressive Speed

yargic
hi
I have wireless broadcasting.seeing the broadcast in my PC  and the
Internet on Enter own computer
When I wrote scan-wifi,mini2440 does not see wireless broadcasting 

 start-wifi wpa SSID PASSWORD                                        
sh: udhcpc: not found

scan-wifi 
0 Access Point Found

yargic
thank Juergen Beisert and dave 
I solved all problems
it is working now

zhjixi495
TO:yargic
 
   I have the same problems. Can you tell me how to solved the problems.

yargic
from Juergen Beisert and dave
armv4t problem 

Juergen Beisert 

It should look like this:

$ readelf -A <the-binary-to-test>
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "4T"
  Tag_CPU_arch: v4T
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_VFP_arch: VFPv2
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align8_needed: Yes
  Tag_ABI_align8_preserved: Yes, except leaf SP
  Tag_ABI_enum_size: int
  Tag_unknown_44: 1 (0x1)

The important line is "Tag_CPU_arch: v4T"