Hi,

 

I am new here, so please be gentle.

 

I have a board based on a TL-MR3220 router (although I don't think this is
that important).

 

However, the WLAN needs to read calibration data from the EEPROM instead of
from the ART partition, as it does on the MR3220.

 

I made the necessary changes (I think) in the mach-til-mr3x20 (will break
out into separate board once I have it working).

 

Calling register_pci instead of pci_init.

 

-              ap91_pci_init(ee, mac);

+             ath79_register_pci();

 

However, I am getting a kernel memory error when pci tries to read the
eeprom (I added some debug info):

 

[   40.840000] ath: phy0: Using default EEP_ops

[   40.850000] ath: phy0: Reading from EEPROM, not flash

[   40.850000] ath: phy0: Inside ath9k_hw_def_fill_eeprom

[   40.860000] ath: phy0: Start __ath9k_hw_def_fill_eeprom

[   40.860000] CPU 0 Unable to handle kernel paging request at virtual
address 00000004, epc == 801526b0, ra == 801edb60

[   40.870000] Oops[#1]:

[   40.870000] CPU: 0 PID: 582 Comm: kmodloader Not tainted 3.10.49 #4

[   40.870000] task: 83b3c430 ti: 83b54000 task.ti: 83b54000

[   40.870000] $ 0   : 00000000 00000061 00000000 83b55a83

[   40.870000] $ 4   : 802eda74 00000004 00000010 00000003

[   40.870000] $ 8   : 00000020 68396b5f 68775f64 65665f66

[   40.870000] $12   : 00000000 0000000e 00000000 61756c74

[   40.870000] $16   : 00000000 83b55a80 00000010 00000083

[   40.870000] $20   : 00000004 00000001 00000004 802fd7d4

[   40.870000] $24   : 00000002 801a7934                  

[   40.870000] $28   : 83b54000 83b55a18 80310000 801edb60

[   40.870000] Hi    : 00000000

[   40.870000] Lo    : 00000010

[   40.870000] epc   : 801526b0 hex_dump_to_buffer+0x1e4/0x310

[   40.870000]     Not tainted

[   40.870000] ra    : 801edb60 print_hex_dump+0xb0/0x15c

[   40.870000] Status: 1000fc03   KERNEL EXL IE 

[   40.870000] Cause : 00800008

[   40.870000] BadVA : 00000004

[   40.870000] PrId  : 00019374 (MIPS 24Kc)

[   40.870000] Modules linked in: ath9k(+) ath9k_common qcserial pppoe
ppp_async option iptable_nat ath9k_hw ath usb_wwan sierra pppox ppp_generic
nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time
xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_nat
xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_ecn
xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment
xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_DSCP xt_CT xt_CLASSIFY usbserial
ts_kmp ts_fsm ts_bm slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4
nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter
ipt_REJECT ipt_ECN ip_tables crc_ccitt compat cdc_acm act_connmark
act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw
sch_hfsc sch_ingress ledtrig_usbdev ip6t_REJECT ip6table_raw ip6table_mangle
ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack
nf_defrag_ipv6 ifb ipv6 arc4 crypto_blkcipher uhci_hcd ohci_hcd
ehci_platform ehci_hcd gpio_button_hotplug button_hotplug input_core

[   40.870000] Process kmodloader (pid: 582, threadinfo=83b54000,
task=83b3c430, tls=779e2440)

[   40.870000] Stack : 803b0000 803b0000 00000000 80395310 000000ab 803b0000
00000001 00000000

[   40.870000]       00000010 00000000 00000800 83349d40 83349d44 00000001
00000004 802fd7d4

[   40.870000]       80310000 801edb60 00000001 00000000 0000002b 803bbf3e
83b55a80 00000083

[   40.870000]       00000001 00000000 00000001 00000000 00000000 802aa18c
00000000 00000003

[   40.870000]       00000006 801a7934 00000000 00000000 00000000 00000000
803bbf3e 0000002b

[   40.870000]       ...

[   40.870000] Call Trace:

[   40.870000] [<801526b0>] hex_dump_to_buffer+0x1e4/0x310

[   40.870000] [<801edb60>] print_hex_dump+0xb0/0x15c

[   40.870000] [<83314508>] ath9k_hw_eeprom_init+0x21cc/0x7ef8 [ath9k_hw]

[   40.870000] 

[   40.870000] 

[   40.870000] Code: 0265282b  14a00010  02822821 <90a50000> 24420001
a068ffff  00054902  30a5000f  01244821 

[   41.130000] ---[ end trace 066088ec019a1817 ]---

 

 

 

Looking around it seems the location of the EEPROM memory is the same for
all ath9k chips, but maybe I missed something.

 

Can anyone point me in the right direction?

 

Thanks in advance,

John

_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to