Chinaunix首页 | 论坛 | 博客
  • 博客访问: 554500
  • 博文数量: 116
  • 博客积分: 2063
  • 博客等级: 大尉
  • 技术积分: 1174
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-26 16:44
个人简介

none

文章分类

全部博文(116)

文章存档

2023年(2)

2020年(3)

2019年(4)

2018年(7)

2017年(6)

2016年(17)

2015年(13)

2014年(19)

2013年(6)

2012年(13)

2011年(5)

2010年(11)

2008年(10)

分类: 信息化

2014-11-20 15:23:36



/*********************************************************************************  *      Copyright:  (C) 2014 KEWELL  *  *       Filename:  cmd_guide_LHGV21.c  *    Description:  This file   *   *        Version:  1.0.0(11/04/2014~)  *         Author:  KEWELL   *      ChangeLog:  1, Release initial version on "11/04/2014 11:17:28 AM"  *                  2,  *   * This program is free software; you can redistribute it and/or modify  * it under the terms of the GNU General Public License version 2 as  * published by the Free Software Foundation.  *  ********************************************************************************/ etting ...
RomBOOT
>CD: 256 MiB In:    serial Out:   serial Err:   serial Net:   macb0
Hit any key to stop autoboot: 0 U-Boot>    #######请新手或不熟悉SAM9260的用户先不要操作UBOOT里的东西,不小心变成砖头后对新手而言还是很麻烦的
U-Boot>    #######请新手或不熟悉SAM9260的用户先不要操作UBOOT里的东西,不小心变成砖头后对新手而言还是很麻烦的
U-Boot>    #######请新手或不熟悉SAM9260的用户先不要操作UBOOT里的东西,不小心变成砖头后对新手而言还是很麻烦的
U-Boot>
U-Boot> ver

U-Boot 2012.07 (Sep 14 2012 - 10:37:21)
arm-linux-gcc (Buildroot 2012.08) 4.5.4 GNU ld (GNU Binutils) 2.21.1 U-Boot>
U-Boot> pri
baudrate=115200 bootargs=loglevel=7 console=ttyS0,115200 initrd=0x21100000,5242880 root=/dev/ram0 rw time
bootcmd=nand read 20000000 a0000 200000;nand read 21100000 5a0000 200000;bootm 20000000 bootdelay=3 ethact=macb0
ethaddr=00:00:21:0c:2d:1a
fileaddr=21100000 filesize=168B24
ipaddr=192.168.200.132 serverip=192.168.200.138 stderr=serial stdin=serial stdout=serial

Environment size: 394/131067 bytes
U-Boot> tftp 20000000 2.6.22-LHG-uImage_2014;tftp 21100000 2.6.22-LHG_rootfs_2014
dm9000 i/o: 0x50000000, id: 0x90000a46 DM9000: running in 16 bit mode MAC: 00:00:21:0c:2d:1a
TFTP from server 192.168.200.138; our IP address is 192.168.200.132 Filename '2.6.22-LHG-uImage_2014'.
Load address: 0x20000000 Loading: T #################################################################
         #####################################
done
Bytes transferred = 1486580 (16aef4 hex)
dm9000 i/o: 0x50000000, id: 0x90000a46 DM9000: running in 16 bit mode MAC: 00:00:21:0c:2d:1a
TFTP from server 192.168.200.138; our IP address is 192.168.200.132 Filename '2.6.22-LHG_rootfs_2014'.
Load address: 0x21100000 Loading: T #################################################################
         #################################################################
         #############################
done
Bytes transferred = 2332049 (239591 hex)
U-Boot>    #######请新手或不熟悉SAM9260的用户先不要操作UBOOT里的东西,不小心变成砖头后对新手而言还是很麻烦的
U-Boot>    #######请新手或不熟悉SAM9260的用户先不要操作UBOOT里的东西,不小心变成砖头后对新手而言还是很麻烦的
U-Boot>    #######请新手或不熟悉SAM9260的用户先不要操作UBOOT里的东西,不小心变成砖头后对新手而言还是很麻烦的
U-Boot> nand erase a0000 a00000;nand write 20000000 a0000 200000;nand write 21100000 5a0000 300000 NAND read: device 0 offset 0xa0000, size 0x200000 2097152 bytes read: OK

NAND read: device 0 offset 0x5a0000, size 0x200000 2097152 bytes read: OK
## Booting kernel from Legacy Image at 20000000 ...
   Image Name:   Linux-2.6.22 Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size: 1486516 Bytes = 1.4 MiB
   Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Linux version 2.6.22 (root@localhost.localdomain) (gcc version 4.5.4 (Buildroot 2012.08) ) #1 Tue Aug 26 16:31:49 CST 2014 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz CPU0: D VIVT write-back cache CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists.  Total pages: 16256 Kernel command line: loglevel=7 console=ttyS0,115200 initrd=0x21100000,5242880 root=/dev/ram0 rw time
[ 0.000000] AT91: 96 gpio irqs in 3 banks
[ 0.000000] PID hash table entries: 256 (order: 8, 1024 bytes)
[ 0.000000] Console: colour dummy device 80x30
[ 0.060000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.070000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.090000] Memory: 64MB = 64MB total
[ 0.090000] Memory: 56716KB available (2664K code, 240K data, 116K init)
[ 0.300000] Mount-cache hash table entries: 512 [ 0.300000] CPU: Testing write buffer coherency: ok
[ 0.310000] NET: Registered protocol family 16 [ 0.340000] SCSI subsystem initialized
[ 0.350000] usbcore: registered new interface driver usbfs
[ 0.350000] usbcore: registered new interface driver hub
[ 0.360000] usbcore: registered new device driver usb
[ 0.370000] NET: Registered protocol family 2 [ 0.470000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.470000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.480000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.490000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.490000] TCP reno registered
[ 0.600000] Freeing initrd memory: 5120K
[ 0.600000] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.610000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.620000] io scheduler noop registered
[ 0.620000] io scheduler anticipatory registered (default)
[ 0.650000] atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
[ 0.650000] atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
[ 0.660000] atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
[ 0.670000] atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = 8) is a ATMEL_SERIAL
[ 0.680000] atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
[ 0.690000] atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
[ 0.700000] RAMDISK driver initialized: 1 RAM disks of 16384K size 1024 blocksize
[ 0.710000] loop: module loaded
[ 0.710000] usbcore: registered new interface driver ub
[ 0.720000] PPP generic driver version 2.4.2 [ 0.720000] PPP Deflate Compression module registered
[ 0.730000] PPP BSD Compression module registered
[ 0.730000] PPP MPPE Compression module registered
[ 0.740000] tun: Universal TUN/TAP device driver, 1.6 [ 0.740000] tun: (C) 1999-2004 Max Krasnyansky 
[ 0.750000] dm9000 Ethernet Driver
[ 1.270000] eth%d: Invalid ethernet MAC address.  Please set using ifconfig
[ 1.280000] eth0: dm9000 at c4856000,c485e044 IRQ 111 MAC: 00:00:00:00:00:00 [ 1.280000] macb macb: detected PHY at address 0 (ID 0181:b8a0)
[ 1.290000] eth1: Atmel MACB at 0xfffc4000 irq 21 (00:00:00:12:3c:a9)
[ 1.300000] Loading iSCSI transport class v2.0-724. [ 1.310000] block2mtd: version $Revision: 1.30 $
[ 1.310000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
[ 1.320000] Scanning device for bad blocks
[ 1.400000] Creating 9 MTD partitions on "NAND 256MiB 3,3V 8-bit":
[ 1.410000] 0x00000000-0x00020000 : "bootstrap - 128KB" [ 1.420000] 0x00020000-0x00060000 : "uboot - 256KB" [ 1.420000] 0x00060000-0x00080000 : "uboot env - 128KB" [ 1.430000] 0x00080000-0x000a0000 : "uboot env swap - 128KB" [ 1.440000] 0x000a0000-0x005a0000 : "kernel - 5MB" [ 1.440000] 0x005a0000-0x00aa0000 : "fs - 5MB" [ 1.450000] 0x00aa0000-0x01ea0000 : "apps - 20MB" [ 1.460000] 0x01ea0000-0x01fa0000 : "info - 1MB" [ 1.460000] 0x01fa0000-0x0ffa0000 : "data - 224MB" [ 1.470000] at91_ohci at91_ohci: AT91 OHCI
[ 1.480000] at91_ohci at91_ohci: new USB bus registered, assigned bus number 1 [ 1.490000] at91_ohci at91_ohci: irq 20, io mem 0x00500000 [ 1.550000] drivers/usb/core/hub.c ##idVendor = 0x0000,idProduct = 0x0000 [ 1.560000] usb usb1: configuration #1 chosen from 1 choice
[ 1.560000] hub 1-0:1.0: USB hub found
[ 1.570000] hub 1-0:1.0: 2 ports detected
[ 1.680000] Initializing USB Mass Storage driver...
[ 1.680000] usbcore: registered new interface driver usb-storage
[ 1.690000] USB Mass Storage support registered.
[ 1.690000] usbcore: registered new interface driver usbserial
[ 1.700000] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 1.710000] drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[ 1.710000] usbcore: registered new interface driver option
[ 1.720000] drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1 [ 1.730000] mice: PS/2 mouse device common for all mice
[ 1.740000] Netfilter messages via NETLINK v0.30.
[ 1.740000] nf_conntrack version 0.5.0 (512 buckets, 4096 max)
[ 1.750000] ctnetlink v0.93: registering with nfnetlink.
[ 1.750000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.760000] ClusterIP Version 0.8 loaded successfully
[ 1.760000] arp_tables: (C) 2002 David S. Miller
[ 1.770000] IPVS: Registered protocols (TCP, UDP, AH, ESP)
[ 1.770000] IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
[ 1.780000] IPVS: ipvs loaded.
[ 1.790000] IPVS: [rr] scheduler registered.
[ 1.790000] IPVS: [wrr] scheduler registered.
[ 1.790000] IPVS: [lc] scheduler registered.
[ 1.800000] IPVS: [wlc] scheduler registered.
[ 1.800000] IPVS: [lblc] scheduler registered.
[ 1.810000] IPVS: [lblcr] scheduler registered.
[ 1.810000] IPVS: [dh] scheduler registered.
[ 1.820000] IPVS: [sh] scheduler registered.
[ 1.820000] IPVS: [sed] scheduler registered.
[ 1.820000] IPVS: [nq] scheduler registered.
[ 1.830000] IPVS: ftp: loaded support on port[0] = 21 [ 1.830000] TCP cubic registered
[ 1.840000] NET: Registered protocol family 1 [ 1.840000] NET: Registered protocol family 17 [ 1.850000] Bridge firewalling registered
[ 1.850000] Ebtables v2.0 registered
[ 1.850000] ebt_ulog: not logging via ulog since somebody else already registered for PF_BRIDGE
[ 1.860000] ieee80211: 802.11 data/management/control stack, git-1.1.13 [ 1.870000] ieee80211: Copyright (C) 2004-2005 Intel Corporation 
[ 1.880000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.890000] RAMDISK: Compressed image found at block 0 [ 4.760000] VFS: Mounted root (ext2 filesystem).
[ 4.770000] Freeing init memory: 116K WARNING: Unauthorized access to this system is forbidden and will be prosecuted by law. By accessing this system, you agree that your actions may be monitored if unauthorized usage is suspected.

