D-Link DIR-615 HW Rev. D1 und DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC basierte Hardware
Goto page 1, 2  Next
Author Message
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Tue Apr 21, 2009 23:38    Post subject: D-Link DIR-615 HW Rev. D1 und DD-WRT Reply with quote
Hallo Forum,

auf der Suche nach einer akzeptabel schnellen Lösung für eine WLAN Brücke bin ich auf den DIR-615 von D-Link gestossen. Der doch recht günstige Preis und Draft-N waren dabei die ausschlaggebenden Punkte. Irgendwo haben andere User auch schon eine alternative Firmware auf die Geräte gespielt. Deren Geräte haben allerdings die HW Rev. C1, während meine die HW Rev. D1 und damit auch ein anderes Innenleben haben. Deren Image geht zum einen nicht einzuspielen (das Gerät meckert rum von wegen 'keine gültige Firmware' oder so) und die eingebaute WLAN Karte ist wohl auch eine andere. Die Hoffnung stirbt bekanntlich zuletzt. Bevor ich nun andere Geräte hole (die WRT610 u.ä. stehen noch zur Auswahl) würde ich gern mit den beiden weiter basteln. Anbei mal ein Bootlog der derzeitigen FW Ver. 4.10:

Quote:



U-Boot 1.1.3 (Oct 13 2008 - 23:20:00) (Alpha) - SVN revision : 94

Model: WRGN22 for DLINK

Board: RT2880 DRAM: 32 MB
twe0 set to <NULL>
toe0 set to <NULL>
============================================
Ralink UBoot Version: 3.1 Alpha
--------------------------------------------
ASIC 3052_MP2 (MAC to GigaMAC Mode)
DRAM COMPONENT: 128Mbits
DRAM BUS: 32BIT
Total memory: 32Mbytes
Date:Oct 13 2008 Time:23:20:00
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
9: Load Boot Loader code then write to Flash via TFTP.
0 seconds ...

Eth0 (10/100-M) : ethaddr = ("00:22:b0:78:ef:de") 00 22 B0 78 EF DE

3: System Boot system code via Flash.
## Powering down port 0 ~ 3.
## Booting image at bf050000 ...
Image Name: Linux Kernel Image
Created: 2009-01-22 11:43:29 UTC

System Control Status = 0x20040000
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 880955 Bytes = 860.3 kB
Load Address: 80000000
Entry Point: 802b9000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.21 (kwest@enzo) (gcc version 3.3.5) #1 Thu Jan 22 19:36:59 CST
2009

