xjmjack 发表于 2016-7-31 17:38

求助:磊科nr256p 如何TTL刷机

机器:磊科nr256p
软件:超级终端   端口:57600
系统:WIN7
使用 USB ch341a TTL连接
请问各位大神如何命令刷机 现在机器WAN 不能获取IPLAN 不能分配IP 且PING不通网关:192.168.1.1(默认ip)



开机显示如下:
U-Boot 1.1.3 (Oct8 2012 - 14:54:28)
Board: Ralink APSoC DRAM:64 MB
relocate_code Pointer at: 83fac000
Default FLASH_CS0_CFG = 0511FFA1
flash_protect ON: from 0xBF000000 to 0xBF02077B
flash_protect ON: from 0xBF030000 to 0xBF030FFF
*** Warning - bad CRC, using default environment
============================================
Ralink UBoot Version: 3.4.0.0
--------------------------------------------
ASIC 3052_MP2 (Port5<->MII)
DRAM component: 256 Mbits SDR
DRAM bus: 32 bit
Total memory: 64 MBytes
Flash component: NOR Flash
Date:Oct8 2012Time:14:54:28
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384
##### The CPU freq = 384 MHZ ####
SDRAM bus set to 32 bit
SDRAM size =64 Mbytes
welcome!
3: System Boot system code via Flash.
## Booting image at bf1c0000 ...
   Image Name:   NR256P;;netcore
   Created:      2012-10-09   2:20:03 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    4331540 Bytes =4.1 MB
   Load Address: 80000000
   Entry Point:80342000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80342000) ...
## Giving linux memsize in MB, 64
Starting kernel ...

