rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Mon Feb 08, 2010 10:13 pm

All times are UTC


Forum rules


Important: Read Project restructuring announcement regarding the pending removal of the legacy drivers from this project.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 
Author Message
 Post subject: porting to ARM Linux, ifconfig then kernel panic..
PostPosted: Mon Apr 21, 2008 9:52 am 
Offline

Joined: Sat Apr 19, 2008 6:12 am
Posts: 8
I got 2 problems..

1. kernel panic

2. adapter seems shutdown (the power indication led die) when trying to reach dhcp, or setting ip by ifconfig

appreciate for any suggestion !!

============

driver version : rt73-cvs-2008042100

kernel version : 2.6.25

hardware : arm9 s3c2440

usb adapter : ASUS WL-167G

============


scanning ap on my host pc, (it works fine here)

[host] # iwlist wlan0 scanning
Code:
          Cell 04 - Address: 00:E0:98:4E:8D:5E
                    ESSID:"fdde"
                    Mode:Master
                    Channel:11
                    Frequency:2.462 GHz
                    Signal level=-70 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Extra:tsf=0000002b54fa17d8



============


I'm using busybox , and mdev instead of udev on target board
Code:
/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug


plug the adapter into usb port

Code:

usb 1-1: USB disconnect, address 2
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: New USB device found, idVendor=0b05, idProduct=1723
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: 802.11 bg WLAN
usb 1-1: Manufacturer: Ralink


[busybox] # modprobe rt73

Code:
rt73: init
rt73: idVendor = 0xb05, idProduct = 0x1723
rt73: using permanent MAC addr
rt73: Active MAC addr: 00:18:f3:5a:80:c2
rt73: Local MAC = 00:18:f3:5a:80:c2
usbcore: registered new interface driver rt73


[busybox] # dmesg |grep rt73

Code:
rt73: init
rt73 1-1:1.0: usb_probe_interface
rt73 1-1:1.0: usb_probe_interface - got id
rt73: idVendor = 0xb05, idProduct = 0x1723
rt73: using permanent MAC addr
rt73: Active MAC addr: 00:18:f3:5a:80:c2
rt73: Local MAC = 00:18:f3:5a:80:c2
usbcore: registered new interface driver rt73



setting iwconfig

Code:
iwconfig wlan0 essid "fdde"
iwconfig wlan0 ap 00:E0:98:4E:8D:5E
iwconfig wlan0 mode managed
iwconfig wlan0 channel 11
iwconfig wlan0 key off
iwconfig wlan0 rate 11M


getting ip from dhcp

[busybox] # udhcpc -i wlan0
Code:
udhcpc (v1.9.2) started
rt73: driver version - 1.0.3.6 CVS
rt73: using net dev supplied MAC addr
rt73: Active MAC addr: 00:18:f3:5a:80:c2
rt73: Local MAC = 00:18:f3:5a:80:c2
Sending discover...


Sending discover , then the power indication LED on adapter die...

and kernel panic

Code:
rt73Cmd invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0
[<c002e9e4>] (dump_stack+0x0/0x14) from [<c006e620>] (oom_kill_process+0x58/0x1)
[<c006e5c8>] (oom_kill_process+0x0/0x1a8) from [<c006ea30>] (out_of_memory+0x1d)
[<c006e860>] (out_of_memory+0x0/0x21c) from [<c0070c48>] (__alloc_pages+0x284/0)
[<c00709c4>] (__alloc_pages+0x0/0x310) from [<c0088ba8>] (cache_alloc_refill+0x)
[<c00888d8>] (cache_alloc_refill+0x0/0x594) from [<c0088f94>] (__kmalloc+0x90/0)
[<c0088f04>] (__kmalloc+0x0/0xc4) from [<c01ef678>] (usb_alloc_urb+0x18/0x48)
r7:c29e0000 r6:00000006 r5:00000001 r4:c29fd390
[<c01ef660>] (usb_alloc_urb+0x0/0x48) from [<bf01ac50>] (NICInitTransmit+0x108/)
r4:c29fd390
[<bf01ab48>] (NICInitTransmit+0x0/0x62c [rt73]) from [<bf000a9c>] (CMDHandler+0)
[<bf000364>] (CMDHandler+0x0/0x158c [rt73]) from [<bf001e64>] (RTUSBCmdThread+0)
[<bf001d9c>] (RTUSBCmdThread+0x0/0x124 [rt73]) from [<c0046f28>] (do_exit+0x0/0)
r7:00000000 r6:00000000 r5:00000000 r4:00000000
Mem-info:
DMA per-cpu:
CPU    0: hi:   18, btch:   3 usd:  16
Active:50 inactive:0 dirty:0 writeback:0 unstable:0
free:252 slab:12567 mapped:0 pagetables:12 bounce:0
DMA free:1008kB min:1016kB low:1268kB high:1524kB active:200kB inactive:0kB pres
lowmem_reserve[]: 0 0 0
DMA: 0*4kB 0*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kBB
1 total pagecache pages
Swap cache: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
Free swap:            0kB
16384 pages of RAM
305 free pages
1144 reserved pages
12567 slab pages
0 pages shared
0 pages swap cached
Out of memory: kill process 842 (sh) score 67 or a child
Killed process 889 (udhcpc)


