ALFA Network AP120C

Alfa AP120c

FIXME Please check out the article flash.layout. It contains an example and a couple of explanations.

FIXME

At the moment you can flash the db120 images using U-boot command

# rootfs
tftp 0x80060000 openwrt-ar71xx-generic-db120-rootfs-squashfs.bin;erase 0x9f050000 +5E0000;cp.b 80060000 0x9f050000 $filesize
# kernel
tftp 0x80060000 openwrt-ar71xx-generic-db120-kernel.bin;erase 0x9fd50000 +110000;cp.b 80060000 0x9fd50000 110000
# or using the sysupgrade image directly
tftp 0x80060000 image.bin;erase 0x9f050000 +e80000;cp.b 80060000 0x9f050000 $filesize

Then you can restart your AP

Here some other boot-env vars involved:

bootcmd=bootm 0x9fd50000
bootargs=console=ttyS0,115200 root=31:2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-env),13M(rootfsA),1536k(knlA),64k(bData),64k(bIndi),1M(apconf),64k(ART)
ipaddr=192.168.100.46
serverip=192.168.100.11

FIXME The network is not working at the moment

FIXME

This need to be written.

FIXME This need to be written. → failsafe_and_factory_reset

Architecture MIPS
Vendor Qualcomm Atheros
bootloader U-Boot
System-On-Chip Atheros AR9344 (MIPS 74Kc V4.12)
CPU/Speed 560 MHz
BogoMIPS 265.42
Flash-Chip 2x mx25l12845e
Flash size 16 + 16 MiB
RAM 128 MiB
Wireless Atheros AR9340
Ethernet Atheros AG71xx 1)
Eth Phy Atheros AR8035
USB No
Serial Yes
JTAG Probably yes

Front:
Alfa AP120c

Back:
Insert photo of back of the casing

PCB top side:
Alfa AP120c PCB top side

A console over RJ45 is available.

U-Boot 1.1.4 (Apr 24 2013 - 09:58:53) Subversion r1.8 U-boot DB120 DRAM: sri Wasp 1.2 wasp_ddr_initial_config(255): (32bit) ddr2 init Setting 0xb8116290 to 0x38702d0f 128 MB cpu_pll_cfg: 0x21354 cpu_pll_dither: 0x3c153f CFG_PLL_FREQ: 0x1f CFG_HZ : 266500000 CPU Clock: 533MHz DDR Clock: 400MHz Top of RAM usable for U-Boot at: 88000000 Reserving 231k for U-Boot at: 87fc4000 Reserving 192k for malloc() at: 87f94000 Reserving 44 Bytes for Board Info at: 87f93fd4 Reserving 44 Bytes for Global Data at: 87f93fa8 Reserving 128k for boot params() at: 87f73fa8 Stack Pointer at: 87f73f88 Now running in RAM - U-Boot at: 87fc4000 manufacturerId 0xc2, deviceId0 0x20, deviceId1 0x18 flash size 16MB, sector count = 256 flash-2 size 16MB, sector count = 256 Flash: 16 MB pci_init_board: PCIe PLL not set for 40MHz refclk BOARD IS NOT CALIBRATED!!! pci_init_board: PCI DeviceID=33 [eapsw_watchdog::status] cold start [eapsw_watchdog::status] boot normally [eapsw_watchdog::status] autoswitch enabled=On , times=None Current Image was A In: serial Out: serial Err: serial Net: ag934x_enet_initialize... No valid address in Flash. Using fixed address wasp reset mask:10c03300 WASP ----> F1 PHY * : cfg1 0x80000000 cfg2 0x7114 eth0: 00:03:7f:09:0b:ad F1Phy reg init ATHR_AUTONEG_ADVERT:1DE1 ATHR_1000BASET_CONTROL:200 ATHR_PHY_CONTROL:3100 ATHRSF1_PHY: Port 5, Neg Success ATHRSF1_PHY: unit 0 phy addr 5 eth0 up eth0 Hit any key to stop autoboot: 4  3  2  1  0 ## Booting image at 9fd50000 ... Image Name: Linux Kernel Image Created: 2014-10-14 3:25:40 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 927620 Bytes = 905.9 kB Load Address: 80002000 Entry Point: 801edab0 Verifying Checksum at 0x81000040 ...OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 801edab0) ... ## Giving linux memsize in bytes, 134217728 Starting kernel ... Booting Atheros AR934x Linux version 2.6.31--LSDK-9.2.0_U10.1020 (sam@samnb-ubnt10) (gcc version 4.3.3 (GCC) ) #1 Tue Apr 1 03:13:16 CST 2014 flash_size passed from bootloader = 16 arg 1: console=ttyS0,115200 arg 2: root=31:2 arg 3: rootfstype=jffs2 arg 4: init=/sbin/init arg 5: mtdparts=ath-nor0:256k(u-boot),64k(u-env),13M(rootfsA),1536k(knlA),64k(bData),64k(bIndi),1M(apconf),64k(ART);ath-nor1:512k(rA),13M(rootfsB),1536k(knlB),960k(rB),64k(ARTB) arg 6: mem=128M CPU revision is: 0001974c (MIPS 74Kc) ath_sys_frequency: cpu apb ddr apb cpu 532 ddr 400 ahb 200 Determined physical RAM map: memory: 02000000 @ 00000000 (usable) User-defined physical RAM map: memory: 08000000 @ 00000000 (usable) Initrd not found or empty - disabling initrd Zone PFN ranges: Normal 0x00000000 -> 0x00008000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0x00000000 -> 0x00008000 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: console=ttyS0,115200 root=31:2 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-env),13M(rootfsA),1536k(knlA),64k(bData),64k(bIndi),1M(apconf),64k(ART);ath-nor1:512k(rA),13M(rootfsB),1536k(knlB),960k(rB),64k(ARTB) mem=128M PID hash table entries: 512 (order: 9, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 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: 112696k/131072k available (1983k kernel code, 18196k reserved, 477k data, 152k init, 0k highmem) NR_IRQS:128 plat_time_init: plat time init done Calibrating delay loop... 265.21 BogoMIPS (lpj=530432) Mount-cache hash table entries: 512 ****************ALLOC*********************** Packet mem: 802a23e0 (0xe00000 bytes) ******************************************** NET: Registered protocol family 16 PCI init:ath_pcibios_init ath_pcibios_init(294): PCI CMD write: 0x356 registering PCI controller with io_map_base unset bio: create slab <bio-0> at 0 pci 0000:00:00.0: PME# supported from D0 D1 D3hot pci 0000:00:00.0: PME# disabled Returning IRQ 64 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered NET: Registered protocol family 1 ATH GPIOC major 0 JFFS2 version 2.2 (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc. msgmni has been set to 220 io scheduler noop registered io scheduler deadline registered (default) Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A console [ttyS0] enabled brd: module loaded 8 cmdlinepart partitions found on MTD device ath-nor0 Creating 8 MTD partitions on "ath-nor0": 0x000000000000-0x000000040000 : "u-boot" 0x000000040000-0x000000050000 : "u-env" 0x000000050000-0x000000d50000 : "rootfsA" 0x000000d50000-0x000000ed0000 : "knlA" 0x000000ed0000-0x000000ee0000 : "bData" 0x000000ee0000-0x000000ef0000 : "bIndi" 0x000000ef0000-0x000000ff0000 : "apconf" 0x000000ff0000-0x000001000000 : "ART" 5 cmdlinepart partitions found on MTD device ath-nor1 Creating 5 MTD partitions on "ath-nor1": 0x000001000000-0x000001080000 : "rA" 0x000000080000-0x000000d80000 : "rootfsB" 0x000000d80000-0x000000f00000 : "knlB" 0x000000f00000-0x000000ff0000 : "rB" 0x000000ff0000-0x000001000000 : "ARTB" GACT probability on Mirror/redirect action on Simple TC action Loaded u32 classifier Performance counters on input device check on Actions configured TCP cubic registered NET: Registered protocol family 10 IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 Bridge firewalling registered arch/mips/atheros/gpio.c (ath_simple_config_init) JUMPSTART_GPIO: 16 SC Callback Registration for EAPSW_ResetBtn athwdt_init: Registering WDT success ath_otp_init: Registering OTP success ath_clksw_init: Registering Clock Switch Interface success VFS: Mounted root (jffs2 filesystem) readonly on device 31:2. Freeing unused kernel memory: 152k freed init started: BusyBox v1.14.2 (2014-10-14 11:28:31 CST) Wed Jan 1 00:00:00 CET 2014 athstats 80211stats wlanconfig pktlogconf pktlogdump radartool **** drop_caches_sysctl_handler: all done timer added ...**** Reading image A version ... 1.0.0.27 Reading image B version ... 1.0.0.27 radio_num = 2 not change ifconfig: br1: error fetching interface information: Device not found bind: Address already in use bind: Address already in use Jan 1 00:00:48 snmpd[1434]: iquerySecName has not been configured - internal queries will fail (none) mips #1 Tue Apr 1 03:13:16 CST 2014 (none) (none) login: Jan 1 00:00:50 snmpd[1434]: NET-SNMP version 5.4.4


