OpenWRT编译用于高通AR9561(2)

OpenWRT编译用于高通AR9561(2)1 Tftp 将软件升级到板子上 绿色字体为升级命令 U Boot1 1 4 dirty Apr 18 2016 20 41 39 ap151 Dragonfly 1 0DRAM sri ath ddr initial config 278 ddr2 init ath sys frequency cpu 775 ddr

大家好,我是讯享网,很高兴认识大家。

 1.  Tftp将软件升级到板子上(绿色字体为升级命令)

U-Boot1.1.4-dirty (Apr 18 2016 - 20:41:39)

ap151 -Dragonfly 1.0DRAM: 

sri

ath_ddr_initial_config(278):(ddr2 init)

ath_sys_frequency:cpu 775 ddr 650 ahb 258

Tapvalues = (0xf, 0xf, 0xf, 0xf)

128 MB

Top ofRAM usable for U-Boot at:

Reserving199k for U-Boot at: 87fcc000

Reserving192k for malloc() at: 87f9c000

Reserving44 Bytes for Board Info at: 87f9bfd4

Reserving36 Bytes for Global Data at: 87f9bfb0

Reserving128k for boot params() at: 87f7bfb0

StackPointer at: 87f7bf98

Nowrunning in RAM - U-Boot at: 87fcc000

FlashManuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x17

flashsize 8MB, sector count = 128

Flash:  8 MB

*Warning - bad CRC, using default environment

 

*Warning * : PCIe WLAN Module not found !!!

In:    serial

Out:   serial

Err:   serial

Net:   ath_gmac_enet_initialize...

No validaddress in Flash. Using fixed address

No validaddress in Flash. Using fixed address

ath_gmac_enet_initialize:reset mask:c02200

Dragonfly---->S27 PHY *

: cfg10x cfg2 0x7114

eth0:00:03:7f:09:0b:ad

athrs27_phy_setupATHR_PHY_CONTROL 4 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 4 :10

eth0 up

ATHRS27:resetting s27

ATHRS27:s27 reset done

: cfg10x800c0000 cfg2 0x7214

eth1:00:03:7f:09:0b:ad

athrs27_phy_setupATHR_PHY_CONTROL 0 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 0 :10

athrs27_phy_setupATHR_PHY_CONTROL 1 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 1 :10

athrs27_phy_setupATHR_PHY_CONTROL 2 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 2 :10

athrs27_phy_setupATHR_PHY_CONTROL 3 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 3 :10

eth1 up

eth0,eth1

Setting0xc0 to 0x80

Hit anykey to stop autoboot:  0

ath>

ath>tftp 0x openwrt-ar71xx-ap151-8M-qca-legacy-uboot.bin

Tryingeth0

eth0 linkdown

FAIL

Tryingeth1

enet1port0 up

dup 1speed 1000

Usingeth1 device

TFTP fromserver 192.168.1.10; our IP address is 192.168.1.1

Filename'openwrt-ar71xx-ap151-8M-qca-legacy-uboot.bin'.

Loadaddress: 0x

Loading:

done

Bytestransferred = (28bec hex)

ath> erase 0x9f000000 +0x28bec

Erasingflash...

First 0x0last 0x2 sector size 0x10000

   2

Erased 3sectors

ath> cp.b 0x0x9f000000 0x28bec

Copy toFlash... write addr: 9f000000

done

ath>tftp 0x openwrt-ar71xx-generic-ap151-8M-kernel.bin

Tryingeth0

eth0 linkdown

FAIL

Tryingeth1

Usingeth1 device

TFTP fromserver 192.168.1.10; our IP address is 192.168.1.1

Filename'openwrt-ar71xx-generic-ap151-8M-kernel.bin'.

Loadaddress: 0x

Loading:

        

        

done

Bytestransferred = ( hex)

ath>erase 0x9f +0x

Erasingflash...

First0x68 last 0x78 sector size 0x10000

 120

Erased 17sectors

ath>cp.b 0x 0x9f 0x

Copy toFlash... write addr: 9f

done

ath> tftp 0xopenwrt-ar71xx-generic-ap151-8M-rootfs-squashfs.bin

Tryingeth0

eth0 linkdown

FAIL

Tryingeth1

Usingeth1 device

TFTP fromserver 192.168.1.10; our IP address is 192.168.1.1

Filename'openwrt-ar71xx-generic-ap151-8M-rootfs-squashfs.bin'.

Loadaddress: 0x

Loading:

        

        

        

done

Bytestransferred = ( hex)

ath> erase 0x9f050000 +0x

Erasingflash...

First 0x5last 0x66 sector size 0x10000

 102

Erased 98sectors

ath> cp.b 0xx9f050000 0x