sh invoked oom-killer: gfp_mask=0x1201d2, order=0, oomkilladj=0
[<c002e9e4>] (dump_stack+0x0/0x14) from [<c006e620>] (oom_kill_process+0x58/0x1)
[<c006e5c8>] (oom_kill_process+0x0/0x1a8) from [<c006ea30>] (out_of_memory+0x1d)
[<c006e860>] (out_of_memory+0x0/0x21c) from [<c0070c48>] (__alloc_pages+0x284/0)
[<c00709c4>] (__alloc_pages+0x0/0x310) from [<c0072d24>] (__do_page_cache_reada)
[<c0072c4c>] (__do_page_cache_readahead+0x0/0x220) from [<c0072f7c>] (do_page_c)
[<c0072f0c>] (do_page_cache_readahead+0x0/0x7c) from [<c006b948>] (filemap_faul)
r7:00000000 r6:00000000 r5:00000fff r4:00000000
[<c006b7c0>] (filemap_fault+0x0/0x3ac) from [<c007aaac>] (__do_fault+0x74/0x3d0)
[<c007aa38>] (__do_fault+0x0/0x3d0) from [<c007b1c0>] (handle_mm_fault+0x2cc/0x)
[<c007aef4>] (handle_mm_fault+0x0/0x5ec) from [<c0030300>] (do_page_fault+0xd8/)
[<c0030228>] (do_page_fault+0x0/0x218) from [<c0030460>] (do_translation_fault+)
[<c0030440>] (do_translation_fault+0x0/0x80) from [<c002a280>] (do_PrefetchAbor)
r5:ffffffff r4:ffffffff
[<c002a268>] (do_PrefetchAbort+0x0/0x1c) from [<c002a980>] (ret_from_exception+)
Exception stack(0xc3361fb0 to 0xc3361ff8)
1fa0:                                     00000379 bec88a3c 00000002 00000000
1fc0: 000c48c8 ffffffff 000c4855 000c48c8 000c226c 00000003 00000000 00000000
1fe0: bec88a3c bec88a38 401858bc 401858c4 20000010 ffffffff
Mem-info:
DMA per-cpu:
CPU    0: hi:   18, btch:   3 usd:   5
Active:34 inactive:0 dirty:0 writeback:0 unstable:0
free:252 slab:12594 mapped:0 pagetables:8 bounce:0
DMA free:1008kB min:1016kB low:1268kB high:1524kB active:136kB inactive:0kB pres
lowmem_reserve[]: 0 0 0
DMA: 0*4kB 0*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kBB
1 total pagecache pages
Swap cache: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
Free swap:            0kB
16384 pages of RAM
290 free pages
1144 reserved pages
12594 slab pages
0 pages shared
0 pages swap cached
Out of memory: kill process 842 (sh) score 45 or a child
Killed process 842 (sh)
Kernel panic - not syncing: Out of memory and no killable processes...


==========

it seems my adapter shutdown while ifconfig setting ip

after a while (about 20s) : kernel panic

[busybox] # ifconfig wlan0 192.168.1.199

Code:
rt73: driver version - 1.0.3.6 CVS
rt73: using net dev supplied MAC addr
rt73: Active MAC addr: 00:18:f3:5a:80:c2
rt73: Local MAC = 00:18:f3:5a:80:c2


(adapter shutdown)

[busybox] # ifconfig

Code:
wlan0     Link encap:Ethernet  HWaddr 00:18:F3:5A:80:C2
          inet addr:192.168.1.199  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:138 (138.0 B)  TX bytes:280 (280.0 B)


kernel panic

Code:
rt73Cmd invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0
[<c002e9e4>] (dump_stack+0x0/0x14) from [<c006e620>] (oom_kill_process+0x58/0x1a
8)
[<c006e5c8>] (oom_kill_process+0x0/0x1a8) from [<c006ea30>] (out_of_memory+0x1d0
/0x21c)
[<c006e860>] (out_of_memory+0x0/0x21c) from [<c0070c48>] (__alloc_pages+0x284/0x
310)
[<c00709c4>] (__alloc_pages+0x0/0x310) from [<c0088ba8>] (cache_alloc_refill+0x2
d0/0x594)
[<c00888d8>] (cache_alloc_refill+0x0/0x594) from [<c00888a8>] (kmem_cache_alloc+
0x4c/0x7c)
[<c008885c>] (kmem_cache_alloc+0x0/0x7c) from [<bf01ac70>] (NICInitTransmit+0x12
8/0x62c [rt73])
r7:c3240000 r6:0000001e r5:00000001 r4:c325d8e8
[<bf01ab48>] (NICInitTransmit+0x0/0x62c [rt73]) from [<bf000a9c>] (CMDHandler+0x
738/0x158c [rt73])
[<bf000364>] (CMDHandler+0x0/0x158c [rt73]) from [<bf001e64>] (RTUSBCmdThread+0x
c8/0x124 [rt73])
[<bf001d9c>] (RTUSBCmdThread+0x0/0x124 [rt73]) from [<c0046f28>] (do_exit+0x0/0x
600)
r7:00000000 r6:00000000 r5:00000000 r4:00000000
Mem-info:
DMA per-cpu:
CPU    0: hi:   18, btch:   3 usd:  16
Active:33 inactive:0 dirty:0 writeback:0 unstable:0
free:252 slab:12594 mapped:0 pagetables:8 bounce:0
DMA free:1008kB min:1016kB low:1268kB high:1524kB active:132kB inactive:0kB pres
ent:65024kB pages_scanned:230 all_unreclaimable? yes
lowmem_reserve[]: 0 0 0
DMA: 0*4kB 0*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB
0*4096kB = 1008kB
1 total pagecache pages
Swap cache: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
Free swap:            0kB
16384 pages of RAM
301 free pages
1144 reserved pages
12594 slab pages
0 pages shared
0 pages swap cached
Out of memory: kill process 842 (sh) score 45 or a child
Killed process 842 (sh)
Kernel panic - not syncing: Out of memory and no killable processes...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 1:05 pm 
Offline

