Autore Topic: sd su Fonera 2100 con openwrt  (Letto 8053 volte)

truthahn

  • Global Moderator
  • Hero Member
  • *****
  • Post: 1546
    • Mostra profilo
sd su Fonera 2100 con openwrt
« il: Agosto 30, 2008, 10:09:40 am »
Finite le ferie :x  e visto che ho trovato le due sd da 2 gb acquistate su ebay ieri sera mi son messo di lena per collegarne una ad una fonera 2100 ancora inscatolata. Ho pochissima esperienza con saldatori e quindi un po' di fifa l'avevo visto che ormai le piccole di fon sono introvabili. Vabb? bando alle ciance. Cercato sulla rete di qua e di l? cos? ho fatto.

Ho saldato direttamente l'sd con questo schema utilizzando dei fili di un cavo di rete:



Ho eliminato (non so perch? ma ho letto che bisogna farlo), tagliandoli con un taglierino (vengono via facilmente), i seguenti componenti: C142 - C143 - C144 - C145 



installato tramite seriale openwrt 7.09 e questi pacchetti
kmod-fs-vfat_2.6.21.5-atheros-1_mips.ipk
kmod-nls-iso8859-1_2.6.21.5-atheros-1_mips.ipk
kmod-nls-cp437_2.6.21.5-atheros-1_mips.ipk
kmod-nls-base_2.6.21.5-atheros-1_mips.ipk
26215-4pinfon2100Driver7143.ipk
samba_common (tramite webif non ricordo la versione ma lo fa automaticamente)
samba-server (come sopra)

creato uno script per eseguire il mount al boot e riavviato.

e quindi un bel df:


URKA FUNZIA!!! :-D :-D
e poi vado sulle risorse di rete e...


Gongolo. Avevo messo in previsione il probabile annientamento della fonera, e invece :-D :-D :-D

Ora provo con un server ftp e con ctorrent e vediamo...

« Ultima modifica: Settembre 28, 2008, 12:32:44 pm da truthahn »

truthahn

  • Global Moderator
  • Hero Member
  • *****
  • Post: 1546
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #1 il: Agosto 30, 2008, 11:09:50 am »
Installato tramite webif ctorrent: funziona anche lui anche se collegarsi alla fonera in ssh mentre sta scaricando ? un po' penoso.
Comunque e semplicemente per farlo andare:
copiare un file.torrent sulla fonera, io uso scp dal mio laptop ubuntato
Codice: [Seleziona]
sudo scp file.torrent ipfonera:/mnt
poi in ssh sulla fonera
Codice: [Seleziona]
cd /mnt
ctorrent file.torrent

e inizia a scaricare. Poi tramite samba si trasferisce.Tutto qu
« Ultima modifica: Agosto 30, 2008, 11:12:06 am da truthahn »

TechBek

  • Sr. Member
  • ****
  • Post: 782
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #2 il: Settembre 06, 2008, 06:26:05 pm »
praticamente in questo modo puoi utilizzare la fonera per scaricare in p2p ed usarla come server ftp?
ho intuito bene?

truthahn

  • Global Moderator
  • Hero Member
  • *****
  • Post: 1546
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #3 il: Settembre 06, 2008, 07:58:30 pm »
Esatto. Io come hai visto invece di un server ftp c'ho messo su samba. Non solo:  ho installato pure asterisk e con tre softphone funziona alla grande! Magica vecchia (ormai) scatoletta! :-D

TechBek

  • Sr. Member
  • ****
  • Post: 782
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #4 il: Settembre 06, 2008, 08:48:36 pm »
eh si possono fare un bel p? di cosette con sto aggeggino...peccato che non si trovino pi?!

Fabietto_DJ

  • Full Member
  • ***
  • Post: 209
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #5 il: Settembre 07, 2008, 11:41:06 am »
Uffa io con la 2200 non riesco... voglio la 2100!!!

Ramponis

  • Hero Member
  • *****
  • Post: 1062
    • Mostra profilo
    • DWL-2100AP Ramponis Homepage
Re: sd su Fonera 2100 con openwrt
« Risposta #6 il: Settembre 07, 2008, 11:43:22 am »
Conviene aspettare la fonera 2.0 che ha gi? la usb  :wink:
DWL-2100AP Ramponis Homepage
http://xoomer.alice.it/ramponis/

truthahn

  • Global Moderator
  • Hero Member
  • *****
  • Post: 1546
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #7 il: Settembre 07, 2008, 04:29:35 pm »
Uffa io con la 2200 non riesco... voglio la 2100!!!
Se ben ricordo avevi dd-wrt. Prova con openwrt.

Fabietto_DJ

  • Full Member
  • ***
  • Post: 209
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #8 il: Settembre 08, 2008, 02:37:35 pm »
Faccio prima a prendere una 2100... http://www.nabuk.org/f/index.php?topic=1498.0
Gi? a mio tempo provai con openwrt, ma non riesco a farla andare... uffa...

BoNoVoX

  • Administrator
  • Hero Member
  • ******
  • Post: 2093
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #9 il: Settembre 08, 2008, 02:49:11 pm »
Wireless anywhere, anyhow, anytime for anybody

Fabietto_DJ

  • Full Member
  • ***
  • Post: 209
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #10 il: Settembre 08, 2008, 06:48:34 pm »
Grazie bonovox... i collegamenti li avevo fatti esattamente come scritto nella guida... domani provo a installare la versione di openwrt precompilata che c'era nella guida e vedo se funziona...

Fabietto_DJ

  • Full Member
  • ***
  • Post: 209
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #11 il: Febbraio 01, 2009, 07:27:14 pm »
Lo script che all'avvio monta automaticamente la sd come lo hai scritto?

creato uno script per eseguire il mount al boot e riavviato.

truthahn

  • Global Moderator
  • Hero Member
  • *****
  • Post: 1546
    • Mostra profilo
Re: sd su Fonera 2100 con openwrt
« Risposta #12 il: Febbraio 01, 2009, 08:23:29 pm »
Non ho sottomano la fonera incriminata... ma avr? sicuramente inserito il comando in rc.local, se cos? si chiama nella fonera, cio? il file che contiene appunto i comandi da far eseguire al boot... non mi ricordo... un bel "mount /dev/mmc0  /mnt"

SilverFox89

  • Full Member
  • ***
  • Post: 183
    • Mostra profilo
    • Fonera Repository
    • E-mail
Re: sd su Fonera 2100 con openwrt
« Risposta #13 il: Febbraio 04, 2009, 10:16:02 pm »
Io ho integrato tutto nel file /etc/init.d/mmc

Citazione
#!/bin/sh /etc/rc.common

start() {
        if [ -f /lib/modules/mmc_drv.ko ]; \
        then \
                mv /lib/modules/mmc_drv.ko /lib/modules/`uname -r`/mmc_drv.ko; \
        fi
        mknod -m 0660 /dev/mmc b 126 0
        mknod -m 0660 /dev/mmc0 b 126 1
        mknod -m 0660 /dev/mmc1 b 126 2
        mknod -m 0660 /dev/mmc2 b 126 3
        mknod -m 0660 /dev/mmc3 b 126 4
        insmod mmc_drv
        mount /dev/mmc0 /mnt -o noatime,sync
}

stop() {
        umount /dev/mmc0
        rmmod mmc_drv
}

Cos? all'avvio fa tutto in automatico..
Fonera Repository -> http://silverfox89.dyndns.org/

Fabietto_DJ

  • Full Member
  • ***
  • Post: 209
    • Mostra profilo
Non funziona ipkg...
« Risposta #14 il: Dicembre 20, 2010, 06:45:48 pm »
Ciao a tutti, riesumo il thread dalla tomba per delle problematiche.
Con il collegamento seriale si f? tutto anche con la fonera.
Partendo da zero, la mia situazione attuale ?:
fonera 2100 con saldata una memoria sd;
installato firmware openwrt da seriale come da indicazioni del sito: wiki.openwrt.org/toh/fon/fonera?s[]=table&s[]=hardware#step.3download.and.flash.the.images

Ora che voglio installare i pacchetti con ipkg, la bash non riconosce il comando...
Io che non sono un mago dei sitemi *nix come voi, come faccio ora?

Ecco il codice completo dell'installazione

Codice: [Seleziona]
+PHY ID is 0022:5521
Warning: IP address 192.168.0.111 in use
Ethernet eth0: MAC address xx:xx:xx:xx:xx:xx
IP: 192.168.0.111/255.255.255.0, Gateway: 192.168.0.50
Default server: 192.168.0.11

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version v1.3.0 - built 16:57:58, Aug  7 2006

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51
RAM: 0x80000000-0x81000000, [0x80040450-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 10.000 seconds - enter ^C to abort
^C
RedBoot> fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa8030000-0xa87e0000: ..........................................
................................................................................
.
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma
Using default protocol (TFTP)
Raw file loaded 0x80040800-0x801207ff, assumed entry at 0x80040800
RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
... Erase from 0xa8030000-0xa8110000: ..............
... Program from 0x80040800-0x80120800 at 0xa8030000: ..............
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-root.jffs2-64k
Using default protocol (TFTP)
Raw file loaded 0x80040800-0x803007ff, assumed entry at 0x80040800
RedBoot> fis create rootfs
... Erase from 0xa8110000-0xa83d0000: ..........................................
..
... Program from 0x80040800-0x80300800 at 0xa8110000: ..........................
..................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> reset
... Resetting.+PHY ID is 0022:5521
Warning: IP address 192.168.0.111 in use
Ethernet eth0: MAC address xx:xx:xx:xx:xx:xx
IP: 192.168.0.111/255.255.255.0, Gateway: 192.168.0.50
Default server: 192.168.0.11

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version v1.3.0 - built 16:57:58, Aug  7 2006

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51
RAM: 0x80000000-0x81000000, [0x80040450-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 10.000 seconds - enter ^C to abort
RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80041000-0x802ec200
RedBoot> exec
Now booting linux kernel:
 Base address 0x80030000 Entry 0x80041000
 Cmdline :
Linux version 2.6.30.10 (openwrt@ampere) (gcc version 4.3.3 (GCC) ) #1 Fri Nov 1
9 20:23:29 PST 2010
console [early0] enabled
CPU revision is: 00019064 (MIPS 4KEc)
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:128
PID hash table entries: 64 (order: 6, 256 bytes)
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13000k/16384k available (2181k kernel code, 3384k reserved, 415k data, 1
36k init, 0k highmem)
Calibrating delay loop... 183.50 BogoMIPS (lpj=917504)
Mount-cache hash table entries: 512
net_namespace: 1008 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
pci 0000:00:00.0: BAR 1: can't allocate mem resource [0x84000000-0x857f7fff]
pci 0000:00:03.0: BAR 1: can't allocate mem resource [0x84000000-0x857f7fff]
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
Radio config found at offset 0xf8(0x1f8)
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 25
alg: No test for stdrng (krng)
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, 1 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0xb1100003 (irq = 37) is a 16550A
eth0: Atheros AR231x: 00:18:84:13:06:cc, irq 4
ar231x_eth_mii: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00)
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":
0x000000000000-0x000000030000 : "RedBoot"
0x000000030000-0x000000110000 : "vmlinux.bin.l7"
0x000000110000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "spiflash"
0x0000007e0000-0x0000007ef000 : "FIS directory"
0x0000007ef000-0x0000007f0000 : "RedBoot config"
0x0000007f0000-0x000000800000 : "boardconfig"
TCP westwood registered
eth0: Configuring MAC for full duplex
NET: Registered protocol family 17
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 0x2b0000
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 on device 31:2.
Freeing unused kernel memory: 136k freed
Please be patient, while OpenWrt loads ...
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -

Please press Enter to activate this console. device eth0 entered promiscuous mod
e
br-lan: port 1(eth0) entering forwarding state
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (256 buckets, 1024 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ath_hal: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 2009-05-08 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC
, TX_DESC_SWAP, XR)
ath_ahb: trunk
wlan: trunk
wlan: mac acl policy registered
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
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 36
Mbps 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
IRQ 3/wifi0: IRQF_DISABLED is not guaranteed on shared IRQs



BusyBox v1.15.3 (2010-11-11 22:22:00 PST) 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
 Backfire (10.03.1-rc4, r24045) --------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua
  * 1/3 shot Bailey's  on the bottom, then Bailey's,
  * 1/3 shot Vodka     then Vodka.
 ---------------------------------------------------
root@OpenWrt:/# help
Built-in commands:
------------------
    . : [ [[ alias bg break cd chdir command continue echo eval exec
    exit export false fg getopts hash help jobs kill let local printf
    pwd read readonly return set shift source test times trap true
    type ulimit umask unalias unset wait

root@OpenWrt:/# ipkg
/bin/ash: ipkg: not found
root@OpenWrt:/# ipk
/bin/ash: ipk: not found
root@OpenWrt:/# ls
bin      etc      mnt      proc     root     sys      usr      www
dev      lib      overlay  rom      sbin     tmp      var
root@OpenWrt:/#

Come faccio ad usare ipkg? :-o
« Ultima modifica: Dicembre 20, 2010, 06:47:43 pm da Fabietto_DJ »