4.08.2015

Hornet-UB 16/64M for OpenWRT

The following procedures will enable you to port Openwrt to Alfa Network’s Hornet-UB 16/64M. Your PC requires TFTP server to upload u-boot-hornet-ub.bin and openwrt-ar71xx-generic-hornet-ub-x2-squashfs-sysupgrade.bin.

GPIO Illustration: 


Requirements:
  • Hornet-UB 16/64M x1
  • Console Board x1
  • Console Cable x1
  • Click here to download u-boot-hornet-ub.bin and openwrt-ar71xx-generic-hornet-ub-x2-squashfs-sysupgrade.bin

Step 1: Set baud rate information for terminal communication as following. 

Set "Bits per second" to 115200.

Set "Data Bits" to 8.
Set "Stop Bits" to 1.
Set "Flow control" to None.



Upload Procedure:

1)    Make sure tftp server is setup ready for upgrade.
2)    Press any key to enter bootloader mode.
3)    (Assume DUT’s ip: 192.168.2.10, tftp server ip: 192.168.2.100)
set ipaddr 192.168.2.10; set serverip 192.168.2.100
4)    tftp 0x80060000 u-boot-hornet-ub.bin
5)    erase 0x9f000000 +$filesize
6)    cp.b 0x80060000 0x9f000000 $filesize
7)     tftp 0xa0800000 openwrt-ar71xx-generic-hornet-ub-x2-squashfs-sysupgrade.bin
8)    erase 0x9f050000 +$filesize
9)    cp.b 0x80060000 0x9f050000 $filesize
10) Done. (Please reboot the DUT)
11) The reboot process is shown below
*********************************************
*        U-Boot 1.1.4  (Jun 23 2014)        *
*********************************************

Board:  ALFA Network Hornet-UB
DRAM:   64 MB DDR 16-bit
FLASH:  Macronix MX25L128 (16 MB)
CLOCKS: 400/400/200/33 MHz (CPU/RAM/AHB/SPI)

LED on during eth initialization...

Press reset button for at least:
- 3 sec. to run web failsafe mode
- 5 sec. to run U-Boot console
- 7 sec. to run U-Boot netconsole

Reset button is pressed for:  0

## Error: button wasn't pressed long enough!
Continuing normal boot...

Hit any key to stop autobooting:  0

## Booting image at 9fe50000 ...
Bad Magic Number
## Booting image at 9f050000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.49
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1107111 Bytes = 1.1 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9f050040 ...OK
   Uncompressing Kernel Image ... OK
Starting kernel...

[    0.000000] Linux version 3.10.49 (bb@builder1) (gcc version 4.8.3 (OpenWrt/L
inaro GCC 4.8-2014.04 r42625) ) #3 Wed Oct 1 14:00:51 CEST 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.00
0MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    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 pag
es: 16256
[    0.000000] Kernel command line:  board=HORNET-UB console=ttyATH0,115200 mtdp
arts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,15936k(firmware),64k(nvram),64k(art
)ro rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61076k/65536k available (2369k kernel code, 4460k reserve
d, 621k data, 272k 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 ALFA NETWORK Hornet-UB
[    0.550000] bio: create slab <bio-0> at 0
[    0.560000] Switching to clocksource MIPS
[    0.570000] NET: Registered protocol family 2
[    0.570000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.570000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.580000] TCP: Hash tables configured (established 512 bind 512)
[    0.580000] TCP: reno registered
[    0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.600000] NET: Registered protocol family 1
[    0.620000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.630000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT
Y) (c) 2001-2006 Red Hat, Inc.
[    0.640000] msgmni has been set to 119
[    0.640000] io scheduler noop registered
[    0.640000] io scheduler deadline registered (default)
[    0.650000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.660000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UA
RT
[    0.670000] console [ttyATH0] enabled, bootconsole disabled
[    0.670000] console [ttyATH0] enabled, bootconsole disabled
[    0.680000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.690000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.690000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.700000] 5 cmdlinepart partitions found on MTD device spi0.0
[    0.710000] Creating 5 MTD partitions on "spi0.0":
[    0.710000] 0x000000000000-0x000000040000 : "u-boot"
[    0.720000] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.720000] 0x000000050000-0x000000fe0000 : "firmware"
[    0.740000] 2 uimage-fw partitions found on MTD device firmware
[    0.750000] 0x000000050000-0x000000160000 : "kernel"
[    0.750000] 0x000000160000-0x000000fe0000 : "rootfs"
[    0.760000] mtd: device 4 (rootfs) set to be root filesystem
[    0.760000] 1 squashfs-split partitions found on MTD device rootfs
[    0.770000] 0x000000380000-0x000000fe0000 : "rootfs_data"
[    0.780000] 0x000000fe0000-0x000000ff0000 : "nvram"
[    0.780000] 0x000000ff0000-0x000001000000 : "art"
[    0.810000] libphy: ag71xx_mdio: probed
[    1.360000] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[    2.390000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.940000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd0
41, driver=Generic PHY]
[    2.950000] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.960000] TCP: cubic registered
[    2.960000] NET: Registered protocol family 17
[    2.970000] Bridge firewalling registered
[    2.970000] 8021q: 802.1Q VLAN Support v1.8
[    2.980000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    2.990000] Freeing unused kernel memory: 272K (8034c000 - 80390000)
procd: Console is alive
procd: - watchdog -
[    5.760000] usbcore: registered new interface driver usbfs
[    5.770000] usbcore: registered new interface driver hub
[    5.770000] usbcore: registered new device driver usb
[    5.780000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.790000] ehci-platform: EHCI generic platform driver
[    5.790000] ehci-platform ehci-platform: EHCI Host Controller
[    5.800000] ehci-platform ehci-platform: new USB bus registered, assigned bus
 number 1
[    5.810000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    5.830000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    5.830000] hub 1-0:1.0: USB hub found
[    5.830000] hub 1-0:1.0: 1 port detected
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 not ready - marker found
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   12.340000] NET: Registered protocol family 10
[   12.360000] nf_conntrack version 0.5.0 (958 buckets, 3832 max)
[   12.370000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.390000] Loading modules backported from Linux version master-2014-05-22-0
-gf2032ea
[   12.390000] Backport generated by backports.git backports-20140320-37-g5c33da
0
[   12.400000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.460000] xt_time: kernel timezone is -0000
[   12.520000] cfg80211: Calling CRDA to update world regulatory domain
[   12.540000] cfg80211: World regulatory domain updated:
[   12.540000] cfg80211:  DFS Master region: unset
[   12.540000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gai
n, max_eirp), (dfs_cac_time)
[   12.550000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 m
Bm), (N/A)
[   12.560000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 m
Bm), (N/A)
[   12.570000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 m
Bm), (N/A)
[   12.580000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000
mBm), (N/A)
[   12.590000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000
mBm), (0 s)
[   12.590000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000
mBm), (0 s)
[   12.600000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 m
Bm), (N/A)
[   12.610000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0
mBm), (N/A)
[   12.650000] PPP generic driver version 2.4.2
[   12.660000] NET: Registered protocol family 24
[   12.750000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   12.760000] cfg80211: Calling CRDA for country: US
[   12.760000] cfg80211: Regulatory domain changed to country: US
[   12.770000] cfg80211:  DFS Master region: FCC
[   12.770000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gai
n, max_eirp), (dfs_cac_time)
[   12.780000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 m
Bm), (N/A)
[   12.790000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 m
Bm), (N/A)
[   12.800000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 m
Bm), (0 s)
[   12.800000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 m
Bm), (N/A)
[   12.810000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 40
00 mBm), (N/A)
[   21.530000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   21.530000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   21.540000] jffs2_build_filesystem(): erasing all blocks after the end marker
... [   26.270000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.270000] device eth0 entered promiscuous mode
[   26.290000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   26.330000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   29.280000] eth1: link up (100Mbps/Full duplex)
[   29.280000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready



BusyBox v1.22.1 (2014-09-20 22:01:35 CEST) 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
 -----------------------------------------------------
 BARRIER BREAKER (14.07, r42625)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@OpenWrt:/#




The Web UI (http://192.168.1.1)



9.10.2014

How to upgrade firmware and configuration

How to upgrade firmware and configuration

1.    Go to Advanced Setting -> Upgrade Firmware.
2.    Select the firmware (xxx.bin) you want to upgrade and press “Upload” button.
3.    The Firmware is uploading.
4.    Go to Advanced Setting -> Save/Reload Settings.
5.    Select the configuration (xxx.dat) you want to upgrade and press “Upload” button.
6.    The configuration is uploading.
7.    Done.





R36 upgrade firmware by Console

R36 Upgrade Firmware by Console.

Requirement:

  1. R36 : 1 Unit.
  2. Console Board:  1 Unit.
  3. Console Cable: 1 Unit.
Below are picture that use the Console Board connect to URAT port of the R36.

Console Cable & Console Board.















1. Set your PC to 10.10.10.3













2.Set up the Hyper Terminal to Baud rate to 115200-8N-1












3. Open the TFTP server and check the firmware file ( R36-v1.2.0.7b6.img) in the folder.












4. Power on the R36, and PC use the Ethernet cable connect to LAN port of te R36. The Hyper Terminal will show information.












5. Press "2"












6. Press " Y"












7. Press " Enter".












8. Copy the firmware name to filename.


































9. Then R36 will reboot.












10. Then upgrade firmware success.