Joined: Wed Apr 23, 2008 1:01 pm
Posts: 17
Hello,

could you explain me how you compile the sources with you ARM CrossCompiler ?

In the kernel 2.6.25 there is already a rt73 driver... ?

I am using mdev too, if I try to load the firmware rt73.bin -> an error occurs:
failed to request firmware.... ?

I put the file in my RFS in /lib/firmware

What´s wrong ?

Thank you very very much for help

Best regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 6:47 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
Hi andrewtw,

Looks like you may have stumbled into the hosed recovery logic. The attached patch is *not* a fix, but may head off the panic long enough to allow a reasonably good debug log to be generated. Could you apply it, build with debug enabled, run with "debug=15" as a modprobe parameter, and attach a gzipped copy of /var/log/debug to a posting here?

Thanks,


Attachments:
File comment: Comment out call to problematic code.
rcvr1.patch.gz [376 Bytes]
Downloaded 13 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 24, 2008 3:22 am 
Offline

Joined: Sat Apr 19, 2008 6:12 am
Posts: 8
ManuelSahm wrote:
Hello,

could you explain me how you compile the sources with you ARM CrossCompiler ?

In the kernel 2.6.25 there is already a rt73 driver... ?

I am using mdev too, if I try to load the firmware rt73.bin -> an error occurs:
failed to request firmware.... ?

I put the file in my RFS in /lib/firmware

What´s wrong ?

Thank you very very much for help

Best regards


HI ManuelSahm,

first, you have to prepare arm-linux-toolchain

then, build kernel for arm in your host machine.


as rt73, simply modify rt73/Module/Makefile

for example, add following codes
Code:
ARCH=arm

CROSS_COMPILE=/usr/local/arm/3.4.1/bin/arm-linux-

KERNDIR=/home2/andrew/kernel/linux-2.6.24_config_arm

ROOTFS = /home2/andrew/busybox/rootfs



and modify this
Code:
FIRM_DIR :=    $(ROOTFS)/lib/firmware


KERNDIR : the official kernel source, config for arm

ROOTFS : the root filesystem location of the embedded linux

/lib/modules/2.6.24.3 : modules of arm linux will be here..




(rt73/Module) # make armdebug ==>comes rt73.ko

(rt73/Module) # file ./rt73.ko
Code:
./rt73.ko: ELF 32-bit LSB relocatable, ARM, version 1, not stripped


(rt73/Module) # sudo make install
Code:
*** Install module in /lib/modules/2.6.24.3/extra

....

*** Install firmware in /home2/andrew/busybox/rootfs/lib/firmware


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 24, 2008 6:57 am 
Offline

Joined: Wed Apr 23, 2008 1:01 pm
Posts: 17
Hello,

thank you very much.

Which files should be in my embedded linux RootFileSystem ?

rt73.bin : /$(ROOTFS)/lib/firmware
rt73usb.ko : /$(ROOTFS)/lib/modules/2.6.25/extra

Only this two files ?

Do I need mor files in my RFS ? maybe in /etc ?, or somewhere else ?

As described in the post above I added this lines at the top of the Makefile:
Code:
ARCH=arm

CROSS_COMPILE=/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-

KERNDIR=/root/LRU3000/FEIGKernel/linux-2.6.25

ROOTFS = /exports


and modified the line:
Code:
FIRM_DIR :=    $(ROOTFS)/lib/firmware



(rt73/Module) # make armdebug -> doesn´t work !!

I have to type: (rt73/Module) # make ARCH=arm CROSS_COMPILE=/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le- armdebug

When I type : (rt73/Module) # sudo make install

Only the firmware file rt73.bin is copied to my embedded linux rfs... not the rt73usb.ko which was built ?

Thank you for your help


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 24, 2008 7:08 am 
Offline

Joined: Sat Apr 19, 2008 6:12 am
Posts: 8
Vern wrote:
Hi andrewtw,

Looks like you may have stumbled into the hosed recovery logic. The attached patch is *not* a fix, but may head off the panic long enough to allow a reasonably good debug log to be generated. Could you apply it, build with debug enabled, run with "debug=15" as a modprobe parameter, and attach a gzipped copy of /var/log/debug to a posting here?

Thanks,


Hi Vern :

Sorry for my poor English, I don't know the meaning of "hosed recovery logic".

And, don't know why my debugfs seems not work, even if I check the rt73 debug module in 'make menuconfig' .

So I paste the dmesg log below.



