openwrt

Sistemi operativi Linux e software open source
mafferri
Messaggi: 809
Iscritto il: martedì 10 gennaio 2012, 4:48

openwrt

Messaggio da mafferri »

Devo compilarmi openwrt per il mio router che farà da access-point al contrario , e cioè si connetterà a una rete wireless e mi ridà la connessione tramite hub.
Visto che per la poca ram , 16MB percui appena cerco di installare qualcosa và in kernel-panic per via della poca memoria :\ , non è abilitato neanche il fs samba altrimenti avrei mappato un drver di rete >.< percui mi tocca compilarlo , anche se ancora non sò come flasharlo >.< ma quello è l'ultimo dei miei problemi :P
Mi servirebbe una mano nel selezionare le opzioni essenziali , visto che devo anche abilitare i comandi "ls dd dir cd" -.-' cioè la base :P

Avatar utente
Alessio89
Messaggi: 8095
Iscritto il: martedì 29 novembre 2011, 23:47

Re: openwrt

Messaggio da Alessio89 »

Premesso che ho avuto esperienza solo con DD-WRT, non c'è una ROM bella e pronta per il modello del tuo router?

In caso tu debba compilare, presumo che vi sia da qualche parte, una wiki o un DB con quantomeno un file make preconfigurato, o se sono dei disgraziati, una guida su come modificare il file make.
Una volta che hai il file make, basta lanciare make -nomefile dal terminale e se hai tutte le librerie occorrenti installate assieme al compilatore, il processo dovrebbe essere automatico.

Una volta otteunta la ROM, dovrebbe bastare seguire le istruzioni per il tuo modello di router, che sostanzialmente e solitamente consistono in: hard-reset, accedere via rete alla router, aggiornare brutalmente la ROM come se fosse un firmware ufficiale, hard-reset. In ogni caso cerca e segui le istruzioni per il tuo modello.

http://wiki.openwrt.org/toh/start

mafferri
Messaggi: 809
Iscritto il: martedì 10 gennaio 2012, 4:48

Re: openwrt

Messaggio da mafferri »

alessio , l'ho già installato sul router però và in crash per la poca ram riservata appena cerco di far qualcosa fra cui installare il pacchetto che mi serve , allora la soluzione è compilarsela. fra un pò posto gli screen del "make menuconfig"

mafferri
Messaggi: 809
Iscritto il: martedì 10 gennaio 2012, 4:48

Re: openwrt

Messaggio da mafferri »

ecco il log del boot , preso dalla seriale

Codice: Seleziona tutto


ADAM2 Revision 0.22.02
(C) Copyright 1996-2003 Texas Instruments Inc. All Rights Reserved.
(C) Copyright 2003 Telogy Networks, Inc.
memsize == 0x01000000Usage: setmfreq [-d] [-s sys_freq, in MHz] [cpu_freq, in MHz]
maca                  00:18:4d:ac:60:c8
macb                  00:18:4d:ac:60:c9
memsize               0x01000000
flashsize             0x00400000
modetty0              115200,n,8,1,hw
modetty1              115200,n,8,1,hw
bootserport           tty0
cpufrequency          211968000
sysfrequency          105984000
bootloaderVersion     0.22.02
ProductID             DG834
HWRevision            Unknown
SerialNumber          none
my_ipaddress          169.254.87.1
prompt                DG834
firstfreeaddress      0x9401bd20
req_fullrate_freq     125000000
mtd0                  0x900d0000,0x903e0000
mtd1                  0x90020000,0x900d0000
mtd2                  0x90000000,0x90020000
mtd3                  0x903e0000,0x903f0000
mtd4                  0x903f0000,0x90400000
oam_lb_timeout        100
modulation            A2PMOD
crash
DSL_FEATURE_CNTL_1    0x00000020
mtd5                  0x90020000,0x903e0000

DG834 > addr=90020000
[    0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) )                  #1 Sat Nov 17 08:02:46 UTC 2012
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: ar7-gpio
[    0.000000] ar7-gpio: registered 32 GPIOs
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00018448 (MIPS 4KEc)
[    0.000000] TI AR7 (TNETD7200), ID: 0x002b, Revision: 0x11
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 14000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00014000 -> 0x00015000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00014000 -> 0x00015000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:  console=ttyS0,115200n8
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Memory: 11956k/16384k available (2467k kernel code, 4428k reserved, 365k data, 168k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.000000] Clocks: Sync 2:1 mode
[    0.000000] Clocks: Setting CPU clock
[    0.000000] Adjusted requested frequency 211000000 to 211968000
[    0.000000] Clocks: base = 35328000, frequency = 211968000, prediv = 1, postdiv = 1, postdiv2 = -1, mul = 66)▒▒r▒▒▒▒▒▒▒i▒k֭.'H▒Y▒ting DSP c                 lock
[    0.000000] Clocks: base = 25000000, frequency = 105984000, prediv = 1, postdiv = 2, postdiv2 = 1, mul = 10
[    0.000000] Clocks: Setting USB clock
[    0.000000] Adjusted requested frequency 48000000 to 47863741
[    0.000000] Clocks: base = 105984000, frequency = 48000000, prediv = 1, postdiv = 31, postdiv2 = -1, mul = 14
[    0.000000] Calibrating delay loop... 211.35 BogoMIPS (lpj=1056768)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] NET: Registered protocol family 16
[    0.130000] bio: create slab <bio-0> at 0
[    0.150000] Switching to clocksource MIPS
[    0.160000] NET: Registered protocol family 2
[    0.170000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.180000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.190000] TCP: Hash tables configured (established 512 bind 512)
[    0.200000] TCP reno registered
[    0.200000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.210000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.210000] NET: Registered protocol family 1
[    0.260000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.270000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.280000] msgmni has been set to 23
[    0.280000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.290000] io scheduler noop registered
[    0.290000] io scheduler deadline registered (default)
[    0.300000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.310000] serial8250: ttyS0 at MMIO 0x8610e00 (irq = 15) is a TI-AR7
[    0.320000] console [ttyS0] enabled, bootconsole disabled
[    0.320000] console [ttyS0] enabled, bootconsole disabled
                                                            [    0.360000] physmap platform flash device: 02000000 at 10000000
[    0.370000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022a8
[    0.380000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.380000]   Amd/Fujitsu Extended Query version 1.1.
[    0.390000] number of CFI chips: 1
[    0.400000] 4 ar7part partitions found on MTD device physmap-flash.0
[    0.400000] Creating 4 MTD partitions on "physmap-flash.0":
[    0.410000] 0x000000000000-0x000000010000 : "loader"
[    0.420000] 0x0000003f0000-0x000000400000 : "config"
[    0.440000] 0x000000020000-0x0000003f0000 : "linux"
[    0.450000] 0x00000010f453-0x0000003f0000 : "rootfs"
[    0.450000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-onl                 y
[    0.470000] mtd: partition "rootfs" set to be root filesystem
[    0.480000] mtd: partition "rootfs_data" created automatically, ofs=310000, len=E0000
[    0.490000] 0x000000310000-0x0000003f0000 : "rootfs_data"
[    0.510000] Fixed MDIO Bus: probed
[    0.800000] EXTERNAL SWITCH!!!
[    0.900000] cpmac-mii: probed
[    0.980000] eth0: Marvell 88E6060 PHY driver attached.
[    1.020000] cpmac: device eth0 (regs: 08610000, irq: 27, phy: cpmac-1:10, mac: 00:18:4d:ac:60:c8)
[    1.030000] ar7_wdt: timer margin 59 seconds (prescale 65535, change 48480, freq 52992000)
[    1.050000] vlynq0: regs 0x08611800, irq 29, mem 0x04000000
[    1.280000] vlynq0: local VLYNQ protocol rev. is 0x00010205
[    1.280000] vlynq0: remote VLYNQ protocol rev. is 0x00010206
[    1.290000] vlynq0: using remote clock divisor 1
[    1.360000] Found a VLYNQ device: 00000029
[    1.360000] TCP cubic registered
[    1.370000] NET: Registered protocol family 17
[    1.370000] Bridge firewalling registered
[    1.370000] 8021q: 802.1Q VLAN Support v1.8
[    1.390000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    1.400000] Freeing unused kernel memory: 168k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[    8.610000] JFFS2 notice: (367) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 29                 7 of xref (0 dead, 3 orphan) found.
switching to jffs2
- init -

Please press Enter to activate this console. [   10.760000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[   10.770000] Backport based on wireless-testing.git master-2012-09-07
[   10.780000] compat.git: wireless-testing.git
[   10.870000] cfg80211: Calling CRDA to update world regulatory domain
[   10.870000] cfg80211: World regulatory domain updated:
[   10.880000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   10.890000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.890000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   10.900000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   10.910000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.920000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   11.570000] NET: Registered protocol family 8
[   11.570000] NET: Registered protocol family 20
[   11.890000] PPP generic driver version 2.4.2
[   12.230000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.610000] NET: Registered protocol family 24
[   12.670000] nf_conntrack version 0.5.0 (189 buckets, 756 max)
[   13.260000] acx-mac80211, version: v0.6.0 (git: unknown)
[   13.260000] this driver is still EXPERIMENTAL
[   13.260000] acx: please read the README file and/or go to http://acx100.sourceforge.net/wiki for further information
[   13.280000] built with CONFIG_ACX_MAC80211_PCI
[   13.280000] compiled to use 32bit I/O access. I/O timing issues might occur, such as non-working firmware upload. Report them
[   13.300000] acx: running on a little-endian CPU
[   13.300000]  PCI/VLYNQ module initialized, waiting for cards to probe...
[   13.380000] registered device TI Avalanche SAR
[   13.400000] Ohio250(7200/7100A2) detected
[   13.400000] requesting firmware image "ar0700xx.bin"
[   15.710000] tn7dsl_set_modulation : Setting mode to 0x10
[   15.720000] Creating new root folder avalanche in the proc for the driver stats
[   15.730000] Texas Instruments ATM driver: version:[7.03.01.00]
[   25.360000] PHY: cpmac-1:10 - Link is Up - 100/Full
[   25.390000] br-lan: port 1(eth0) entered forwarding state
[   25.400000] br-lan: port 1(eth0) entered forwarding state
[   25.520000] device eth0.1 entered promiscuous mode
[   25.520000] br-lan: port 2(eth0.1) entered forwarding state
[   25.530000] br-lan: port 2(eth0.1) entered forwarding state
[   25.570000] device eth0.2 entered promiscuous mode
[   25.580000] br-lan: port 3(eth0.2) entered forwarding state
[   25.580000] br-lan: port 3(eth0.2) entered forwarding state
[   27.000000] ar7_wdt: timer margin 59 seconds (prescale 65535, change 48480, freq 52992000)
[   27.400000] br-lan: port 1(eth0) entered forwarding state
[   27.530000] br-lan: port 2(eth0.1) entered forwarding state
[   27.580000] br-lan: port 3(eth0.2) entered forwarding state




trovata una piccola guida
The next option that will be of interest to us is “Base system”, which will let you pick individual software packages you wish to include in your firmware
After you’re done selecting which of the base packages you need, back out of that screen and select “Libraries” from the main menu. That will present you with the same type of menu as “Base system”, but this time you’ll be going through the system libraries.
spiegatemi se ho capito bene , visto che io devo fare all-one seleziono le cose solo su base system? visto che "libraries" sarebbero i moduli che io voglio compilare giusto? visto che nei 2 menu le cose si ripetono, e io che mi perdevo >.<
Ultima modifica di mafferri il martedì 24 giugno 2014, 16:11, modificato 1 volta in totale.

Avatar utente
Alessio89
Messaggi: 8095
Iscritto il: martedì 29 novembre 2011, 23:47

Re: openwrt

Messaggio da Alessio89 »

sì, devi assolutamente ricompilartela prima a parte. In ogni caso sono sicuro che esisteranno delle preconfigurazioni per la quantità di memoria.

mafferri
Messaggi: 809
Iscritto il: martedì 10 gennaio 2012, 4:48

Re: openwrt

Messaggio da mafferri »

Alessio89 ha scritto:sì, devi assolutamente ricompilartela prima a parte. In ogni caso sono sicuro che esisteranno delle preconfigurazioni per la quantità di memoria.
si anche io, ma andarle a trovare >.<
Cmq ora provo a configurarla e compilarla ;) e la flasho xD
tanto il recovery funziona in ogni caso non devo scrivere il bootloader ;)

Avatar utente
Alessio89
Messaggi: 8095
Iscritto il: martedì 29 novembre 2011, 23:47

Re: openwrt

Messaggio da Alessio89 »

Mal che vada, forse dico un'eresia ai tuoi occhi, c'è sempre DD-WRT che offre un sacco di ISO ROM precompilate (cercale sul forum ufficiale, non sul vecchio DB)

mafferri
Messaggi: 809
Iscritto il: martedì 10 gennaio 2012, 4:48

Re: openwrt

Messaggio da mafferri »

Ho cercato ma sembra che nn sia supportato il mio :\
Cmq è nato un primo problema per me , dovrei aggiungere questo driver :s vediamo se riesco a farlo :p

Avatar utente
magooz
Messaggi: 717
Iscritto il: sabato 9 febbraio 2013, 10:49
Località: Copertino (LE)

Re: openwrt

Messaggio da magooz »

È un driver abbastanza vecchio... E se non sbaglio solo 802.11b... Di che epoca geologica è sto router? :asd:
GNU/Linux User # 402007
Immagine
Heaven is where the police are British, the chefs Italian, the mechanics German, the lovers French and is is all organized by the Swiss.
Hell is where the police are German, the chefs British, the mechanics French, the lovers Swiss and it is all organized by the Italians.

mafferri
Messaggi: 809
Iscritto il: martedì 10 gennaio 2012, 4:48

Re: openwrt

Messaggio da mafferri »

io l'ho usato per 10anni ininterrotti :| infatti una volta aperto per saldare i 3 fili della seriale ho visto che 3 o 4 condensatori li dovrò cambiare perchè un pò gonfi :D
Ma penso che per farmi da bridge dovrebbe reggere

Ora ho una vodafone station hg553 con firmware dlink :asd: e che dire un altro mondo , 20Mbit stabilissimi

Rispondi