rt2860 wireless modules for rt3050.

Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware
Goto page 1, 2  Next
Author Message
McMCC
DD-WRT Novice


Joined: 16 Feb 2009
Posts: 34

PostPosted: Wed Feb 18, 2009 22:47    Post subject: rt2860 wireless modules for rt3050. Reply with quote
Hello!

I've got a Senao ESR-9752 device based on RT3050 and was lucky to find the support for this chip in WHR-G300N firmware. Almost everything works perfectly with provided patches except for the wireless. As soon as ra0 interface is getting up with ifconfig the kernel panics. Is it possible to find rt2860v2_ap and rt2860v2_sta modules for kernel 2.6.23.17 for this chipset somewhere in sources or binary. Your help would be appreciated.
Sponsor
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Fri Feb 20, 2009 14:47    Post subject: Reply with quote
i have a working firmware for this device. the problem is that the original bootloader has a bug and does not allow to install firmware bigger than 4 mb, even if the device has a 8 mb flash memory.
the unit has no rt3052 ralink cpu, but a rt2880

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
McMCC
DD-WRT Novice


Joined: 16 Feb 2009
Posts: 34

PostPosted: Fri Feb 20, 2009 17:10    Post subject: Reply with quote
BrainSlayer wrote:
i have a working firmware for this device. the problem is that the original bootloader has a bug and does not allow to install firmware bigger than 4 mb, even if the device has a 8 mb flash memory.
the unit has no rt3052 ralink cpu, but a rt2880


Sorry for the typo, I wanted to mention ESR-9753, which is based on rt3050(1T1R). Is there any chance to get working firmware or wireless modules for it? I assembled a firmware based on DD-WRT svn sources and kernel for WHR-G300N. Everything is fine, except wi-fi. I think this is because rt3052 and rt3050 are a little different.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Thu Feb 26, 2009 14:43    Post subject: Reply with quote
did you install the correct firmware files into /etc/wlan?
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
McMCC
DD-WRT Novice


Joined: 16 Feb 2009
Posts: 34

PostPosted: Thu Feb 26, 2009 19:46    Post subject: Reply with quote
BrainSlayer wrote:
did you install the correct firmware files into /etc/wlan?

Yes, but after run ifconfig ra0 occurs kernel panic. Modules are loaded normally.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Fri Feb 27, 2009 0:07    Post subject: Reply with quote
i know just 3 reasons for this.
first. wireless firmware file cannot be loaded, (the path is hardcoded in the driver)
second, the wireless config cannot be loaded from the right path (again, path is hardcoded in the driver)
and the third. the wirelass base config cannot be loaded (stored in the third eraseblock in flash memory)
so driver accesses alot of things and if one fails, it crashes. the access to the flash memory is done by the ralink flash driver within the kernel. this is maybe a point where you can start debugging

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
McMCC
DD-WRT Novice


Joined: 16 Feb 2009
Posts: 34

PostPosted: Fri Feb 27, 2009 18:19    Post subject: Reply with quote
BrainSlayer wrote:
i know just 3 reasons for this.
first. wireless firmware file cannot be loaded, (the path is hardcoded in the driver)
second, the wireless config cannot be loaded from the right path (again, path is hardcoded in the driver)
and the third. the wirelass base config cannot be loaded (stored in the third eraseblock in flash memory)
so driver accesses alot of things and if one fails, it crashes. the access to the flash memory is done by the ralink flash driver within the kernel. this is maybe a point where you can start debugging


I have checked all paths and offsets in flash memory. In drivers/flash/flash_main.c I inserted printk in functions FlashRead() and FlashWrite(),but them does not reach at all.

Code:

~ # ls -l /etc/wlan/
-rw-r--r--    1 root     root          512 Feb 27  2009 RT3052_AP_2T2R_V1_1.bin
~ # cp /etc/RT2860AP.dat /tmp/RT2860.dat
~ # insmod /lib/modules/2.6.23-rt/rt2860v2_ap.ko
rt2860v2_ap: module license 'unspecified' taints kernel.
2860 version : 2.0.0.0 (Jan 21 2009)


=== pAd = c0814000, size = 740384 ===

~ # ifconfig ra0
ra0       Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 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:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4

~ # ifconfig ra0 up
RX DESC a0b28000  size = 2048 <--- ?

CPU 0 Unable to handle kernel paging request at virtual address 00000fe0, epc == 80011374, ra == 8000c614
Oops[#1]:
Cpu 0
$ 0   : 00000000 1100fc00 00000fe0 ffffffe0
$ 4   : 00000fe8 00001ee0 00000020 00000002
$ 8   : 00000020 800faf30 802ed500 80854d1c
$12   : ffffffff ffffffff 00200200 00100100
$16   : 00000fe8 c0814000 80f2a2c0 c0817964
$20   : c0817960 00000000 c0920000 c08140b8
$24   : 00000001 8000c580
$28   : 80e6a000 80e6bcd0 00000005 8000c614
Hi    : 00000002
Lo    : 0065b9aa
epc   : 80011374     Tainted: P
ra    : 8000c614 Status: 1100fc03    KERNEL EXL IE
Cause : 00800008
BadVA : 00000fe0
PrId  : 0001964c
Modules linked in: rt2860v2_ap(P) rt_timer xt_mark xt_mac ipt_webstr ipt_layer7 ipt_ipp2p
Process ifconfig (pid: 983, threadinfo=80e6a000, task=803e5028)
Stack : 00000f00 c0814000 a0b28000 c0817964 00000f00 c091cdd0 c0814000 c0814070
        c081406c c08140b8 00000002 80028a88 c0817958 c0814000 a0b28000 00b28000
        c0814000 c091d310 8006fdfc a0b28000 00000800 00000000 c0817964 c0814064
        000028ec 80cc0c00 00000000 00000064 c093ce14 c0814000 c0814000 80cc0c00
        00000000 80e6be30 00000000 c0944e78 00000001 00000001 00000000 00000000
        ...
Call Trace:[<c091cdd0>][<80028a88>][<c091d310>][<8006fdfc>][<c093ce14>][<c0944e78>][<80051f60>][<802a0000>][<c0945c4]

Code: 00061823  00432824  00641024 <bc550000> 1445fffe  00461021  03e00008  00461023  3c02802b
Segmentation fault


In kernel config I see the following:

# CONFIG_RALINK_RT3050AP_1T1R is not set
CONFIG_RALINK_RT3052AP_2T2R=y
...
# CONFIG_RALINK_RT3050STA_1T1R is not set
CONFIG_RALINK_RT3052STA_2T2R=y

The problem in assemblage of modules can and they cannot work on different chipsets?
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Sat Feb 28, 2009 0:30    Post subject: Reply with quote
they must be compiled for each model.
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
McMCC
DD-WRT Novice


Joined: 16 Feb 2009
Posts: 34

PostPosted: Sat Feb 28, 2009 1:30    Post subject: Reply with quote
BrainSlayer wrote:
they must be compiled for each model.

And where to get compiled for rt3050? Do they exist for kernel 2.6.23.17?
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Sat Feb 28, 2009 14:21    Post subject: Reply with quote
i just compiled mine for the buffalo model (r3052) which is 2x2
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
McMCC
DD-WRT Novice


Joined: 16 Feb 2009
Posts: 34

PostPosted: Sat Feb 28, 2009 16:10    Post subject: Reply with quote
BrainSlayer wrote:
i just compiled mine for the buffalo model (r3052) which is 2x2

You can compile these modules for rt3050? I would be very grateful! Cool
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Sat Feb 28, 2009 17:29    Post subject: Reply with quote
the only difference between both devices is the filename of the firmware binary to load. so you simply need to rename it

but anyway. i attached the modules with changed config

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
McMCC
DD-WRT Novice


Joined: 16 Feb 2009
Posts: 34

PostPosted: Mon Mar 02, 2009 8:00    Post subject: Reply with quote
BrainSlayer wrote:
the only difference between both devices is the filename of the firmware binary to load. so you simply need to rename it

but anyway. i attached the modules with changed config

Thank you! The problem is not solved, all in exactly the same. Crying or Very sad Without the source code probably will not solve....
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Mon Mar 02, 2009 14:16    Post subject: Reply with quote
then the problem is likelly just in the flash driver.
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
McMCC
DD-WRT Novice


Joined: 16 Feb 2009
Posts: 34

PostPosted: Mon Mar 02, 2009 20:11    Post subject: Reply with quote
BrainSlayer wrote:
then the problem is likelly just in the flash driver.


No, in another place.

Code:

~ # insmod /lib/modules/2.6.23-rt/rt2860v2_ap.ko
rt2860v2_ap: module license 'unspecified' taints kernel.
2860 version : 2.0.0.0 (Feb 28 2009)


=== pAd = c0815000, size = 739296 ===

~ # ifconfig ra0 up
RX DESC a0c18000  size = 2048
CPU 0 Unable to handle kernel paging request at virtual address 00000fe0, epc == 8000fa30, ra == 8000c814
Oops[#1]:
Cpu 0
$ 0   : 00000000 1100fc00 00000fe0 00001ee0
$ 4   : 00000fe8 00000f00 00000020 802d0000
$ 8   : 00000020 800fd830 00000003 80f8b29c
$12   : 8030e500 ffffffff 8861af00 00989646
$16   : 00000fe8 c0815000 80bd76a0 c0818964
$20   : c0818960 00000000 c0920000 c08150b8
$24   : 00008000 8000c76c
$28   : 80e8c000 80e8dce8 00000005 8000c814
Hi    : 00000002
Lo    : 0065b9aa
epc   : 8000fa30 r4k_dma_cache_inv+0x98/0xe4     Tainted: P
ra    : 8000c814 dma_map_single+0xa8/0xc0
Status: 1100fc03    KERNEL EXL IE
Cause : 00800008
BadVA : 00000fe0
PrId  : 0001964c
Modules linked in: rt2860v2_ap(P) rt_timer xt_mark xt_mac ipt_webstr ipt_layer7 ipt_ipp2p
Process ifconfig (pid: 978, threadinfo=80e8c000, task=8039a188)
Stack : 00000f00 c0815000 a0c18000 c0818964 00000f00 c091ba80 c081506c c08150b8
        00000005 800260b0 00000002 c091bb34 c0818958 c0815000 a0c18000 00c18000
        c0815000 c091bfc0 00000000 a0c18000 00000800 802d0000 c0818964 c0815064
        000028ec 80eda000 00000000 00000064 c093b9dc c0815000 c0815000 80eda000
        00000000 80eda000 00000000 c09438bc 80302680 80052ce4 000a00d2 00000000
        ...
Call Trace:
[<8000fa30>] r4k_dma_cache_inv+0x98/0xe4
[<8000c814>] dma_map_single+0xa8/0xc0
[<c091ba80>] RTMP_AllocateRxPacketBuffer+0x98/0xcc [rt2860v2_ap]
[<c091bfc0>] RTMPAllocTxRxRingMemory+0x318/0x3c4 [rt2860v2_ap]
[<c09438bc>] rt28xx_open+0x15c/0xc08 [rt2860v2_ap]
[<c0944688>] MainVirtualIF_open+0x3c/0x294 [rt2860v2_ap]
[<80171c00>] dev_open+0x8c/0x1c8
[<8016e61c>] dev_change_flags+0x164/0x1dc
[<801ffde8>] devinet_ioctl+0x798/0x8e0
[<80160124>] sock_ioctl+0xe8/0x294
[<80083f1c>] do_ioctl+0x2c/0x84
[<80083fe4>] vfs_ioctl+0x70/0x350
[<80084314>] sys_ioctl+0x50/0x9c
[<8000af70>] stack_done+0x20/0x3c


Code: 2463ffff  00431824  00821024 <bc550000> 10430007  00000000  00c22021  bc950000  00862021
Segmentation fault
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware All times are GMT

Navigation

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum