` 根据下图我们知道WaRP7有一个自带WIFI模块。接过多方查找终于找到了WIFI的名字LBEE5KL1DX。
下面是尝试如何加载驱动。最简单的方式是按照文档User_Guide_Manual_v1-3.pdf说明更换新的Yocto项目。
- $ mkdir ~/bin
- $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
- $ chmod a+x ~/bin/repo
- $ PATH=${PATH}:~/bin
- $ mkdir fsl-community-bsp
- $ cd fsl-community-bsp
- $ repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b krogoth
- $ repo sync
复制代码
经过差不多8个小时下载,编译,然后 开发板将新的系统固件跑起来。从网上找到一个使能WIFI的脚本程序,https://github.com/WaRP7/warp7-unit-test/blob/master/unit_test/Wifi_BCM4343_enable.sh
- #!/bin/sh
- #WaRP7 Wi-Fi Enablement Script
- FILE=/lib/modules/$(uname -r)/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko
- if [ -f $FILE ];
- then
- modprobe bcmdhd
- ifconfig wlan0 up
- echo "Enter the network name (SSID)"
- read SSID
- echo "Type the passphrase for the network and hit enter"
- read PSW
- wpa_passphrase $SSID $PSW > /etc/wpa_supplicant.conf
- cat /etc/wpasupplicant.conf
- wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211 &
- wait
- udhcpc -i wlan0
- echo "You can now use the ping command to test your connection"
- else
- echo "bcmdhd.ko module file not found"
- fi
复制代码
在开发板上运行此脚本
- U-Boot 2016.07+fslc+ge6b4241 (Aug 05 2017 - 16:12:34 +0800)
- CPU: Freescale i.MX7S rev1.2 at 792MHz
- CPU: Extended Commercial temperature grade (-20C to 105C) at 36C
- Reset cause: POR
- Board: WARP7
- DRAM: 512 MiB
- MMC: FSL_SDHC: 0
- *** Warning - bad CRC, using default environment
- In: serial
- Out: serial
- Err: serial
- Net: CPU Net Initialization Failed
- No ethernet found.
- Hit any key to stop autoboot: 0
- switch to partitions #0, OK
- mmc0(part 0) is current device
- switch to partitions #0, OK
- mmc0(part 0) is current device
- reading boot.scr
- ** Unable to read file boot.scr **
- reading zImage
- 6270216 bytes read in 94 ms (63.6 MiB/s)
- Booting from mmc ...
- reading imx7s-warp.dtb
- 37585 bytes read in 12 ms (3 MiB/s)
- Kernel image @ 0x80800000 [ 0x000000 - 0x5fad08 ]
- ## Flattened Device Tree blob at 83000000
- Booting using the fdt blob at 0x83000000
- Using Device Tree in place at 83000000, end 8300c2d0
- Starting kernel ...
- Booting Linux on physical CPU 0x0
- Linux version 4.1.32-4.1-1.0.x-imx-warp7+g511f37a (gaozh@T430) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Sat Aug 5 12:23:21 CST 2017
- CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
- CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
- Machine model: Warp i.MX7S Board
- Reserved memory: created CMA memory pool at 0x8c000000, size 320 MiB
- Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
- Memory policy: Data cache writealloc
- PERCPU: Embedded 12 pages/cpu @8bb23000 s16908 r8192 d24052 u49152
- Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
- Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw
- PID hash table entries: 2048 (order: 1, 8192 bytes)
- Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
- Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
- Memory: 179216K/524288K available (7816K kernel code, 455K rwdata, 2788K rodata, 424K init, 473K bss, 17392K reserved, 327680K cma-reserved, 0K highmem)
- Virtual kernel memory layout:
- vector : 0xffff0000 - 0xffff1000 ( 4 kB)
- fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
- vmalloc : 0xa0800000 - 0xff000000 (1512 MB)
- lowmem : 0x80000000 - 0xa0000000 ( 512 MB)
- pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
- modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
- .text : 0x80008000 - 0x80a634a4 (10606 kB)
- .init : 0x80a64000 - 0x80ace000 ( 424 kB)
- .data : 0x80ace000 - 0x80b3ffe0 ( 456 kB)
- .bss : 0x80b42000 - 0x80bb8640 ( 474 kB)
- SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
- Preemptible hierarchical RCU implementation.
- Additional per-CPU info printed with stalls.
- RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
- RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
- NR_IRQS:16 nr_irqs:16 16
- Architected cp15 timer(s) running at 8.00MHz (phys).
- clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
- sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
- Switching to timer-based delay loop, resolution 125ns
- mxc_clocksource_init 3000000
- Ignoring duplicate/late registration of read_current_timer delay
- clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
- Console: colour dummy device 80x30
- Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=80000)
- pid_max: default: 32768 minimum: 301
- Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
- Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
- CPU: Testing write buffer coherency: ok
- /cpus/cpu@0 missing clock-frequency property
- /cpus/cpu@1 missing clock-frequency property
- CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
- Setting up static identity map for 0x80008280 - 0x800082d8
- CPU1: failed to come online
- Brought up 1 CPUs
- SMP: Total of 1 processors activated (16.00 BogoMIPS).
- CPU: All CPU(s) started in SVC mode.
- devtmpfs: initialized
- device-tree: Duplicate name in lcdif@30730000, renamed to "display#1"
- VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
- clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
- pinctrl core: initialized pinctrl subsystem
- NET: Registered protocol family 16
- DMA: preallocated 256 KiB pool for atomic coherent allocations
- cpuidle: using governor ladder
- cpuidle: using governor menu
- DDR type is LPDDR3!
- hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
- hw-breakpoint: maximum watchpoint size is 8 bytes.
- imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
- imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
- gpio-reset mipi-dsi-reset: reset-gpios property missing, or not a single gpio
- gpio-reset: probe of mipi-dsi-reset failed with error -22
- MU is ready for cross core communication!
- mxs-dma 33000000.dma-apbh: initialized
- SCSI subsystem initialized
- u***core: registered new interface driver u***fs
- u***core: registered new interface driver hub
- u***core: registered new device driver u***
- 30800000.aips-bus:u***phy_nop1 supply vcc not found, using dummy regulator
- 30800000.aips-bus:u***phy_nop2 supply vcc not found, using dummy regulator
- i2c i2c-0: IMX I2C adapter registered
- i2c i2c-0: can't use DMA
- i2c i2c-1: IMX I2C adapter registered
- i2c i2c-1: can't use DMA
- i2c i2c-2: IMX I2C adapter registered
- i2c i2c-2: can't use DMA
- i2c i2c-3: IMX I2C adapter registered
- i2c i2c-3: can't use DMA
- Linux video capture interface: v2.00
- pps_core: LinuxPPS API ver. 1 registered
- pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
- PTP clock support registered
- MIPI CSI2 driver module loaded
- Advanced Linux Sound Architecture Driver Initialized.
- Bluetooth: Core ver 2.20
- NET: Registered protocol family 31
- Bluetooth: HCI device and connection manager initialized
- Bluetooth: HCI socket layer initialized
- Bluetooth: L2CAP socket layer initialized
- Bluetooth: SCO socket layer initialized
- Switched to clocksource arch_sys_counter
- NET: Registered protocol family 2
- TCP established hash table entries: 4096 (order: 2, 16384 bytes)
- TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
- TCP: Hash tables configured (established 4096 bind 4096)
- UDP hash table entries: 256 (order: 1, 8192 bytes)
- UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
- NET: Registered protocol family 1
- RPC: Registered named UNIX socket transport module.
- RPC: Registered udp transport module.
- RPC: Registered tcp transport module.
- RPC: Registered tcp NFSv4.1 backchannel transport module.
- imx rpmsg driver is registered.
- Bus freq driver module loaded
- futex hash table entries: 512 (order: 3, 32768 bytes)
- VFS: Disk quotas dquot_6.6.0
- VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
- NFS: Registering the id_resolver key type
- Key type id_resolver registered
- Key type id_legacy registered
- jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
- fuse init (API version 7.23)
- io scheduler noop registered
- io scheduler deadline registered
- io scheduler cfq registered (default)
- backlight supply power not found, using dummy regulator
- MIPI DSI driver module loaded
- 30760000.mipi-dsi supply disp-power-on not found, using dummy regulator
- mxc_mipi_dsi_samsung 30760000.mipi-dsi: i.MX MIPI DSI driver probed
- MIPI DSI driver module loaded
- 30730000.lcdif supply lcd not found, using dummy regulator
- mxc_mipi_dsi_samsung 30760000.mipi-dsi: MIPI DSI dispdrv inited!
- mxsfb 30730000.lcdif: registered mxc display driver mipi_dsi_samsung
- Console: switching to colour frame buffer device 40x40
- mxsfb 30730000.lcdif: initialized
- imx-sdma 30bd0000.sdma: no event needs to be remapped
- imx-sdma 30bd0000.sdma: loaded firmware 4.2
- imx-sdma 30bd0000.sdma: initialized
- pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 1
- pfuze100-regulator 0-0008: FAB: 0, FIN: 0
- pfuze100-regulator 0-0008: pfuze3000 found.
- 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 272, base_baud = 1500000) is a IMX
- console [ttymxc0] enabled
- 30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 273, base_baud = 5000000) is a IMX
- imx sema4 driver is registered.
- [drm] Initialized drm 1.1.0 20060810
- [drm] Initialized vivante 1.0.0 20120216 on minor 0
- brd: module loaded
- loop: module loaded
- input: fxos8700 as /devices/platform/soc/30800000.aips-bus/30a50000.i2c/i2c-3/3-001e/input/input0
- fxos8700 device driver probe successfully
- input: fxas2100x as /devices/platform/soc/30800000.aips-bus/30a50000.i2c/i2c-3/3-0020/input/input1
- fxas2100x 3-0020: fxas2100x device driver probe successfully
- CAN device driver interface
- ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
- ehci-mxc: Freescale On-Chip EHCI Host driver
- u***core: registered new interface driver u***-storage
- u***core: registered new interface driver u***_ehset_test
- 30b10200.u***misc supply vbus-wakeup not found, using dummy regulator
- 30b20200.u***misc supply vbus-wakeup not found, using dummy regulator
- 30b30200.u***misc supply vbus-wakeup not found, using dummy regulator
- mousedev: PS/2 mouse device common for all mice
- input: 30370000.snvs:snvs-powerkey as /devices/platform/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input2
- [HXTP] Himax 852xES touch panel driver init
- [HXTP] himax852xes_init_async:Enter
- [HXTP] DT-himax_parse_dt:panel-coords = 0, 320, 0, 320
- [HXTP] DT-himax_parse_dt:display-coords = (320, 320)
- read mpl3115 chip id 0xc4
- input: mpl3115 as /devices/virtual/input/input3
- [HXTP] DT:gpio_rst value is not valid
- [HXTP] DT:gpio_3v3_en value is not valid
- [HXTP] DT:gpio_irq=1, gpio_rst=-2, gpio_3v3_en=-2[HXTP] DT:protocol_type=1[HXTP] DT-No vk info in DT
- mpl3115 device driver probe successfullysnvs_rtc 30370000.snvs:snvs-rtc-lp: rtc core: registered 30370000.snvs:snvs- as rtc0
- i2c /dev entries driver
- IR NEC protocol handler initialized
- IR RC5(x/sz) protocol handler initialized
- IR RC6 protocol handler initialized
- IR JVC protocol handler initialized
- IR Sony protocol handler initialized
- IR SANYO protocol handler initialized
- [HXTP][ERROR] i2c_himax_read:write reg error:reg=1
- IR Sharp protocol handler initialized
- IR MCE Keyboard/mouse protocol handler initialized
- IR XMP protocol handler initialized
- [HXTP][ERROR] Himax chip doesn NOT EXIST
- imx2-wdt 30280000.wdog: timeout 60 sec (nowayout=0)
- Bluetooth: HCI UART driver ver 2.3
- Bluetooth: HCI UART protocol H4 registered
- u***core: registered new interface driver bcm203x
- sdhci: Secure Digital Host Controller Interface driver
- sdhci: Copyright(c) Pierre Ossman
- sdhci-pltfm: SDHCI platform and OF driver helper
- /soc/aips-bus@30800000/usdhc@30b40000: voltage-ranges unspecified
- sdhci-esdhc-imx 30b40000.usdhc: assigned as wifi host
- sdhci-esdhc-imx 30b40000.usdhc: No vmmc regulator found
- sdhci-esdhc-imx 30b40000.usdhc: No vqmmc regulator found
- mmc0: SDHCI controller on 30b40000.usdhc [30b40000.usdhc] using ADMA
- /soc/aips-bus@30800000/usdhc@30b60000: voltage-ranges unspecified
- sdhci-esdhc-imx 30b60000.usdhc: No vmmc regulator found
- sdhci-esdhc-imx 30b60000.usdhc: No vqmmc regulator found
- mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
- caam 30900000.caam: Entropy delay = 3200
- caam 30900000.caam: Instantiated RNG4 SH0
- caam 30900000.caam: Instantiated RNG4 SH1
- caam 30900000.caam: device ID = 0x0a16030000000000 (Era -524)
- caam 30900000.caam: job rings = 3, qi = 0
- caam algorithms registered in /proc/crypto
- caam_jr 30901000.jr0: registering rng-caam
- platform caam_sm: blkkey_ex: 8 keystore units available
- platform caam_sm: 64-bit clear key:
- platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
- platform caam_sm: 64-bit black key:
- platform caam_sm: [0000] 48 04 83 4a eb f3 a5 5a
- platform caam_sm: [0008] 08 7f dc ee e4 b3 4a 80
- platform caam_sm: 128-bit clear key:
- platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
- platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
- platform caam_sm: 128-bit black key:
- mmc2: MAN_BKOPS_EN bit is not set
- platform caam_sm: [0000] f0 45 b7 66 60 d5 86 f9
- platform caam_sm: [0008] 19 26 cd 5c f2 a4 50 58
- platform caam_sm: 192-bit clear key:
- platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
- platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
- platform caam_sm: [0016] 10 11 12 13 14 15 16 17
- platform caam_sm: 192-bit black key:
- mmc2: mmc_select_hs200 failed, error -74
- platform caam_sm: [0000] ff fa 85 c1 da c9 9a 9b
- platform caam_sm: [0008] 41 8e b5 bf 87 91 fc 23
- platform caam_sm: [0016] 28 a2 36 71 f8 75 2a 69
- : switch to mmc2 failed
- mmc2: new MMC card at address 0001
- platform caam_sm: [0024] 35 e6 87 e3 df e2 92 87
- platform caam_sm: 256-bit clear key:
- platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
- mmcblk2: mmc2:0001 V10008 7.05 GiB
- mmcblk2boot0: mmc2:0001 V10008 partition 1 4.00 MiB
- mmcblk2boot1: mmc2:0001 V10008 partition 2 4.00 MiB
- platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
- mmcblk2rpmb: mmc2:0001 V10008 partition 3 4.00 MiB
- platform caam_sm: [0016] 10 11 12 13 14 15 16 17
- platform caam_sm: [0024] 18 19 1a 1b 1c 1d 1e 1f
- mmcblk2: p1 p2
- platform caam_sm: 256-bit black key:
- platform caam_sm: [0000] 19 c2 e8 5e 4c 10 70 6d
- platform caam_sm: [0008] da 39 53 fe c6 c4 e3 9e
- platform caam_sm: [0016] a9 76 bc db 38 61 c6 ab
- platform caam_sm: [0024] 84 53 b2 96 7e be f1 00
- platform caam_sm: 64-bit unwritten blob:
- platform caam_sm: [0000] 00 00 00 00 00 00 00 00
- platform caam_sm: [0008] 00 00 00 00 00 00 00 00
- platform caam_sm: [0016] 00 00 00 00 00 00 00 00
- platform caam_sm: [0024] 00 00 00 00 00 00 00 00
- platform caam_sm: [0032] 00 00 00 00 00 00 00 00
- platform caam_sm: [0040] 00 00 00 00 00 00 00 00
- platform caam_sm: [0048] 00 00 00 00 00 00 00 00
- platform caam_sm: [0056] 00 00 00 00 00 00 00 00
- platform caam_sm: [0064] 00 00 00 00 00 00 00 00
- platform caam_sm: [0072] 00 00 00 00 00 00 00 00
- platform caam_sm: [0080] 00 00 00 00 00 00 00 00
- platform caam_sm: [0088] 00 00 00 00 00 00 00 00
- platform caam_sm: 128-bit unwritten blob:
- platform caam_sm: [0000] 00 00 00 00 00 00 00 00
- platform caam_sm: [0008] 00 00 00 00 00 00 00 00
- platform caam_sm: [0016] 00 00 00 00 00 00 00 00
- platform caam_sm: [0024] 00 00 00 00 00 00 00 00
- platform caam_sm: [0032] 00 00 00 00 00 00 00 00
- platform caam_sm: [0040] 00 00 00 00 00 00 00 00
- platform caam_sm: [0048] 00 00 00 00 00 00 00 00
- platform caam_sm: [0056] 00 00 00 00 00 00 00 00
- platform caam_sm: [0064] 00 00 00 00 00 00 00 00
- platform caam_sm: [0072] 00 00 00 00 00 00 00 00
- platform caam_sm: [0080] 00 00 00 00 00 00 00 00
- platform caam_sm: [0088] 00 00 00 00 00 00 00 00
- platform caam_sm: 196-bit unwritten blob:
- platform caam_sm: [0000] 00 00 00 00 00 00 00 00
- platform caam_sm: [0008] 00 00 00 00 00 00 00 00
- platform caam_sm: [0016] 00 00 00 00 00 00 00 00
- platform caam_sm: [0024] 00 00 00 00 00 00 00 00
- platform caam_sm: [0032] 00 00 00 00 00 00 00 00
- platform caam_sm: [0040] 00 00 00 00 00 00 00 00
- platform caam_sm: [0048] 00 00 00 00 00 00 00 00
- platform caam_sm: [0056] 00 00 00 00 00 00 00 00
- platform caam_sm: [0064] 00 00 00 00 00 00 00 00
- platform caam_sm: [0072] 00 00 00 00 00 00 00 00
- platform caam_sm: [0080] 00 00 00 00 00 00 00 00
- platform caam_sm: [0088] 00 00 00 00 00 00 00 00
- platform caam_sm: 256-bit unwritten blob:
- platform caam_sm: [0000] 00 00 00 00 00 00 00 00
- platform caam_sm: [0008] 00 00 00 00 00 00 00 00
- platform caam_sm: [0016] 00 00 00 00 00 00 00 00
- platform caam_sm: [0024] 00 00 00 00 00 00 00 00
- platform caam_sm: [0032] 00 00 00 00 00 00 00 00
- platform caam_sm: [0040] 00 00 00 00 00 00 00 00
- platform caam_sm: [0048] 00 00 00 00 00 00 00 00
- platform caam_sm: [0056] 00 00 00 00 00 00 00 00
- platform caam_sm: [0064] 00 00 00 00 00 00 00 00
- platform caam_sm: [0072] 00 00 00 00 00 00 00 00
- platform caam_sm: [0080] 00 00 00 00 00 00 00 00
- platform caam_sm: [0088] 00 00 00 00 00 00 00 00
- platform caam_sm: 64-bit black key in blob:
- platform caam_sm: [0000] 66 b6 af 0d a2 d1 a5 39
- platform caam_sm: [0008] 05 6c d1 b7 01 3a da 64
- platform caam_sm: [0016] bf c2 7e 06 88 8e 75 84
- platform caam_sm: [0024] 71 40 ba f0 6e ad f9 78
- platform caam_sm: [0032] 46 f8 7b 35 29 38 9b c5
- platform caam_sm: [0040] 40 7b a4 04 21 aa 0b a2
- platform caam_sm: [0048] b2 1e c0 ae 39 6f 8a 23
- platform caam_sm: [0056] 00 00 00 00 00 00 00 00
- platform caam_sm: [0064] 00 00 00 00 00 00 00 00
- platform caam_sm: [0072] 00 00 00 00 00 00 00 00
- platform caam_sm: [0080] 00 00 00 00 00 00 00 00
- platform caam_sm: [0088] 00 00 00 00 00 00 00 00
- platform caam_sm: 128-bit black key in blob:
- platform caam_sm: [0000] d7 7d 11 0c 1f f9 00 97
- platform caam_sm: [0008] fd 61 9a 4f 5e 87 1e d7
- platform caam_sm: [0016] 35 20 b6 cb 41 4a 6a 13
- platform caam_sm: [0024] 36 31 89 44 9b 9e 04 1d
- platform caam_sm: [0032] 24 a1 9f f7 4d 35 7c c9
- platform caam_sm: [0040] 73 f8 9a 1b 66 e7 af 4e
- platform caam_sm: [0048] 12 6e 18 51 4c 8f d8 4b
- platform caam_sm: [0056] ab 5c 80 44 46 7f c6 93
- platform caam_sm: [0064] 00 00 00 00 00 00 00 00
- platform caam_sm: [0072] 00 00 00 00 00 00 00 00
- platform caam_sm: [0080] 00 00 00 00 00 00 00 00
- platform caam_sm: [0088] 00 00 00 00 00 00 00 00
- platform caam_sm: 192-bit black key in blob:
- platform caam_sm: [0000] 07 79 ae 4c ca 34 72 32
- platform caam_sm: [0008] e2 02 ac 59 87 56 1a 1c
- platform caam_sm: [0016] 98 25 24 aa 65 b0 68 5c
- platform caam_sm: [0024] 2b 6a 01 af 24 4a df d5
- platform caam_sm: [0032] bf 2d a5 e3 ae c9 47 cc
- platform caam_sm: [0040] 31 e4 4d c0 0e 44 f8 dc
- platform caam_sm: [0048] 91 1a ea 76 a5 cd c9 a3
- platform caam_sm: [0056] 31 a8 ab 79 2b 81 84 28
- platform caam_sm: [0064] 62 2e 1c 0c 65 56 3d 35
- platform caam_sm: [0072] 00 00 00 00 00 00 00 00
- platform caam_sm: [0080] 00 00 00 00 00 00 00 00
- platform caam_sm: [0088] 00 00 00 00 00 00 00 00
- platform caam_sm: 256-bit black key in blob:
- platform caam_sm: [0000] 99 03 df 54 5c 13 82 53
- platform caam_sm: [0008] f4 9e 1f dc 5b 50 4b 5c
- platform caam_sm: [0016] 08 39 d3 2f 37 2d f6 36
- platform caam_sm: [0024] d4 4a fe 19 4e 8f 4d 96
- platform caam_sm: [0032] fd f4 15 8f c0 12 e9 4c
- platform caam_sm: [0040] e0 8c 1a a2 97 2e 43 31
- platform caam_sm: [0048] 74 41 3c 6b 1d d2 1f 82
- platform caam_sm: [0056] cb 2b a2 c7 db 30 d3 ab
- platform caam_sm: [0064] fc 95 68 3b cf 4b 94 f1
- platform caam_sm: [0072] 1f 7b e8 aa f6 b6 06 79
- platform caam_sm: [0080] 00 00 00 00 00 00 00 00
- platform caam_sm: [0088] 00 00 00 00 00 00 00 00
- platform caam_sm: restored 64-bit black key:
- platform caam_sm: [0000] 4d 02 02 2d 5f da df df
- platform caam_sm: [0008] 05 ba 59 14 ad 11 24 4d
- platform caam_sm: restored 128-bit black key:
- platform caam_sm: [0000] f0 45 b7 66 60 d5 86 f9
- platform caam_sm: [0008] 19 26 cd 5c f2 a4 50 58
- platform caam_sm: restored 192-bit black key:
- platform caam_sm: [0000] ff fa 85 c1 da c9 9a 9b
- platform caam_sm: [0008] 41 8e b5 bf 87 91 fc 23
- platform caam_sm: [0016] ff e6 97 be 98 d0 5e 5d
- platform caam_sm: [0024] ce 5a 35 d1 5a 32 68 61
- platform caam_sm: restored 256-bit black key:
- platform caam_sm: [0000] 19 c2 e8 5e 4c 10 70 6d
- platform caam_sm: [0008] da 39 53 fe c6 c4 e3 9e
- platform caam_sm: [0016] a9 76 bc db 38 61 c6 ab
- platform caam_sm: [0024] 84 53 b2 96 7e be f1 00
- snvs-secvio 30370000.caam-snvs: can't get snvs clock
- snvs-secvio 30370000.caam-snvs: violation handlers armed - non-secure state
- u***core: registered new interface driver u***hid
- u***hid: USB HID core driver
- NET: Registered protocol family 26
- NET: Registered protocol family 10
- sit: IPv6 over IPv4 tunneling driver
- NET: Registered protocol family 17
- can: controller area network core (rev 20120528 abi 9)
- NET: Registered protocol family 29
- can: raw protocol (rev 20120528)
- can: broadcast manager protocol (rev 20120528 t)
- can: netlink gateway (rev 20130117) max_hops=1
- Bluetooth: RFCOMM TTY layer initialized
- Bluetooth: RFCOMM socket layer initialized
- Bluetooth: RFCOMM ver 1.11
- Bluetooth: BNEP (Ethernet Emulation) ver 1.3
- Bluetooth: BNEP filters: protocol multicast
- Bluetooth: BNEP socket layer initialized
- Bluetooth: HIDP (Human Interface Emulation) ver 1.2
- Bluetooth: HIDP socket layer initialized
- 8021q: 802.1Q VLAN Support v1.8
- Key type dns_resolver registered
- cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
- backlight supply power not found, using dummy regulator
- sgtl5000 3-000a: sgtl5000 revision 0x11
- sgtl5000 3-000a: Using internal LDO instead of VDDD
- asoc-simple-card sound: sgtl5000 <-> 308a0000.sai mapping ok
- backlight supply power not found, using dummy regulator
- input: gpio-keys as /devices/platform/gpio-keys/input/input4
- snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 2017-08-05 09:29:55 UTC (1501925395)
- backlight supply power not found, using dummy regulator
- wlreg_on: disabling
- ALSA device list:
- #0: imx7s-sgtl5000
- EXT3-fs (mmcblk2p2): error: couldn't mount because of unsupported optional features (240)
- EXT2-fs (mmcblk2p2): error: couldn't mount because of unsupported optional features (244)
- EXT4-fs (mmcblk2p2): recovery complete
- EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
- VFS: Mounted root (ext4 filesystem) on device 179:2.
- devtmpfs: mounted
- Freeing unused kernel memory: 424K (80a64000 - 80ace000)
- INIT: version 2.88 booting
- Starting udev
- udevd[174]: starting version 3.1.5
- random: udevd urandom read with 14 bits of entropy available
- EXT4-fs (mmcblk2p2): re-mounted. Opts: data=ordered
- bootlogd: cannot allocate pseudo tty: No such file or directory
- ALSA: Restoring mixer settings...
- INIT: Entering runlevel: 5
- Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
- Starting Xserver
- Starting system message bus: dbus.
- Starting Connection Manager
- Starting rPCBind daemon...done.
- Starting bluetooth
- bluetoothd
- Starting syslogd/klogd: done
- * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
- ...done.
- Starting Telephony daemon
- Starting Linux NFC daemon
- Running local boot scripts (/etc/rc.local).
- Poky (Yocto Project Reference Distro) 2.1.3 imx7s-warp /dev/ttymxc0
- imx7s-warp login: root
- root@imx7s-warp:~# random: nonblocking pool is initialized
- root@imx7s-warp:~# vi wifi.sh
- #!/bin/sh
- #WaRP7 Wi-Fi Enablement Script
- FILE=/lib/modules/$(uname -r)/kernel/drivers/net/wireless/bcmdhd/bcmdhd.ko
- if [ -f $FILE ];
- then
- modprobe bcmdhd
- ifconfig wlan0 up
- echo "Enter the network name (SSID)"
- read SSID
- echo "Type the passphrase for the network and hit enter"
- read PSW
- wpa_passphrase $SSID $PSW > /etc/wpa_supplicant.conf
- cat /etc/wpasupplicant.conf
- wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf -D nl80211 &
- wait
- udhcpc -i wlan0
- echo "You can now use the ping command to test your connection"
- else
- echo "bcmdhd.ko module file not found"
- fi
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- ~
- root@imx7s-warp:~# chmod +x wifi.sh
- root@imx7s-warp:~# ./wifi.sh
- dhd_module_init in
- Power-up adapter 'DHD generic adapter'
- wifi_platform_bus_enumerate device present 1
- mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
- mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
- mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
- mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
- mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
- mmc0: queuing unknown CIS tuple 0x80 (6 bytes)
- mmc0: new high speed SDIO card at address 0001
- backlight supply power not found, using dummy regulator
- backlight supply power not found, using dummy regulator
- backlight supply power not found, using dummy regulator
- F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x3
- DHD: dongle ram size is set to 524288(orig 524288) at 0x0
- wifi_platform_get_mac_addr
- CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211)
- wl_create_event_handler(): thread:wl_event_handler:1be started
- CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0x88da143c
- dhd_attach(): thread:dhd_watchdog_thread:1bf started
- dhd_attach(): thread:dhd_dpc:1c0 started
- dhd_deferred_work_init: work queue initialized
- Dongle Host Driver, version 1.141.88 (r)
- Compiled from
- Register interface [wlan0] MAC: 00:90:4c:11:22:33
- CFG80211-ERROR) wl_event_handler : was terminated
- wl_destroy_event_handler(): thread:wl_event_handler:1be terminated OK
- dhd_prot_ioctl : bus is down. we have nothing to do
- backlight supply power not found, using dummy regulator
- backlight supply power not found, using dummy regulator
- Dongle Host Driver, version 1.141.88 (r)
- Compiled from
- wl_android_wifi_on in
- mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
- mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
- mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
- mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
- F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x3
- DHD: dongle ram size is set to 524288(orig 524288) at 0x0
- dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
- dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
- wifi_platform_get_mac_addr
- Firmware up: op_mode=0x0005, MAC=60:f1:89:45:5c:4d
- Firmware version = wl0: Dec 11 2014 04:20:45 version 7.10.323.34 (r520360) FWID 01-ea2beeba
- dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
- dhd_wlfc_init: query wlfc_mode succeed, fw_caps=0x1c
- dhd_wlfc_init(): wlfc_mode=0x1c, ret=0
- CFG80211-ERROR) wl_update_wiphybands : error reading vhtmode (-23)
- wl_create_event_handler(): thread:wl_event_handler:1c4 started
- CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0x88da143c
- Enter the network name (SSID)
- CU_5CuJ
- Type the passphrase for the network and hit enter
- ydhfcnfx
- cat: can't open '/etc/wpasupplicant.conf': No such file or directory
- Successfully initialized wpa_supplicant
- rfkill: Cannot open RFKILL control device
- udhcpc (v1.24.1) started
- Sending discover...
- CFG80211-ERROR) wl_notify_scan_status : scan is not ready
- CFG80211-ERROR) wl_cfg80211_connect : Connecting with68:8a:f0:4a:64:b8 channel (1) ssid "CU_5CuJ", len (7)
- wl_bss_connect_done succeeded with 68:8a:f0:4a:64:b8
- wl_bss_connect_done succeeded with 68:8a:f0:4a:64:b8
- Sending discover...
- Sending select for 192.168.1.6...
- Lease of 192.168.1.6 obtained, lease time 86400
- /etc/udhcpc.d/50default: Adding DNS 192.168.1.1
- You can now use the ping command to test your connection
- root@imx7s-warp:~# ifconfig
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1%1995769552/128 Scope:Host
- UP LOOPBACK RUNNING MTU:65536 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)
- wlan0 Link encap:Ethernet HWaddr 60:F1:89:45:5C:4D
- inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:5 errors:0 dropped:0 overruns:0 frame:0
- TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:1474 (1.4 KiB) TX bytes:7181 (7.0 KiB)
- root@imx7s-warp:~#
复制代码
在pc上ping此ip地址,可以正常通讯。尝试ssh连接失败。
Xtrinsic MPL3115A2使用一MEMS压力传感器, 带有I2C接口, 可提供精准的电压/高度和温度数据. 这一传感器为数字化输出, 使用一个高分辨率的24位模数转换器. 内部处理省去了主控MCU系统的补偿任务. 另有多个可用户编程, 电源节约, 中断和自治数据采集模式, 包括已编程的采集周期计时器和只轮询模式. 典型电源电流为40μA每测量-秒, 用于稳定的10cm输出分辨率.具体一下特点:
内部完全补偿;可编程事件;自治数据采集;分辨率降至0.1m;32个采样FIFO;可使用FIFO记录多达12天的数据
1秒到9小时数据采集速率;I2C数字输出接口;
应用领域:消费 电子产品, 传感与仪器, 系统监控, 机器人。
同样有可以测试的脚本
- #!/bin/sh
- if [ -d "/sys/devices/virtual/input/input3/" ]; then
- Driver="input"
- echo 1 > /sys/devices/virtual/input/input3/enable
- printf '
- '
- else
- Driver="iio"
- fi;
- while [ 1 -eq 1 ] ; do
- printf 'Test for MPL3115A2 (Precision Altimeter and thermometer)
- '
- printf '
- Please check the device ID (Should be 0xC4)
- '
- printf ' Device ID
- '
- WHO_AM_I="$(i2cget -f -y 3 0x60 0x0C)"
- echo " WHO_AM_I: ${WHO_AM_I}"
- printf '
- Please lift the board up
- '
- printf "
- "
- if [ "$Driver" = "input" ]; then
- printf " Pressure
- "
- OUT_P_MSB="$(i2cget -f -y 3 0x60 0x01)"
- OUT_P_CSB="$(i2cget -f -y 3 0x60 0x02)"
- OUT_P_LSB="$(i2cget -f -y 3 0x60 0x03)"
- echo " OUT_P_MSB: ${OUT_P_MSB}"
- echo " OUT_P_CSB: ${OUT_P_CSB}"
- echo " OUT_P_LSB: ${OUT_P_LSB}"
- printf "
- Please heat the board
- "
- printf " Temperature
- "
- OUT_T_MSB="$(i2cget -f -y 3 0x60 0x04)"
- OUT_T_LSB="$(i2cget -f -y 3 0x60 0x05)"
- echo " OUT_T_MSB: ${OUT_T_MSB}"
- echo " OUT_T_LSB: ${OUT_T_LSB}"
- usleep 300000
- printf "\033[17A\033[K"
- else
- printf " Pressure
- "
- in_pressure_scale="$(cat /sys/bus/iio/devices/iio:device0/in_pressure_raw)"
- echo " in_pressure_scale: ${in_pressure_scale}"
- printf "
- Please heat the board
- "
- printf " Temperature
- "
- in_temp_raw="$(cat /sys/bus/iio/devices/iio:device0/in_temp_raw)"
- echo " in_temp_raw: ${in_temp_raw}"
- usleep 300000
- printf "\033[14A\033[K"
- fi;
- done
复制代码
在开发板上的运行结果如下:
因为驱动只暴露了最简单的sys接口,只要我们搞清楚0x60是这个模块在这个开发板的iic地址,0xc4是其设备ID。0x1,0x2,0x3,0x4,0x5分别代表什么意思即可。
`
|