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 650 ahb 258

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

128 MB

Top ofRAM usable for U-Boot at: 88000000

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 *

: cfg10x80000000 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

Setting0x181162c0 to 0x80

Hit anykey to stop autoboot:  0

ath>

ath>tftp 0x80060000 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: 0x80060000

Loading:#################################

done

Bytestransferred = 166892 (28bec hex)

ath> erase 0x9f000000 +0x28bec

Erasingflash...

First 0x0last 0x2 sector size 0x10000

   2

Erased 3sectors

ath> cp.b 0x80060000x9f000000 0x28bec

Copy toFlash... write addr: 9f000000

done

ath>tftp 0x80060000 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: 0x80060000

Loading:#################################################################

        #################################################################

        #################################################################

done

Bytestransferred = 1114112 (110000 hex)

ath>erase 0x9f680000 +0x110000

Erasingflash...

First0x68 last 0x78 sector size 0x10000

 120

Erased 17sectors

ath>cp.b 0x80060000 0x9f680000 0x110000

Copy toFlash... write addr: 9f680000

done

ath> tftp 0x80060000openwrt-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: 0x80060000

Loading:#################################################################

        #################################################################

        #################################################################

        #################################################################

done

Bytestransferred = 6422528 (620000 hex)

ath> erase 0x9f050000 +0x620000

Erasingflash...

First 0x5last 0x66 sector size 0x10000

 102

Erased 98sectors

ath> cp.b 0x800600000x9f050000 0x620000

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: 88000000

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 *

: cfg10x80000000 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

Setting0x181162c0 to 0x80

Hit anykey to stop autoboot:  0

##Booting image at 9f680000 ...

   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:   1090209 Bytes =  1 MB

   Load Address: 80060000

   Entry Point: 80060000

   Contents:

   Image 0: 1090201 Bytes =  1 MB

   Verifying Checksum at 0x9f680040 ...OK

   Uncompressing Multi-File Image ... OK

No initrd

##Transferring control to Linux (at address 80060000) ...

## Givinglinux memsize in bytes, 134217728

 

Startingkernel ...

 

