Installation d’OpenWrt sur un Linksys WRT350Nv2
Le routeur Linksys WRT30Nv2 est un routeur 802.11bgn (donc seulement dans la bande des 2.4GHz). Son utilisation avec le firmware d’origine est impossible car impossible ou presque de se connecter en Wi-Fi, et ce malgré l’utilisation du dernier firmware de Linksys (incroyable non?). Après l’installation d’OpenWrt en quelques minutes, la connection Wi-Fi s’est mise à marcher du premier coup. Voici les étapes de l’installation :
- Tout d’abord, j’ai téléchargé un firmware tout fait (et oui, je ne voulais pas attendre) ici : ftp://ftp.maddes.net/openwrt/kamikaze/orion/build_19875/squashfs_2.6.32.8/NOT_FOR_NEWBIES_openwrt-wrt350nv2-squashfs-webupgrade.img
- Ensuite, il suffit d’aller dans l’interface web du Linksys et d’uploader le fichier .img en tant que mise à jour du firmware
- Après une bonne minute, le nouveau point d’accès est accessible à l’IP par défaut : 192.168.1.1
- Pour la configuration, un petit tour dans /etc/config/network et /etc/config/wireless suffit!
Un certain nombre d’information sont alors accessibles :
dmesg:
Linux version 2.6.32.8 (openwrt@debian5) (gcc version 4.3.3 (GCC) ) #1 Fri Feb 26 22:25:43 CET 2010 CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177 CPU: VIVT data cache, VIVT instruction cache Machine: Linksys WRT350N v2 Clearing invalid memory bank 0KB@0xffffffff Clearing invalid memory bank 0KB@0xffffffff Clearing invalid memory bank 0KB@0xffffffff Ignoring unrecognised tag 0x00000000 Ignoring unrecognised tag 0x00000000 Ignoring unrecognised tag 0x00000000 Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 8192 free_area_init_node: node 0, pgdat c02a6888, node_mem_map c02b8000 Normal zone: 64 pages used for memmap Normal zone: 0 pages reserved Normal zone: 8128 pages, LIFO batch:0 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 Kernel command line: root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 PID hash table entries: 128 (order: -3, 512 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 32MB = 32MB total Memory: 29704KB available (2512K code, 137K data, 96K init, 0K highmem) Hierarchical RCU implementation. NR_IRQS:64 Calibrating delay loop... 332.59 BogoMIPS (lpj=1662976) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 Orion ID: MV88F5181L-Rev-A1. TCLK=166666667. Applying Orion-1/Orion-NAS PCIe config read transaction workaround pci 0000:00:00.0: reg 10 64bit mmio pref: [0xf1000000-0xf10fffff] pci 0000:00:00.0: reg 18 32bit mmio: [0x000000-0x1ffffff] PCI: bus0: Fast back to back transfers disabled pci 0000:01:00.0: reg 10 64bit mmio pref: [0x000000-0x1ffffff] pci 0000:01:00.0: reg 18 64bit mmio pref: [0x10000000-0x1fffffff] pci 0000:01:00.0: reg 20 64bit mmio: [0xf1000000-0xf10fffff] pci 0000:01:00.0: reg 30 32bit mmio pref: [0xe0000000-0xe7ffffff] pci 0000:01:00.0: supports D1 D2 pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot pci 0000:01:00.0: PME# disabled pci 0000:01:07.0: reg 10 32bit mmio: [0x40000000-0x4000ffff] PCI: bus1: Fast back to back transfers enabled bio: create slab <bio-0> at 0 Switching to clocksource orion_clocksource 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 squashfs: version 4.0 (2009/01/31) 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) Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A console [ttyS0] enabled physmap platform flash device: 00800000 at f4000000 physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 physmap-flash.0: Swapping erase regions for broken CFI table. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using physmap partition information Creating 7 MTD partitions on "physmap-flash.0": 0x000000000000-0x000000100000 : "kernel" 0x000000100000-0x000000750000 : "rootfs" mtd: partition "rootfs" set to be root filesystem mtd: partition "rootfs_data" created automatically, ofs=250000, len=500000 0x000000250000-0x000000750000 : "rootfs_data" 0x000000760000-0x0000007a0000 : "lang" 0x0000007a0000-0x0000007c0000 : "nvram" 0x0000007c0000-0x000000800000 : "u-boot" 0x000000750000-0x000000760000 : "eRcOmM_do_not_touch" 0x000000000000-0x000000750000 : "image" MV-643xx 10/100/1000 ethernet driver version 1.4 mv643xx_eth smi: probed net eth0: port 0 with MAC address 00:00:00:00:51:81 i2c /dev entries driver Registered led device: wrt350nv2:green:power Registered led device: wrt350nv2:green:security Registered led device: wrt350nv2:orange:power Registered led device: wrt350nv2:green:usb Registered led device: wrt350nv2:green:wireless TCP westwood registered NET: Registered protocol family 17 Bridge firewalling registered Distributed Switch Architecture driver version 0.1 eth0[0]: detected a Marvell 88E6131 switch dsa slave smi: probed 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by David S. Miller <davem@redhat.com> drivers/rtc/hctosys.c: unable to open rtc device (rtc0) VFS: Mounted root (squashfs filesystem) readonly on device 31:1. Freeing init memory: 96K Please be patient, while OpenWrt loads ... mini_fo: using base directory: / mini_fo: using storage directory: /jffs eth0: link up, 1000 Mb/s, full duplex, flow control disabled device lan2 entered promiscuous mode device eth0 entered promiscuous mode device lan1 entered promiscuous mode device lan3 entered promiscuous mode device lan4 entered promiscuous mode lan4: link up, 100 Mb/s, full duplex, flow control disabled br-lan: port 4(lan4) entering forwarding state Generic kernel compatibility enabled based on linux-next next-20100113 cfg80211: Calling CRDA to update world regulatory domain cfg80211: World regulatory domain updated: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) ath: EEPROM regdomain: 0x0 ath: EEPROM indicates default country code should be used ath: doing EEPROM country->regdmn map search ath: country maps to regdmn code: 0x3a ath: Country alpha2 being used: US ath: Regpair used: 0x3a phy0: Selected rate control algorithm 'ath9k_rate_control' Registered led device: ath9k-phy0::radio Registered led device: ath9k-phy0::assoc Registered led device: ath9k-phy0::tx Registered led device: ath9k-phy0::rx phy0: Atheros AR5416 MAC/BB Rev:2 AR2133 RF Rev:81 mem=0xc2a60000, irq=36 cfg80211: Calling CRDA for country: US PPP generic driver version 2.4.2 cfg80211: Regulatory domain changed to country: US (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm) ip_tables: (C) 2000-2006 Netfilter Core Team NET: Registered protocol family 24 nf_conntrack version 0.5.0 (465 buckets, 1860 max) CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or sysctl net.netfilter.nf_conntrack_acct=1 to enable it. device wlan0 entered promiscuous mode br-lan: port 5(wlan0) entering forwarding state device wlan0 left promiscuous mode br-lan: port 5(wlan0) entering disabled state device wlan0 entered promiscuous mode br-lan: port 5(wlan0) entering forwarding state device wlan0 left promiscuous mode br-lan: port 5(wlan0) entering disabled state cfg80211: Calling CRDA for country: FR cfg80211: Regulatory domain changed to country: FR (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm) (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm) (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm) (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm) device wlan0 entered promiscuous mode br-lan: port 5(wlan0) entering forwarding state device wlan0 left promiscuous mode br-lan: port 5(wlan0) entering disabled state device wlan0 entered promiscuous mode br-lan: port 5(wlan0) entering forwarding state
/proc/cpuinfo
Processor : Feroceon rev 0 (v5l) BogoMIPS : 332.59 Features : swp half fastmult edsp CPU implementer : 0x41 CPU architecture: 5TEJ CPU variant : 0x0 CPU part : 0x926 CPU revision : 0 Hardware : Linksys WRT350N v2 Revision : 0000 Serial : 0000000000000000
/proc/meminfo
MemTotal: 29800 kB MemFree: 12740 kB
/proc/partitions
major minor #blocks name 31 0 1024 mtdblock0 31 1 6464 mtdblock1 31 2 5120 mtdblock2 31 3 256 mtdblock3 31 4 128 mtdblock4 31 5 256 mtdblock5 31 6 64 mtdblock6 31 7 7488 mtdblock7