BOOT UP LOG
[busybox] # dmesg
Code:
Linux version 2.6.24.3 (fyodor@ee504-desktop) (gcc version 3.4.1) #249 Thu Apr 2
4 11:33:59 CST 2008
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
Machine: SMDK2440
Converting old-style param struct to taglist
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
  DMA zone: 128 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 16256 pages, LIFO batch:3
  Normal zone: 0 pages used for memmap
  Movable zone: 0 pages used for memmap
CPU S3C2440A (id 0x32440001)
S3C244X: core 296.352 MHz, memory 98.784 MHz, peripheral 49.392 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
clock : register usb bus clock ok
CLOCK: Slow mode (2.116 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttySAC1 init=/linuxrc mem=64M
irq: clearing pending ext status 00000100
irq: clearing subpending status 00000018
irq: clearing subpending status 00000010
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000000, tcnt a0c7, tcfg 00000200,00000000, usec 00001f19
Console: colour dummy device 80x30
selected clock c03dbcb0 (pclk) quot 26, calc 114333
console [ttySAC1] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60684KB available (3692K code, 324K data, 144K init)
Calibrating delay loop... 49.04 BogoMIPS (lpj=122624)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
smdk2440 machine init
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
S3C244X: Clock Support, DVS off
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) ▒© 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410fb: devinit
s3c2410fb: got and enabled clock
s3c2410fb: map_video_memory(fbi=c3c7a260) map_size 155648
s3c2410fb: map_video_memory: clear ffc00000:00026000
s3c2410fb: map_video_memory: dma=33d00000 cpu=ffc00000 size=00026000
s3c2410fb: got video memory
s3c2410fb: LPCSEL    = 0x00000c0c
s3c2410fb: replacing TPAL 00000000
s3c2410fb: check_var(var=c3c7a008, info=c3c7a000)
s3c2410fb: pixclk 166667, divisor is 16
s3c2410fb: s3c2410fb_activate_var: var->xres  = 240
s3c2410fb: s3c2410fb_activate_var: var->yres  = 320
s3c2410fb: s3c2410fb_activate_var: var->bpp   = 16
s3c2410fb: setting vert: up=6, low=8, sync=2
s3c2410fb: setting horz: lft=8, rt=4, sync=4
__DEBUG: clkdiv: 7
s3c2410fb: new register set:
s3c2410fb: lcdcon[1] = 0x00000778
s3c2410fb: lcdcon[2] = 0x054fc1c1
s3c2410fb: lcdcon[3] = 0x0018ef07
s3c2410fb: lcdcon[4] = 0x00000d03
s3c2410fb: lcdcon[5] = 0x00000f49
s3c2410fb: LCDSADDR1 = 0x19e80000
s3c2410fb: LCDSADDR2 = 0x19e92c00
s3c2410fb: LCDSADDR3 = 0x000000f0
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
uvesafb: failed to execute /sbin/v86d
uvesafb: make sure that the v86d helper is installed and executable
uvesafb: Getting VBE info block failed (eax=0x4f00, err=-2)
uvesafb: vbe_init() failed with -22
uvesafb: probe of uvesafb.0 failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.30
drivers/net/usb/rtl8150.c: rtl8150 based usb-ethernet driver v0.6.2 (2004/08/27)
usbcore: registered new interface driver rtl8150
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
Loading iSCSI transport class v2.0-869.
iscsi: registered transport (tcp)
Driver 'sd' needs updating - please use bus_type methods
scsi0 : scsi_debug, version 1.81 [20070104], dev_size_mb=8, opts=0x0
scsi 0:0:0:0: Direct-Access     Linux    scsi_debug       0004 PQ: 0 ANSI: 5
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
sd 0:0:0:0: [sda] 16384 512-byte hardware sectors (8 MB)
s3c2440-nand s3c2440-nand: Tacls=1, 10ns Twrph0=3 30ns, Twrph1=1 10ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 379 at 0x02f60000
Bad eraseblock 891 at 0x06f60000
Bad eraseblock 931 at 0x07460000
Bad eraseblock 1231 at 0x099e0000
Bad eraseblock 1398 at 0x0aec0000
Bad eraseblock 1399 at 0x0aee0000
Bad eraseblock 1409 at 0x0b020000
Creating 5 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "vivi"
ftl_cs: FTL header not found.
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 73 00 10 08
0x00040000-0x00060000 : "param"
ftl_cs: FTL header not found.
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
0x00060000-0x00460000 : "kernel"
ftl_cs: FTL header not found.
sd 0:0:0:0: [sda] 16384 512-byte hardware sectors (8 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 73 00 10 08
0x00460000-0x04460000 : "root"
ftl_cs: FTL header not found.
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sda: unknown partition table
0x04460000-0x0c460000 : "flash"
ftl_cs: FTL header not found.
sd 0:0:0:0: [sda] Attached SCSI disk
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd: block sizes: ed 64 td 64

ohci-s3c2410 : usb_hcd_s3c2410_probe
usb : set power gpio for USB
s3c2410-ohci : usb_set_power error, s3c2410_hcd_info = NULL
s3c2410-ohci : usb_set_power error, s3c2410_hcd_info = NULL
s3c2410-ohci s3c2410-ohci: s3c2410_start_hc:

usb : s3c2410_start_hc
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
drivers/usb/core/inode.c: creating file 'devices'
drivers/usb/core/inode.c: creating file '001'
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
s3c2410-ohci s3c2410-ohci: created debug files
s3c2410-ohci s3c2410-ohci: OHCI controller state
s3c2410-ohci s3c2410-ohci: OHCI 1.0, NO legacy support registers
s3c2410-ohci s3c2410-ohci: control 0x083 HCFS=operational CBSR=3
s3c2410-ohci s3c2410-ohci: cmdstatus 0x00000 SOC=0
s3c2410-ohci s3c2410-ohci: intrstatus 0x00000004 SF
s3c2410-ohci s3c2410-ohci: intrenable 0x8000005a MIE RHSC UE RD WDH
s3c2410-ohci s3c2410-ohci: hcca frame #0005
s3c2410-ohci s3c2410-ohci: roothub.a 02001202 POTPGT=2 NOCP NPS NDP=2(2)
s3c2410-ohci s3c2410-ohci: roothub.b 00000000 PPCM=0000 DR=0000
s3c2410-ohci s3c2410-ohci: roothub.status 00008000 DRWE
s3c2410-ohci s3c2410-ohci: roothub.portstatus [0] 0x00000100 PPS
s3c2410-ohci s3c2410-ohci: roothub.portstatus [1] 0x00000100 PPS
usb usb1: default language 0x0409
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa006,0x2900,0x0000,c3c
17a50,000f)
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: no over-current protection
hub 1-0:1.0: power on to power good time: 4ms
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa000,0x0000,0x0000,c3c
17a10,0004)
hub 1-0:1.0: local power source is good
hub 1-0:1.0: trying to enable port power on non-switchable hub
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0x2303,0x0008,0x0001,c3c
17a0c,0000)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0x2303,0x0008,0x0002,c3c
17a0c,0000)
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000
drivers/usb/core/inode.c: creating file '001'
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.24.3 ohci_hcd
usb usb1: SerialNumber: s3c24xx
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c
43e24,0004)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0002,c3c
43e24,0004)
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 385 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
s3c2410-ohci s3c2410-ohci: auto-stop root hub
jffs2_scan_inode_node(): CRC failed on node at 0x036d8fc4: Read 0xffffffff, calc
ulated 0xa484e0f4
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 144K
selected clock c03dbcb0 (pclk) quot 26, calc 114333
selected clock c03dbcb0 (pclk) quot 26, calc 114333
selected clock c03dbcb0 (pclk) quot 26, calc 114333
selected clock c03dbcb0 (pclk) quot 26, calc 114333
jffs2_scan_inode_node(): CRC failed on node at 0x044697c8: Read 0xffffffff, calc
ulated 0xbaba64ff