[    0.000000] Linux version 3.3.8 (root@hp-pc)(gcc version 4.6.3 20120201 (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: 08000000 @ 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,115200mtdparts=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: 126176k/131072k 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=1929216)

[    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.100000] registering PCI controller withio_map_base unset

[    0.100000] ar71xx: invalid MDIO id 1

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

[    0.510000] PCI host bridge to bus 0000:00

[    0.520000] pci_bus 0000:00: root busresource [mem 0x12000000-0x13ffffff]

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

[    0.530000] Switching to clocksource MIPS

[    0.530000] NET: Registered protocol family 2

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

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

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

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

[    0.560000] TCP reno registered

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

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

[    0.570000] NET: Registered protocol family 1

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

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

[    0.600000] msgmni has been set to 246

[    0.610000] io scheduler noop registered

[    0.610000] io scheduler deadline registered(default)

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

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

[    0.650000] console [ttyS0] enabled,bootconsole disabled

[    0.650000] console [ttyS0] enabled,bootconsole disabled

[    0.660000] m25p80spi0.0: unrecognized JEDEC id c84017

[    0.690000] ag71xx_mdio: probed

[    0.820000] ag71xx_mdio: probed

[    0.820000] eth0: Atheros AG71xx at0xb9000000, irq 4

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

[    1.390000] eth1: Atheros AG71xx at0xba000000, irq 5

[    1.940000] eth1: Found an AR934X built-inswitch

[    2.980000] TCP cubic registered

[    2.980000] NET: Registered protocol family17

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

[    2.990000] ### 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: 88000000

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 *

: cfg10x80000000 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

Setting0x181162c0 to 0x80

Hit anykey to stop autoboot:  0

ath>

ath> tftp 0x80060000 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: 0x80060000
Loading: T #################################################################
         #################################################################
         #################################################################
         #######################
done
Bytes transferred = 1114112 (110000 hex)
ath> erase 0x9f680000 +0x110000
Erasing flash... 
First 0x68 last 0x78 sector size 0x10000
 120
Erased 17 sectors
ath> cp.b 0x80060000 0x9f680000 0x110000
Copy to Flash... write addr: 9f680000
done

ath>

ath>tftp 0x80060000 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: 0x80060000

Loading:#################################################################

         #################################################################

        ###############################################################T

Abort

ath>tftp 0x80060000 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: 0x80060000

Loading:len bad 48 < 544

#################################################################

        #################################################################

         #################################################################

        #################################################################

         #################################################################

done

Bytestransferred = 7559666 (7359f2 hex)

ath>erase 0x9f050000 +0x7559666

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 0x80060000 0x9f050000 0x7359f2

Copy toFlash... write addr: 9f050000

done

ath>bootm 0x9f680000

##Booting image at 9f680000 ...

   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:   1071538 Bytes =  1 MB

   Load Address: 80060000

   Entry Point: 80060000

   Contents:

   Image 0: 1071530 Bytes =  1 MB

   Verifying Checksum at 0x9f680040 ...OK

   Uncompressing Multi-File Image ... OK

No initrd

##Transferring control to Linux (at address 80060000) ...

## Givinglinux memsize in bytes, 134217728

 

Startingkernel ...

 

[    0.000000] Linux version 3.3.8 (root@hp-pc)(gcc version 4.6.3 20120201 (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: 08000000 @ 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,115200mtdparts=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: 126224k/131072k 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=1929216)

[    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.500000] bio: create slab <bio-0> at0

[    0.500000] PCI host bridge to bus 0000:00

[    0.510000] pci_bus 0000:00: root busresource [mem 0x12000000-0x13ffffff]

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

[    0.520000] Switching to clocksource MIPS

[    0.520000] NET: Registered protocol family 2

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

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

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

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

[    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.580000] squashfs: version 4.0(2009/01/31) Phillip Lougher

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

[    0.590000] msgmni has been set to 246

[    0.600000] io scheduler noop registered

[    0.600000] io scheduler deadline registered(default)

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

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

[    0.640000] console [ttyS0] enabled,bootconsole disabled

[    0.640000] console [ttyS0] enabled,bootconsole disabled

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

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

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

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

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

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

[    0.690000] 0x000000050000-0x000000680000 :"rootfs"

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

[    0.700000] mtd: partition"rootfs_data" created automatically, ofs=650000, len=30000

[    0.710000] 0x000000650000-0x000000680000 :"rootfs_data"

[    0.710000] 0x000000680000-0x0000007f0000 :"kernel"

[    0.720000] 0x0000007f0000-0x000000800000 :"art"

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

[    0.750000] ag71xx_mdio: probed

[    0.880000] ag71xx_mdio: probed

[    0.880000] eth0: Atheros AG71xx at 0xb9000000,irq 4

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

[    1.450000] 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.250000] ssdk_plat_init start

[    9.250000] chip_version:0x0

[    9.250000] chip_version:0x2

[    9.260000] Register QCA PHY driver

[    9.260000] register switch!!

[    9.290000] qca-ssdk module init succeeded!

[    9.450000] NET: Registered protocol family10

[    9.770000] SCSI subsystem initialized

[    9.900000] usbcore: registered new interfacedriver usbfs

[    9.900000] usbcore: registered new interfacedriver hub

[    9.910000] usbcore: registered new devicedriver usb

[    9.980000] Button Hotplug driver version0.4.1

[   10.470000] PPP generic driver version 2.4.2

[   10.540000] L2TP core driver, V2.0

[   10.550000] L2TP netlink interface

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

[   10.620000] Disabling lock debugging due tokernel taint

[   10.640000] ****Address of trace_timer:87b1e590

[   10.930000] 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 182016 18:02:29

[   11.130000] ath_tx99: Version 2.0

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

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

[   12.800000] __ath_attach: Set global_scn[0]

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

[   12.820000] ACBKMinfree = 48

[   12.820000] ACBEMinfree = 32

[   12.820000] ACVIMinfree = 16

[   12.830000] ACVOMinfree = 0

[   12.830000] CABMinfree = 48

[   12.830000] UAPSDMinfree = 0

[   12.830000] ATH_TXBUF=540

[   12.840000] Enterprise mode: 0x03bda000

[   12.850000] Restoring Cal data from DRAM

[   12.850000] Restoring Cal data from Flash

[   12.860000]ar9300_eeprom_restore_internal[4813] No vaid CAL, calling default template

[   12.870000] SPECTRAL : get_capability notregistered

[   12.870000] HAL_CAP_PHYDIAG : Capable

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

[   12.890000] SPECTRAL : get_capability notregistered

[   12.890000] HAL_CAP_RADAR   : Capable

[   12.900000] SPECTRAL : Need to fix thecapablity check for SPECTRAL

[   12.900000] (spectral_attach : 236)

[   12.910000] SPECTRAL : get_capability notregistered

[   12.910000] HAL_CAP_SPECTRAL_SCAN : Capable

[   12.920000] SPECTRAL : get_tsf64 not registered

[   12.920000] spectral_init_netlink 52 NULL SKB

[   12.920000] SPECTRAL : No ADVANCED SPECTRALSUPPORT

[   12.930000] SPECTRAL :----- module attached

[   12.930000] Green-AP : Green-AP : Attached

[   12.930000]

[   12.940000] ath_get_caps[6147] rx chainmaskmismatch actual 7 sc_chainmak 0

[   12.950000] ath_get_caps[6122] tx chainmaskmismatch actual 7 sc_chainmak 0

[   12.960000] ath_attach_dfs[12621] dfsdomain 1

[   12.980000] SPECTRAL : module alreadyattached

[   12.980000] osif_wrap_attach:280 osif wrapattached

[   12.990000] osif_wrap_devt_init:900 osif wrapdev table init done

[   12.990000] ath_tx_paprd_init sc 86940000PAPRD disabled in HAL

[   13.000000] wifi0: Atheros 956X:mem=0xb8100000, 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.170000] ip_tables: (C) 2000-2006Netfilter Core Team

