硬件硬件方案是:
CPU:AR9331 400MHZ
内存:64M DDR1代
FLASH:16MBwinbond25Q128BVFG
板载一个8G的缓存(其实就是一个U盘)
2. 启动信息
点击(此处)折叠或打开
- U-Boot 1.1.4 (Apr 8 2013 - 23:57:04)
- AP121 (ar9331) U-boot
- DRAM: 64 MB
- Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
- flash size 16777216, sector count = 256
- Flash: 16 MB
- Using default environment
- In: serial
- Out: serial
- Err: serial
- Net: ag7240_enet_initialize...
- No valid address in Flash. Using fixed address
- No valid address in Flash. Using fixed address
- ag7240 gmac: cfg1 0x5 cfg2 0x7114
- eth0: 00:de:ad:be:ef:32
- eth0 up
- ag7240 gmac: cfg1 0xf cfg2 0x7214
- eth1: 00:de:ad:be:ef:32
- athrs26_reg_init_lan
- ATHRS26: resetting s26
- ATHRS26: s26 reset done
- eth1 up
- eth0, eth1
- Autobooting in 2 seconds
- ## Booting image at 9f020000 ...
- Image Name: tw150v1-Linux-3.3.8
- Created: 2013-04-09 12:23:54 UTC
- Image Type: MIPS Linux Kernel Image (lzma compressed)
- Data Size: 982813 Bytes = 959.8 kB
- Load Address: 80060000
- Entry Point: 80060000
- Verifying Checksum at 0x9f020040 ...OK
- Uncompressing Kernel Image ... OK
- Starting kernel ...
- [ 0.000000] Linux version 3.3.8 (kai.li@WEB-9-1-43) (gcc version 4.6.4 20121001 (prerelease) (Linaro GCC 4.6-2012.10) ) #1 Tue Apr 9 00:09:58 CST 2013
- [ 0.000000] bootconsole [early0] enabled
- [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
- [ 0.000000] SoC: Atheros AR9330 rev 1
- [ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
- [ 0.000000] Determined physical RAM map:
- [ 0.000000] memory: 04000000 @ 00000000 (usable)
- [ 0.000000] Initrd not found or empty - disabling initrd
- [ 0.000000] Zone PFN ranges:
- [ 0.000000] Normal 0x00000000 -> 0x00004000
- [ 0.000000] Movable zone start PFN for each node
- [ 0.000000] Early memory PFN ranges
- [ 0.000000] 0: 0x00000000 -> 0x00004000
- [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
- [ 0.000000] Kernel command line: board=HC6361 console=ttyATH0,115200 mtdparts=spi0.0:64k(u-boot),64k(bdinfo)ro,1280k(kernel),14848k(rootfs),64k(nvram),64k(art)ro,16128k@0x20000(firmware) rootfstype=squashfs,jffs2 noinitrd
- [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
- [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
- [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 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: 61516k/65536k available (2106k kernel code, 4020k reserved, 537k data, 176k init, 0k highmem)
- [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
- [ 0.000000] NR_IRQS:51
- [ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
- [ 0.080000] pid_max: default: 32768 minimum: 301
- [ 0.080000] Mount-cache hash table entries: 512
- [ 0.090000] NET: Registered protocol family 16
- [ 0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
- [ 0.100000] MIPS: machine is Turbo Wireless TW150V1 Board
-
[ 0.550000] bio: create slab
at 0 - [ 0.560000] Switching to clocksource MIPS
- [ 0.560000] NET: Registered protocol family 2
- [ 0.570000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
- [ 0.570000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
- [ 0.570000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
- [ 0.580000] TCP: Hash tables configured (established 2048 bind 2048)
- [ 0.590000] TCP reno registered
- [ 0.590000] UDP hash table entries: 256 (order: 0, 4096 bytes)
- [ 0.600000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
- [ 0.600000] NET: Registered protocol family 1
- [ 0.630000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
- [ 0.630000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
- [ 0.640000] msgmni has been set to 120
- [ 0.640000] io scheduler noop registered
- [ 0.650000] io scheduler deadline registered (default)
- [ 0.650000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
- [ 0.660000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
- [ 0.660000] console [ttyATH0] enabled, bootconsole disabled
- [ 0.660000] console [ttyATH0] enabled, bootconsole disabled
- [ 0.680000] m25p80 spi0.0: found w25q128, expected m25p80
- [ 0.680000] m25p80 spi0.0: w25q128 (16384 Kbytes)
- [ 0.690000] 7 cmdlinepart partitions found on MTD device spi0.0
- [ 0.690000] Creating 7 MTD partitions on "spi0.0":
- [ 0.700000] 0x000000000000-0x000000010000 : "u-boot"
- [ 0.710000] 0x000000010000-0x000000020000 : "bdinfo"
- [ 0.710000] 0x000000020000-0x000000160000 : "kernel"
- [ 0.720000] 0x000000160000-0x000000fe0000 : "rootfs"
- [ 0.720000] mtd: partition "rootfs" set to be root filesystem
- [ 0.730000] mtd: partition "rootfs_data" created automatically, ofs=6D0000, len=910000
- [ 0.730000] 0x0000006d0000-0x000000fe0000 : "rootfs_data"
- [ 0.740000] 0x000000fe0000-0x000000ff0000 : "nvram"
- [ 0.750000] 0x000000ff0000-0x000001000000 : "art"
- [ 0.750000] 0x000000020000-0x000000fe0000 : "firmware"
- [ 0.760000] ar933x_spiop_ioc: init
- [ 0.780000] ag71xx_mdio: probed
- [ 0.780000] eth0: Atheros AG71xx at 0xba000000, irq 5
- [ 1.340000] eth0: Found an AR7240/AR9330 built-in switch
- [ 2.370000] eth1: Atheros AG71xx at 0xb9000000, irq 4
- [ 2.920000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
- [ 2.930000] TCP cubic registered
- [ 2.930000] NET: Registered protocol family 17
- [ 2.940000] 8021q: 802.1Q VLAN Support v1.8
- [ 2.940000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
- [ 2.950000] Freeing unused kernel memory: 176k freed
- - preinit -
- Press the [f] key and hit [enter] to enter failsafe mode
- - regular preinit -
- [ 10.420000] JFFS2 notice: (422) jffs2_build_xattr_subsystem: complete building xattr subsystem, 25 of xdatum (0 unchecked, 25 orphan) and 55 of xref (0 dead, 55 orphan) found.
- switching to jffs2
- - init -
- [ 11.690000] NET: Registered protocol family 10
- [ 12.040000] SCSI subsystem initialized
- [ 12.220000] usbcore: registered new interface driver usbfs
- [ 12.220000] usbcore: registered new interface driver hub
- [ 12.230000] usbcore: registered new device driver usb
- [ 12.620000] ath_hal: 0.9.17.1 (AR9330)
- [ 12.680000] hcwifi 1.1.1.553n
- [ 13.110000] loop: module loaded
- [ 13.320000] PPP generic driver version 2.4.2
- [ 13.370000] IPv4 over IPv4 tunneling driver
- [ 13.400000] IPv6 over IPv4 tunneling driver
- [ 13.870000] ip_tables: (C) 2000-2006 Netfilter Core Team
- [ 14.140000] NET: Registered protocol family 24
- [ 14.350000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- [ 14.350000] ehci-platform ehci-platform: Generic Platform EHCI Controller
- [ 14.360000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
- [ 14.400000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
- [ 14.420000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
- [ 14.420000] hub 1-0:1.0: USB hub found
- [ 14.420000] hub 1-0:1.0: 1 port detected
- [ 14.550000] nf_conntrack version 0.5.0 (963 buckets, 3852 max)
- [ 14.900000] usb 1-1: new high-speed USB device number 2 using ehci-platform
- [ 15.600000] xt_time: kernel timezone is -0000
- [ 16.240000] Initializing USB Mass Storage driver...
- [ 16.240000] scsi0 : usb-storage 1-1:1.0
- [ 16.250000] usbcore: registered new interface driver usb-storage
- [ 16.250000] USB Mass Storage support registered.
- [ 17.250000] scsi 0:0:0:0: Direct-Access EAGET F30 1.00 PQ: 0 ANSI: 5
- [ 17.260000] sd 0:0:0:0: [sda] 15155200 512-byte logical blocks: (7.75 GB/7.22 GiB)
- [ 17.260000] sd 0:0:0:0: [sda] Write Protect is off
- [ 17.270000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
- [ 17.570000] sda: unknown partition table
- [ 17.580000] sd 0:0:0:0: [sda] Attached SCSI removable disk
- [ 21.490000] ADDRCONF(NETDEV_UP): eth0: link is not ready
- [ 22.550000] ADDRCONF(NETDEV_UP): eth0: link is not ready
- [ 22.550000] device eth0 entered promiscuous mode
- [ 22.570000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
- [ 22.600000] ADDRCONF(NETDEV_UP): eth1: link is not ready
- [ 26.020000] device wlan0 entered promiscuous mode
- [ 26.030000] br-lan: port 2(wlan0) entered forwarding state
- [ 26.030000] br-lan: port 2(wlan0) entered forwarding state
- [ 26.040000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
- [ 26.510000] core_vap_start: wlan0 start
- [ 26.540000] ath_paprd_cal: PAPRD done channel 2412
- [ 28.030000] br-lan: port 2(wlan0) entered forwarding state
- [ 43.170000] EXT4-fs (sda): mounting ext3 file system using the ext4 subsystem
- [ 43.190000] EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: (null)
- [ 43.500000] Adding 65532k swap on /tmp/sda/.swap. Priority:-1 extents:6 across:69696k
- Apr 13 10:09:48 crond[1533]: crond: crond (busybox 1.19.4) started, log level 5
3. UI很新颖, 我的估计, 找个Web Server, 比如thttpd或者lightttpd, 页面实现应该没问题, 和硬件参数的交互就得靠CGI来实现了.
之前用thttpd成功移植过一个, 用CGI实现的和底层硬件的交互, 界面大体如下
1. 2.