PLUG THE ADAPTER
Code:
s3c2410-ohci s3c2410-ohci: auto-wakeup root hub
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c43e24,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0x2301,0x0010,0x0001,c3c43e40,0000)
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c43e24,0004)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c43e24,0004)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c43e24,0004)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c43e24,0004)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c43e24,0004)
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0x2303,0x0004,0x0001,c3c43dbc,0000)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c43da0,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0x2301,0x0014,0x0001,c3c43dbc,0000)
usb 1-1: new full speed USB device using s3c2410-ohci and address 2
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0x2303,0x0004,0x0001,c3c43dbc,0000)
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0xa300,0x0000,0x0001,c3c43da0,0004)
s3c2410-ohci s3c2410-ohci: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
s3c2410-ohci s3c2410-ohci: s3c2410_hub_control(c31ee400,0x2301,0x0014,0x0001,c3c43dbc,0000)
usb 1-1: default language 0x0409
usb 1-1: uevent
usb 1-1: usb_probe_device
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: uevent
usbserial_generic 1-1:1.0: usb_probe_interface
usbserial_generic 1-1:1.0: usb_probe_interface - got id
drivers/usb/core/inode.c: creating file '002'
usb 1-1: New USB device found, idVendor=0b05, idProduct=1723
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: 802.11 bg WLAN
usb 1-1: Manufacturer: Ralink