Copy toFlash... write addr: 9f050000

Done

 

2.  重启设备

U-Boot1.1.4-dirty (Apr 18 2016 - 20:41:39)

ap151 -Dragonfly 1.0DRAM: 

sri

ath_ddr_initial_config(278):(ddr2 init)

ath_sys_frequency:cpu 775 ddr 650 ahb 258

Tapvalues = (0xf, 0xf, 0xf, 0xf)

128 MB

Top ofRAM usable for U-Boot at:

Reserving199k for U-Boot at: 87fcc000

Reserving192k for malloc() at: 87f9c000

Reserving44 Bytes for Board Info at: 87f9bfd4

Reserving36 Bytes for Global Data at: 87f9bfb0

Reserving128k for boot params() at: 87f7bfb0

StackPointer at: 87f7bf98

Now runningin RAM - U-Boot at: 87fcc000

FlashManuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x17

flashsize 8MB, sector count = 128

Flash:  8 MB

*Warning - bad CRC, using default environment

 

*Warning * : PCIe WLAN Module not found !!!

In:    serial

Out:   serial

Err:   serial

Net:   ath_gmac_enet_initialize...

No validaddress in Flash. Using fixed address

No validaddress in Flash. Using fixed address

ath_gmac_enet_initialize:reset mask:c02200

Dragonfly---->S27 PHY *

: cfg10x cfg2 0x7114

eth0: 00:03:7f:09:0b:ad

athrs27_phy_setupATHR_PHY_CONTROL 4 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 4 :10

eth0 up

ATHRS27:resetting s27

ATHRS27:s27 reset done

: cfg10x800c0000 cfg2 0x7214

eth1:00:03:7f:09:0b:ad

athrs27_phy_setupATHR_PHY_CONTROL 0 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 0 :10

athrs27_phy_setupATHR_PHY_CONTROL 1 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 1 :10

athrs27_phy_setupATHR_PHY_CONTROL 2 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 2 :10

athrs27_phy_setupATHR_PHY_CONTROL 3 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 3 :10

eth1 up

eth0,eth1

Setting0xc0 to 0x80

Hit anykey to stop autoboot:  0

Booting image at 9f ...

   Image Name:  MIPS OpenWrt Linux-3.3.8

   Created:     2016-05-17   6:29:33 UTC

   Image Type:  MIPS Linux Multi-File Image (lzma compressed)

   Data Size:    Bytes =  1 MB

   Load Address:

   Entry Point: 

   Contents:

   Image 0:  Bytes =  1 MB

   Verifying Checksum at 0x9f ...OK

   Uncompressing Multi-File Image ... OK

No initrd

Transferring control to Linux (at address ) ...

Givinglinux memsize in bytes,

 

Startingkernel ...

 

