加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Redboot烧写内核

发布时间:2020-12-15 18:31:05 所属栏目:百科 来源:网络整理
导读: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. Foner

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/Model S/N OpenWrt Version Supported Model Specific Notes
Fonera+ (FON2201) - 8.09+ No special issues
Fonera 2.0g (FON2202) - 8.09+ No special issues

Hardware Highlights

Model CPU Ram Flash Network USB Serial JTag
Fonera+ (FON2201) Atheros AR2315@180MHz 16MiB 8MiB 1 x 1 No Yes No
Fonera 2.0g (FON2202) Atheros AR2315@180MHz 32MiB 8MiB 1 x 1 Yes Yes No

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

  • Browse to http://192.168.1.1/cgi-bin/luci/mini/system/upgrade/ LuCI Upgrade URL
  • Upload openwrt-atheros-combined.squashfs.img file to LuCI
  • Wait for reboot

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 Name Description Default configuration
br-lan LAN & WiFi 192.168.1.1/24
eth0.1 LAN port (black) Static
eth0.2 WAN port (white) DHCP
wifi0 WiFi Disabled

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.

BUTTON Event
Reset reset

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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读