Redboot烧写内核

Fon Fonera+ and Fonera 2.0g

http://wiki.openwrt.org/toh/fon/fonera2


The Fonera 2.0g is the sucessor of the Fonera+ offered by Fon. Its an Atheros AP51 reference design, features a two-port fast ethernet switch and a USB 2.0 host port. Fonera+ and Fonera 2.0g are based on same hardware design, former lacking USB and having less memory.

This model is not sold anymore and has been superseded by the RaLink SoC based Fonera 2.0n.

Supported Versions

Version/ModelS/NOpenWrt Version SupportedModel Specific Notes
Fonera+ (FON2201)-8.09+No special issues
Fonera 2.0g (FON2202)-8.09+No special issues

Hardware Highlights

ModelCPURamFlashNetworkUSBSerialJTag
Fonera+ (FON2201)Atheros AR2315@180MHz16MiB8MiB1 x 1NoYesNo
Fonera 2.0g (FON2202)Atheros AR2315@180MHz32MiB8MiB1 x 1YesYesNo

Installation

Access to Redboot is required for initial installation and recovery. The bootloader can be reached via serial cable or by telnet on port 9000. Not all shipped units have Redboot telnet enabled by default, a serial cable might be required. While writing to flash router will stop answering ping and you might lose telnet connection. Leave ping running and reconnect telnet when you receive answer. Be patient as writing to flash will take several minutes.

Method 1 (with tftp server)

  • Connect the PC via ethernet to one of the Foneras ethernet ports, set the IP to 192.168.1.2, netmask 255.255.255.0
  • Prepare a TFTP server on the PC, download the openwrt-atheros-vmlinux.lzma and openwrt-atheros-root.squashfs to the TFTP directory
  • Switch to the Reboot prompt
  • Set the Fonera IP address: ip_address -l 192.168.1.1/24
  • Specify the TFTP server address: ip_address -h 192.168.1.2
  • Create a clean partition table: fis init
  • Download the kernel: load -r -v -b 0x80041000 openwrt-atheros-vmlinux.lzma
  • Flash the kernel: fis create kernel
  • Download the rootfs: load -r -v -b 0x80041000 openwrt-atheros-root.squashfs
  • Flash the rootfs: fis create rootfs
  • Configure the boot parameters: fconfig
    • When prompted for the boot script, enter:
      fis load -l kernelexec
    • To enable Redboot telnet access, set "Local IP address" to 192.168.1.1 and "Local IP address mask" to 255.255.255.0
  • Restart the device: reset

Method 2 (without tftp)

  • Download the openwrt-atheros-vmlinux.lzma and openwrt-atheros-root.squashfs
  • Open RedBoot prompt with minicom and serial cable connection:
    minicom -b 9600 -D /dev/ttyUSB0
  • Change serial speed to 115200 in RedBoot:
    baudrate -b 115200
  • Change serial speed to 115200 in minicom:
    Crtl+a p
  • Configure the boot parameters:
    fconfig
    • When prompted for the boot script, enter:
      fis load -l kernelexec
  • Create a clean partition table:
    fis init
  • Load the kernel via ymodem:
    load -m ymodem -r -v -b 0x80041000 openwrt-atheros-vmlinux.lzma
  • Select kernel image openwrt-atheros-vmlinux.lzma via:
    Ctrl+a s
  • Flash the kernel:
    fis create kernel
  • Load rootfs via ymodem:
    load -m ymodem -r -v -b 0x80041000 openwrt-atheros-root.squashfs
  • Select rootfs image openwrt-atheros-root.squashfs via:
    Ctrl+a s
  • Flash the rootfs:
    fis create rootfs
  • Restart the device:
    reset

Enabling Redboot on Fonera 2.0+