[    0.000000] Linux version 3.3.8 (root@hp-pc)(gcc version 4.6.3 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Mon Apr18 20:51:48 CST 2016

[    0.000000] bootconsole [early0] enabled

[    0.000000] CPU revision is: 00019750 (MIPS74Kc)

[    0.000000] SoC: Qualcomm Atheros QCA956X rev0

[    0.000000] Clocks: CPU:775.000MHz,DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz

[    0.000000] Determined physical RAM map:

[    0.000000] memory: 0 @ 00000000 (usable)

[    0.000000] Initrd not found or empty -disabling initrd

[    0.000000] Zone PFN ranges:

[    0.000000]  Normal   0x00000000 ->0x00008000

[    0.000000] Movable zone start PFN for eachnode

[    0.000000] Early memory PFN ranges

[    0.000000]     0: 0x00000000 -> 0x00008000

[    0.000000] Built 1 zonelists in Zone order,mobility grouping on.  Total pages: 32512

[    0.000000] Kernel command line:  board=AP151 console=ttyS0,mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1472k(kernel),64k(art),7744k@0x50000(firmware)rootfstype=squashfs,jffs2 noinitrd

[    0.000000] PID hash table entries: 512(order: -1, 2048 bytes)

[    0.000000] Dentry cache hash table entries:16384 (order: 4, 65536 bytes)

[    0.000000] Inode-cache hash table entries:8192 (order: 3, 32768 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: k/k available(2291k kernel code, 4896k reserved, 618k data, 220k init, 0k highmem)

[    0.000000] SLUB: Genslabs=9, HWalign=32,Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS:83

[    0.000000] Calibrating delay loop... 385.84BogoMIPS (lpj=)

[    0.060000] pid_max: default: 32768 minimum:301

[    0.060000] Mount-cache hash table entries:512

[    0.060000] Performance counters: mips/74KPMU enabled, 4 32-bit counters available to each CPU, irq 13

[    0.070000] Initialized recycle list for cpu0.

[    0.080000] NET: Registered protocol family16

[    0.080000] gpiochip_add: registered GPIOs 0to 22 on device: ath79

[    0.090000] MIPS: machine is Qualcomm AtherosAP151 reference board

[    0.090000] ar724x-pci ar724x-pci.0: PCIelink is down

[    0.] registering PCI controller withio_map_base unset

[    0.] ar71xx: invalid MDIO id 1

[    0.] bio: create slab <bio-0> at0

[    0.] PCI host bridge to bus 0000:00

[    0.] pci_bus 0000:00: root busresource [mem 0x-0x13ffffff]

[    0.] pci_bus 0000:00: root busresource [io  0x0001]

[    0.] Switching to clocksource MIPS

[    0.] NET: Registered protocol family 2

[    0.] IP route cache hash tableentries: 1024 (order: 0, 4096 bytes)

[    0.] TCP established hash tableentries: 4096 (order: 3, 32768 bytes)

[    0.] TCP bind hash table entries: 4096(order: 2, 16384 bytes)

[    0.] TCP: Hash tables configured(established 4096 bind 4096)

[    0.] TCP reno registered

[    0.] UDP hash table entries: 256(order: 0, 4096 bytes)

[    0.] UDP-Lite hash table entries: 256(order: 0, 4096 bytes)

[    0.] NET: Registered protocol family 1

[    0.] squashfs: version 4.0(2009/01/31) Phillip Lougher

[    0.] JFFS2 version 2.2 (NAND)(SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.

[    0.] msgmni has been set to 246

[    0.] io scheduler noop registered

[    0.] io scheduler deadline registered(default)

[    0.] Serial: 8250/16550 driver, 1ports, IRQ sharing disabled

[    0.] serial8250.0: ttyS0 at MMIO0x (irq = 11) is a 16550A

[    0.] console [ttyS0] enabled,bootconsole disabled

[    0.] console [ttyS0] enabled,bootconsole disabled

[    0.] m25p80spi0.0: unrecognized JEDEC id c84017

[    0.] ag71xx_mdio: probed

[    0.] ag71xx_mdio: probed

[    0.] eth0: Atheros AG71xx at0xb, irq 4

[    1.] ag71xx ag71xx.0: eth0: connectedto PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]

[    1.] eth1: Atheros AG71xx at0xba000000, irq 5

[    1.] eth1: Found an AR934X built-inswitch

[    2.] TCP cubic registered

[    2.] NET: Registered protocol family17

[    2.] 8021q: 802.1Q VLAN Support v1.8

[    2.] of_selftest(): No testcasedata in device tree; not running tests

[    3.000000] VFS: Cannotopen root device "(null)" or unknown-block(0,0)

[    3.000000] Pleaseappend a correct "root=" boot option; here are the availablepartitions:

[   3.010000] Kernel panic - not syncing: VFS: Unable to mount root fs onunknown-block(0,0)

悲剧,设备启动不了!!!!!!!!!

3.故障分析与解决方法

从上面红色的log可以发现,根本原因是flash型号不被openwrt的内核识别!而导致后面的文件系统不能被正确的挂载。由于我手上原来的板子是16M的flash,我更换了8M的flash,型号是GD25Q64,但是新添加的flash在内核flash驱动里面还没有定义,根据这条重要线索往下找原因:

/drivers/mtd/devices/m25p80.c 是spiserial flash的底层驱动文件,其中m25p_ids[]枚举了常见的flash型号、ID、块大小、容量等属性。 flash驱动识别flash的唯一依据就是从SPI总线上读取回来的JEDEC ID(jedec_probe()),比如我的flashJEDEC ID是0x20ba17,不在枚举列表内,这个ID挺变态,最新的linux内核都没有。 从m25p_ids列表中支持可以推断出,JEDEC的含义: 0x20 代表生产厂家,0xba代表内部型号,0x17代表容量是8M。

JEDEC的官方网站https://www.jedec.org/

从里面找到了JEP106AF-01.pdf这个文档,里面定义了JEDECID

72 GigaDevice Semiconductor 1 1 0 0 1 0 0 0 C8

72:是文档列出的标号,不需要用到

GigaDevice Semiconductor:是生产flash的厂商

1 1 0 0 1 0 0 0:以二进制表示的厂家标志

C8:十六进制表示的厂家标志

两种办法可以解决,

1. 强制把SPI读回来的JEDECID写成枚举列表中已支持的ID,比如写成c84017

2.把c84017添加到m25p_ids[]中(我使用的是这种方式)


讯享网

然后重新回到qsdk编译目录下make V=s

正常的话编译完成大致如下:

生成的软件在/bin/ar71xx/目录

4.  再一次tftp升级并重启设备

U-Boot1.1.4-dirty (Apr 18 2016 - 20:41:39)

ap151 -Dragonfly 1.0DRAM: 

sri

ath_ddr_initial_config(278):(ddr2 init)

ath_sys_frequency:cpu 775 ddr 650 ahb 258

Tapvalues = (0xf, 0xf, 0xf, 0xf)

128 MB

Top ofRAM usable for U-Boot at:

Reserving199k for U-Boot at: 87fcc000

Reserving192k for malloc() at: 87f9c000

Reserving44 Bytes for Board Info at: 87f9bfd4

Reserving36 Bytes for Global Data at: 87f9bfb0

Reserving128k for boot params() at: 87f7bfb0

StackPointer at: 87f7bf98

Nowrunning in RAM - U-Boot at: 87fcc000

FlashManuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x17

flashsize 8MB, sector count = 128

Flash:  8 MB

*Warning - bad CRC, using default environment

 

*Warning * : PCIe WLAN Module not found !!!

In:    serial

Out:   serial

Err:   serial

Net:   ath_gmac_enet_initialize...

No validaddress in Flash. Using fixed address

No validaddress in Flash. Using fixed address

ath_gmac_enet_initialize:reset mask:c02200

Dragonfly---->S27 PHY *

: cfg10x cfg2 0x7114

eth0:00:03:7f:09:0b:ad

athrs27_phy_setupATHR_PHY_CONTROL 4 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 4 :10

eth0 up

ATHRS27:resetting s27

ATHRS27:s27 reset done

: cfg10x800c0000 cfg2 0x7214

eth1:00:03:7f:09:0b:ad

athrs27_phy_setupATHR_PHY_CONTROL 0 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 0 :10

athrs27_phy_setupATHR_PHY_CONTROL 1 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 1 :10

athrs27_phy_setupATHR_PHY_CONTROL 2 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 2 :10

athrs27_phy_setupATHR_PHY_CONTROL 3 :1000

athrs27_phy_setupATHR_PHY_SPEC_STAUS 3 :10

eth1 up

eth0,eth1

Setting0xc0 to 0x80

Hit anykey to stop autoboot:  0

ath>

ath> tftp 0x openwrt-ar71xx-generic-ap151-8M-kernel.bin
Trying eth0
eth0 link down
FAIL
Trying eth1
enet1 port1 up
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename 'openwrt-ar71xx-generic-ap151-8M-kernel.bin'.
Load address: 0x
Loading: T
         
         
         
done
Bytes transferred = ( hex)
ath> erase 0x9f +0x
Erasing flash... 
First 0x68 last 0x78 sector size 0x10000
 120
Erased 17 sectors
ath> cp.b 0x 0x9f 0x
Copy to Flash... write addr: 9f
done

ath>

ath>tftp 0x openwrt-ar71xx-generic-ap151-8M-squashfs-sysupgrade.bin

Tryingeth0

eth0 linkdown

FAIL

Tryingeth1

enet1port0 up

dup 1speed 1000

Usingeth1 device

TFTP fromserver 192.168.1.10; our IP address is 192.168.1.1

Filename'openwrt-ar71xx-generic-ap151-8M-squashfs-sysupgrade.bin'.

Loadaddress: 0x

Loading:

        

        T

Abort

ath>tftp 0x openwrt-ar71xx-generic-ap151-8M-squashfs-sysupgrade.bin

Tryingeth0

eth0 linkdown

FAIL

Tryingeth1

Usingeth1 device

TFTP fromserver 192.168.1.10; our IP address is 192.168.1.1

Filename'openwrt-ar71xx-generic-ap151-8M-squashfs-sysupgrade.bin'.

Loadaddress: 0x

Loading:len bad 48 < 544

        

        

        

        

done

Bytestransferred = (7359f2 hex)

ath>erase 0x9f050000 +0x

Error:end address (0xa65a9665) not in flash!

Badaddress format

ath>erase 0x9f050000 +0x7359f2

Erasingflash...

First 0x5last 0x78 sector size 0x10000

 120

Erased116 sectors

ath>cp.b 0x 0x9f050000 0x7359f2

Copy toFlash... write addr: 9f050000

done

ath>bootm 0x9f

Booting image at 9f ...

   Image Name:  MIPS OpenWrt Linux-3.3.8

   Created:     2016-05-20  13:19:51 UTC

   Image Type:  MIPS Linux Multi-File Image (lzma compressed)

   Data Size:    Bytes =  1 MB

   Load Address:

   Entry Point: 

   Contents:

   Image 0:  Bytes =  1 MB

   Verifying Checksum at 0x9f ...OK

   Uncompressing Multi-File Image ... OK

No initrd

Transferring control to Linux (at address ) ...

Givinglinux memsize in bytes,

 

Startingkernel ...

 

[    0.000000] Linux version 3.3.8 (root@hp-pc)(gcc version 4.6.3 (prerelease) (Linaro GCC 4.6-2012.02) ) #7 Fri May20 21:18:37 CST 2016

[    0.000000] bootconsole [early0] enabled

[    0.000000] CPU revision is: 00019750 (MIPS74Kc)

[    0.000000] SoC: Qualcomm Atheros QCA956X rev0

[    0.000000] Clocks: CPU:775.000MHz,DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz

[    0.000000] Determined physical RAM map:

[    0.000000] memory: 0 @ 00000000 (usable)

[    0.000000] Initrd not found or empty -disabling initrd

[    0.000000] Zone PFN ranges:

[    0.000000]  Normal   0x00000000 ->0x00008000

[    0.000000] Movable zone start PFN for eachnode

[    0.000000] Early memory PFN ranges

[    0.000000]     0: 0x00000000 -> 0x00008000

[    0.000000] Built 1 zonelists in Zone order,mobility grouping on.  Total pages: 32512

[    0.000000] Kernel command line:  board=AP151 console=ttyS0,mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1472k(kernel),64k(art),7744k@0x50000(firmware)rootfstype=squashfs,jffs2 noinitrd

[    0.000000] PID hash table entries: 512(order: -1, 2048 bytes)

[    0.000000] Dentry cache hash table entries:16384 (order: 4, 65536 bytes)

[    0.000000] Inode-cache hash table entries:8192 (order: 3, 32768 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: k/k available(2247k kernel code, 4848k reserved, 614k data, 220k init, 0k highmem)

[    0.000000] SLUB: Genslabs=9, HWalign=32,Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS:83

[    0.000000] Calibrating delay loop... 385.84BogoMIPS (lpj=)

[    0.060000] pid_max: default: 32768 minimum:301

[    0.060000] Mount-cache hash table entries:512

[    0.060000] Initialized recycle list for cpu0.

[    0.070000] NET: Registered protocol family16

[    0.070000] gpiochip_add: registered GPIOs 0to 22 on device: ath79

[    0.080000] MIPS: machine is Qualcomm AtherosAP151 reference board

[    0.080000] ar724x-pci ar724x-pci.0: PCIelink is down

[    0.090000] registering PCI controller withio_map_base unset

[    0.090000] ar71xx: invalid MDIO id 1

[    0.] bio: create slab <bio-0> at0

[    0.] PCI host bridge to bus 0000:00

[    0.] pci_bus 0000:00: root busresource [mem 0x-0x13ffffff]

[    0.] pci_bus 0000:00: root busresource [io  0x0001]

[    0.] Switching to clocksource MIPS

[    0.] NET: Registered protocol family 2

[    0.] IP route cache hash tableentries: 1024 (order: 0, 4096 bytes)

[    0.] TCP established hash tableentries: 4096 (order: 3, 32768 bytes)

[    0.] TCP bind hash table entries: 4096(order: 2, 16384 bytes)

[    0.] TCP: Hash tables configured(established 4096 bind 4096)

[    0.] TCP reno registered

[    0.] UDP hash table entries: 256(order: 0, 4096 bytes)

[    0.] UDP-Lite hash table entries: 256(order: 0, 4096 bytes)

[    0.] NET: Registered protocol family 1

[    0.] squashfs: version 4.0(2009/01/31) Phillip Lougher

[    0.] JFFS2 version 2.2 (NAND)(SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.

[    0.] msgmni has been set to 246

[    0.] io scheduler noop registered

[    0.] io scheduler deadline registered(default)

[    0.] Serial: 8250/16550 driver, 1ports, IRQ sharing disabled

[    0.] serial8250.0: ttyS0 at MMIO0x (irq = 11) is a 16550A

[    0.] console [ttyS0] enabled,bootconsole disabled

[    0.] console [ttyS0] enabled,bootconsole disabled

[    0.] m25p80 spi0.0: found gd25q64,expected m25p80

[    0.] m25p80 spi0.0: gd25q64 (8192Kbytes)

[    0.] 6 cmdlinepart partitions found onMTD device spi0.0

[    0.] Creating 6 MTD partitions on"spi0.0":

[    0.] 0x000000000000-0x000000040000 :"u-boot"

[    0.] 0x000000040000-0x000000050000 :"u-boot-env"

[    0.] 0x000000050000-0x000000 :"rootfs"

[    0.] mtd: partition "rootfs"set to be root filesystem

[    0.] mtd: partition"rootfs_data" created automatically, ofs=, len=30000

[    0.] 0x000000-0x000000 :"rootfs_data"

[    0.] 0x000000-0x0000007f0000 :"kernel"

[    0.] 0x0000007f0000-0x000000 :"art"

[    0.] 0x000000050000-0x0000007e0000 :"firmware"

[    0.] ag71xx_mdio: probed

[    0.] ag71xx_mdio: probed

[    0.] eth0: Atheros AG71xx at 0xb,irq 4

[    1.] ag71xx ag71xx.0: eth0: connectedto PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]

[    1.] eth1: Atheros AG71xx at0xba000000, irq 5

[    2.000000] eth1: Found an AR934X built-inswitch

[    3.040000] TCP cubic registered

[    3.040000] NET: Registered protocol family17

[    3.040000] 8021q: 802.1Q VLAN Support v1.8

[    3.050000] of_selftest(): No testcasedata in device tree; not running tests

[    3.060000] VFS: Mounted root (squashfsfilesystem) readonly on device 31:2.

[    3.070000] Freeing unused kernel memory:220k freed

- preinit-

Press the[f] key and hit [enter] to enter failsafe mode

- regularpreinit -

jffs2 notready yet; using ramdisk

- init -

[    9.] ssdk_plat_init start

[    9.] chip_version:0x0

[    9.] chip_version:0x2

[    9.] Register QCA PHY driver

[    9.] register switch!!

[    9.] qca-ssdk module init succeeded!

[    9.] NET: Registered protocol family10

[    9.] SCSI subsystem initialized

[    9.] usbcore: registered new interfacedriver usbfs

[    9.] usbcore: registered new interfacedriver hub

[    9.] usbcore: registered new devicedriver usb

[    9.] Button Hotplug driver version0.4.1

[   10.] PPP generic driver version 2.4.2

[   10.] L2TP core driver, V2.0

[   10.] L2TP netlink interface

[   10.] asf: module license 'Proprietary'taints kernel.

[   10.] Disabling lock debugging due tokernel taint

[   10.] Address of trace_timer:87b1e590

[   10.] ath_hal: 0.9.17.1 (AR5416,AR9380, REGOPS_FUNC, WRITE_EEPROM, TX_DATA_SWAP, RX_DATA_SWAP, 11D)

[   11.000000] ath_rate_atheros: Copyright (c)2001-2005 Atheros Communications, Inc, All Rights Reserved

[   11.020000] ath_dfs: Version 2.0.0

[   11.020000] Copyright (c) 2005-2006 AtherosCommunications, Inc. All Rights Reserved

[   11.040000] ath_spectral: Version 2.0.0

[   11.040000] Copyright (c) 2005-2009 AtherosCommunications, Inc. All Rights Reserved

[   11.060000] SPECTRAL module built on May 18:02:29

[   11.] ath_tx99: Version 2.0

[   11.] Copyright (c) 2010 AtherosCommunications, Inc, All Rights Reserved

[   11.] ath_dev: Copyright (c) 2001-2007Atheros Communications, Inc, All Rights Reserved

[   12.] __ath_attach: Set global_scn[0]

[   12.] * All the minfree values shouldbe <= ATH_TXBUF-32, otherwise default value will be used instead *

[   12.] ACBKMinfree = 48

[   12.] ACBEMinfree = 32

[   12.] ACVIMinfree = 16

[   12.] ACVOMinfree = 0

[   12.] CABMinfree = 48

[   12.] UAPSDMinfree = 0

[   12.] ATH_TXBUF=540

[   12.] Enterprise mode: 0x03bda000

[   12.] Restoring Cal data from DRAM

[   12.] Restoring Cal data from Flash

[   12.]ar9300_eeprom_restore_internal[4813] No vaid CAL, calling default template

[   12.] SPECTRAL : get_capability notregistered

[   12.] HAL_CAP_PHYDIAG : Capable

[   12.] SPECTRAL : Need to fix thecapablity check for RADAR (spectral_attach : 231)

[   12.] SPECTRAL : get_capability notregistered

[   12.] HAL_CAP_RADAR   : Capable

[   12.] SPECTRAL : Need to fix thecapablity check for SPECTRAL

[   12.] (spectral_attach : 236)

[   12.] SPECTRAL : get_capability notregistered

[   12.] HAL_CAP_SPECTRAL_SCAN : Capable

[   12.] SPECTRAL : get_tsf64 not registered

[   12.] spectral_init_netlink 52 NULL SKB

[   12.] SPECTRAL : No ADVANCED SPECTRALSUPPORT

[   12.] SPECTRAL :----- module attached

[   12.] Green-AP : Green-AP : Attached

[   12.]

[   12.] ath_get_caps[6147] rx chainmaskmismatch actual 7 sc_chainmak 0

[   12.] ath_get_caps[6122] tx chainmaskmismatch actual 7 sc_chainmak 0

[   12.] ath_attach_dfs[12621] dfsdomain 1

[   12.] SPECTRAL : module alreadyattached

[   12.] osif_wrap_attach:280 osif wrapattached

[   12.] osif_wrap_devt_init:900 osif wrapdev table init done

[   12.] ath_tx_paprd_init sc PAPRD disabled in HAL

[   13.000000] wifi0: Atheros 956X:mem=0xb, irq=47

[   13.010000] ath_pci: 10.2.3.31(Atheros/multi-bss)

[   13.040000] bonding: Ethernet Channel BondingDriver: v3.7.1 (April 27, 2011)

[   13.] ip_tables: (C) 2000-2006Netfilter Core Team

[   13.] NET: Registered protocol family24

[   13.] ehci_hcd: USB 2.0 'Enhanced' HostController (EHCI) Driver

[   13.] ehci-platform ehci-platform.0:Generic Platform EHCI Controller

[   13.] ehci-platform ehci-platform.0:new USB bus registered, assigned bus number 1

[   13.] ehci-platform ehci-platform.0:irq 48, io mem 0x1b000000

[   13.] ehci-platform ehci-platform.0:USB 2.0 started, EHCI 1.00

[   13.] hub 1-0:1.0: USB hub found

[   13.] hub 1-0:1.0: 1 port detected

[   13.] ehci-platform ehci-platform.1: GenericPlatform EHCI Controller

[   13.] ehci-platform ehci-platform.1:new USB bus registered, assigned bus number 2

[   13.] ehci-platform ehci-platform.1:irq 49, io mem 0x1b

[   13.] ehci-platform ehci-platform.1:USB 2.0 started, EHCI 1.00

[   13.] hub 2-0:1.0: USB hub found

[   13.] hub 2-0:1.0: 1 port detected

[   13.] nf_conntrack version 0.5.0 (1975buckets, 7900 max)

[   13.] PPPoL2TP kernel driver, V2.0

[   14.] xt_time: kernel timezone is -0000

[   14.] nf_conntrack_rtsp v0.6.21 loading

[   14.] nf_nat_rtsp v0.6.21 loading

[   14.] Initializing USB Mass Storagedriver...

[   14.] usbcore: registered new interfacedriver usb-storage

[   14.] USB Mass Storage supportregistered.

[   14.] fuse init (API version 7.18)

[   15.] mmc_spi: Unknown symbolmmc_spi_get_pdata (err 0)

[   15.] mmc_spi: Unknown symbolmmc_spi_put_pdata (err 0)

 

Pleasepress Enter to activate this console. [  19.] ADDRCONF(NETDEV_UP): eth1: link is not ready

[   19.] device eth1 entered promiscuousmode

[   19.] ADDRCONF(NETDEV_UP): br-lan: linkis not ready

[   19.] ADDRCONF(NETDEV_UP): eth0: linkis not ready

[   19.] eth1: link up (1000Mbps/Fullduplex)

[   19.] br-lan: port 1(eth1) enteredforwarding state

[   19.] br-lan: port 1(eth1) enteredforwarding state

[   19.] ADDRCONF(NETDEV_CHANGE): eth1:link becomes ready

[   19.] ADDRCONF(NETDEV_CHANGE): br-lan:link becomes ready

[   21.] br-lan: port 1(eth1) enteredforwarding state

[   23.090000] osif_wrap_devt_detach:255 osifwrap dev table detached

[   23.] osif_wrap_detach:312 osif wrapdetached

[   23.] SPECTRAL : Module removed(spectral = )

[   23.] Green-AP : Green-AP : Detached

[   23.]

[   23.] Removing athdebug proc file

[   23.] ath_dev: driver unloaded

[   23.] ath_tx99: driver unloaded

[   23.] ath_spectral: driver unloaded

[   23.] ath_dfs: driver unloaded

[   23.] ath_rate_atheros: driver unloaded

[   23.] ath_hal: driver unloaded

[   33.] jffs2: Too few erase blocks (3)

 

重启完毕,按任意键可以进入shell,用ps查看进程

 

BusyBoxv1.19.4 (2016-04-18 19:26:56 CST) built-in shell (ash)

Enter'help' for a list of built-in commands.

 

     MM           NM                    MMMMMMM          M       M

   $MMMMM       MMMMM               MMMMMMMMMMM      MMM     MMM

  MMMMMMMM    MM MMMMM.             MMMMM:MMMMMM:   MMMM   MMMMM

MMMM=MMMMMM  MMM   MMMM      MMMMM   MMMM  MMMMMM  MMMM  MMMMM'

MMMM=  MMMMM MMMM   MM       MMMMM    MMMM   MMMM   MMMMNMMMMM

MMMM=   MMMM MMMMM          MMMMM     MMMM   MMMM   MMMMMMMM

MMMM=   MMMM  MMMMMM       MMMMM      MMMM   MMMM   MMMMMMMMM

MMMM=   MMMM    MMMMM,    NMMMMMMMM   MMMM   MMMM   MMMMMMMMMMM

MMMM=   MMMM     MMMMMM   MMMMMMMM    MMMM   MMMM   MMMM  MMMMMM

MMMM=   MMMM  MM    MMMM    MMMM     MMMM    MMMM   MMMM   MMMM

MMMM$,MMMMM  MMMMM  MMMM   MMM       MMMM   MMMMM  MMMM    MMMM

  MMMMMMM:     MMMMMMM     M         MMMMMMMMMMMM  MMMMMMM MMMMMMM

    MMMMMM      MMMMN     M           MMMMMMMMM      MMMM   MMMM

     MMMM          M                    MMMMMMM        M      M

       M

 ---------------------------------------------------------------

   For those about to rock... (QCA9558.LN,r40858)

 ---------------------------------------------------------------

root@OpenWrt:/#

root@OpenWrt:/#ps

  PID USER      VSZ STAT COMMAND

    1 root     1512 S    init

    2 root         0 SW  [kthreadd]

    3 root         0 SW  [ksoftirqd/0]

    4 root         0 SW  [kworker/0:0]

    5 root         0 SW  [kworker/u:0]

    6 root         0 SW<  [khelper]

    7root         0 SW   [kworker/u:1]

   20 root         0 SW  [irq/10-ath79-gp]

   67 root         0 SW  [sync_supers]

   69 root         0 SW  [bdi-default]

   71 root         0 SW<  [kblockd]

  102 root         0 SW  [kswapd0]

  151 root         0 SW  [fsnotify_mark]

  164 root         0 SW<  [ath79-spi]

  175 root         0 SW  [mtdblock0]

  180 root         0 SW  [mtdblock1]

  185 root         0 SW  [mtdblock2]

  190 root         0 SW  [mtdblock3]

  195 root         0 SW   [mtdblock4]

  200 root         0 SW  [mtdblock5]

  205 root         0 SW  [mtdblock6]

  393 root         0 SW  [kworker/0:1]

  692 root         0 SW  [khubd]

  718 root         0 SW<  [bond0]

  846 root     1508 S    /bin/ash --login

  939 root     1516 S    /sbin/syslogd -C16

  941 root     1496 S    /sbin/klogd

  943 root      888 S    /sbin/hotplug2 --override--persistent --set-rules-f

  949 root      880 S    /sbin/ubusd

  953 root     1556 S    /sbin/netifd

 1001 root         0 SW  [kworker/0:2]

 1024 root     1508 S    udhcpc -p/var/run/udhcpc-eth0.pid -s /lib/netifd/dh

 1074 root     1508 S    /sbin/watchdog -t 5/dev/watchdog

 1211 network  2040 S    /usr/sbin/zebra -d -f/var/etc/quagga/zebra.conf

 1215 root     1660 S    /usr/sbin/watchquagga -d-z -T 60 -r /usr/sbin/quagg

 1643 root     1500 S    /usr/sbin/telnetd -l/bin/login.sh

 1654 root     1580 S    /usr/sbin/uhttpd-f -h /www -r OpenWrt -x /cgi-bin -

 1695 root     1160 S    /usr/sbin/dropbear -P/var/run/dropbear.1.pid -p 22

 1705 nobody    984 S    /usr/sbin/dnsmasq -C/var/etc/dnsmasq.conf

 1751 root     1508 S    /usr/sbin/ntpd -n -p0.openwrt.pool.ntp.org -p 1.ope

 1802 root     1512 S    /usr/sbin/crond -c/etc/crontabs -l 5

 1807 root     1504 R    ps

root@OpenWrt:/#

上面我们可以看到uhttpd,这个是openwrt的网页服务器(当然还有其他的一些网页服务器可用如lighthttpd),在menuconfig配置openwrt的时候一定要选上,否则进不了网页,另外openwrt使用luci脚本维护网页用户界面接口,在编译的时候也要选上,openwrt里面有非常多的第三方软件可用,可用自由的添加自己需要的功能。

下面进入openwrt页面,在浏览器地址栏输入默认的ip地址:192.168.1.1

点击Administration,输入默认用户名root,密码admin进入管理页面:




小讯
上一篇 2025-03-21 23:13
下一篇 2025-03-01 20:17

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/17991.html