Differences

This shows you the differences between two versions of the page.

toh:8devices:carambola2 [2013/07/12 08:31]
toh:8devices:carambola2 [2014/07/23 15:14] (current)
b2ag Error in firmware offset
Line 1: Line 1:
====== 8devices Carambola 2 ====== ====== 8devices Carambola 2 ======
 +{{:media:carambola.2.png?200|Carambola 2 board}}
  * supported with [[https://dev.openwrt.org/changeset/37260|r37260]]   * supported with [[https://dev.openwrt.org/changeset/37260|r37260]]
 +
 +===== Specifications =====
 +  * 802.11 b/g/n, 2.4 GHz, 1x1 SISO, 150MBps max data rate, 21 dB output power
 +  * U.FL connector or external pin for external an­tenna
 +  * 16 MB FLASH, 64 MB DDR2 RAM
 +  * CPU – AR9331, 400 MHz clock speed
 +  * 28 by 38 mm Size – small and easy to embed
 +  * Surface mountable
 +  * Power supply - 3.3 V, power consumption 0.5 W
 +  * Available interfaces - USB host/slave, serial port, 2 x Ethernet, i2S, SLIC, SPDIF, 23 x GPIO
 +
 +===== Serial connection =====
 +Serial connection settings:
 +  * 115200 8N1, no hardware flow control.
 +
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=723|Using Carambola 2 serial port for connecting external device]]
 +
 +**Linux:**
 +<code>apt-get install picocom
 +picocom -f n -p n -b 115200 -i -r -l /dev/ttyUSB0</code>
 +
 +===== GPIO =====
 +
 +**Bootstrap** HIGH or LOW means that during bootstrap process (first few seconds as device is turned on) these pins need to be in that state. If pins are not in requred state then device will not boot correctly.
 +
 +**Worry free GPIO pins(tm):**
 +If you have some DIY project use GPIO pins 18, 19, 20, 21, 22 and 23 without any worries, these pins are not used during booting. Other GPIO pins are not suitable for use if you don't know exactly what you are doing because they are used during boot process (bootstrap).
 +
 +**LED GPIO** LED0 (GPIO0), LED2 (GPIO13) and LED3 (GPIO14) are being used by kernel module "leds_gpio" - You can use them after removing **leds_gpio** module by rmmod, or removing it permanently from /etc/modules.d
 +
 +{{:media:carambola2.pinout.small.png?400|Carambola 2 pinout}}
 +
 +^ GPIO    ^ Pin ^ Input/Output ^ Bootstrap ^ Name ^ Description  ^
 +| Gpio 0  | 41 | output        | Must be HIGH during bootstrap | Wlan led, LED0 | 10K pull-down output |
 +| Gpio 1  | 40 | bidirectional | Must be HIGH during bootstrap | LED1 | 10K pull-up output, input goes to ground |
 +| Gpio 11 | 23 | input        | | soft reset| 1K and 100pF input, reset if connected with GND |
 +| Gpio 13 | 39 | output        | Must be HIGH during bootstrap | Eth0 led, LED2 | 10K pull-down output |
 +| Gpio 14 | 38 | bidirectional | Must be LOW during bootstrap  | Eth1 led, LED3 | 10K pull-down output |
 +| Gpio 15 | 37 | bidirectional | Must be LOW during bootstrap  | LED4 | 10K pull-down output |
 +| Gpio 16 | 36 | bidirectional | Must be LOW during bootstrap  | LED5 | 10K pull-down output |
 +| Gpio 17 | 35 | output        | Must be HIGH during bootstrap | LED6 | 10K pull-up output |
 +| Gpio 18 | 6  | bidirectional | | | I/O line number 18 |
 +| Gpio 19 | 5  | bidirectional | | | I/O line number 19 |
 +| Gpio 20 | 4  | bidirectional | | | I/O line number 20 |
 +| Gpio 21 | 3  | bidirectional | | | I/O line number 21 |
 +| Gpio 22 | 2  | bidirectional | | | I/O line number 22 |
 +| Gpio 23 | 1  | bidirectional | | | I/O line number 23 |
 +
 +**Bootstrap hardware initialization**
 +
 +AR9331 datasheet mentiones these GPIOs used by hw initialization:
 +  * GPIO0 : crystal frequency 25 /40 MHz
 +  * GPIO1 : booting from internal ROM / Flash
 +  * GPIO 12/28 : external memory type (SDR, DDR, DDR2)
 +  * GPIO16: download firmware from USB/MDIO
 +  * GPIO13: USB mode device /host
 +  * GPIO 11: JTAG / CPU ICE
 +
 +===== Default FLASH Layout =====
 +
 +''
 +mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,2048k(kernel),13888k(rootfs),64k(nvram),64k(art)ro,15936k@0x50000(firmware)
 +...
 +m25p80 spi0.0: found w25q128, expected m25p80
 +m25p80 spi0.0: w25q128 (16384 Kbytes)
 +7 cmdlinepart partitions found on MTD device spi0.0
 +''
 +
 +^ Partition ^ Start ^ End ^ Size ^ Erasesize ^ Name ^ Description  ^
 +| mtd0 | 0x000000000000 | 0x000000040000 | 0x00040000 | 0x00010000 | u-boot | |
 +| mtd1 | 0x000000040000 | 0x000000040000 | 0x00010000 | 0x00010000 | u-boot-env | |
 +| mtd2 | 0x000000050000 | 0x000000040000 | 0x00200000 | 0x00010000 | kernel | |
 +| mtd3 | 0x000000250000 | 0x000000FE0000 | 0x00D90000 | 0x00010000 | rootfs | root filesystem |
 +| mtd4 | 0x000000480000 | 0x000000FE0000 | 0x00B60000 | 0x00010000 | rootfs_data | partition created automatically, ofs=480000, len=B60000 |
 +| mtd5 | 0x000000FE0000 | 0x000000FF0000 | 0x00010000 | 0x00010000 | nvram | |
 +| mtd6 | 0x000000FF0000 | 0x000001000000 | 0x00010000 | 0x00010000 | art | |
 +| mtd7 | 0x000000050000 | 0x000001000000 | 0x00F90000 | 0x00010000 | firmware | |
 +
 +
 +===== Debricking Carambola 2 =====
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=736&p=3115|How to debrick with desoldering and programing internal flash memory]]
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=679|More info on flashing internal flash]]
 +  * [[https://github.com/8devices/carambola2/issues/5|Flashing internal flash via serial port YModem protocol]]
 +
 +===== Forum discussions and other interesting links =====
 +  * [[https://github.com/pepe2k/u-boot_mod|pepe2k's better bootloader with extra functionality]]
 +  * [[http://www.tech-blog.pl/2013/03/29/zmodyfikowany-u-boot-dla-routerow-tp-link-z-atheros-ar9331-z-trybem-aktualizacji-oprogramowania-przez-www-i-konsola-sieciowa-netconsole/|How to install different bootloader on AR9331 based devices]]
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=723|Using Carambola 2 serial port for connecting external device]]
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=557|Can the second uart of carambola be used in openwrt]]
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=768|Carambola 2 and SPI pins - internal use only?]]
 +  * [[http://blog.gaku.net/flashing-a-new-image-from-u-boot-with-tftp-for-carambola2/|Flashing a new image from u-boot with tftp for Carambola2]]
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=416|Carambola2 I²C]]
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=679|Another way to brick Carambola2]]
 +  * [[https://forum.openwrt.org/viewtopic.php?id=36471&p=1|(TL-WR703n / GPIO / Misc) AR9331 pinouts?]]
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=574|Carambola2 USB Booting]]
 +  * [[http://8devices.com/community/viewtopic.php?f=13&t=655&p=3237|Carambola2 bootstrap pins and gpio]]
 + 
 +
 +
 +===== Documentation =====
 +
 +  * [[http://8devices.com/media/files/Carambola2.pdf|Carambola 2 datasheet]]
 +  * [[https://www.dptechnics.com/datasheets/openwrtmodule_datasheet_rev2.pdf|OpenWrt module datasheet]]

Back to top

toh/8devices/carambola2.1373610715.txt.bz2 · Last modified: 2013/07/12 08:31 (external edit)