[busybox] # modprobe rt73 debug=15
Code:
rt73: init
rt73 1-1:1.0: usb_probe_interface
rt73 1-1:1.0: usb_probe_interface - got id
rt73: --> usb_rtusb_probe (2.6)
rt73: idVendor = 0xb05, idProduct = 0x1723
rt73: usb device name wlan0
rt73: BulkOutMaxPacketSize  64
rt73: rt73_get_ether_stats --->
rt73: --> LoadFirmware
rt73: 2048 bytes written to device.
rt73: <-- LoadFirmware (status: 0, loaded: 2048)
rt73: --> PortCfgInit
rt73: <-- PortCfgInit
rt73: --> RTMPInitAdapterBlock
rt73: <-- RTMPInitAdapterBlock
rt73: --> NICInitTransmit
rt73: --> NICInitRecv
rt73: <-- NICInitRecv status=0
rt73: --> MlmeInit
rt73: ==> MlmeInitMemoryHandler
rt73: <== MlmeInitMemoryHandler Status=0
rt73: <-- MlmeInit
rt73: --> NICInitializeAsic
rt73: BBP version = 22
rt73: <-- NICInitializeAsic
rt73: --> NICReadEEPROMParameters
rt73: - Local MAC = 00:18:f3:5a:80:c2
rt73: E2PROM: Version = 1, FAE release #3
rt73: Tx power for channel 1 : 0x0c
rt73: Tx power for channel 2 : 0x0c
rt73: Tx power for channel 3 : 0x0d
rt73: Tx power for channel 4 : 0x0d
rt73: Tx power for channel 5 : 0x0e
rt73: Tx power for channel 6 : 0x0f
rt73: Tx power for channel 7 : 0x0f
rt73: Tx power for channel 8 : 0x10
rt73: Tx power for channel 9 : 0x10
rt73: Tx power for channel 10 : 0x11
rt73: Tx power for channel 11 : 0x12
rt73: Tx power for channel 12 : 0x12
rt73: Tx power for channel 13 : 0x12
rt73: Tx power for channel 14 : 0x12
rt73: Tx power for channel 36 : 0xff
rt73: Tx power for channel 40 : 0xff
rt73: Tx power for channel 44 : 0xff
rt73: Tx power for channel 48 : 0xff
rt73: Tx power for channel 52 : 0xff
rt73: Tx power for channel 56 : 0xff
rt73: Tx power for channel 60 : 0xff
rt73: Tx power for channel 64 : 0xff
rt73: Tx power for channel 100 : 0xff
rt73: Tx power for channel 104 : 0xff
rt73: Tx power for channel 108 : 0xff
rt73: Tx power for channel 112 : 0xff
rt73: Tx power for channel 116 : 0xff
rt73: Tx power for channel 120 : 0xff
rt73: Tx power for channel 124 : 0xff
rt73: Tx power for channel 128 : 0xff
rt73: Tx power for channel 132 : 0xff
rt73: Tx power for channel 136 : 0xff
rt73: Tx power for channel 140 : 0xff
rt73: Tx power for channel 149 : 0xff
rt73: Tx power for channel 153 : 0xff
rt73: Tx power for channel 157 : 0xff
rt73: Tx power for channel 161 : 0xff
rt73: Tx power for channel 165 : 0xff
rt73: Tx power for channel 34 : ffffffff
rt73: Tx power for channel 38 : ffffffff
rt73: Tx power for channel 42 : ffffffff
rt73: Tx power for channel 46 : ffffffff
rt73: E2PROM: G Tssi[-4 .. +4] = 255 255 255 255 - 255 -255 255 255 255, step=255, tuning=0
rt73: E2PROM: A Tssi[-4 .. +4] = 255 255 255 255 - 255 -255 255 255 255, step=255, tuning=0
rt73: E2PROM: RF freq offset=0x19
rt73: <-- NICReadEEPROMParameters
rt73: --> NICInitAsicFromEEPROM
rt73: pAd->RfIcType = 2
rt73: Use Hw Radio Control Pin=0; if used Pin=0;
rt73: RFIC=2, LED mode=0
rt73: <-- NICInitAsicFromEEPROM
rt73: using permanent MAC addr
rt73: -   using permanent MAC addr
rt73: Active MAC addr: 00:18:f3:5a:80:c2
rt73: Local MAC = 00:18:f3:5a:80:c2
rt73: - RTUSBWriteHWMACAddress: Local MAC = 00:18:f3:5a:80:c2
rt73: RTMPSetPhyMode(=0)
rt73: country code=128/128, RFIC=2, PHY mode=0, support 11 channels
rt73: channel # 1 2 3 4 5 6 7 8 9 10 11
rt73: Exptected ACK rate[1] = 1 Mbps
rt73: Exptected ACK rate[2] = 2 Mbps
rt73: Exptected ACK rate[5] = 5 Mbps
rt73: Exptected ACK rate[11] = 11 Mbps
rt73: Exptected ACK rate[6] = 6 Mbps
rt73: Exptected ACK rate[9] = 6 Mbps
rt73: Exptected ACK rate[12] = 12 Mbps
rt73: Exptected ACK rate[18] = 12 Mbps
rt73: Exptected ACK rate[24] = 24 Mbps
rt73: Exptected ACK rate[36] = 24 Mbps
rt73: Exptected ACK rate[48] = 24 Mbps
rt73: Exptected ACK rate[54] = 24 Mbps
rt73:  MlmeUpdateTxRates (MaxDesire=54, MaxSupport=54, MaxTxRate=54, Rate Switch
ing =1)
rt73:  MlmeUpdateTxRates (TxRate=54, RtsRate=2, BasicRateBitmap=0x015f)
rt73: AsicSetSlotTime(=9 us)
rt73: -  (CreateThreads) Mlme pid=863, Cmd pid=864
rt73: <-- common_probe: Status = 0
rt73: <-- usb_rtusb_probe: res=0
rt73: --> MlmeThread (2.6)
rt73: --> RTUSBCmdThread (2.6)
usbcore: registered new interface driver rt73



[busybox] # iwconfig
Code:
lo        no wireless extensions.

wlan0     RT73 WLAN  ESSID:""
          Mode:Managed  Frequency=2.412 GHz  Bit Rate=54 Mb/s
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=0/100  Signal level:-121 dBm  Noise level:-111 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0



[busybox] # cat /etc/network/interfaces
Code:
auto lo
iface lo inet loopback


auto wlan0
iface wlan0 inet dhcp


[busybox] # ifdown wlan0
Code:
ifdown: interface wlan0 not configured



tail of dmesg
Code:
...
...
rt73: --> RTUSBCmdThread (2.6)
usbcore: registered new interface driver rt73

rt73: rt73_get_ether_stats --->
rt73: ==>rt_ioctl_giwfreq  1
rt73: ===>rt_ioctl_giwencode 0
rt73: ===>rt_ioctl_giwessid:: (Len=0, ssid=...)
rt73: ==>rt_ioctl_giwmode
rt73: ===>rt_ioctl_giwrange
rt73: IOCTL::SIOCGIWAP(=EMPTY)
rt73: rt73_get_wireless_stats --->






[busybox] # udhcpc -i wlan0
udhcpc (v1.9.2) started
rt73: driver version - 1.0.3.6 CVS
rt73: using net dev supplied MAC addr
rt73: Active MAC addr: 00:18:f3:5a:80:c2
rt73: Local MAC = 00:18:f3:5a:80:c2
(adapter dead...)
Sending discover...
Sending discover...
Sending discover...
Sending discover...


(Ctrl-z, bg)


[busybox] # dmesg
Code:
704ec0 path 1 ep0in 5ec20000 cc 5 --> status -62
s3c2410-ohci s3c2410-ohci: urb c2704ec0 path 1 ep0in 5ec20000 cc 5 --> status -62
s3c2410-ohci s3c2410-ohci: urb c2704ec0 path 1 ep0in 5ec20000 cc 5 --> status -62
s3c2410-ohci s3c2410-ohci: urb c2704ec0 path 1 ep0in 5ec20000 cc 5 --> status -62
s3c2410-ohci s3c2410-ohci: urb c2704ec0 path 1 ep0in 5ec20000 cc 5 --> status -62

...(loop)

rt73: USBVendorRequest failed ret=-62
rt73: Retry count exhausted or device removed!!!
s3c2410-ohci s3c2410-ohci: urb c0850c40 path 1 ep0in 5ec20000 cc 5 --> status -62




And I found the adapter die because of setting ip by 'ifconfig wlan0 xxx.xxx.xxx.xxx'

Any action related with ifconfig ifconfig will cause my adapter die.



Kernel panic again
Code:
rt73Cmd invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0
[<c00309e4>] (dump_stack+0x0/0x14) from [<c0070620>] (oom_kill_process+0x58/0x1a8)
[<c00705c8>] (oom_kill_process+0x0/0x1a8) from [<c0070a30>] (out_of_memory+0x1d0/0x21c)
[<c0070860>] (out_of_memory+0x0/0x21c) from [<c0072c48>] (__alloc_pages+0x284/0x310)
[<c00729c4>] (__alloc_pages+0x0/0x310) from [<c008aba8>] (cache_alloc_refill+0x2d0/0x594)
[<c008a8d8>] (cache_alloc_refill+0x0/0x594) from [<c008a8a8>] (kmem_cache_alloc+0x4c/0x7c)
[<c008a85c>] (kmem_cache_alloc+0x0/0x7c) from [<bf01ac88>] (NICInitTransmit+0x128/0x62c [rt73])
   r7:c2580000 r6:00000000 r5:00000001 r4:c259d618
[<bf01ab60>] (NICInitTransmit+0x0/0x62c [rt73]) from [<bf000a9c>] (CMDHandler+0x738/0x158c [rt73])
[<bf000364>] (CMDHandler+0x0/0x158c [rt73]) from [<bf001e64>] (RTUSBCmdThread+0xc8/0x124 [rt73])
[<bf001d9c>] (RTUSBCmdThread+0x0/0x124 [rt73]) from [<c0048f28>] (do_exit+0x0/0x600)
   r7:00000000 r6:00000000 r5:00000000 r4:00000000
Mem-info:
DMA per-cpu:
CPU    0: hi:   18, btch:   3 usd:  16
Active:32 inactive:1 dirty:0 writeback:0 unstable:0
free:254 slab:12532 mapped:0 pagetables:8 bounce:0
DMA free:1016kB min:1016kB low:1268kB high:1524kB active:128kB inactive:4kB pres
ent:65024kB pages_scanned:229 all_unreclaimable? yes
lowmem_reserve[]: 0 0 0
DMA: 0*4kB 1*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB
0*4096kB = 1016kB
1 total pagecache pages
Swap cache: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
Free swap:            0kB
16384 pages of RAM
303 free pages
1204 reserved pages
12532 slab pages
0 pages shared
0 pages swap cached
Out of memory: kill process 846 (sh) score 45 or a child
Killed process 846 (sh)
Kernel panic - not syncing: Out of memory and no killable processes...



Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 24, 2008 7:49 am 
Offline

Joined: Sat Apr 19, 2008 6:12 am
Posts: 8
ManuelSahm wrote:

Only the firmware file rt73.bin is copied to my embedded linux rfs... not the rt73usb.ko which was built ?

Thank you for your help



Hi ManuelSahm :

I do copy only these two files to the embedded rootfs.
rt73.ko @ ($ROOTFS)/lib/modules/<kernel version>/extra/
rt73.bin @ ($ROOTFS)/lib/firmware

Actually, I'm not so sure if there're any other file need by this driver...




I found there's rt73sta.dat in Ralink official driver, need to be placed at /etc/Wireless/TR73STA

Maybe the rt73sta.dat is discard in this project......?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 24, 2008 7:52 am 
Offline

Joined: Wed Apr 23, 2008 1:01 pm
Posts: 17
Hello andrewtw and all others,


I´m not able to load the firmware rt73.bin...(placed in /lib/firmware)

I´m using mdev with busybox 1.9.1 and kernel 2.6.25...

Could you send me your busybox config and kernel config ?

I don´t know what could be the problem...andy ideas ?

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 5:33 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
Guys:

Please, one thread, one topic.

ManuelSahm: Please start another thread with your question.

andrewtw:

When you have non-trivial amounts of supporting data, please attach it as one or more gzipped files to your post. Otherwise it makes it hard to pick out the sense of what you're saying.

To say something is "hosed" is a slang expression meaning it doesn't work.

What I'm asking for is unrelated to debugfs. Rather, I'm asking to compile with debug enabled ("make clean debug"), followed with a "make modules_install" or "make install" (as root). See the README and TESTING files for more information.

Add "debug=15" as a parameter to modprobe, then do the procedure that causes the problem. Gzip a copy of /var/log/debug and attach it to a post to this thread.

Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 3:13 pm 
Offline

Joined: Sat Apr 19, 2008 6:12 am
Posts: 8
Vern wrote:

Add "debug=15" as a parameter to modprobe, then do the procedure that causes the problem. Gzip a copy of /var/log/debug and attach it to a post to this thread.

Thanks,


Hi Vern

sorry for my stupid

the log deamon in my embedded busybox seems not work well... something wrong with log alignment

it took me some time to deal with it.. but there're still a problem, so I handly copy/paste the lost message from dmesg to missed_message

version : rt73-cvs-2008042907


# ifconfig wlan0 down

# modprbe rt73 debug=15 firmName=/lib/firmware/rt73.bin

# ifconfig wlan0 up
// error occur from here..?


starts from line 12 in message.tar.gz, plz refer to missed_message


Attachments:
File comment: missed messages in /var/log/message
plz refers this file...

missed_messages.tar.gz [1.59 KiB]
Downloaded 7 times
File comment: # syslogd -l 7
# klogd -c 7

/var/log/messages

messages.tar.gz [2.2 KiB]
Downloaded 4 times
Top
 Profile  
 
 Post subject: Re: porting to ARM Linux, ifconfig then kernel panic..
PostPosted: Wed Apr 30, 2008 11:15 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
Hi andrewtw,

I see you're using 2.6.25, which has the nextgen drivers. So there's a possibility that we're having a collision here. To find out, you can go to your kernel source directory and do
Code:
egrep 'CONFIG_RT[267]' .config
If any of those are set to "y", or "m", then you have the nextgen driver(s) enabled in addition to the legacy driver (not good).

If you wish to use the legacy driver, you need to make sure that the nextgen driver is not compiled into the kernel or compiled as a module.

If you wish to use the nextgen driver, then make sure that the rt73.ko module is not in /lib/modules/`uname -r`/extra, and that there is no alias for wlan* to rt73 in /etc/modprobe.d/ralink.

Please post the results of this effort here before we proceed further,

Thanks,

_________________
Yr Hmbl Obt Svt & c
Bryan - In favor of Big Oil. Big fan of General Grievous.


Top
 Profile  
 
 Post subject: Re: porting to ARM Linux, ifconfig then kernel panic..
PostPosted: Thu May 01, 2008 7:40 am 
Offline

Joined: Sat Apr 19, 2008 6:12 am
Posts: 8
Vern wrote:
Hi andrewtw,

I see you're using 2.6.25, which has the nextgen drivers. So there's a possibility that we're having a collision here. To find out, you can go to your kernel source directory and do
Code:
egrep 'CONFIG_RT[267]' .config
If any of those are set to "y", or "m", then you have the nextgen driver(s) enabled in addition to the legacy driver (not good).

If you wish to use the legacy driver, you need to make sure that the nextgen driver is not compiled into the kernel or compiled as a module.

If you wish to use the nextgen driver, then make sure that the rt73.ko module is not in /lib/modules/`uname -r`/extra, and that there is no alias for wlan* to rt73 in /etc/modprobe.d/ralink.

Please post the results of this effort here before we proceed further,

Thanks,



HI Vern,

egrep 'CONFIG_RT[267]' .config

Code:
# CONFIG_RT2X00 is not set


thank you very much :)


Top
 Profile  
 
 Post subject: Re: porting to ARM Linux, ifconfig then kernel panic..
PostPosted: Fri May 02, 2008 2:17 am 
Offline

Joined: Fri May 02, 2008 1:58 am
Posts: 8
Sorry if I am wrong. Will this help you.

http://fatah.afraid.org/files/isl3893-p ... 3/Makefile


Top
 Profile  
 
 Post subject: Re: porting to ARM Linux, ifconfig then kernel panic..
PostPosted: Tue May 06, 2008 6:09 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
Hi adrewtw,

OK. Doesn't look like there's any driver collision. Did you apply the patch I uploaded?

I notice in an earlier post you did
Quote:
# modprbe rt73 debug=15 firmName=/lib/firmware/rt73.bin
(I assume we have a little typo, here.) Even though the driver doesn't complain about the firmName parameter, it won't work either. For now, please make sure you have the firmware file (rt73.bin) in /lib/firmware, and don't use the firmName parameter.

Your log files are still partially corrupt. Please fix that first. I say this because whatever's causing that can also be causing other problems.

Thanks,


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group