Hello 2014,Aug

login: root  ##登录名为root 无密码
~ >:
~ >: ps
  PID USER       VSZ STAT COMMAND 1 root 1236 S    init 2 root 0 SW<  [kthreadd] 3 root 0 SWN  [ksoftirqd/0] 4 root 0 SW<  [events/0] 5 root 0 SW<  [khelper] 54 root 0 SW<  [kblockd/0] 57 root 0 SW<  [khubd] 70 root 0 SW   [pdflush] 71 root 0 SW   [pdflush] 72 root 0 SW<  [kswapd0] 73 root 0 SW<  [aio/0] 132 root 0 SW<  [scsi_tgtd/0] 135 root 0 SW<  [mtdblockd] 178 root 0 SW<  [kmmcd] 185 root 700 S <  /usr/sbin/udevd --daemon 216 root 1240 S    -sh 217 root 1220 S    /sbin/syslogd -n 218 root 1216 S    /sbin/klogd -n 240 root 1224 R    ps
~ >:
~ >: lsmod
Module                  Size  Used by    Not tainted
~ >:
~ >: cd /usr/drivers/
/usr/drivers >:
/usr/drivers >: ls
L350BeepDrv.ko    L350LedDrv.ko     L350Rs485Drv.ko   rt2070ap.ko
L350GTM900Drv.ko  L350ModemDrv.ko   install           uc864e_usb.ko
/usr/drivers >: insmod rt2070ap.ko  ##加载WIFI驱动
[ 28.510000] Will set PB22 as lowlevel by KEWELL
[ 28.520000] rtusb init --->
[ 28.820000] usb 1-1: new full speed USB device using at91_ohci and address 2 [ 29.020000] drivers/usb/core/hub.c ##idVendor = 0x148f,idProduct = 0x2070 [ 29.040000] usb 1-1: configuration #1 chosen from 1 choice
[ 29.130000]
[ 29.130000]
[ 29.130000] === pAd = c4894000, size = 449360 ===
[ 29.130000]
[ 29.140000] <-- RTMPAllocAdapterBlock, Status=0 [ 29.150000] usbcore: registered new interface driver rt2870
/usr/drivers >:
/usr/drivers >: insmod  L350GTM900Drv.ko  ##加载GPRS驱动
/usr/drivers >:
/usr/drivers >: lsmod
Module                  Size  Used by    Not tainted
L350GTM900Drv 5508 0 rt2070ap 819548 0 /usr/drivers >: ifconfig  -a   ##加载WIFI驱动成功后可以看到ra0设备
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST  MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:111 Base address:0x6000 eth1      Link encap:Ethernet  HWaddr 00:00:00:12:3C:A9
          BROADCAST MULTICAST  MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:21 Base address:0x4000 lo        Link encap:Local Loopback
          LOOPBACK  MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ra0       Link encap:Ethernet  HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST  MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