This bootlog is with not working ethernet iface based on db120 @r44974

U-Boot 1.1.4 (Apr 24 2013 - 09:58:53) Subversion r1.8 U-boot DB120 DRAM: sri Wasp 1.2 wasp_ddr_initial_config(255): (32bit) ddr2 init Setting 0xb8116290 to 0x38702d0f 128 MB cpu_pll_cfg: 0x21354 cpu_pll_dither: 0x3c153f CFG_PLL_FREQ: 0x1f CFG_HZ : 266500000 CPU Clock: 533MHz DDR Clock: 400MHz Top of RAM usable for U-Boot at: 88000000 Reserving 231k for U-Boot at: 87fc4000 Reserving 192k for malloc() at: 87f94000 Reserving 44 Bytes for Board Info at: 87f93fd4 Reserving 44 Bytes for Global Data at: 87f93fa8 Reserving 128k for boot params() at: 87f73fa8 Stack Pointer at: 87f73f88 Now running in RAM - U-Boot at: 87fc4000 manufacturerId 0xc2, deviceId0 0x20, deviceId1 0x18 flash size 16MB, sector count = 256 flash-2 size 16MB, sector count = 256 Flash: 16 MB pci_init_board: PCIe PLL not set for 40MHz refclk BOARD IS NOT CALIBRATED!!! pci_init_board: PCI DeviceID=33 [eapsw_watchdog::status] warm start [eapsw_watchdog::status] boot normally [eapsw_watchdog::status] autoswitch enabled=On , times=None Current Image was A In: serial Out: serial Err: serial Net: ag934x_enet_initialize... No valid address in Flash. Using fixed address wasp reset mask:10c03300 WASP ----> F1 PHY * : cfg1 0x80000000 cfg2 0x7114 eth0: 00:03:7f:09:0b:ad F1Phy reg init ATHR_AUTONEG_ADVERT:1DE1 ATHR_1000BASET_CONTROL:200 ATHR_PHY_CONTROL:3100 ATHRSF1_PHY: Port 5, Neg Success ATHRSF1_PHY: unit 0 phy addr 5 eth0 up eth0 Hit any key to stop autoboot: 4  3  2  1  0 ## Booting image at 9fd50000 ... Image Name: MIPS OpenWrt Linux-3.10.49 Created: 2015-03-25 15:54:04 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1063151 Bytes = 1 MB Load Address: 80060000 Entry Point: 80060000 Verifying Checksum at 0x81000040 ...OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80060000) ... ## Giving linux memsize in bytes, 134217728 Starting kernel ... [ 0.000000] Linux version 3.10.49 (cmignanti@cmignanti-fisso) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44974) ) #1 Wed Mar 25 16:53:30 CET 2015 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU revision is: 0001974c (MIPS 74Kc) [ 0.000000] SoC: Atheros AR9344 rev 2 [ 0.000000] Clocks: CPU:532.500MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x07ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x07ffffff] [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: board=DB120 console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1408k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware) rootfstype=squashfs,jffs2 noinitrd [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 126184k/131072k available (2258k kernel code, 4888k reserved, 601k data, 276k init, 0k highmem) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:51 [ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [ 0.080000] pid_max: default: 32768 minimum: 301 [ 0.080000] Mount-cache hash table entries: 512 [ 0.090000] NET: Registered protocol family 16 [ 0.100000] MIPS: machine is Atheros DB120 reference board [ 0.110000] registering PCI controller with io_map_base unset [ 0.520000] bio: create slab <bio-0> at 0 [ 0.530000] PCI host bridge to bus 0000:00 [ 0.530000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff] [ 0.540000] pci_bus 0000:00: root bus resource [io 0x0000] [ 0.540000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.550000] pci 0000:00:00.0: invalid calibration data [ 0.550000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit] [ 0.560000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref] [ 0.560000] pci 0000:00:00.0: using irq 40 for pin 1 [ 0.570000] Switching to clocksource MIPS [ 0.570000] NET: Registered protocol family 2 [ 0.580000] TCP established hash table entries: 1024 (order: 1, 8192 bytes) [ 0.580000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.590000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.590000] TCP: reno registered [ 0.600000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.600000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.610000] NET: Registered protocol family 1 [ 0.630000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.630000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.640000] msgmni has been set to 246 [ 0.650000] io scheduler noop registered [ 0.650000] io scheduler deadline registered (default) [ 0.660000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.680000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A [ 0.690000] console [ttyS0] enabled, bootconsole disabled [ 0.690000] console [ttyS0] enabled, bootconsole disabled [ 0.700000] ath79-spi ath79-spi: master is unqueued, this is deprecated [ 0.710000] m25p80 spi0.0: found mx25l12805d, expected m25p80 [ 0.720000] m25p80 spi0.0: mx25l12805d (16384 Kbytes) [ 0.720000] 7 cmdlinepart partitions found on MTD device spi0.0 [ 0.730000] Creating 7 MTD partitions on "spi0.0": [ 0.730000] 0x000000000000-0x000000040000 : "u-boot" [ 0.740000] 0x000000040000-0x000000050000 : "u-boot-env" [ 0.750000] 0x000000050000-0x000000680000 : "rootfs" [ 0.750000] mtd: device 2 (rootfs) set to be root filesystem [ 0.760000] 1 squashfs-split partitions found on MTD device rootfs [ 0.770000] 0x000000420000-0x000000680000 : "rootfs_data" [ 0.770000] 0x000000680000-0x0000007e0000 : "kernel" [ 0.780000] 0x0000007e0000-0x0000007f0000 : "nvram" [ 0.790000] 0x0000007f0000-0x000000800000 : "art" [ 0.790000] 0x000000050000-0x0000007e0000 : "firmware" [ 0.820000] libphy: ag71xx_mdio: probed [ 0.820000] libphy: ag71xx_mdio: probed [ 1.380000] ag71xx ag71xx.0: no PHY found with phy_mask=00000001 [ 1.930000] ag71xx-mdio.1: Found an AR934X built-in switch [ 2.970000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII [ 2.980000] TCP: cubic registered [ 2.980000] NET: Registered protocol family 17 [ 2.980000] Bridge firewalling registered [ 2.990000] 8021q: 802.1Q VLAN Support v1.8 [ 3.000000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 3.010000] Freeing unused kernel memory: 276K (8032b000 - 80370000) procd: Console is alive procd: - watchdog - [ 6.220000] pps_core: LinuxPPS API ver. 1 registered [ 6.230000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 6.240000] PTP clock support registered [ 6.260000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0 procd: - preinit - Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level jffs2 is ready jffs2 is ready [ 11.110000] jffs2: notice: (311) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 13 of xref (0 dead, 2 orphan) found. switching to overlay procd: - early - procd: - watchdog - procd: - ubus - procd: - init - Please press Enter to activate this console. [ 13.060000] NET: Registered protocol family 10 [ 13.070000] natsemi dp8381x driver, version 2.1, Sept 11, 2006 [ 13.070000] originally by Donald Becker <becker@scyld.com> [ 13.070000] 2.4.x kernel port by Jeff Garzik, Tjeerd Mulder [ 13.100000] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI [ 13.110000] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 13.120000] gre: GRE over IPv4 demultiplexor driver [ 13.120000] ip_gre: GRE over IPv4 tunneling driver [ 13.160000] nf_conntrack version 0.5.0 (1975 buckets, 7900 max) [ 13.170000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 13.280000] u32 classifier [ 13.290000] input device check on [ 13.290000] Actions configured [ 13.300000] Mirror/redirect action on [ 13.300000] 8139too: 8139too Fast Ethernet driver 0.9.28 [ 13.320000] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI [ 13.330000] e100: Copyright(c) 1999-2006 Intel Corporation [ 13.370000] Ebtables v2.0 registered [ 13.380000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 13.400000] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker [ 13.430000] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de [ 13.450000] sis900.c: v1.08.10 Apr. 2 2006 [ 13.480000] via_rhine: v1.10-LK1.5.1 2010-10-09 Written by Donald Becker [ 13.530000] xt_time: kernel timezone is -0000 [ 13.560000] PPP generic driver version 2.4.2 [ 13.580000] NET: Registered protocol family 24 [ 21.710000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 21.710000] device eth0 entered promiscuous mode [ 21.730000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready procd: - init complete - BusyBox v1.22.1 (2015-03-25 12:45:52 CET) 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 ----------------------------------------------------- CHAOS CALMER (Bleeding Edge, r44974) ----------------------------------------------------- * 1 1/2 oz Gin Shake with a glassful * 1/4 oz Triple Sec of broken ice and pour * 3/4 oz Lime Juice unstrained into a goblet. * 1 1/2 oz Orange Juice * 1 tsp. Grenadine Syrup ----------------------------------------------------- root@OpenWrt:/# uname -a Linux OpenWrt 3.10.49 #1 Wed Mar 25 16:53:30 CET 2015 mips GNU/Linux root@OpenWrt:/# cat /etc/openwrt_version r44974 root@OpenWrt:/#



1)
AR9344 internal
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2024/02/12 08:58
  • by 127.0.0.1