lwfinger / rtl8188eu

Repository for stand-alone RTL8188EU driver.
Other
1.68k stars 592 forks source link

hangs when booting from flash #57

Open edn1 opened 10 years ago

edn1 commented 10 years ago

I am using an embedded board, which can either boot from sdcard or nand.

I have successfully used the 8188eu driver (when booting from sdcard) with the TL-WN725N, both to connect to a network and as an AP.

however when booting from nand, the command 'ifconfig wlan0 up' just hangs for around 70 seconds give or take, then returns with 'SIOCSIFFLAGS: Operation not permitted'.

while 'ifconfig' hangs, if i ssh to the board, i get the message of the day, but no shell ( i finaly get the shell when 'ifconfig' returns)

nothing appears under dmesg while issuing the 'ifconfig up'

note that wpa_suppclient and hostapd also hangs in a similiar manner.

thanks, edn1

lwfinger commented 10 years ago

I have no idea what might be causing this problem; however, the first step is to use strace to see where a command is hanging. See 'man strace' for more info.

edn1 commented 10 years ago

... ... uname({sys="Linux", node="debian", ...}) = 0 access("/proc/net", R_OK) = 0 access("/proc/net/unix", R_OK) = 0 socket(PF_FILE, SOCK_DGRAM, 0) = 3 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4 access("/proc/net/if_inet6", R_OK) = 0 socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 5 access("/proc/net/ax25", R_OK) = -1 ENOENT (No such file or directory) access("/proc/net/nr", R_OK) = -1 ENOENT (No such file or directory) access("/proc/net/rose", R_OK) = -1 ENOENT (No such file or directory) access("/proc/net/ipx", R_OK) = -1 ENOENT (No such file or directory) access("/proc/net/appletalk", R_OK) = -1 ENOENT (No such file or directory) access("/proc/sys/net/econet", R_OK) = -1 ENOENT (No such file or directory) access("/proc/sys/net/ash", R_OK) = -1 ENOENT (No such file or directory) access("/proc/net/x25", R_OK) = -1 ENOENT (No such file or directory) ioctl(4, SIOCGIFFLAGS, {ifr_name="wlan0", ifr_flags=IFF_BROADCAST|IFF_MULTICAST}) = 0 ioctl(4, SIOCSIFFLAGS

=== here it waits for around 70 seconds ===

, {ifr_name="wlan0", ???}) = -1 EPERM (Operation not permitted) dup(2) = 6 fcntl64(6, F_GETFL) = 0x2 (flags O_RDWR) fstat64(6, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6fd5000 _llseek(6, 0, 0xbec40960, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(6, "SIOCSIFFLAGS: Operation not perm"..., 38) = 38 close(6) = 0 munmap(0xb6fd5000, 4096) = 0 exit_group(-1) = ?

lwfinger commented 10 years ago

On your distro, is ifconfig a script or a program? What distro are you using?

edn1 commented 10 years ago

root@shira:~# file /sbin/ifconfig /sbin/ifconfig: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, stripped root@shira:~# cat /etc/issue Debian GNU/Linux 7 \n \l

edn1 commented 10 years ago

i looked at some forums and tried also 'rfkill unblock all' - but that had no effect it is strange: if i boot with same kernel from sd-card, it works ok, even if i mount flash first if i boot with same kernel from nand flash, it does not work, even if i chroot to sd-card first