LINUX started...
THIS IS ASIC
Linux version 2.6.21 (root@zzyy) (gcc version 3.4.2) #38 Tue Oct 9 10:19:01 CST
2012
The CPU feqenuce set to 384 MHz
CPU revision is: 0001964c
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Built 1 zonelists.Total pages: 16256
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock5
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 = 40808040, status = 11000000
PID hash table entries: 256 (order: 8, 1024 bytes)
calculating r4koff... 003a9800(3840000)
CPU frequency 384.00 MHz
Using 192.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 60676k/65536k available (2821k kernel code, 4796k reserved, 510k data, 1
40k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
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: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
kernel : 0x10f864
ralink flash device: 0x800000 at 0x1f000000
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.
Creating 7 MTD partitions on "Ralink SoC physically mapped flash":
0x00000000-0x00800000 : "ALL"
0x00000000-0x00030000 : "Bootloader"
0x00030000-0x00040000 : "Config"
0x00040000-0x001c0000 : "Factory"
0x001c0000-0x002cf864 : "Kernel"
mtd: partition "Kernel" doesn't end on an erase block -- force read-only
0x002cf864-0x00800000 : "RootFS"
mtd: partition "RootFS" doesn't start on an erase block boundary -- force read-o
nly
0x001c0000-0x00800000 : "Kernel_RootFS"
DLM (built Oct8 2012 14:56:56) installed
squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
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.6 $ 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
loop: loaded (max 8 devices)
rdm_major = 254
GDMA1_MAC_ADRH -- : 0x00000000
GDMA1_MAC_ADRL -- : 0x00000000
Ralink APSoC Ethernet Driver Initilization. v2.0256 rx/tx descriptors allocate
d, mtu = 1500!
GDMA1_MAC_ADRH -- : 0x0000000c
GDMA1_MAC_ADRL -- : 0x432880c5
PROC INIT OK!
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
physmap platform flash device: 00800000 at bf000000
physmap-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.
RedBoot partition parsing not available
block2mtd: version $Revision: 1.1.1.1 $
hbwrr_reg:0
u32 classifier
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (2048 buckets, 16384 max)
ctnetlink v0.93: registering with nfnetlink.
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone
ipt_time loading
arp_tables: (C) 2002 David S. Miller
mid :0, nr = 6
mid :1, nr = 12
mid :2, nr = 2
mid :3, nr = 10
mid :4, nr = 34
mid :5, nr = 15
mid :6, nr = 25
mid :7, nr = 12
mid :8, nr = 3
net sniffer init ok.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
NETCORE fastpath V0.03
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 140k freed
init started:BusyBox v1.1.2 (2012.07.03-02:49+0000) multi-call binary
Starting pid 12, console /dev/ttyS1: '/etc/rcS'
Algorithmics/MIPS FPU Emulator v1.5
/etc/rcS: /etc/rcS: 2: /var/run: not found
check0
monut ok!
mkdir: Cannot create directory `/var/parame/brk': File exists
mkdir: Cannot create directory `/var/parame/parame': File exists
phy_tx_ring = 0x038f1000, tx_ring = 0xa38f1000
phy_rx_ring = 0x038f2000, rx_ring = 0xa38f2000
CDMA_CSG_CFG = 81000007
GDMA1_FWD_CFG = 710000
eth2.5: Setting MAC address to00 00 00 00 51 82.
device eth2 entered promiscuous mode
VLAN (eth2.5):Setting underlying device (eth2) to promiscious mode.
eth2.1: Setting MAC address to00 00 00 00 51 83.
eth2.2: Setting MAC address to00 00 00 00 51 84.
ralink switch vlan operate:init
ralink switch vlan operate:port
ralink switch vlan operate:port
ralink switch vlan operate:port
ralink switch vlan operate:entry
ralink switch vlan operate:entry
ralink switch vlan operate:entry
PPTP driver version 0.8.4
cp: /tmp/log: No such file or directory
Please press Enter to activate this console. : tar OK !
check this:igd_ip_pool_procmsg 5 doesn't support
check this:igd_generic_load_param/tmp/igd_ip_pool.file read error, restore
default
check this:igd_ip_pool_procmsg 5 doesn't support
if_set_ispmap_by_if_id:isp = 0, currently ifmap = 0x1.
if_set_ispmap_by_if_id:isp = 0, currently ifmap = 0x3.
if_set_ispmap_by_if_id:isp = 0, currently ifmap = 0x7.
if_set_ispmap_by_ieth2.5: Setting MAC address to f_id:isp = 0, cu 08rrently ifma
p =100xf.
77 91 27 8d.
ralink switch vlan operate:init
ralink switch vlan operate:port
ralink switch vlan operate:port
ralink switch vlan operate:port
ralink switch vlan operate:entry
ralink switch vlan operate:entry
ralink switch vlan operate:entry
ralink switch vlan operate:init
ralink switch vlan operate:port
ralink switch vlan operate:port
ralink switch vlan operate:port
ralink switch vlan operate:entry
ralink switch vlan operate:entry
ralink switch vlan operate:entry
eth2.5: dev_set_promiscuity(master, 1)
device eth2.5 entered promiscuous mode
ralink_gpio_ioctl:194 pid:121,req:0x00000011,arg:0x00000001
ralink_gpio_ioctl:194 pid:121,req:0x00000008,arg:0x00000001
ralink_gpio_ioctl:194 pid:121,req:0x0000000a,arg:0x7ff7adb8
eth2.1: Setting MAC address to08 10 77 91 27 8e.
Jan1 08:00:09 miniupnpd: HTTP listening on port 16792
eth2.2: Setting MAC address to08 10 77 91 27 8f.
Starting pid 69, console /dev/ttyS1: '/bin/sh'

BusyBox v1.1.2 (2012.07.03-02:49+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ $
/ $



xjmjack 发表于 2016-7-31 22:41

之后我用TFTP 服务器上传了 固件到tmp中,请问固件如何拷贝系统中呢???
/ $ cd
/ $ cd var
/var $ cd tmp
/var/tmp $ tftp -g -l File.bin XX.XX.XX.XX

求助

chanwah2009 发表于 2016-8-1 10:55

ping不通的话是没法上传固件刷机的!:L

你按住reset开机试一下,会自动进入刷机模式的

xjmjack 发表于 2016-8-1 17:50

chanwah2009 发表于 2016-8-1 10:55
ping不通的话是没法上传固件刷机的!

你按住reset开机试一下,会自动进入刷机模式的

根据TTL 里面的显示 只有WAN1 能获取到IP 通过另外一个路由器以后可以PING 通,但是不能访问,可以用在TTL里面用TFTP 上传文件到路由器器 TMP 目录。

xjmjack 发表于 2016-8-1 21:47

chanwah2009 发表于 2016-8-1 10:55
ping不通的话是没法上传固件刷机的!

你按住reset开机试一下,会自动进入刷机模式的

还有一个问题,按你说的做了,的确复位键可以到刷机状态,但是由于LAN口无法获取IP 和指定IP 也Ping 不同192.168.1.100我怀疑是不是这个板子的PSB 6970HL v1.3 损坏呢?不知道能不能手动刷机呢?谢谢,下面是TTL 图
U-Boot 1.1.3 (Oct8 2012 - 14:54:28)
Board: Ralink APSoC DRAM:64 MB
relocate_code Pointer at: 83fac000
Default FLASH_CS0_CFG = 0511FFA1
flash_protect ON: from 0xBF000000 to 0xBF02077B
flash_protect ON: from 0xBF030000 to 0xBF030FFF
*** Warning - bad CRC, using default environment
============================================
Ralink UBoot Version: 3.4.0.0
--------------------------------------------
ASIC 3052_MP2 (Port5<->MII)
DRAM component: 256 Mbits SDR
DRAM bus: 32 bit
Total memory: 64 MBytes
Flash component: NOR Flash
Date:Oct8 2012Time:14:54:28
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384
##### The CPU freq = 384 MHZ ####
SDRAM bus set to 32 bit
SDRAM size =64 Mbytes
welcome!
3: System Boot system code via Flash.
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
*****************************
2: System Load Linux Kernel then write to Flash via TFTP.
Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
Please Input new ones /or Ctrl-C to discard
      Input device IP (192.168.1.100)         Input server IP (192.168.1.33) I
nput Linux Kernel filename (ra288.bin)
netboot_common, argc= 3
NetTxPacket = 0x83FE4F00
KSEG1ADDR(NetTxPacket) = 0xA3FE4F00
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
Waitting for RX_DMA_BUSY status Start... done
Header Payload scatter function is Disable !!
ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.1.33; our IP address is 192.168.1.100
Filename 'ra288.bin'.
TIMEOUT_COUNT=10,Load address: 0x80100000

xjmjack 发表于 2016-8-1 21:54

这里附上我的NR256P Bootloade 备份,给有需要救砖的朋友~

chanwah2009 发表于 2016-8-2 15:59

你这显示很正常啊,:),还ping不通的话是不是有硬件坏了,,四个lan口都ping不通吗?

xjmjack 发表于 2016-8-2 22:19

chanwah2009 发表于 2016-8-2 15:59
你这显示很正常啊,,还ping不通的话是不是有硬件坏了,,四个lan口都ping不通吗?

对啊!4个LAN 都不通,WAN可以获取IP 但是不能打开,WAN2不能获取IP,我也怀疑是不是硬件出问题了,看样子CPU应该没有问题,是不是出在交换芯片PSB 6970HL v1.3 ?这个是交换芯片吗?

287514788 发表于 2017-3-26 23:00

朋友你搞定了吗?我的也出现你这种情况了
页: [1]
查看完整版本: 求助:磊科nr256p 如何TTL刷机