Hello,
Thanks to Ramips (now Mediatek) highly-integrated RT5350 SoC there
appeared some really cheap devices lately.
Of specific interest, IMHO, are the HAME MPR-A1, MPR-A15 and MPR-A2
[1] clones. These are easy to find on eBay or AliExpress when
searching for "3G/4G wifi router" and using similar queries. The cost
is just about $10, and for that you get one USB high-speed port, one
100BASE-T Ethernet port, 1x1 802.11n WiFi AP and/or client radio (yes,
it can work as an AP and as a client at the same time, provided the
channel is the same), >= 4M flash, 32M RAM, 9 GPIOs (three of them are
used for two LEDs and one button by default), 1 UART, and a LiPo
battery on some models.
And it's fully supported by OpenWrt! Of course, there're other
solutions based on the same SoC in a different form-factor which might
be more suitable for embedding (e.g. AsiaRF modules [2]).
Now it's a perfect opportunity to add WiFi to any off-the-shelf or
custom device with UART or USB.
But I wouldn't be writing here if this device wouldn't also be capable
as an OpenOCD host. Just attach a supported debugging adapter via USB,
and enjoy your ultra-cheap and portable WiFi JTAG debugger. What's
more, since its MIPS core is Big Endian, it's a perfect opportunity to
test your OpenOCD contribution for endian-related bugs.
Attached to this mail is an OpenWrt Makefile that will (hopefully)
allow you to build OpenOCD for any OpenWrt target. I will propose it
upstream once it gets a bit more testing and Jens's fix is committed.
[1] http://wiki.openwrt.org/toh/hame/mpr-a1
[2]
http://www.asiarf.com/Smallest-Tiny-Ralink-802-11n-Wireless-AP-Router-Module-Board-AWM002-product-view-375.html
PS: for whatever reason my current HAME image lacks support for full
speed USB, thus only high-speed adapters are visible. That might be a
bug in the default package selection upstream, I'll investigate it
(and propose a fix if needed) a bit later
PPS: please feel free to contact me if you need some help with getting
this combination running
PPPS: finally it's time to compose my two favourite projects :)
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=openocd
PKG_VERSION:=0.9.0-dev
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://git.code.sf.net/p/openocd/code
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=HEAD
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MAINTAINER:=Paul Fertser <[email protected]>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
define Package/openocd
SECTION:=utils
CATEGORY:=Utilities
TITLE:=OpenOCD Utility
URL:=http://openocd.sf.net/
DEPENDS:=+libusb-1.0 +libftdi
endef
define Package/openocd/description
OpenOCD provides on-chip programming and debugging support with a
layered architecture of JTAG interface and TAP support including:
- (X)SVF playback to faciliate automated boundary scan and FPGA/CPLD
programming;
- debug target support (e.g. ARM, MIPS): single-stepping,
breakpoints/watchpoints, gprof profiling, etc;
- flash chip drivers (e.g. CFI, NAND, internal flash);
- embedded TCL interpreter for easy scripting.
Several network interfaces are available for interacting with OpenOCD:
telnet, TCL, and GDB. The GDB server enables OpenOCD to function as a
"remote target" for source-level debugging of embedded systems using
the GNU GDB program (and the others who talk GDB protocol, e.g. IDA
Pro).
endef
CONFIGURE_ARGS += \
--prefix="/usr" \
--disable-werror \
--enable-dummy \
--enable-sysfsgpio \
--enable-usb_blaster_libftdi \
--enable-openjtag_ftdi \
--enable-presto_libftdi
define Build/Compile
+$(MAKE_VARS) \
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH)
endef
define Package/openocd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/share/openocd
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/openocd $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/share/openocd/scripts
$(1)/usr/share/openocd
endef
$(eval $(call BuildPackage,openocd))
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel