Flash de la Fonera 2 (2202) avec Openwrt
Bon, ce n’est pas tout, mais voyons ce que donne OpenWrt sur une Fonera 2.
Avant de nous lancer corps et âmes, un petit coup d’œil sur le firmware FON… Les accès telnet et ssh sont ouverts, ce qui est plutôt appréciable… Espérons que ce n’est pas juste pour la version béta et que les gens de Fon auront bien compris que ce n’était pas dans leur intérêt de tout verrouiller… De toute façon, on finit par y arriver !
A première vu, ça ressemble beaucoup à une Fonera+… Normal, le matériel est identique avec un peu plus de mémoire et un port USB 2.0 !
BusyBox v1.11.1 (2008-09-25 22:20:43 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
,^~~~-. .-~~~"-.
: .--. \ / .--. \
: ( .-`<^~~~-: : ) :
`. `-,~ ^- ' .'
`-: ,.-~
.' `.
,' @ @ |
: __ ;
...{ (__) ,----.
/ `. ,' ,--. `.
| `.,___ , : : :
| .' ~~~~ \ / :
\.. / `. `--' .'
| ~----~
| |
| |
beware the evil teddy
-------- Fonera 2.0 Firmware (v2.1.0.1) -----------
* Based on OpenWrt - http://openwrt.org
* Powered by FON - http://www.fon.com
----------------------------------------------------
root@Fonera:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00010000 "RedBoot"
mtd1: 00010000 00010000 "loader"
mtd2: 00620000 00010000 "image"
mtd3: 0055e63f 00010000 "rootfs"
mtd4: 001f0000 00010000 "rootfs_data"
mtd5: 00140000 00010000 "image2"
mtd6: 0000f000 00010000 "FIS directory"
mtd7: 00001000 00010000 "RedBoot config"
mtd8: 00010000 00010000 "boardconfig" |
Allez ! C’est parti ! Même méthode que pour la Fonera 2201, avec le dernier snapshot (15/10/2008), sans oublier de réécrire le script de boot pour supprimer l’étape du loader…
-> == Executing boot script in 1.360 seconds - enter ^C to abort
<- ^C
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
RedBoot> ip_ad
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.254
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xA8000000 0x80040400 0x00030000 0xA8000000
loader 0xA8030000 0x80100000 0x00010000 0x80100000
image 0xA8040000 0x80040400 0x00350004 0x80040400
image2 0xA8660000 0xA8660000 0x00140000 0x80040400
FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000
RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000
FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000
RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000
RedBoot> lo -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma
Using default protocol (TFTP)
Raw file loaded 0x80040400-0x801003ff, assumed entry at 0x80040400
RedBoot> fi cr -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
... Erase from 0xa8030000-0xa80f0000: ............
... Program from 0x80040400-0x80100400 at 0xa8030000: ............
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> fis free
0xA80F0000 .. 0xA87E0000
RedBoot> lo -r -b %{FREEMEMLO} openwrt-atheros-root.jffs2-64k
Using default protocol (TFTP)
Raw file loaded 0x80040400-0x802803ff, assumed entry at 0x80040400
RedBoot> fi cr -l 0x6F0000 rootfs
RedBoot> fconfig -l -n
boot_script: true
boot_script_data:
.. fis load -b 0x80100000 loader
.. go 0x80100000
boot_script_timeout: 2
bootp: false
bootp_my_gateway_ip: 0.0.0.0
bootp_my_ip: 192.168.1.1
bootp_my_ip_mask: 255.255.255.0
bootp_server_ip: 192.168.1.254
console_baud_rate: 9600
gdb_port: 9000
info_console_force: false
net_debug: false
RedBoot> fconfig
Run script at boot: true
Boot script:
.. fis load -b 0x80100000 loader
.. go 0x80100000
Enter script, terminate with empty line
>> fis load -l vmlinux.bin.l7
>> exec
>>
Boot script timeout (1000ms resolution): 2
Use BOOTP for network configuration: false
Gateway IP address:
Local IP address: 192.168.1.1
Local IP address mask: 255.255.255.0
Default server IP address: 192.168.1.254
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> reset |
Nickel Chrome ! Ca boote, ça clignote ! Que c’est beau !
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
BusyBox v1.11.2 (2008-10-13 09:57:28 PDT) 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
KAMIKAZE (bleeding edge, r12985) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/# |
Un petit tour du propriétaire… On ne nous a pas menti : c’est plus grand ; -)
Filesystem Size Used Available Use% Mounted on rootfs 6.9M 2.4M 4.5M 35% / /dev/root 6.9M 2.4M 4.5M 35% / tmpfs 14.6M 44.0k 14.6M 0% /tmp tmpfs 512.0k 0 512.0k 0% /dev |
Côté réseau, tout a l’air bon…Les deux interfaces ethernet, le switch et le wifi. Par contre, monsieur USB est absent…
root@OpenWrt:/# dmesg
Linux version 2.6.26.5 (andy@devsandbox.padded-cell.net) (gcc version 4.1.2) #3 Wed Oct 15 14:22:17 PDT 2008
CPU revision is: 00019064 (MIPS 4KEc)
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Entering add_active_range(0, 0, 8192) 0 entries of 256 used
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0 -> 8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 8192
On node 0 totalpages: 8192
Normal zone: 64 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 8128 pages, LIFO batch:0
Movable zone: 0 pages used for memmap
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29808k/32768k available (1875k kernel code, 2960k reserved, 311k data, 124k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 183.50 BogoMIPS (lpj=917504)
Mount-cache hash table entries: 512
net_namespace: 644 bytes
NET: Registered protocol family 16
Radio config found at offset 0xf8(0x1f8)
AR531x PCI init...
done
PCI: fixing up device 0,3,0
PCI: Failed to allocate mem resource #1:4000000@84000000 for 0000:00:03.0
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
ar531x: Registering GPIODEV device
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:18:84:d0:0a:00, irq 4
ar2313_eth_mii: probed
eth0: Marvell 88E6060 PHY driver attached.
eth0: attached PHY driver [Marvell 88E6060] (mii_bus:phy_addr=0:1f)
cmdlinepart partition parsing not available
Searching for RedBoot partition table in spiflash at offset 0x7d0000
Searching for RedBoot partition table in spiflash at offset 0x7e0000
6 RedBoot partitions found on MTD device spiflash
Creating 6 MTD partitions on "spiflash":
0x00000000-0x00030000 : "RedBoot"
0x00030000-0x000f0000 : "vmlinux.bin.l7"
0x000f0000-0x007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "spiflash"
0x007e0000-0x007ef000 : "FIS directory"
0x007ef000-0x007f0000 : "RedBoot config"
0x007f0000-0x00800000 : "boardconfig"
Registered led device: gpio1
Registered led device: wlan
Registered led device: gpio3
Registered led device: gpio4
Registered led device: gpio7
TCP vegas registered
NET: Registered protocol family 17
eth0: Configuring MAC for full duplex
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
jffs2_scan_eraseblock(): End of filesystem marker found at 0x220000
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering forwarding state
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, DFS, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_ahb: trunk
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3 |
Voyons les modules chargés…
root@OpenWrt:/# lsmod Module Size Used by Tainted: P ath_ahb 124736 0 wlan_xauth 448 0 wlan_wep 3680 0 wlan_tkip 9344 0 wlan_ccmp 5088 0 wlan_acl 1824 0 ath_rate_minstrel 8640 1 ath_hal 161280 3 ath_ahb,ath_rate_minstrel wlan_scan_sta 7904 0 wlan_scan_ap 5152 0 wlan 153296 10 ath_ahb,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp,wlan_acl,ath_rate_minstrel,wlan_scan_sta,wlan_scan_ap nf_nat_tftp 448 0 nf_conntrack_tftp 2448 1 nf_nat_tftp nf_nat_irc 864 0 nf_conntrack_irc 2720 1 nf_nat_irc nf_nat_ftp 1440 0 nf_conntrack_ftp 4960 1 nf_nat_ftp ipt_MASQUERADE 1152 1 iptable_nat 3376 1 nf_nat 10944 5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat xt_state 832 6 nf_conntrack_ipv4 8256 9 iptable_nat,nf_nat nf_conntrack 37968 11 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_state,nf_conntrack_ipv4 ipt_REJECT 1888 2 xt_TCPMSS 2720 1 ipt_LOG 4544 0 xt_multiport 1824 0 xt_mac 704 0 xt_limit 1216 1 iptable_mangle 1184 0 iptable_filter 960 1 ip_tables 8816 3 iptable_nat,iptable_mangle,iptable_filter xt_tcpudp 1856 3 x_tables 8752 11 ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp ppp_async 7936 0 ppp_generic 21376 1 ppp_async slhc 4480 1 ppp_generic crc_ccitt 992 1 ppp_async |
Ca devrait aller mieux avec les bons modules…
root@OpenWrt:/# opkg update root@OpenWrt:/# opkg list|grep usb|grep kmod avrusbboot - 2006-06-25-1 - AVRUSBBoot is a bootloader for the Atmel AVR controllers. kmod-ide-core - 2.6.26.5-atheros-1 - Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD) kmod-rt2500-usb - 2.6.26.5+2008-08-06-atheros-1 - Ralink Drivers for RT2x00 cards (RT2500 USB) kmod-rt2x00-usb - 2.6.26.5+2008-08-06-atheros-1 - Ralink Drivers for RT2x00 cards (USB) kmod-rt73-usb - 2.6.26.5+2008-08-06-atheros-1 - Ralink Drivers for RT2x00 cards (RT73 USB) kmod-usb-acm - 2.6.26.5-atheros-1 - Kernel support for USB ACM devices (modems/isdn controllers) kmod-usb-atm - 2.6.26.5-atheros-1 - Kernel support for USB DSL modems kmod-usb-atm-cxacru - 2.6.26.5-atheros-1 - Kernel support for cxacru based USB ADSL modems kmod-usb-atm-speedtouch - 2.6.26.5-atheros-1 - Kernel support for SpeedTouch USB ADSL modems kmod-usb-atm-ueagle - 2.6.26.5-atheros-1 - Kernel support for Eagle 8051 based USB ADSL modems kmod-usb-audio - 2.6.26.5-atheros-1 - Kernel support for USB audio devices kmod-usb-core - 2.6.26.5-atheros-1 - Kernel support for USB kmod-usb-hid - 2.6.26.5-atheros-1 - Kernel support for USB HID devices such as keyboards and mice kmod-usb-net - 2.6.26.5-atheros-1 - Kernel modules for USB-to-Ethernet convertors kmod-usb-net-asix - 2.6.26.5-atheros-1 - Kernel module for USB-to-Ethernet Asix convertors kmod-usb-net-cdc-ether - 2.6.26.5-atheros-1 - Kernel support for USB CDC Ethernet devices kmod-usb-net-hso - 2.6.26.5-atheros-1 - Kernel module for Option USB High Speed Mobile Devices kmod-usb-net-kaweth - 2.6.26.5-atheros-1 - Kernel module for USB-to-Ethernet Kaweth convertors kmod-usb-net-pegasus - 2.6.26.5-atheros-1 - Kernel module for USB-to-Ethernet Pegasus convertors kmod-usb-ohci - 2.6.26.5-atheros-1 - Kernel support for USB OHCI controllers kmod-usb-printer - 2.6.26.5-atheros-1 - Kernel support for USB printers kmod-usb-serial - 2.6.26.5-atheros-1 - Kernel support for USB-to-Serial converters kmod-usb-serial-airprime - 2.6.26.5-atheros-1 - Kernel support for Airprime (EVDO) kmod-usb-serial-ark3116 - 2.6.26.5-atheros-1 - Kernel support for ArkMicroChips ARK3116 USB-to-Serial converters kmod-usb-serial-belkin - 2.6.26.5-atheros-1 - Kernel support for Belkin USB-to-Serial converters kmod-usb-serial-ch341 - 2.6.26.5-atheros-1 - Support for CH341 devices kmod-usb-serial-cp2101 - 2.6.26.5-atheros-1 - Kernel support for Silicon Labs cp2101 USB-to-Serial converters kmod-usb-serial-ftdi - 2.6.26.5-atheros-1 - Kernel support for FTDI USB-to-Serial converters kmod-usb-serial-keyspan - 2.6.26.5-atheros-1 - Kernel support for Keyspan USB-to-Serial devices kmod-usb-serial-mct - 2.6.26.5-atheros-1 - Kernel support for Magic Control Technology USB-to-Serial converters kmod-usb-serial-option - 2.6.26.5-atheros-1 - Kernel support for Option HSDPA modems kmod-usb-serial-oti6858 - 2.6.26.5-atheros-1 - Kernel support for Ours Technology OTI6858 USB-to-Serial converters kmod-usb-serial-pl2303 - 2.6.26.5-atheros-1 - Kernel support for Prolific PL2303 USB-to-Serial converters kmod-usb-serial-sierrawireless - 2.6.26.5-atheros-1 - Kernel support for Sierra Wireless devices kmod-usb-serial-visor - 2.6.26.5-atheros-1 - Kernel support for Handspring Visor PDAs kmod-usb-storage - 2.6.26.5-atheros-1 - Kernel support for USB Mass Storage devices kmod-usb-uhci - 2.6.26.5-atheros-1 - Kernel support for USB UHCI controllers kmod-usb-yealink - 2.6.26.5-atheros-1 - Kernel support for Yealink VOIP phone kmod-usb2 - 2.6.26.5-atheros-1 - Kernel support for USB2 (EHCI) controllers |
Oulà ! Il y a du monde… Hum… kmod-usb2… Ca sent plutôt bon !
root@OpenWrt:/# opkg install kmod-usb2 Installing kmod-usb2 (2.6.26.5-atheros-1) to root... Downloading http://downloads.openwrt.org/snapshots/atheros/packages/./kmod-usb2_2.6.26.5-atheros-1_mips.ipk Connecting to downloads.openwrt.org (195.56.146.238:80) kmod-usb2_2.6.26.5-a 100% |************************************************************************************************************| 21517 --:--:-- ETA Installing kmod-usb-core (2.6.26.5-atheros-1) to root... Downloading http://downloads.openwrt.org/snapshots/atheros/packages/./kmod-usb-core_2.6.26.5-atheros-1_mips.ipk Connecting to downloads.openwrt.org (195.56.146.238:80) kmod-usb-core_2.6.26 100% |************************************************************************************************************| 71039 00:00:00 ETA Configuring kmod-usb-core Configuring kmod-usb2 root@OpenWrt:/# dmesg ... usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb PCI: Enabling device 0000:00:00.1 (0000 -> 0002) ehci_hcd 0000:00:00.1: EHCI Host Controller ehci_hcd 0000:00:00.1: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:00.1: irq 5, io mem 0x80c21000 ehci_hcd 0000:00:00.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 3 ports detected usb 1-1: new high speed USB device using ehci_hcd and address 2 usb 1-1: configuration #1 chosen from 1 choice |
Ben voilà !
Laissez votre message après le bip...Biiiiip
Commentaires
[...] de précédents retours d’expériences, j’ai montré comment installer Openwrt et gérer des périphériques de stockage usb sur une Fonera 2.0. L’idée aujourd’hui [...]
Hi. I followed your guide and i managed to flash my fonera 2.0 with openwrt. I’ve also installed the packets needed for usb as you suggest. If i insert a usb pen, I’m not able to mount it. I wrote in the console:
root@OpenWrt:/# mount -t vfat /dev/sda1 /mnt/usbdrive/
mount: mounting /dev/sda1 on /mnt/usbdrive/ failed: Invalid argument
if i look in fstab:
cat /etc/fstab
# WARNING: this is an auto generated file, please use uci to set static filesystems
/dev/sda1 /home ext3 noauto,rw,sync 0 0
but the filesystem is fat32. In someway openwrt autogenerate this file.
dmesg:
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver…
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access CBM Flash Disk 5.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 2072064 512-byte hardware sectors (1061 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 2072064 512-byte hardware sectors (1061 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
usb-storage: device scan complete
FAT: codepage cp437 not found
Hi !
You have to install the codepage module : kmod-nls-cp437 and probably a charset module too.
For more details, look at this post :
http://www.jopa.fr/index.php/2.....e-cle-usb/
I have just Flash my Fonera2 with latest Kamikaze 8.09RC1.
(I used ap51flash for easier flashing)…
I noticed a problem on assigning an IP to the WAN interface. Even fixed or by dhcp this eth0.1 is unreachable.
Btw, my LAN and Wifi bridge is OK.
Did you had such a problem?
Pour info, n’arrivant pas à faire le moindre « opkg update », j’ai réussi à débloquer la situation en désactivant l’ECN.
sysctl -w net.ipv4.tcp_ecn=0
Il doit y avoir un conflit avec le firewall.
Enfin à essayer, si vous rencontrez des pb avec le réseau de la Fonera!!
Bonjour,
J’ai suivis exactement les différentes étapes que tu as décrites dans ton turorial. Tout se passe bien durant le flashage mais après le reset et le reboot (deco/reco de l’alim) je n’ai pas accés aux SSH sur 192.168.1.1.
Les fichiers que j’ai utilisés sont openwrt-atheros-2.6-root.jffs2-64k et openwrt-atheros-2.6-vmlinux.lzma à l’adresse http://downloads.openwrt.org/k.....heros-2.6/
Quelqu’un aurait-il une idée d’où pourrait venir le problème ?
Plop
J’ai quelques problèmes pour flasher mon Fonera 2202
J’utilise le script redboot.pl mais je n’arrive pas a accéder au RedBoot du Fonera
Qu’entendez vous quand vous dites
« sans oublier de réécrire le script de boot pour supprimer l’étape du loader… »
Merci d’avance et désolé mais je suis un newbie
Kazuki : Tant que le mot de passe root n’est pas définit, l’accès ssh est désactivé… Il faut y accéder en telnet…
Une fois le mot de passe root initialisé, telnet est désactivé et l’accès ssh est ouvert.
Freax : Peux-tu être plus précis sur le problème que tu rencontres pour l’accès au Redboot ?
Suivant les modèles de Fonera, le Redboot a l’adresse IP 192.168.1.1 ou 192.168.1.254
La partie concernant la ré-écriture du script de boot est à faire en fin de « flash », depuis le redboot… C’est la partie commençant à la ligne :
« RedBoot> fconfig -l -n »
dans les lignes de commandes exposées dans l’article… Cette étape consiste à supprimer l’étape de boot via un loader qui n’existe plus après le flash, pour booter directement sur le noyau.
J’utilise le redboot.pl
j’ai connecté mon pc sur le port gris du fonera ( j’ai essayé le port noir avec les mêmes résultat )
puis je fais:
./redboot.pl 192.168.1.1
et j’obtiens :
»
ICMP Host Unreachable from 192.168.1.254 for ICMP Echo sent to 192.168.1.1
ICMP Host Unreachable from 192.168.1.254 for ICMP Echo sent to 192.168.1.1
ICMP Host Unreachable from 192.168.1.254 for ICMP Echo sent to 192.168.1.1
192.168.1.1 is unreachable
192.168.1.1 is unreachable
»
à l’infini
Bonjour,
Merci Jopa pour ce site, je viens de Flasher une Fonera+ à l’instant, sans aucun problème.
Si je peux me permettre de répondre à Freax, comme le dit Jopa, suivant les versions de la Fonera c’est 192.168.1.1 ou 192.168.1.254 qui est utilisé par le redboot.
Je te conseille donc de prendre une adresse différente de l’une ou de l’autre pour ton PC (style 192.168.1.100 par exemple)…
Ensuite, il faut bien penser à éteindre la Fonera (la débrancher électriquement), lancer le redboot
./redboot.pl 192.168.1.1 ou ./redboot.pl 192.168.1.254 (essayer l’un, puis l’autre si ça ne fonctionnait pas)
Puis rebrancher la fonera… environs 5 secondes plus tard, tu devrais avoir un accès au redboot.
bonjour a tous.
je viens de recevoir une fonera 2202 apres restockage.
Firmware 2.2.5.0.
le ssh est disponible en activant le mode dev.
Apres quelques lectures françaises et anglaises sur le net, il semblerait que le telnet par redboot ne soit plus actif dans cette version quelque soit l’adresse ip donnée.
je ne sais pas encore si l’acces par le port serie est possible, certaines sources donnent oui, d’autres non.
Apparement, mtd0 serait protégé en ecriture et donc non modifiable. Sii quelqu’un a d’autres infos plus rejouissantes…
Hello world,
J’ai réussi a flasher mon Fonera 2202
En fait , le Telnet n’était pas activé , je me suis donc servis d’un convertisseur TTL / USB pour paramétrer le réseau , et maintenant , ça marche nickel
Merci pour le tuto
exodis : l’accès au redboot sur les fonera 2.0 end-user est possible seulement avec le port série !
Je me suis bricolé un cabel usb TTL (avec un chip cp2101) et ca marche très bien (putty en 9800-N-1).
Une fois openwrt flashé tu peux ré-activé redboot sur l’ip que tu le souhaites !
J’ai réussit également à accéder à redboot avec un cable USB/TTL ! Mon cable est à base de cp2101 (directement intégré dans le kernel linux)
Il fuat utiliser putty par exemple en 9600-N-1 (9600 bauds, pas de parité, un bit de stop) et aucun control de flux.
Ca y est, le flashage a reussi avec un cable adhoc sur le port serie.
openwrt 8-09-1 installe.
Les interfaces reseaux configures comme je le veux.
Le montage d’une clef usb effectue.
Maintenant je teste l’installation de python…
Avec python-mini pas de probleme, mais le mini ne me convient pas, je veux la version pleine.
La probleme, pas assez de place dans la bete…
Ok, il y a une clef usb de 512 Mo d’intallee, en ext 3, le montage fonctionne vu qu’un transfert de fichier de 60 mo en scp a fonctionne…
Donc petit tour dans opkg.conf avec vi et on rajoute une ligne « dest usb /mnt/usbdrive » pour pouvoir installer sur la clef avec opkg.
On teste « opkg -d usb install python » et là…
Pas assez de place, le nombre de blocs repere par opkg est toujours le meme, il ne tient pas compte de la clef et de ces 460 Mo de dispo…
Une idee ???
A+
Voici le boot de ma fonera 2.
Elle est branchée par un cable série USB-TTL. Ce cable marche impec avec ma Fonera 1. Avec la Fonera 2, redboot ne me laisse aucune action possible (CTRL-C ou ENTER) quand il le demande.
Quelqu’un a-til une idée.
Cordialement.
+Ethernet eth0: MAC address 00:XX:XX:XX:XX:XX
IP: 0.0.0.0/255.255.255.0, Gateway: 0.0.0.0
Default server: 0.0.0.0
RedBoot(tm) bootstrap and debug environment [ROMRAM]
OpenWrt certified release, version 1.1 – built 12:40:38, Sep 3 2007
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Board: FON 2202
RAM: 0×80000000-0×82000000, [0x80040290-0x80fe1000] available
FLASH: 0xa8000000 – 0xa87f0000, 128 blocks of 0×00010000 bytes each.
== Executing boot script in 1.000 seconds – enter ^C to abort
RedBoot> fis load -b 0×80100000 loader
RedBoot> go 0×80100000
Failsafe loader v0.2
Looking for board config data… found at offset 0xa87f0000
Reset button GPIO: 6
Reading flash from 0xa8040000 to 0xa84914b2… done.
Verifying CRC… OK – 0x6457bcf2
Uncompressing Linux… Ok, booting the kernel.
Linux version 2.6.26.2 (blogic@blap4) (gcc version 4.1.2) #10 Tue Apr 21 14:12:05 CEST 2009
CPU revision is: 00019064 (MIPS 4KEc)
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty – disabling initrd
Zone PFN ranges:
Normal 0 -> 8192
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 8192
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29784k/32768k available (1889k kernel code, 2984k reserved, 317k data, 128k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
Radio config found at offset 0xf8(0x1f8)
AR531x PCI init…
done
PCI: fixing up device 0,3,0
PCI: Failed to allocate mem resource #1:4000000@84000000 for 0000:00:03.0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
ar531x: Registering GPIODEV device
gpio_proc: module loaded and /proc/gpio/ created
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:XX:XX:XX:XX:XX, irq 4
ar2313_eth_mii: probed
eth0: Marvell 88E6060 PHY driver attached.
eth0: attached PHY driver [Marvell 88E6060] (mii_bus:phy_addr=0:1f)
cmdlinepart partition parsing not available
Searching for RedBoot partition table in spiflash at offset 0x7d0000
Searching for RedBoot partition table in spiflash at offset 0x7e0000
8 RedBoot partitions found on MTD device spiflash
Creating 8 MTD partitions on « spiflash »:
0×00000000-0×00030000 : « RedBoot »
0×00030000-0×00040000 : « loader »
0×00040000-0×00660000 : « image »
0x000f2e84-0×00660000 : « rootfs »
mtd: partition « rootfs » doesn’t start on an erase block boundary — force read-only
mtd: partition « rootfs » set to be root filesystem
mtd: partition « rootfs_data » created automatically, ofs=4A0000, len=1C0000
0x004a0000-0×00660000 : « rootfs_data »
0×00660000-0x007a0000 : « image2″
0x007e0000-0x007ef000 : « FIS directory »
0x007ef000-0x007f0000 : « RedBoot config »
0x007f0000-0×00800000 : « boardconfig »
Registered led device: gpio0
Registered led device: gpio1
Registered led device: wlan
Registered led device: gpio3
Registered led device: gpio4
Registered led device: gpio7
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear
All bugs added by David S. Miller
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Please be patient, while OpenWrt loads …
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
- init -
Please press Enter to activate this console. device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering forwarding state
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky
IPP2P v0.8.1_rc1 loading
ipt_time loading
Driver ‘sd’ needs updating – please use bus_type methods
wlan: trunk
ath_hal: module license ‘Proprietary’ taints kernel.
ath_hal: 2008-10-02 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, DFS, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_ahb: trunk
Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3
PCI: Enabling device 0000:00:00.1 (0000 -> 0002)
ehci_hcd 0000:00:00.1: EHCI Host Controller
ehci_hcd 0000:00:00.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:00.1: irq 5, io mem 0x80c21000
ehci_hcd 0000:00:00.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usbserial
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
Initializing USB Mass Storage driver…
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
Linux video capture interface: v2.00
usbserial: USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: USB Driver for GSM modems: v0.7.2
usbserial: USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver sierra
sierra: USB Driver for Sierra Wireless USB modems: v.1.2.9c
fuse init (API version 7.9)
usbcore: registered new interface driver uvcvideo
USB Video Class driver (SVN r215)
device ath1 entered promiscuous mode
br-lan: port 2(ath1) entering learning state
br-lan: topology change detected, propagating
br-lan: port 2(ath1) entering forwarding state




[...] apportant son lot de corrections et de nouveautés, elle mérite quelques tests. Lors de mon précédent flash avec OpenWrt Kamikaze , j’ai supprimé le loader qui était alors inutile, voir gênant. La mise en place de cette [...]