Some Fonera 2.0+ units don't have Redboot telnet access enabled by default, however it can be enabled by preforming the following steps:

  • Flash a beta developer edition of a firmware onto the Fonera, developer builds have ssh enabled.
  • Flash a firmware that is able to write to the Redboot configuration partition, enter:
    ssh root@192.168.10.1cd /tmpwget ftp://downloads.linwin-solutions.com/hxcwyxwr/fonera_openwrt/FON2202_2.2.5.0_Flipper_RedBootC_VoteGOP.imageuci set registered.fonreg.dev=1uci committar cvzf sysupgrade.tgz /etc/passwd /etc/group /etc/dropbear /etc/samba/smbpasswd /etc/samba/secrets.tdb /etc/config/firewall /etc/config/upnpd /etc/config/umtsd /etc/config/registered /etc/config/gdata /etc/config/facebook /etc/config/flickr /etc/config/mountd /etc/config/fon /etc/config/ddns /etc/config/wizard /etc/pureftpd.pdb /etc/pureftpd.passwd /etc/config/luci_dlmanager /etc/config/twitter /etc/config/firewallmtd -j sysupgrade.tgz -r write FON2202_2.2.5.0_Flipper_RedBootC_VoteGOP.image imagereboot
  • Once your Fonera has rebooted, flash a Redboot configuration partition that has telnet enabled:
    ssh 192.168.10.1cd /tmpwget ftp://downloads.linwin-solutions.com/hxcwyxwr/fonera_openwrt/out.hexmtd -e "RedBoot config" write out.hex "RedBoot config"reboot
  • While your fonera is booting up, you should have about 10 seconds to telnet into 192.168.1.254 on port 9000 to access the Redboot console.

Upgrading OpenWrt

If you have already installed OpenWrt and like to reflash for e.g. upgrading to a new OpenWrt version you can upgrade using the sysupgrade utility. It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.

LuCI Web Upgrade Process

Terminal Upgrade Process

  • Login as root via SSH on 192.168.1.1
  • Use the following commands to upgrade.
cd /tmp/
wget http://downloads.openwrt.org/latest/atheros/openwrt-atheros-combined.squashfs.img
sysupgrade /tmp/openwrt-atheros-combined.squashfs.img
  • If sysupgrade does not support this router, you have to reflash via Redboot.

Hardware (2.0g)

Info

Architecture: MIPS
Vendor: Accton/FON
Bootloader: Redboot
System-On-Chip: Atheros AR2315A
CPU Speed: 180 Mhz
Flash-Chip: MX 5L6405MC-20G
Flash size: 8 MiB
RAM: 32 MiB
Wireless: Atheros AR2315A WiSoC 802.11b/g (integrated)
Ethernet: Marvell 88E6060 Fast Ethernet Switch
USB: NEC D72010 USB 2.0 Controller (1 Port)
Serial: Yes
JTAG: No

Opening the case

Note: This will void your warranty!

  • Remove the both screws under the front rubber feet
  • Gently tear off the top cover

Main PCB

Photo TBD

Serial

The serial pins are located on the right side of the PCB.

________________________.../ [ eth ] [ eth ] [usb]| _________| | || | 88E6060 ||[VC] |_________||[TX]|[RX] ________|[GD] | || | AR2315 || |________|...

Serial ports settings are 9600@8n1.

Interfaces

The default network configuration is:

Interface NameDescriptionDefault configuration
br-lanLAN & WiFi192.168.1.1/24
eth0.1LAN port (black)Static
eth0.2WAN port (white)DHCP
wifi0WiFiDisabled

Connecting a VLAN trunk

Because the FON2201/FON2202 has a build-in VLAN switch, unlike the FON2100. Connecting a VLAN trunk is a little different than usual. If you for example connect a trunk to the LAN port (eth0.1), then to access VLAN 5 on the trunk, you need the specify the device eth0.1.5 - Not eth0.5.

This practice is called double VLAN tagging. It usual requires that the MTU is lowered with 4 bytes. This is however not necessary on the FON2201/FON2202.

Buttons

There is only one button, reset, at the bottom of the device.

BUTTONEvent
Resetreset

Other Info

The USB host controller suffers from a hardware bug, it will crash if a USB 1.1 device is attached. A workaround is putting a powered hub between the USB host and the device.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值