The CPU feqenuce set to 384 MHz
CPU revision is: 0001964c
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists. Total pages: 8128
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock1 noinitrd
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
arch_init_irq: cause = 20800030, status = 1100ff00
PID hash table entries: 128 (order: 7, 512 bytes)
mips_time_init: calculating r4koff ... 0x00177000 (1536000)
CPU frequency 384.00 MHz
Using 192.000 MHz high precision timer.
Console: colour dummy device 80x25
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29388k/32768k available (2284k kernel code, 3380k reserved, 499k data, 1
16k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Time: MIPS clocksource has been installed.
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
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
io scheduler noop registered
io scheduler deadline registered (default)
FLASH_API: MAN_ID=1 DEV_ID=22F9 SIZE=4MB
rt3052 access driver initialization.
Ralink gpio driver initialized
HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096
N_HDLC line discipline registered.
Serial: 8250/16550 driver $Revision: 1.3 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A
serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A
ra2880_read_mac: 00:00:00:00:00:00
ra2880_read_mac: 00:00:00:00:00:00
Ralink APSoC Ethernet Driver Initilization. v1.60 256 rx/tx descriptors allocat
ed, mtu = 1600!
NAPI enable, weight = 0, Tx Ring = 256, Rx Ring = 256
ra2880_read_mac: 00:00:00:00:00:00
ra2880_read_mac: 00:00:00:00:00:00
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
elbox physmap platform flash device: 00400000 at bfc00000
elbox-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
elbox-flash.0: squashfs filesystem found at offset 1245184
Creating 8 MTD partitions on "elbox-flash.0":
0x00130020-0x00351020 : "rootfs"
0x00050000-0x003f0000 : "upgrade"
0x00040000-0x00050000 : "devconf"
0x00030000-0x00040000 : "devdata"
0x003f0000-0x00400000 : "langpack"
0x00000000-0x00400000 : "flash"
0x00000000-0x00030000 : "u-boot"
0x00030000-0x00038000 : "boot env"
u32 classifier
ip_conntrack version 2.4 (256 buckets, 2048 max) - 244 bytes per conntrack
ip_conntrack_pptp version 3.1 loaded
ip_nat_pptp version 3.0 loaded
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
ipt_time loading
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
NET: Registered protocol family 1
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>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 116k freed
init started: BusyBox v1.00 (2009.01.22-11:37+0000) multi-call binary
Starting pid 658, console /dev/tts/1: Algorithmics/MIPS FPU Emulator v1.5
'/etc/init.d/rcS'
[/etc/init.d/S03config.sh]
Mounting proc and var ...
Start xmldb ...
[/etc/scripts/misc/profile.sh] get ...
[/etc/scripts/misc/defnodes.sh] ...
[/etc/defnodes/S10setext.sh] ...
PHP [/etc/defnodes/S11setnodes.php] ...
PHP [/etc/defnodes/S12features.php] ...
PHP [/etc/defnodes/S13flashspeed.php] ...
PHP [/etc/defnodes/S20setnodes.php] ...
SQUASHFS error: Can't find a SQUASHFS superblock on mtdblock5
mount: Mounting /dev/mtdblock/5 on /www/locale/alt failed: Invalid argument
PHP [/etc/defnodes/S40brand.php] ...
[/etc/scripts/misc/defnodes.sh] Done !!
[/etc/templates/timezone.sh] ...
zone : 5
gen : PST+08:00
[/etc/templates/logs.sh] ...
[/var/run/logs_run.sh] ...
ra2880_read_mac: 00:22:b0:78:ef:df
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
[/etc/templates/webs.sh] start ...
[/var/run/webs_start.sh] ...
Starting HTTPD ...
[/etc/init.d/S03config.sh] done!
[/etc/init.d/S10system.sh]
start fresetd ...
start scheduled ...
Factory reset time : 5 secs
WPS command : [/etc/templates/wps.sh pbc &]
[/etc/templates/scheduled.sh] start ...
[/var/run/scheduled_start.sh] ...
Start scheduled ...
setup layout ...
[/etc/scripts/layout.sh] start ...
[/var/run/layout_start.sh] ...
Start router layout ...
eth2.0: Setting MAC address to 00 22 b0 78 ef de.
device eth2 entered promiscuous mode
VLAN (eth2.0): Setting underlying device (eth2) to promiscious mode.
eth2.2: Setting MAC address to 00 22 b0 78 ef df.
VLAN (eth2.2): Underlying device (eth2) has same MAC, not checking promiscious
mode.
eth2.0: dev_set_promiscuity(master, 1)
device eth2.0 entered promiscuous mode
br0: port 1(eth2.0) entering learning state
br0: topology change detected, propagating
br0: port 1(eth2.0) entering forwarding state
start LAN ...
[/etc/templates/lan.sh] ...
[/var/run/lan_start.sh] ...
Start LAN (br0/192.168.0.189/255.255.255.0)...
Start DHCP server (br0) ...
DHCP server is disabled!
Start igmp ...
[/etc/templates/igmpproxy.sh] start ...
[/var/run/igmpproxy_start.sh] ...
Start IGMP proxy ...
[BR_IGMPP_PROC]->WARNING SETWL FAILURE-> ra0
enable LAN ports ...
start WLAN ...
[/etc/templates/wlan.sh] start ...
Hello from hostapd.conf
[/var/run/wlan_start.sh] ...
Start WLAN interface ra0 ...
restart WLAN driver ...
interface ra0 does not exist!
Using /lib/modules/rt2860v2_ap.ko
rt2860v2_ap: module license 'unspecified' taints kernel.
2860 version : 1.9.0.0 (Jan 22 2009)


=== pAd = c0403000, size = 413080 ===

<-- RTMPAllocAdapterBlock, Status=0
RX DESC a1a36000 size = 2048
<-- RTMPAllocTxRxRingMemory, Status=0
1. Phy Mode = 9
2. Phy Mode = 9
3. Phy Mode = 9
MCS Set = ff ff 00 00 01
Main bssid = 00:22:b0:78:ef:de
<==== RTMPInitialize, Status=0
0x1300 = 00064380
device ra0 entered promiscuous mode
br0: port 2(ra0) entering learning state
br0: topology change detected, propagating
br0: port 2(ra0) entering forwarding state
br0: port 2(ra0) multicast bandwidth 900kbps
[/etc/templates/wps.sh] setie ...
Configuration file: /var/run/hostapd.ra0.conf
Using interface ra0 with hwaddr 00:22:b0:78:ef:de and ssid 'dlink'
hostapd_setup_interface: return 0
Start WLAN interface ra0 Done !!!
start Guest Zone
[/etc/templates/gzone.sh] ...
[/etc/templates/enable_gzone.sh] ...
start RG ...
[/etc/templates/rg.sh] start ...
[/var/run/rg_start.sh] ...
Using /lib/modules/ip_stun_func.ko
Register STUN module successes!
Using /lib/modules/sw_tcpip.ko
REDSonic turbo net initialized
Using /lib/modules/ifresetcnt.ko
Network interface reset count v1.0
insmod: /lib/modules/2.6.21: No such file or directory
insmod: ip_conntrack_ike_m.ko: no module by that name found
insmod: /lib/modules/2.6.21: No such file or directory
insmod: ip_conntrack_esp_m.ko: no module by that name found
insmod: /lib/modules/2.6.21: No such file or directory
insmod: ip_conntrack_proto_esp_m.ko: no module by that name found
insmod: /lib/modules/2.6.21: No such file or directory
insmod: ip_nat_proto_esp_m.ko: no module by that name found
sendto_unsock(/var/run/portt.unixsocket, flush)
/proc/sys/net/ipv4/arp_flood_burst: cannot create
/proc/sys/net/ipv4/arp_flood_cost: cannot create
start DNRD ...
[/etc/templates/dnrd.sh] ...
[/var/run/dnrd_start.sh] ...
Start DNRD ...
Notice: caching turned off
Start telnetd ...
start UPNPD ...
[/etc/templates/upnpd.sh] ...
[/var/run/upnpd_start.sh] ...
UPNP function is not enabled !!
start WAN ...
Set WAN port media type 0
[/etc/templates/wan.sh] start ...
[/var/run/wan_start.sh] ...
insmod: /lib/modules/2.6.21: No such file or directory
Using /lib/modules/sw_tcpip.ko
insmod: cannot insert `/lib/modules/sw_tcpip.ko': Invalid parameters (17): Inval
id argument
It is the DHCP mod start!!
DHCP client on WAN(eth2.2) CloneMAC() ...
wireless_event_receive: Malformed netlink message: len=260 left=256 plen=244
start LLD2D ...
[/etc/templates/lld2d.sh] ...
[/var/run/lld2d_start.sh] ...
Start LLD2 daemon ...
start Neaps ...
[/etc/templates/neaps.sh] start ...
[/var/run/neaps_start.sh] ...
Start Neap Server ...
start igmpproxy ...
[/etc/templates/igmpproxy.sh] start ...
[/var/run/igmpproxy_stop.sh] ...
Stop IGMP proxy ...
[/etc/templates/igmpproxy_helper.sh] flush ...
[/var/run/igmpproxy_helper.sh] ...
[/etc/templates/rg.sh] misc ...
[/var/run/rg_misc.sh] ...
[/var/run/igmpproxy_start.sh] ...
Start IGMP proxy ...
Change the STATUS LED...
Starting pid 1282, console /dev/tts/1: '/bin/sh'


BusyBox v1.00 (2009.01.22-11:37+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

#


Spricht irgend etwas wesentliches gegen ein DD-WRT auf diese Geräte? Wenn nein, wie und wo fange ich am gescheitesten an? D-Link stellt ja selber die GPL Source für das Gerät zum Download bereit, also kann es grundsätzlich nicht unmöglich sein, weitere Funktionen im Gerät zu aktivieren. Für jede weiterführende Hilfe bin ich echt dankbar,

Gruß Bon
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Sat Apr 25, 2009 9:43    Post subject: Reply with quote
mach
http://dd-wrt.com/wiki/index.php/Broadcom_detection

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Sun Apr 26, 2009 11:01    Post subject: Reply with quote
Danke für den Tip, ein guter Anfang für mich :)

Habe sowas an solchen Geräten noch nicht gemacht, daher braucht's bei mir vielleicht etwas - auch in Sachen Denkanstöße und Links ...

Ich habe einen der Router etwas weiter zerlegt, Bilder gemacht und noch rumgespielt. Da ist ein RT3052F von Ralink eingebaut - der gleiche wie im WHR-G300N. Auch hier sind 4 MB Flash und 32 MB RAM drin. Habe mir dann per Telnet das Flash geholt: dd ist nicht eingebaut und das /www Verzeichnis ist read only - daher cat /dev/mtd/0 > /var/log/tlogsmsg (ist mit /www.tsyslog.rg verlinkt) und im Browser die Datei gezogen. Ist genau 4 MB groß und sieht erstmal 'vollständig und gut' aus. Der o.g. Buffalo WHR-G300N ist in der Liste der von DD-WRT unterstützten Geräte drin. Ich mache mich noch etwas schlauer und versuche dann whrsch. den Router wie einen WHR zu flashen. Wenn ich den bricked habe melde ich mich wieder :)
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Sun Apr 26, 2009 11:45    Post subject: Reply with quote
OK, ganz so einfach ist dann wohl doch nicht :)

Das Webflash Image des WHR geht schon mal nicht - falsches Image wird bemängelt (sicher nur ein Signaturproblem?).

Habe dann wie beim WHR-G300N per telnet eine boot command line geöffnet (das Menü des DIR-615 ist das gleiche wie das des WHR-G300N) und habe mir mit help erstmal meine Möglichkeiten angeschaut. Ein run ut-fw geht nicht: 'not defined'. Anschließend div. Kommandos 'durchprobiert' und noch etwas im Web geschaut, bei 'run bootcmd' bin ich stehengeblieben. Habe einen TFTP mit der 192.168.0.50 gestartet, das firmware.tftp des WHR in uboot.bin umbenannt und geladen. Das wird ja aber damit nicht geflasht. Ich mache sicher irgendwas grundsätzlich bzw. mir fehlt an einigen Stellen das nötige Wissen um den gesamten Vorgang. Wie kann es nun weitergehn?
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Sun Apr 26, 2009 21:48    Post subject: Reply with quote
bei normalen ralink teilen genügt der menüpunkt 2. die anleitung für buffalo ist speziell weil die da ein hidden command nutzen damit kein normalnutzer das kann. inzwischen gehts dort aber noch einfacher.
für den menüpunkt braucht man aber ein uimage im uboot format. die buffalo binaries haben alle einen speziellen header den man erst abschneiden muß.

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Mon Apr 27, 2009 13:04    Post subject: Reply with quote
Danke BS für den Tip.

Ich hab mal das ausgelesene (original D-Link) Flash Image und die original bei D-Link ladbaren Images verglichen. Die flashbare Firmware von D-Link ist ein Teil des ausgelesenen Flash Inhaltes, welcher als /dev/mtd/2 eingebunden wird - plus einem 60h Header davor. Das ausgelesene /dev/mtd/2 ist auch noch einiges länger - aber naja.

Meine Frage nun wiederum: wie komme ich zu einem passenden flashbaren uboot image? Kann ich mir aus dem WHR-G300N DD-WRT Image ein solches bootbares Image mit einem Hexeditor bauen, wird das mit irgendwelchen Tools erstellt / angepasst oder muß das komplett kompiliert werden etc. . Wie kann ich ein solches Image erstmal auf Gültigkeit (CRC, Länge, Header etc.) überprüfen, bevor ich das flashe und den Router lahmlege? Der original Bootloader wird ja wohl nicht davon berührt. Es sollte - sofern das geflashte Image nicht irgendwie die Hardware beschädigt - also immer wieder möglich sein, ein funktionierendes Image per Telnet und TFTP einzuspielen. Ich erwarte ja keine Anleitung, aber bitte ein paar kurze Happen und weitergehende Links. Wenn ich nach irgendwas in der Richtung suche, kommen Tonnen an Links mit Querverweisen und jeder beschreibt das anders ...
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Mon Apr 27, 2009 14:10    Post subject: Reply with quote
naja kein spiel ohne risiko. den header wirst du wohl erst mal konstruieren müssen. ich beschäftige mich auch jedesmal intensiv wenn ich tools baue die die headers bauen. is ein wenig hex editor arbeit und reverse engineering. auf jeden fall solltest du erst mal ein komplettes backup machen und checken da du es notfalls via u-boot wieder direkt drauf kriegst. damit stehst du dann auf der sicheren seite.

wenn dlink gpl sourcen für den router anbietet ist es auch nicht unwarscheinlich das du das header tool darin findest

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Mon Apr 27, 2009 19:45    Post subject: Reply with quote
So, habe DD-WRT am laufen :)

Wie schon gedacht und auch von BS vorgeschlagen habe ich erstmal die normale Firmware 4.10 von D-Link per TFTP flashen wollen. Das ging schon mal schief. Nach dem flashen und booten stand er mit 'bad magic number'. Habe dann aus dem von der Box gezogenen kompletten Flash Abzug den Teil, der als /dev/mtd/2 mit der Bezeichnung 'upgrade' gemounted wird, per TFTP geflasht und damit lief das ganze erstmal wieder. Die originale D-Link Firmware hat diesen Teil drin, allerdings ist deren Image insgesamt wesentlich kürzer und zudem mit einem 60h Bytes Header versehen. Habe dann testweise diesen Header entfernt und den Rest per TFTP geflasht - tut auch noch wie es soll. Erstmal gut zu wissen, daß man den Router damit zur Not wieder original zum laufen kriegt. Als nächstes hab ich mir das DD-WRT Image für den WHR-G300N vorgenommen, den dortigen Header (der ist dort insges. 200h lang) entfernt und den 'Rest' wieder per TFTP geflasht. Hat geklappt - der hat das DD-WRT gebootet. Im Log des Terminals erscheinen zwar eine ganze Reihe Fehler, der hat aber auch anschließend erkannt, daß das alles recht neu ist, hat die Grundeinstellungen erstmal eingestellt, ein nvram_commit gemacht, neu gebootet und voila - er tut. Webinterface aufgerufen, Username und Passwort eingegeben und erstmal IP, Name etc. eingestellt. Erneuter Reboot - tut immer noch *freu*. Ich probiere jetzt erstmal alle für mich nötigen Einstellungen aus, ob die das auch dauerhaft tun. In der Statusseite steht natürlich WHR-G300N drin, aber wer außer mir schaut da schon hin :)
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Mon Apr 27, 2009 20:26    Post subject: Reply with quote
Ein Wort mit 'X': das war wohl nix :/

Wenn der Strom weg ist und der Router anschließend neu startet wird kein Anschluß am Switch des Routers mehr aktiviert. WLAN geht anscheinend überhaupt nicht - auch nicht in der Grundeinstellung. Wenn der Router stromlos gemacht wird und anschließend wieder ein Image per TFTP bekommt läuft alles wieder - bis er erneut stromlos wird. Zwischenzeitlich war auch mal das Webinterface weg, habe dann das Original D-Link Image eingespielt und anschl. das modifizierte DD-WRT wieder eingespielt: wenn Strom weg dann auch keine Verbindung mehr. Habe testweise das DD-WRT Image vergrößert (mit 0h aufgefüllt), bis es die Größe des zuvor gezogenen /dev/mtd/2 der originalen D-Link Firmware hatte: hat auch nichts gebracht - bis auf daß das Webinterface wieder da war. Die Einstellungen werden im lfd. Betrieb übernommen: WAN, Hostname, LAN IP, DNS, DHCP, WLAN. Nur daß das WLAN scheinbar nicht funktioniert und nachdem der Strom mal weg war der Router keine LAN Verbindung mehr aufbaut / initialisiert (ifconfig bringt die richtige IP, 'ifconfig ... up' bringt auch nix).
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Mon Apr 27, 2009 21:09    Post subject: Reply with quote
Anbei mal ein Bootlog mit dem modifizierten DD-WRT, was ja eigentlich für den WRT-G300N vorgesehen war:
Quote:

LINUX started...

THIS IS ASIC
Linux version 2.6.23.17 (root@dd-wrt) (gcc version 4.1.2) #325 Thu Mar 26 11:11:
20 CET 2009

The CPU frequency set to 384 MHz
CPU revision is: 0001964c
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists in Zone order. Total pages: 8128
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock4 rootfstype=squash
fs noinitrd
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
cause = 1080003c, status = 1100ff00
PID hash table entries: 128 (order: 7, 512 bytes)
calculating r4koff... 003a9800(3840000)
CPU frequency 384.00 MHz
Using 192.000 MHz high precision timer.
console [ttyS1] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29416k/32768k available (2329k kernel code, 3352k reserved, 310k data, 1
24k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Generic PHY: Registered new driver
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
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
Load RT2880 Timer Module(Wdg/Soft)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
io scheduler noop registered
io scheduler deadline registered (default)

FLASH_API: **********<<WARNING!!!!>>**************
FLASH_API: Flash Not Support(MAN_ID=1 DEV_ID=22F9)
FLASH_API: ****************************************
Ralink gpio driver initialized
Serial: 8250/16550 driver $Revision: 1.3 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A
serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A
GDMA1_MAC_ADRH -- : 0x00000000
GDMA1_MAC_ADRL -- : 0x00000000
Ralink APSoC Ethernet Driver Initilization. v1.60 256 rx/tx descriptors allocat
ed, mtu = 1500!
NAPI enable, weight = 0, Tx Ring = 256, Rx Ring = 256
GDMA1_MAC_ADRH -- : 0x00003665
GDMA1_MAC_ADRL -- : 0xc5490ad6
PROC INIT OK!
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ralink flash device: 0x800000 at 0xbf000000
Ralink SoC physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

found squashfs at 126000
Creating 6 MTD partitions on "Ralink SoC physically mapped flash":
0x00000000-0x00030000 : "uboot"
0x00030000-0x00040000 : "uboot-config"
0x00040000-0x00050000 : "factory-defaults"
0x00050000-0x003f0000 : "linux"
0x00126000-0x003f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
0x003f0000-0x00400000 : "nvram"
u32 classifier
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ctnetlink v0.93: registering with nfnetlink.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
IPP2P v0.8.2 loading
ClusterIP Version 0.8 loaded successfully
TCP bic registered
TCP cubic registered
TCP westwood registered
TCP highspeed registered
TCP hybla registered
TCP htcp registered
TCP vegas registered
TCP scalable registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Welcome to PF_RING 3.2.1
(C) 2004-06 L.Deri <deri@ntop.org>
NET: Registered protocol family 27
PF_RING: bucket length 128 bytes
PF_RING: ring slots 4096
PF_RING: sample rate 1 [1=no sampling]
PF_RING: capture TX No [RX only]
PF_RING: transparent mode Yes
PF_RING initialized correctly.
PF_RING: registered /proc/net/pf_ring/
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
decode /dev/mtdblock4
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 124k freed
starting Architecture code for rt2880
switch reg write offset=14, value=405555
switch reg write offset=50, value=2001
switch reg write offset=98, value=7f3f
switch reg write offset=e4, value=3f
switch reg write offset=40, value=1001
switch reg write offset=44, value=1001
switch reg write offset=48, value=1002
switch reg write offset=70, value=ffff506f
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
SIOCGIFFLAGS: No such device
Bad argument `192.168.0.189/24'
wland: No such file or directory
No such device
Bad argument `192.168.0.189/24'
SIOCGIFFLAGS: No such device
.
.
.


Nach dem Start geht erstmal nix mehr, kein Wunder bei dem Log.

Nun meine Fragen:
1. FLASH-API bringt eine Warnung von wegen 'Flash Not Supported blablah' - ist das ernst zu nehmen oder darf das ignoriert werden?
2. Das mounten vom rootfs schlägt fehl - liegt das wirklich an dem dargestellten Problem mit der Blockgrenze? Wie behebe ich das?

Es wäre ja schön, wenn der Router nach einem Kaltstart wieder normal anläuft und nicht jedes mal erneut geflasht werden muß ...
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Wed Apr 29, 2009 13:43    Post subject: Reply with quote
die meldung darfst du ernst nehmen. sie sorgt dafür das wireless nicht geht. ich bin mir nicht ganz sicher, aber ich glaub in neueren whr g300n builds wird dieser flash api treiber nicht mehr verwendet. das sollte dir eventuell helfen
ich sehe aber nicht im log das das rootfs nicht gemountet werden kann. die warnung im mtd über die block grenze ist normal und kann hier ignoriert werden.

eines wäre noch wichtig. wieviele antennen hat der dlink? es gibt RT3052 route die nur eine antenne haben. das ist wichtig für die treiber einstellungen. der WHR-G300N hat z.b. 2

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Wed Apr 29, 2009 15:28    Post subject: Reply with quote
Neuere Builds? Ich habe die Datei 'firmware.tftp' aus http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/260309/WHR-G300N genommen, den Header entfernt und per TFTP geflasht.

Richtig - rootfs wird gemountet, aber nur ro. Das sollte wohl auch so sein.

Der DIR-615 hat zwei Antennen.

Mir ist aber nach wie vor schleierhaft, daß der Router nach einem kompl. Reboot die LAN Ports nicht mehr aktiviert und das Bootprotokoll per serieller Konsole dann völlig anders aussieht. Erst wenn ich den 30 sek. zurücksetze und anschl. gleich per TFTP das WHR Image (oder das originale von D-Link) einspiele geht's wieder - bis zum nächsten Kaltstart oder kompl. Reboot mit dem WHR Image. So lange der Strom hat und nicht komplett starten muß läuft der mit dem WHR Image mehr oder weniger (kein WLAN).

Wenn ich morgen oder am WE wieder bissl mehr Zeit dafür habe, poste ich die Logs mal.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Wed Apr 29, 2009 17:10    Post subject: Reply with quote
ja es gibt auch april builds. deines ist aus dem märz. ich habe hier mal wegen dem flash chip das reine uboot image (ohne buffalo header) angehangen. dort sollte der flash api fehler nicht auftauchen

nur zur doku. wenn der flash api fehler auftaucht, kann wireless nicht funktionieren

wegen dem komischen bootlog was du meinst, also beim reboot. kann es sein das das gerät ein dual image hat, also beim nächsten reboot ne ganz andere firmware bootet? sowas kenne ich von diversen routern

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Thu Apr 30, 2009 8:45    Post subject: Reply with quote
Danke für den Tip und das Image. Das probiere ich bei der nächsten passenden Gelegenheit aus und berichte dann. Der D-Link Router hat nur 4 MB Flash und die habe ich schon mit dem Image von rd. 3,7 MB gut überschrieben. Es kann ja durchaus sein, daß da noch irgendwo ein Fragment steht, was dann fälschlicherweise versucht wird zu laden. Ich probiere erstmal Dein Image und dann schau ich mir das alles mal etwas genauer an und verfolge die Sache ein bissl ernsthafter :)
Bon_Go
DD-WRT Novice


Joined: 20 Apr 2009
Posts: 31
Location: Dresden, Germany

PostPosted: Thu Apr 30, 2009 19:18    Post subject: Reply with quote
So, habe das mal eben noch schnell zwischen Tür und Angel geflasht:

Quote:

U-Boot 1.1.3 (Oct 13 2008 - 23:20:00) (Alpha) - SVN revision : 94

Model: WRGN22 for DLINK

Board: RT2880 DRAM: 32 MB
twe0 set to <NULL>
toe0 set to <NULL>
============================================
Ralink UBoot Version: 3.1 Alpha
--------------------------------------------
ASIC 3052_MP2 (MAC to GigaMAC Mode)
DRAM COMPONENT: 128Mbits
DRAM BUS: 32BIT
Total memory: 32Mbytes
Date:Oct 13 2008 Time:23:20:00
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
9: Load Boot Loader code then write to Flash via TFTP.
0 seconds ...

Eth0 (10/100-M) : ethaddr = ("00:22:b0:78:ef:de") 00 22 B0 78 EF DE

3: System Boot system code via Flash.
## Powering down port 0 ~ 3.
## Booting image at bf050000 ...
Image Name: DD-WRT v24 Linux Kernel Image
Created: 2009-04-29 17:06:54 UTC

System Control Status = 0x20040000
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 875379 Bytes = 854.9 kB
Load Address: 80000000
Entry Point: 80297000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...


LINUX started...

THIS IS ASIC
Linux version 2.6.23.17 (root@dd-wrt) (gcc version 4.1.2) #421 Wed Apr 29 19:02:
48 CEST 2009

The CPU frequency set to 384 MHz
CPU revision is: 0001964c
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists in Zone order. Total pages: 8128
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock4 rootfstype=squash
fs noinitrd
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
Cache parity protection disabled
cause = 10800000, status = 1100ff00
PID hash table entries: 128 (order: 7, 512 bytes)
calculating r4koff... 003a9800(3840000)
CPU frequency 384.00 MHz
Using 192.000 MHz high precision timer.
console [ttyS1] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29408k/32768k available (2330k kernel code, 3360k reserved, 317k data, 1
24k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Generic PHY: Registered new driver
NET: Registered protocol family 2
Time: MIPS clocksource has been installed.
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
Load RT2880 Timer Module(Wdg/Soft)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
io scheduler noop registered
io scheduler deadline registered (default)
FLASH_API: MAN_ID=1 DEV_ID=22F9 SIZE=4MB
Ralink gpio driver initialized
Serial: 8250/16550 driver $Revision: 1.3 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A
serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A
GDMA1_MAC_ADRH -- : 0x00000000
GDMA1_MAC_ADRL -- : 0x00000000
Ralink APSoC Ethernet Driver Initilization. v1.60 256 rx/tx descriptors allocat
ed, mtu = 1500!
NAPI enable, weight = 0, Tx Ring = 256, Rx Ring = 256
GDMA1_MAC_ADRH -- : 0x00003665
GDMA1_MAC_ADRL -- : 0xc5490ad6
PROC INIT OK!
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
MPPE/MPPC encryption/compression module registered
NET: Registered protocol family 24
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ralink flash device: 0x800000 at 0xbf000000
Ralink SoC physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.

found squashfs at 126000
Creating 6 MTD partitions on "Ralink SoC physically mapped flash":
0x00000000-0x00030000 : "uboot"
0x00030000-0x00040000 : "uboot-config"
0x00040000-0x00050000 : "factory-defaults"
0x00050000-0x003f0000 : "linux"
0x00126000-0x003f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
0x003f0000-0x00400000 : "nvram"
u32 classifier
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ctnetlink v0.93: registering with nfnetlink.
IPv4 over IPv4 tunneling driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
IPP2P v0.8.2 loading
ClusterIP Version 0.8 loaded successfully
TCP bic registered
TCP cubic registered
TCP westwood registered
TCP highspeed registered
TCP hybla registered
TCP htcp registered
TCP vegas registered
TCP scalable registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Welcome to PF_RING 3.2.1
(C) 2004-06 L.Deri <deri@ntop.org>
NET: Registered protocol family 27
PF_RING: bucket length 128 bytes
PF_RING: ring slots 4096
PF_RING: sample rate 1 [1=no sampling]
PF_RING: capture TX No [RX only]
PF_RING: transparent mode Yes
PF_RING initialized correctly.
PF_RING: registered /proc/net/pf_ring/
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
decode /dev/mtdblock4
SQUASHFS error: Failed to allocate read_data block
List of all partitions:
1f00 192 mtdblock0 (driver?)
1f01 64 mtdblock1 (driver?)
1f02 64 mtdblock2 (driver?)
1f03 3712 mtdblock3 (driver?)
1f04 2856 mtdblock4 (driver?)
1f05 64 mtdblock5 (driver?)
No filesystem could mount root, tried: squashfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,4)
Rebooting in 1 seconds..
.
.
.


Schade :\ Hätte ja einfach mal so klappen können. Aber der API Fehler ist wirklich erstmal weg. Ich habe die nächsten Tage zwischendurch hoffentlich etwas mehr Zeit und mache mich weiter schlau.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC basierte Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum