|
楼主 |
发表于 2011-9-24 14:15
|
显示全部楼层
本帖最后由 xhoot 于 2011-9-24 14:22 编辑
Starting kernel ...
[ 0.000000] Linux version 2.6.34.9-svn17089 (root@dd-wrt) (gcc version 4.5.2
(Linaro GCC 4.5-2011.02-0) ) #6035 Tue Jun 14 09:02:10 CEST 2011
[ 0.000000] flash_size passed from bootloader = 4
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
Booting AR7240(Python)...
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00002000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00002000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag
es: 8128
[ 0.000000] Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=sq
uashfs noinitrd init=/sbin/init
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32
bytes
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 29756k/32768k available (1934k kernel code, 3012k reserve
d, 349k data, 144k init, 0k highmem)
[ 0.000000] NR_IRQS:128
[ 0.000000] Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
[ 0.240000] Mount-cache hash table entries: 512
[ 0.240000] NET: Registered protocol family 16
[ 0.260000] found calibration data for slot 0 on 0xBF3F1000
[ 0.470000] registering PCI controller with io_map_base unset
[ 0.480000] bio: create slab <bio-0> at 0
[ 0.490000] pci 0000:00:00.0: fixup device configuration
[ 0.490000] bootstrap returns device 168C:2A
[ 0.500000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bi
t]
[ 0.500000] pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1000ffff 64bit]
(PCI address [0x10000000-0x1000ffff]
[ 0.510000] PCI: mapping irq 48 to pin1@0000:00:00.0
[ 0.510000] fixup irq: got 48
[ 0.510000] Switching to clocksource MIPS
[ 0.520000] NET: Registered protocol family 2
[ 0.520000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.530000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.540000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.540000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.550000] TCP reno registered
[ 0.550000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.560000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.560000] NET: Registered protocol family 1
[ 0.570000] gpio_proc: module loaded and /proc/gpio/ created
[ 0.580000] wl0gpio_proc: module loaded and /proc/wl0gpio/ created
[ 0.580000] init_vdso successfull
[ 0.590000] squashfs: version 3.0 (2006/03/15) Phillip Lougher
[ 0.590000] msgmni has been set to 58
[ 0.600000] io scheduler noop registered
[ 0.600000] io scheduler deadline registered (default)
[ 0.610000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.610000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 19) is a 16550A
[ 0.620000] console [ttyS0] enabled, bootconsole disabled
[ 0.620000] console [ttyS0] enabled, bootconsole disabled
[ 0.630000] guessed flashsize = 4M
[ 0.640000] scanning for root partition
[ 0.640000] uboot detected
[ 0.640000] guessed bootloader size = 40000
[ 0.650000]
[ 0.650000] found squashfs at 10E000
[ 0.660000] Creating 8 MTD partitions on "ar7240-nor0":
[ 0.660000] 0x000000000000-0x000000040000 : "RedBoot"
[ 0.670000] 0x000000040000-0x0000003e0000 : "linux"
[ 0.670000] 0x00000010e000-0x0000003d0000 : "rootfs"
[ 0.680000] mtd: partition "rootfs" must either start or end on erase block b
oundary or be smaller than an erase block -- forcing read-only
[ 0.690000] mtd: partition "rootfs" set to be root filesystem
[ 0.700000] 0x0000003d0000-0x0000003e0000 : "ddwrt"
[ 0.700000] 0x0000003e0000-0x0000003f0000 : "nvram"
[ 0.710000] 0x0000003f0000-0x000000400000 : "board_config"
[ 0.720000] 0x000000000000-0x000000400000 : "fullflash"
[ 0.720000] 0x000000000000-0x000000040000 : "fullboot"
[ 0.730000] PPP generic driver version 2.4.2
[ 0.730000] PPP Deflate Compression module registered
[ 0.740000] PPP BSD Compression module registered
[ 0.740000] PPP MPPE Compression module registered
[ 0.750000] NET: Registered protocol family 24
[ 0.750000] PPPoL2TP kernel driver, V1.0
[ 0.760000] IMQ driver loaded successfully.
[ 0.760000] Hooking IMQ before NAT on PREROUTING.
[ 0.770000] Hooking IMQ after NAT on POSTROUTING.
[ 0.770000] tun: Universal TUN/TAP device driver, 1.6
[ 0.780000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 0.790000] AG7240: Length per segment 1544
[ 0.790000] AG7240: Max segments per packet 1
[ 0.790000] AG7240: Max tx descriptor count 80
[ 0.800000] AG7240: Max rx descriptor count 252
[ 0.800000] AG7240: fifo cfg 3 01f00140
[ 0.810000] AG7240CHH: Mac address for unit 0
[ 0.810000] AG7240CHH: 00:03:7f:11:20:00
[ 1.020000] AG7240CHH: Mac address for unit 1
[ 1.020000] AG7240CHH: 00:03:7f:11:20:01
[ 1.230000] Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_mar
gin=60 sec (nowayout= 0)
[ 1.240000] u32 classifier
[ 1.240000] input device check on
[ 1.240000] Actions configured
[ 1.250000] Netfilter messages via NETLINK v0.30.
[ 1.250000] nf_conntrack version 0.5.0 (464 buckets, 1856 max)
[ 1.260000] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please
use
[ 1.260000] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module
option or
[ 1.270000] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[ 1.280000] nf_conntrack_rtsp v0.6.21 loading
[ 1.280000] nf_nat_rtsp v0.6.21 loading
[ 1.290000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.290000] IPP2P v0.8.2 loading
[ 1.300000] TCP westwood registered
[ 1.300000] TCP hybla registered
[ 1.300000] TCP vegas registered
[ 1.310000] NET: Registered protocol family 17
[ 1.310000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[ 1.320000] All bugs added by David S. Miller <davem@redhat.com>
[ 1.350000] Broken NVRAM found, recovering it (Magic FFFFFFFF)
[ 1.360000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.370000] Freeing unused kernel memory: 144k freed
start service
starting Architecture code for whrhpgn
starting hotplug
Jan 1 00:00:02 udevtrigger[179]: parse_config_file: can't open '/etc/udev/udev.
conf' as config file: No such file or directory
done
load ATH Ethernet Driver
.........................
-----------------------------------------------------------------------------------------------------------
run ut_fw实际命令分以下4步走
tftpboot 80f00000 firmware.bin
erase BF040000 BF3EFFFF
cp.b 80f00000 BF040000 382000
bootm BF040000
用 printenv命令看一下
----------------------------------------------------------------------------------------------------------------------
ar7240> printenv
bootargs=console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdpar
ts=ar7240-nor0:248k(u-boot),8k(u-boot-env),896k(uImage),2816k(rootfs),64k(NVRAM)
,64k(ART)
bootcmd=bootm BF040000
baudrate=115200
ethaddr=02:AA:BB:CC D:1E
tmp_ram=80F00000
tmp_bottom=81F00000
fw_eaddr=BF040000 BF3EFFFF
uboot_eaddr=BF000000 BF03DFFF
u_fw=erase $fw_eaddr; cp.b $fileaddr BF040000 $filesize; bootm BF040000;
ut_fw=tftp $tmp_ram firmware.bin; erase $fw_eaddr; cp.b $fileaddr BF040000 $file
size; bootm BF040000;
ut_uboot=tftp $tmp_ram u-boot.bin; protect off $uboot_eaddr; erase $uboot_eaddr;
cp.b $fileaddr BF000000 $filesize;
melco_id=RD_BB09087
hw_rev=0
tftp_wait=4
uboot_ethaddr=02:AA:BB:CC D:1E
DEF-p_wireless_ath0_11bg-authmode=psk
DEF-p_wireless_ath0_11bg-crypto=tkip+aes
DEF-p_wireless_ath0_11bg-authmode_ex=mixed-psk
custom_id=0
buf_ver=1.00
region=AP
accept_open_rt_fmt=1
build_date=Jul 27 2009 - 17:39:39
pincode=01742909
DEF-p_wireless_ath0_11bg-wpapsk=7egc0mvga7d31
buf_crc=92D8F716
stdin=serial
stdout=serial
stderr=serial
loadaddr=80F00000
ethact=eth1
filesize=3830f8
fileaddr=80F00000
ipaddr=192.168.11.1
serverip=192.168.11.2
Environment size: 1136/8188 bytes
-------------------------------------------------------------------------------------- |
|