Hi all,
Really need some help here!
Need to flash OpenWrt on this Chinese router that already has some form of WRT.
It has a Realtek 3052F chip on board.
4 X Lan
1 X WAN
1 X Console
1 X USB
1 X 3g Module
1 X wifi Module
When I flash some of the variants of OpenWrt that matches my chip, it stops at the following during boot and re-boots:
[ 0.210000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.230000] msgmni has been set to 120
[ 0.230000] io scheduler noop registered
[ 0.230000] io scheduler deadline registered (default)
[ 0.240000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Ìžf†˜˜~˜àæžøžæžàžf˜ž~`f昘~˜††ž†àžfxà†àæžþž`æàæžøžæžàžfx†žf†àžfx怘€žf†˜˜~˜àæžøžæžàžf˜ž~`f昘~˜††ž†àžfx
I have extracted the original Chinese firmware and I have the following binwalk:
<<<<<<<<<<<Binwalk>>>>>>>>
Scan Time: 2014-02-13 10:50:09
Signatures: 193
Target File: /denis/fmk/uimage-STD-VPN-NOUSER-20131211.flash
MD5 Checksum: 5f24477a9e05c2d959aeaa08ee57e98d
DECIMAL HEX DESCRIPTION
-------------------------------------------------------------------------------------------------------
0 0x0 uImage header, header size: 64 bytes, header CRC: 0xD4EBDEFF, created: Thu Dec 5 08:19:13 2013, image size: 1300227 bytes, Data Address: 0x80000000, Entry Point: 0x803C2000, data CRC: 0xDE1FBDEF, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: lzma, image name: "Linux Kernel Image"
64 0x40 LZMA compressed data, properties: 0x6D, dictionary size: 8388608 bytes, uncompressed size: 4073232 bytes
1302528 0x13E000 Squashfs filesystem, little endian, DD-WRT signature, version 3.0, size: 6066631 bytes, 621 inodes, blocksize: 131072 bytes, created: Wed Dec 11 11:15:13 2013
With this firmware, I have the following verison:
<<<<<<<<<<<<cat /proc/version>>>>>>>>>>>>>
16:22:12:154 admin@Router:~# cat /proc/version
16:22:12:172 Linux version 2.6.23.17 (root@ubuntu) (gcc version 4.1.0) #9 Thu Nov 28 16:34:06 CST 2013
16:22:13:816 admin@Router:~#
16:22:21:764 admin@Router:~# cat /proc/cpuinfo
16:22:21:776 system type : Ralink SoC
16:22:21:777 processor : 0
16:22:21:777 cpu model : MIPS 24K V4.12
16:22:21:777 CPUClock : 384
16:22:21:778 BogoMIPS : 255.59
16:22:21:787 wait instruction : yes
16:22:21:787 microsecond timers : yes
16:22:21:787 tlb_entries : 32
16:22:21:788 extra interrupt vector : yes
16:22:21:788 hardware watchpoint : yes
16:22:21:801 ASEs implemented : mips16 dsp
16:22:21:801 VCED exceptions : not available
16:22:21:801 VCEI exceptions : not available
I have tried to build some kind of firmware with buildroot but it the boot process alwas stops as above.
They have provided me with the following "toolchains" (3.4.6-uclibc-0.9.28 4.1.0-uclibc-0.9.28) but I have no idea how to set up buildroot to use these toolchains.
Any attempt has failed with various errors.
can someone please tell me how to use the external toolchains and how to set it up?
---------------------------------------------------------------------------------------------+ |
| | --- Use external toolchain
| | [ ] Use host's toolchain (NEW)
| | (mipsel-unknown-linux-gnu) Target name (NEW)
| | (mipsel-unknown-linux-gnu-) Toolchain prefix (NEW)
| | (/opt/cross/mipsel-unknown-linux-gnu) Toolchain root (NEW)
| | (uclibc) Toolchain libc (NEW)
| | (./usr/bin ./bin) Toolchain program path (NEW)
| | (./usr/include ./include) Toolchain include path (NEW)
| | (./usr/lib ./lib) Toolchain library path (NEW)
Any help appreciated VERY much!
Thank you in advance!
<<<router info>>>>
16:22:12:154 admin@Router:~# cat /proc/version
16:22:12:172 Linux version 2.6.23.17 (root@ubuntu) (gcc version 4.1.0) #9 Thu Nov 28 16:34:06 CST 2013
16:22:13:816 admin@Router:~#
16:22:21:764 admin@Router:~# cat /proc/cpuinfo
16:22:21:776 system type : Ralink SoC
16:22:21:777 processor : 0
16:22:21:777 cpu model : MIPS 24K V4.12
16:22:21:777 CPUClock : 384
16:22:21:778 BogoMIPS : 255.59
16:22:21:787 wait instruction : yes
16:22:21:787 microsecond timers : yes
16:22:21:787 tlb_entries : 32
16:22:21:788 extra interrupt vector : yes
16:22:21:788 hardware watchpoint : yes
16:22:21:801 ASEs implemented : mips16 dsp
16:22:21:801 VCED exceptions : not available
16:22:21:801 VCEI exceptions : not available
16:22:31:584 admin@Router:~# cat /proc/mtd
16:22:31:595 dev: size erasesize name
16:22:31:596 mtd0: 00030000 00010000 "uboot"
16:22:31:596 mtd1: 00010000 00010000 "uboot-config"
16:22:31:607 mtd2: 00010000 00010000 "factory-defaults"
16:22:31:607 mtd3: 007a0000 00010000 "linux"
16:22:31:607 mtd4: 00662000 00010000 "rootfs"
16:22:31:607 mtd5: 00010000 00010000 "nvram"
16:22:33:627 admin@Router:~# cat /proc/modules
16:22:45:402 ipsec 376832 0 - Live 0x82f00000
16:22:45:402 sierra 8192 1 - Live 0x8346c000
16:22:45:402 rt2860v2_ap 950272 1 - Live 0x83b00000 (P)
16:23:02:605 admin@Router:~# cat /proc/devices
16:23:02:618 Character devices:
16:23:02:618 1 mem
16:23:02:618 2 pty
16:23:02:619 3 ttyp
16:23:02:620 4 ttyS
16:23:02:620 5 /dev/tty
16:23:02:621 5 /dev/console
16:23:02:621 5 /dev/ptmx
16:23:02:621 10 misc
16:23:02:622 13 input
16:23:02:630 21 sg
16:23:02:630 90 mtd
16:23:02:630 108 ppp
16:23:02:630 128 ptm
16:23:02:630 136 pts
16:23:02:630 166 ttyACM
16:23:02:630 180 usb
16:23:02:630 188 ttyUSB
16:23:02:631 189 usb_device
16:23:02:631 207 ttyVK
16:23:02:632 208 ff_watchdog
16:23:02:642 217 spiS0
16:23:02:642 219 rtc_pcf8563
16:23:02:642 229 nvram
16:23:02:642 251 ffgpio
16:23:02:642 252 gpio
16:23:02:642 254 usb_endpoint
16:23:02:642
16:23:02:642 Block devices:
16:23:02:643 8 sd
16:23:02:643 31 mtdblock
16:23:02:643 65 sd
16:23:02:644 66 sd
16:23:02:654 67 sd
16:23:02:654 68 sd
16:23:02:654 69 sd
16:23:02:654 70 sd
16:23:02:654 71 sd
16:23:02:654 128 sd
16:23:02:654 129 sd
16:23:02:655 130 sd
16:23:02:655 131 sd
16:23:02:655 132 sd
16:23:02:655 133 sd
16:23:02:655 134 sd
16:23:02:656 135 sd
16:23:15:314 admin@Router:~# free
16:23:15:327 total used free shared buffers
16:23:15:342 Mem: 60724 19820 40904 0 1952
16:23:15:342 -/+ buffers: 17868 42856
16:23:15:343 Swap: 0 0 0
16:23:26:093 admin@Router:~# cat /proc/iomem
16:23:26:106 00000000-03ffffff : System RAM
16:23:26:106 00000000-0032cb47 : Kernel code
16:23:26:106 0032cb48-003c10bf : Kernel data
16:23:26:107 101c0000-101fffff : lm0
16:23:34:683 admin@Router:~# ps
16:23:34:695 PID USER VSZ STAT COMMAND
16:23:34:696 1 admin 2900 S /sbin/init noinitrd
16:23:34:697 2 admin 0 SW< [kthreadd]
16:23:34:707 3 admin 0 SW< [ksoftirqd/0]
16:23:34:707 4 admin 0 SW< [events/0]
16:23:34:708 5 admin 0 SW< [khelper]
16:23:34:718 43 admin 0 SW< [kblockd/0]
16:23:34:718 55 admin 0 SW< [khubd]
16:23:34:718 75 admin 0 SW [pdflush]
16:23:34:719 76 admin 0 SW [pdflush]
16:23:34:729 77 admin 0 SW< [kswapd0]
16:23:34:729 78 admin 0 SW< [aio/0]
16:23:34:730 607 admin 0 SW< [mtdblockd]
16:23:34:739 637 admin 0 SW< [dwc_otg]
16:23:34:740 857 admin 3428 S resetbutton
16:23:34:741 915 admin 0 SW [RtmpCmdQTask]
16:23:34:751 916 admin 0 SW [RtmpWscTask]
16:23:34:751 958 admin 1424 S telnetd
16:23:34:752 963 admin 3428 S wland
16:23:34:762 967 admin 1088 S dnsmasq --conf-file=/tmp/dnsmasq.conf -K
16:23:34:762 973 admin 976 S cron
16:23:34:763 1009 admin 3484 S /tmp/ppp/redial 10
16:23:34:773 1015 admin 3484 S /tmp/ppp/checksignal
16:23:34:773 1018 admin 3156 S ttraff
16:23:34:774 1095 admin 3784 S httpd -p 80
16:23:34:775 1107 admin 1440 S -sh
16:23:34:785 1122 admin 976 S {cron} CRON
16:23:34:785 1133 admin 3156 S process_monitor
16:23:34:786 1150 admin 3484 S ff_wdt
16:23:34:799 23326 admin 3292 S pppd -detach /dev/usb/tts/4 230400 file /tmp/ppp/opt
16:23:34:800 23331 admin 1428 R ps
16:23:43:363 admin@Router:~# ifconfig
16:23:43:377 br0 Link encap:Ethernet HWaddr 00:0C:43:09:5F:0A
16:23:43:389 inet addr:192.168.70.1 Bcast:192.168.70.255 Mask:255.255.255.0
16:23:43:390 UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
16:23:43:400 RX packets:7735 errors:0 dropped:0 overruns:0 frame:0
16:23:43:401 TX packets:6971 errors:0 dropped:0 overruns:0 carrier:0
16:23:43:402 collisions:0 txqueuelen:0
16:23:43:411 RX bytes:470363 (459.3 KiB) TX bytes:494656 (483.0 KiB)
16:23:43:411
16:23:43:412 eth2 Link encap:Ethernet HWaddr 00:0C:43:09:5F:0A
16:23:43:422 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
16:23:43:423 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
16:23:43:433 TX packets:1273 errors:0 dropped:0 overruns:0 carrier:0
16:23:43:434 collisions:0 txqueuelen:1000
16:23:43:444 RX bytes:0 (0.0 B) TX bytes:138566 (135.3 KiB)
16:23:43:444 Interrupt:3
16:23:43:444
16:23:43:445 lo Link encap:Local Loopback
16:23:43:456 inet addr:127.0.0.1 Mask:255.0.0.0
16:23:43:457 UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
16:23:43:467 RX packets:7 errors:0 dropped:0 overruns:0 frame:0
16:23:43:467 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
16:23:43:468 collisions:0 txqueuelen:0
16:23:43:478 RX bytes:490 (490.0 B) TX bytes:490 (490.0 B)
16:23:43:478
16:23:43:479 ra0 Link encap:Ethernet HWaddr 00:0C:43:09:5F:0C
16:23:43:489 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
16:23:43:490 RX packets:7330774 errors:0 dropped:0 overruns:0 frame:0
16:23:43:500 TX packets:547221 errors:0 dropped:0 overruns:0 carrier:0
16:23:43:501 collisions:0 txqueuelen:1000
16:23:43:511 RX bytes:1857408575 (1.7 GiB) TX bytes:1730098 (1.6 MiB)
16:23:43:511 Interrupt:4
16:23:43:511
16:23:43:512 vlan0 Link encap:Ethernet HWaddr 00:0C:43:09:5F:0A
16:23:43:522 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
16:23:43:523 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
16:23:43:534 TX packets:1273 errors:0 dropped:0 overruns:0 carrier:0
16:23:43:535 collisions:0 txqueuelen:0
16:23:43:541 RX bytes:0 (0.0 B) TX bytes:128672 (125.6 KiB)
16:23:43:541
(Last edited by xewonder on 13 Feb 2014, 14:06)