From: Rafiq Shaikh Date: Wed, 22 Jun 2011 12:22:27 -0700 (PDT) Subject: [ath9k-devel] ath9k on DB120 board running openWRT In-Reply-To: Message-ID: <475659.65605.qm@web161424.mail.bf1.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi Mohammed, Here are the messages from the bootup of the DB120 board. Please note that there are some debug messages and my comments that I have added to help understand whats going on at different stages. Best Regards, -Rafiq. =====Boot up messages from the DB120 board running openwrt ========== U-Boot 1.1.4 (Mar 16 2011 - 03:33:50) U-boot DB120 DRAM: sri Wasp 1.1 wasp_ddr_initial_config(255): (16bit) ddr2 init 64 MB Top of RAM usable for U-Boot at: 84000000 Reserving 261k for U-Boot at: 83fbc000 Reserving 192k for malloc() at: 83f8c000 Reserving 44 Bytes for Board Info at: 83f8bfd4 Reserving 36 Bytes for Global Data at: 83f8bfb0 Reserving 128k for boot params() at: 83f6bfb0 Stack Pointer at: 83f6bf98 Now running in RAM - U-Boot at: 83fbc000 id read 0x100000ff flash size 8MB, sector count = 128 Flash:? 8 MB pci_init_board: PCIe PLL not set for 40MHz refclk BOARD IS NOT CALIBRATED!!! In:??? serial Out:?? serial Err:?? serial Net:?? ag934x_enet_initialize... Fetching MAC Address from 0x83fe9ef8 ?wasp? reset mask:c03300 WASP? ----> S17 PHY * : cfg1 0x7 cfg2 0x7114 eth0: 00:03:7f:11:20:00 athrs17_reg_init: complete eth0 up eth0 Hit any key to stop autoboot:? 0 ## Booting image at 9f680000 ... ?? Image Name:?? MIPS OpenWrt Linux-2.6.37.6 ?? Created:????? 2011-06-17? 23:46:09 UTC ?? Image Type:?? MIPS Linux Kernel Image (lzma compressed) ?? Data Size:??? 833582 Bytes = 814 kB ?? Load Address: 80060000 ?? Entry Point:? 80060000 ?? Verifying Checksum at 0x9f680040 ...OK ?? Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80060000) ... ## Giving linux memsize in bytes, 67108864 Starting kernel ... Linux version 2.6.37.6 (XXXX at XXXX) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #20 Fri Jun 17 16:45:54 PDT 2011 bootconsole [early0] enabled CPU revision is: 0001974c (MIPS 74Kc) SoC: Atheros AR9344 rev 1 Clocks: CPU:560.000MHz, DDR:80.000MHz, AHB:40.000MHz, Ref:40.000MHz Determined physical RAM map: ?memory: 04000000 @ 00000000 (usable) Initrd not found or empty - disabling initrd Zone PFN ranges: ? Normal?? 0x00000000 -> 0x00004000 Movable zone start PFN for each node early_node_map[1] active PFN ranges ??? 0: 0x00000000 -> 0x00004000 Built 1 zonelists in Zone order, mobility grouping on.? Total pages: 16256 Kernel command line:? board=DB120 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes Writing ErrCtl register=00000000 Readback ErrCtl register=00000000 Memory: 61968k/65536k available (1931k kernel code, 3568k reserved, 370k data, 168k init, 0k highmem) SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:80 Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 NET: Registered protocol family 16 MIPS: machine is Atheros DB120 registering PCI controller with io_map_base unset bio: create slab at 0 pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit] pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1001ffff 64bit] (PCI address [0x10000000-0x1001ffff]) pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref] PCI: mapping irq 72 to pin1 at 0000:00:00.0 Switching to clocksource MIPS 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 UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 squashfs: version 4.0 (2009/01/31) Phillip Lougher JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. msgmni has been set to 121 io scheduler noop registered io scheduler deadline registered (default) Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A console [ttyS0] enabled, bootconsole disabled console [ttyS0] enabled, bootconsole disabled ========flash driver detects the type of the flash ========= Atheros AR71xx SPI Controller driver version 0.2.4 m25p80 spi0.0: found s25sl064a, expected m25p80 m25p80 spi0.0: s25sl064a (8192 Kbytes) Searching for RedBoot partition table in spi0.0 at offset 0x7e0000 Searching for RedBoot partition table in spi0.0 at offset 0x7f0000 No RedBoot partition table detected in spi0.0 spi0.0: no WRT160NL signature found Creating 6 MTD partitions on "spi0.0": 0x000000000000-0x000000040000 : "u-boot" 0x000000040000-0x000000050000 : "u-boot-env" 0x000000050000-0x000000680000 : "rootfs" mtd: partition "rootfs" set to be root filesystem mtd: partition "rootfs_data" created automatically, ofs=410000, len=270000 0x000000410000-0x000000680000 : "rootfs_data" 0x000000680000-0x0000007e0000 : "uImage" 0x0000007e0000-0x0000007f0000 : "NVRAM" 0x0000007f0000-0x000000800000 : "ART" Atheros AR71xx hardware watchdog driver version 0.1.0 TCP westwood registered NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear All bugs added by David S. Miller VFS: Mounted root (squashfs filesystem) readonly on device 31:2. Freeing unused kernel memory: 168k freed input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0 Button Hotplug driver version 0.4.1 - preinit - Press the [f] key and hit [enter] to enter failsafe mode - regular preinit - jffs2 not ready yet; using ramdisk - init - Please press Enter to activate this console. Compat-wireless backport release: compat-wireless-2011-04-14 Backport based on wireless-testing.git master-2011-04-19 cfg80211: Calling CRDA to update world regulatory domain usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub cfg80211: World regulatory domain updated: cfg80211:???? (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) cfg80211:???? (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) usbcore: registered new device driver usb ath: MacVersion = 0x1c0 MacRev = 0x3 =====Reading RTC registers (offset 0x7000-0x7058) from WMAC seems ok==== ath: 0x7000 = 0x0 ath: 0x7004 = 0x0 ath: 0x7008 = 0x0 ath: 0x700c = 0x1 ath: 0x7010 = 0x0 ath: 0x7014 = 0x11458 ath: 0x7018 = 0x400 ath: 0x701c = 0x1 ath: 0x7020 = 0x0 ath: 0x7024 = 0x0 ath: 0x7028 = 0x0 ath: 0x702c = 0x0 ath: 0x7030 = 0x2 ath: 0x7034 = 0x0 ath: 0x7038 = 0x4c4 ath: 0x703c = 0x0 ath: 0x7040 = 0x1 ath: 0x7044 = 0x2 ath: 0x7048 = 0x0 ath: 0x704c = 0x3 ath: 0x7050 = 0x0 ath: 0x7054 = 0x0 ath: 0x7058 = 0x0 =====Note the eeprom read returns all zeros===== ath: ath9k_hw_ar9300_fill_eeprom: mptr=0x83b75050 ath: Trying EEPROM accesss at Address 0x03ff ath: ath9k_hw_nvram_read: data=0x83a89b40 off=511 ath: ath9k_hw_nvram_read: data=0x83a89b40 off=510 ath: checking the header 0 ath: Trying EEPROM accesss at Address 0x01ff ath: ath9k_hw_nvram_read: data=0x83a89b40 off=255 ath: ath9k_hw_nvram_read: data=0x83a89b40 off=254 ath: checking the header 0 ath: Trying OTP accesss at Address 0x03ff ath: checking the header 0 ath: Trying OTP accesss at Address 0x01ff ath: checking the header 0 ath: goto fail ath: fail... ath: fill_eeprom failed ath: ath9k_hw_eeprom_init failed ath: ath9k_hw_post_init failed ath: eeprom contains invalid mac address: 01:02:03:04:05:06 ath: random mac address will be used: ce:f2:41:13:f9:b3 ieee80211 phy0: Atheros AR9300 Rev:3 mem=0xb0000000, irq=72 ==========This oops error is probably due to above failures=============== Data bus error, epc == 83bc5034, ra == 83bc5020 Oops[#1]: Cpu 0 $ 0?? : 00000000 00000061 deadc0de 00000fff $ 4?? : 00000014 00000000 000000ff 0000000b $ 8?? : 0000002c 00080000 00000000 00000000 $12?? : 00000000 83a96908 00000000 00000000 $16?? : 83bb4000 83c00000 83bb401c 00004020 $20?? : 00000600 83b7251c 0000000b 00000000 $24?? : 00000010 800690c0 $28?? : 83a88000 83a89c48 80245ffc 83bc5020 Hi??? : 00000007 Lo??? : 00000007 epc?? : 83bc5034 0x83bc5034 ??? Not tainted ra??? : 83bc5020 0x83bc5020 Status: 1000c403??? KERNEL EXL IE Cause : 0080001c PrId? : 0001974c (MIPS 74Kc) Modules linked in: ath9k(+) ath9k_common ath9k_hw ath mac80211 usbcore nls_base crc_ccitt cfg80211 compat arc4 aes_generic crypto_algapi leds_gpio button_he Process insmod (pid: 548, threadinfo=83a88000, task=83a59100, tls=2b0a82d0) Stack : 00000000 00000000 00000000 00000000 83bfcda0 83bfcda0 83bfc200 8028d2b0 ??????? 83bfc200 83b7251c 83bb4000 83bfcda0 fffffff4 8028d2b0 83bfc200 83b7251c ??????? 0000000b 00000000 80245ffc 83b61fc4 00000000 800a1fa0 00000001 00080000 ??????? 00000008 83a95e00 83bfc200 83bfcda0 00000000 83bfc200 8028e2c8 00000002 ??????? b8100000 83b707e0 80245fec 83b6c3a8 8384a240 83a95980 00000001 80114c18 ??????? ... Call Trace:[<83b61fc4>] 0x83b61fc4 [<800a1fa0>] 0x800a1fa0 [<83b6c3a8>] 0x83b6c3a8 [<80114c18>] 0x80114c18 [<801871a8>] 0x801871a8 [<801874b0>] 0x801874b0 [<8023acc0>] 0x8023acc0 [<801494b8>] 0x801494b8 [<801875d0>] 0x801875d0 [<80186160>] 0x80186160 [<80187564>] 0x80187564 [<801864c0>] 0x801864c0 [<801499c0>] 0x801499c0 [<80186cec>] 0x80186cec [<8011316c>] 0x8011316c [<83b7f000>] 0x83b7f000 [<801878b0>] 0x801878b0 [<8016a40c>] 0x8016a40c [<83b7f000>] 0x83b7f000 [<83b7f030>] 0x83b7f030 [<800ab83c>] 0x800ab83c [<800609c0>] 0x800609c0 [<800c72f4>] 0x800c72f4 [<80091704>] 0x80091704 [<8009f9a4>] 0x8009f9a4 [<800c3e94>] 0x800c3e94 [<800691e4>] 0x800691e4 Code: 24030fff? 38850014? 00c5180b <00621824> 5466000f? 24020014? 8e020000? 0265a00b? 02002021 Disabling lock debugging due to kernel taint cfg80211: Calling CRDA for country: US ip_tables: (C) 2000-2006 Netfilter Core Team ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver cfg80211: Regulatory domain changed to country: US cfg80211:???? (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) cfg80211:???? (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) cfg80211:???? (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) cfg80211:???? (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm) BusyBox v1.18.4 (2011-06-02 09:50:17 PDT) built-in shell (ash) Enter 'help' for a list of built-in commands. ? _______???????????????????? ________??????? __ ?|?????? |.-----.-----.-----.|? |? |? |.----.|? |_ ?|?? -?? ||? _? |? -__|???? ||? |? |? ||?? _||?? _| ?|_______||?? __|_____|__|__||________||__|? |____| ????????? |__| W I R E L E S S?? F R E E D O M ?ATTITUDE ADJUSTMENT (bleeding edge, r26815) ---------- ? * 1/4 oz Vodka????? Pour all ingredents into mixing ? * 1/4 oz Gin??????? tin with ice, strain into glass. ? * 1/4 oz Amaretto ? * 1/4 oz Triple sec ? * 1/4 oz Peach schnapps ? * 1/4 oz Sour mix ? * 1 splash Cranberry juice ?----------------------------------------------------- --- On Tue, 6/21/11, Mohammed Shafi wrote: From: Mohammed Shafi Subject: Re: [ath9k-devel] ath9k on DB120 board running openWRT To: "Rafiq Shaikh" Cc: "ath9k-devel at lists.ath9k.org" Date: Tuesday, June 21, 2011, 6:24 AM On Fri, Jun 17, 2011 at 5:52 AM, Rafiq Shaikh wrote: Hi All, Greetings! I guess this question belongs to openWRT mailing lists. I did not get any response there so trying my luck here. In my setup I have Atheros DB120 (AR9344 SoC) board running openWRT. The ath9k initialization fails with the following error during the board bootup. ? Compat-wireless backport release: compat-wireless-2011-04-14 Backport based on wireless-testing.git master-2011-04-19 cfg80211: Calling CRDA to update world regulatory domain usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub cfg80211: World regulatory domain updated: cfg80211:???? (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) cfg80211:???? (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) cfg80211:???? (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) usbcore: registered new device driver usb ath: Unable to initialize hardware; initialization status: -5 ath9k 0000:00:00.0: Failed to initialize device ath9k: probe of 0000:00:00.0 failed with error -5 please provide the complete dmesg, this will help the developers to see what went wrong... we should have got something like Could not reset chip etc. sudo modprobe ath9k debug=0xffffffff will be helpful ? I did some debugging and found out the error code -5 is coming because the EEPROM read did not return valid data (all zeros). I guess the address mapping is not set correctly. Any help or pointers will be appreciated. Best Regards, -Rafiq. _______________________________________________ ath9k-devel mailing list ath9k-devel at lists.ath9k.org https://lists.ath9k.org/mailman/listinfo/ath9k-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110622/793442ab/attachment-0001.htm