[   13.300000] NET: Registered protocol family24

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

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

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

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

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

[   13.490000] hub 1-0:1.0: USB hub found

[   13.500000] hub 1-0:1.0: 1 port detected

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

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

[   13.550000] ehci-platform ehci-platform.1:irq 49, io mem 0x1b400000

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

[   13.570000] hub 2-0:1.0: USB hub found

[   13.580000] hub 2-0:1.0: 1 port detected

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

[   13.950000] PPPoL2TP kernel driver, V2.0

[   14.380000] xt_time: kernel timezone is -0000

[   14.680000] nf_conntrack_rtsp v0.6.21 loading

[   14.690000] nf_nat_rtsp v0.6.21 loading

[   14.900000] Initializing USB Mass Storagedriver...

[   14.900000] usbcore: registered new interfacedriver usb-storage

[   14.910000] USB Mass Storage supportregistered.

[   14.990000] fuse init (API version 7.18)

[   15.130000] mmc_spi: Unknown symbolmmc_spi_get_pdata (err 0)

[   15.130000] mmc_spi: Unknown symbolmmc_spi_put_pdata (err 0)

 

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

[   19.190000] device eth1 entered promiscuousmode

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

[   19.210000] ADDRCONF(NETDEV_UP): eth0: linkis not ready

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

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

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

[   19.800000] ADDRCONF(NETDEV_CHANGE): eth1:link becomes ready

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

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

[   23.090000] osif_wrap_devt_detach:255 osifwrap dev table detached

[   23.100000] osif_wrap_detach:312 osif wrapdetached

[   23.120000] SPECTRAL : Module removed(spectral = 87884000)

[   23.120000] Green-AP : Green-AP : Detached

[   23.120000]

[   23.160000] Removing athdebug proc file

[   23.160000] ath_dev: driver unloaded

[   23.180000] ath_tx99: driver unloaded

[   23.200000] ath_spectral: driver unloaded

[   23.200000] ath_dfs: driver unloaded

[   23.230000] ath_rate_atheros: driver unloaded

[   23.260000] ath_hal: driver unloaded

[   33.660000] 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進入管理頁面:


End!!!!




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章