/usr/drivers >:
/usr/drivers >: rmmod  rt2070ap    ##卸载WIFI驱动
[ 48.060000] usbcore: deregistering interface driver rt2870
[ 48.060000] rtusb_disconnect: unregister usbnet usb-at91-1 [ 48.070000] usb 1-1: USB disconnect, address 2 [ 48.070000] rtusb_disconnect: unregister_netdev(), dev->name=ra0!
[ 48.150000]  RTUSB disconnect successfully
[ 48.180000] <--- rtusb exit
/usr/drivers >:
/usr/drivers >:
/usr/drivers >: ifconfig  -a
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00 BROADCAST MULTICAST  MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:111 Base address:0x6000 eth1      Link encap:Ethernet  HWaddr 00:00:00:12:3C:A9
          BROADCAST MULTICAST  MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:21 Base address:0x4000 lo        Link encap:Local Loopback
          LOOPBACK  MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

/usr/drivers >:
/usr/drivers >: lsmod
Module                  Size  Used by    Not tainted
L350GTM900Drv 5508 0 /usr/drivers >:
/usr/drivers >: comport -ioctl /dev/gprs 1 1 ##对GPRS模块执行开机命令
ioctl (/dev/gprs, 1, 1) returned 0 /usr/drivers >:
/usr/drivers >: comport -d /dev/ttyS2   ##对GPRS模块发送测试命令
at

OK
ati

HUAWEI
GTM900


OK
at+gmi

HUAWEI

OK
at+gmm

GTM900B

OK
/usr/drivers >:
/usr/drivers >:
/usr/drivers >:

阅读(698) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~