iMX6UL之 OpenWRT移植与编译

选择

OpenWRT在最近的时期分裂出了LEDE出来,但还是决定使用OpenWRT,并且使用master上面新的代码来移植编译。

 

 

OpenWRT配置

本身LEDE与OpenWRT里面已经有一个imx6 Cortex-A9的arch支持,因此直接选择这个为base来做Porting与Compile较为合适。配置如下:

 

Compile Tuning

因为imx6ul是Cortex-A7,所以我们需要更改一下

选择好Target之后,我们需要做移植工作。

 

Target移植

内核移植

移植需要将内核更改一把,这个位于:

$ ls target/Linux/imx6/
base-files  config-3.14  config-4.4  files-4.4  image  Makefile  patches-4.4  profiles

 

其中config-XX是内核的.config文件,注意不要有modules,全部用builtin,否则将会出错。

然后patches-XX是对应内核的patches,我们不需要这些东西,所以不需要。

内核位置的指定

 

然后直接编译make即可。

 

编译的错误

1. DEPEND的问题

如果使用Prebuilt的toolchain可能会出现下面这个问题:

Package libnl-tiny is missing dependencies for the following libraries:
libc.so.6

那么就需要将libc.so添加到DEPENDS变量中。

2. 内核编译错误

内核比较老,但是GCC版本较高,会出现下面这个错误:

 

[html] view plain copy

  1. init/do_mounts_rd.o: In function `nop_flush_icache_all':  
  2. do_mounts_rd.c:(.text+0x0): multiple definition of `nop_flush_icache_all'  
  3. init/do_mounts.o:/ExtDisk/Projects/iMX6UL_OpenWRT/BSP_EVB/linux_3.14/init/do_mounts.c:610: first defined here  
  4. init/do_mounts_rd.o: In function `nop_flush_kern_cache_all':  
  5. do_mounts_rd.c:(.text+0x4): multiple definition of `nop_flush_kern_cache_all'  
  6. init/do_mounts.o:/ExtDisk/Projects/iMX6UL_OpenWRT/BSP_EVB/linux_3.14/init/do_mounts.c:610: first defined here  
  7. init/do_mounts_rd.o: In function `nop_flush_kern_cache_louis':  

要解决这个问题,需要在内核的CFLAG中添加-fgnu89-inline

 

这个问题可以参考:

  http://unix.stackexchange.com/questions/250804/error-while-building-linux-kernel-for-versatile-board

3.内核编译的错误2

 

[cpp] view plain copy

  1. ERROR: module '/openwrt/build_dir/target-arm_cortex-a9+neon_musl-1.1.16_eabi/linux-imx6/linux-3.14/drivers/usb/gadget/udc/udc-core.ko' is missing.  


出现问题是因为我们没有正确的配置kernel module对应的item,但是因为我们暂时不需要,所以直接将其干掉即可:

 

 

4. 并发编译出错

一般都是因为make的时候指定-jN的N过大导致。

5. 环境编译问题

编译的时候出现:

 

[plain] view plain copy

  1. Usage:   
  2.         cp [options] FILE DEST  
  3.         cp [options] FILE1 [FILE2 ...] DEST-DIR  
  4.         cp --help for options list  
  5.           
  6. cp: error: no such option: -p  
  7. make[3]: *** [/ExtDisk/Projects/WRTNode/staticSDK/build_dir/host/patch-2.7.1/.configured] Error 2  
  8. make[3]: Leaving directory `/ExtDisk/Projects/WRTNode/staticSDK/tools/patch'  
  9. make[2]: *** [tools/patch/compile] Error 2  
  10. make[2]: Leaving directory `/ExtDisk/Projects/WRTNode/staticSDK'  
  11. make[1]: *** [/ExtDisk/Projects/WRTNode/staticSDK/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyynyyyyyyyynyyyynnyyynnyynnnyyyy] Error 2  
  12. make[1]: Leaving directory `/ExtDisk/Projects/WRTNode/staticSDK'  
  13. make: *** [world] Error 2  


一般是因为安装了gcp导致的,所以remove掉gcp即可。

 

编译的结果产物

位于bin下面:

 

[plain] view plain copy

  1. $ ls bin/imx6/ -l  
  2. total 130528  
  3. -rw-r--r--  1 hexiongjun hexiongjun      617 1月  23 22:48 md5sums  
  4. -rw-r--r--  1 hexiongjun hexiongjun 23667550 1月  23 22:48 openwrt-imx6-generic-rootfs.tar.gz  
  5. -rw-r--r--  1 hexiongjun hexiongjun 10158080 1月  23 22:48 openwrt-imx6-ventana-bootfs_large.ubifs  
  6. -rw-r--r--  1 hexiongjun hexiongjun  8888320 1月  23 22:48 openwrt-imx6-ventana-bootfs_normal.ubifs  
  7. -rw-r--r--  1 hexiongjun hexiongjun  6855569 1月  23 22:48 openwrt-imx6-ventana-bootfs.tar.gz  
  8. -rw-r--r--  1 hexiongjun hexiongjun 35389440 1月  23 22:48 openwrt-imx6-ventana-squashfs-nand_large.ubi  
  9. -rw-r--r--  1 hexiongjun hexiongjun 33816576 1月  23 22:48 openwrt-imx6-ventana-squashfs-nand_normal.ubi  
  10. -rw-r--r--  1 hexiongjun hexiongjun  7431416 1月  23 22:48 openwrt-imx6-ventana-uImage  
  11. -rw-r--r--  1 hexiongjun hexiongjun  7431416 1月  23 22:48 openwrt-imx6-wandboard-uImage  
  12. drwxr-xr-x 10 hexiongjun hexiongjun     4096 1月  22 11:31 packages  
  13. -rw-r--r--  1 hexiongjun hexiongjun      977 1月  23 22:48 sha256sums  


这里面我们使用generic的rootfs即可。

 

然后我们使用zImage而不是uImage,这个位于:

build_dir/target-arm_cortex-a9+neon_musl-1.1.16_eabi/linux-imx6/zImage

dtb位于:

build_dir/target-arm_cortex-a9+neon_musl-1.1.16_eabi/linux-imx6/linux-3.14/arch/arm/boot/dts/imx6ul-14x14-evk.dtb

 

启动

将zImage与dtb拷贝到tftp directory,然后将rootfs解压到SD卡,使用SD卡作为rootfs。然后就可以使用下面这些命令来启动了。

 

[plain] view plain copy

  1. set serverip 192.168.1.100  
  2. set bootargs 'console=ttymxc0,115200 ip=192.168.1.120 root=/dev/mmcblk0p2 rootwait'  
  3. tftp 85800000 imx6ul_openwrt/imx6ul-14x14-evk.dtb; tftp 83800000 imx6ul_openwrt/zImage;bootz 83800000 - 85800000  


启动后发现buzzer不停的叫着,显然这个是因为内核dts配置有问题, 因此我们先使用默认的kernel + dtb先启动,以后再继续更改内核。启动参数为:

 

 

[plain] view plain copy

  1. set serverip 192.168.1.100  
  2. set bootargs 'console=ttymxc0,115200 ip=192.168.1.120 root=/dev/mmcblk0p2 rootwait'  
  3. run bootcmd  


启动后的log如下,放在下面为以后可能有需要的做对比和参照

 

 

[plain] view plain copy

  1. U-Boot 2015.04-14366-g8248e7c-dirty (Mar 09 2016 - 09:57:22)  
  2.   
  3. CPU:   Freescale i.MX6UL rev1.0 at 396 MHz  
  4. CPU:   Temperature 34 C  
  5. Reset cause: POR  
  6. Board: MX6UL 14x14 EVK  
  7. I2C:   ready  
  8. DRAM:  512 MiB  
  9. NAND:  256 MiB  
  10. MMC:   FSL_SDHC: 0  
  11. *** Warning - bad CRC, using default environment  
  12.   
  13. In:    serial  
  14. Out:   serial  
  15. Err:   serial  
  16. Net:   eth_init: fec_probe(bd, 0, 0) @ 02188000  
  17. fec_phy_write   
  18. FEC0eth_write_hwaddr######  ret = 0  
  19.   
  20. Warning: FEC0 using MAC address from net device  
  21.   
  22. Boot from NAND  
  23. Hit any key to stop autoboot:  0   
  24. =>   
  25. =>   
  26. => set serverip 192.168.1.100  
  27. => set bootargs 'console=ttymxc0,115200 ip=192.168.1.120 root=/dev/mmcblk0p2 rootwait'  
  28. => run bootcmd  
  29.   
  30. NAND read: device 0 offset 0x400000, size 0x1000000  
  31.  16777216 bytes read: OK  
  32.   
  33. NAND read: device 0 offset 0x1400000, size 0x80000  
  34.  524288 bytes read: OK  
  35. Kernel image @ 0x83800000 [ 0x000000 - 0x5e4030 ]  
  36. ## Flattened Device Tree blob at 85800000  
  37.    Booting using the fdt blob at 0x85800000  
  38.    Loading Device Tree to 9ef29000, end 9ef3494c ... OK  
  39.   
  40. Starting kernel ...  
  41.   
  42. Booting Linux on physical CPU 0x0  
  43. Linux version 3.14.38-svn32 (Vic@EAC)#8 SMP PREEMPT Sun Nov 6 15:56:19 CST 2016 (gcc version 4.9.1 20140710 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.07 - Linaro GCC 4.9-2014.07) )   
  44. CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d  
  45. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache  
  46. Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board  
  47. cma: CMA: reserved 320 MiB at 8a000000  
  48. Memory policy: Data cache writealloc  
  49. PERCPU: Embedded 8 pages/cpu @9fb3f000 s8320 r8192 d16256 u32768  
  50. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048  
  51. Kernel command line: console=ttymxc0,115200 ip=192.168.1.120 root=/dev/mmcblk0p2 rootwait  
  52. PID hash table entries: 2048 (order: 1, 8192 bytes)  
  53. Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)  
  54. Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)  
  55. Memory: 179696K/524288K available (7573K kernel code, 476K rwdata, 2732K rodata, 384K init, 433K bss, 344592K reserved, 0K highmem)  
  56. Virtual kernel memory layout:  
  57.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)  
  58.     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)  
  59.     vmalloc : 0xa0800000 - 0xff000000   (1512 MB)  
  60.     lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)  
  61.     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)  
  62.     modules : 0x7f000000 - 0x7fe00000   (  14 MB)  
  63.       .text : 0x80008000 - 0x80a187ac   (10306 kB)  
  64.       .init : 0x80a19000 - 0x80a79080   ( 385 kB)  
  65.       .data : 0x80a7a000 - 0x80af1000   ( 476 kB)  
  66.        .bss : 0x80af100c - 0x80b5d49c   ( 434 kB)  
  67. SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1  
  68. Preemptible hierarchical RCU implementation.  
  69.         RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.  
  70. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1  
  71. NR_IRQS:16 nr_irqs:16 16  
  72. Switching to timer-based delay loop  
  73. sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns  
  74. clocksource_of_init: no matching clocksources found  
  75. Console: colour dummy device 80x30  
  76. Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)  
  77. pid_max: default: 32768 minimum: 301  
  78. Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)  
  79. Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)  
  80. CPU: Testing write buffer coherency: ok  
  81. /cpus/cpu@0 missing clock-frequency property  
  82. CPU0: thread -1, cpu 0, socket 0, mpidr 80000000  
  83. Setting up static identity map for 0x80735800 - 0x80735858  
  84. Brought up 1 CPUs  
  85. SMP: Total of 1 processors activated (6.00 BogoMIPS).  
  86. CPU: All CPU(s) started in SVC mode.  
  87. devtmpfs: initialized  
  88. VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5  
  89. pinctrl core: initialized pinctrl subsystem  
  90. regulator-dummy: no parameters  
  91. NET: Registered protocol family 16  
  92. DMA: preallocated 256 KiB pool for atomic coherent allocations  
  93. cpuidle: using governor ladder  
  94. cpuidle: using governor menu  
  95. Use WDOG1 as reset source  
  96. syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered  
  97. vdd3p0: 2625 <--> 3400 mV at 3000 mV   
  98. cpu: 725 <--> 1450 mV at 1150 mV   
  99. vddsoc: 725 <--> 1450 mV at 1175 mV   
  100. syscon 20e4000.iomuxc-gpr: regmap [mem 0x020e4000-0x020e7fff] registered  
  101. syscon 21ac000.romcp: regmap [mem 0x021ac000-0x021affff] registered  
  102. syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered  
  103. hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.  
  104. hw-breakpoint: maximum watchpoint size is 8 bytes.  
  105. imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver  
  106. 20dc000.gpc supply pu not found, using dummy regulator  
  107. bio: create slab <bio-0> at 0  
  108. mxs-dma 1804000.dma-apbh: initialized  
  109. can-3v3: 3300 mV   
  110. VSD_3V3: 3300 mV   
  111. gpio_dvfs: 3300 mV   
  112. i2c-core: driver [max17135] using legacy suspend method  
  113. i2c-core: driver [max17135] using legacy resume method  
  114. SCSI subsystem initialized  
  115. usbcore: registered new interface driver usbfs  
  116. usbcore: registered new interface driver hub  
  117. usbcore: registered new device driver usb  
  118. i2c-gpio i2c.15: using pins 134 (SDA) and 133 (SCL)  
  119. imx-i2c 21a0000.i2c: registration failed  
  120. imx-i2c: probe of 21a0000.i2c failed with error -16  
  121. i2c i2c-1: IMX I2C adapter registered  
  122. Linux video capture interface: v2.00  
  123. pps_core: LinuxPPS API ver. 1 registered  
  124. pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>  
  125. PTP clock support registered  
  126. MIPI CSI2 driver module loaded  
  127. Advanced Linux Sound Architecture Driver Initialized.  
  128. Bluetooth: Core ver 2.18  
  129. NET: Registered protocol family 31  
  130. Bluetooth: HCI device and connection manager initialized  
  131. Bluetooth: HCI socket layer initialized  
  132. Bluetooth: L2CAP socket layer initialized  
  133. Bluetooth: SCO socket layer initialized  
  134. cfg80211: Calling CRDA to update world regulatory domain  
  135. Switched to clocksource mxc_timer1  
  136. NET: Registered protocol family 2  
  137. TCP established hash table entries: 4096 (order: 2, 16384 bytes)  
  138. TCP bind hash table entries: 4096 (order: 3, 32768 bytes)  
  139. TCP: Hash tables configured (established 4096 bind 4096)  
  140. TCP: reno registered  
  141. UDP hash table entries: 256 (order: 1, 8192 bytes)  
  142. UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)  
  143. NET: Registered protocol family 1  
  144. RPC: Registered named UNIX socket transport module.  
  145. RPC: Registered udp transport module.  
  146. RPC: Registered tcp transport module.  
  147. RPC: Registered tcp NFSv4.1 backchannel transport module.  
  148. imx rpmsg driver is registered.  
  149. Bus freq driver module loaded  
  150. futex hash table entries: 256 (order: 2, 16384 bytes)  
  151. VFS: Disk quotas dquot_6.5.2  
  152. Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)  
  153. NFS: Registering the id_resolver key type  
  154. Key type id_resolver registered  
  155. Key type id_legacy registered  
  156. jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.  
  157. fuse init (API version 7.22)  
  158. msgmni has been set to 990  
  159. io scheduler noop registered  
  160. io scheduler deadline registered  
  161. io scheduler cfq registered (default)  
  162. imx-weim 21b8000.weim: Driver registered.  
  163. backlight.8 supply power not found, using dummy regulator  
  164. MIPI DSI driver module loaded  
  165. mxsfb_probe############  
  166. 21c8000.lcdif supply lcd not found, using dummy regulator  
  167. mxsfb 21c8000.lcdif: failed to find mxc display driver   
  168. Console: switching to colour frame buffer device 100x30  
  169. mxsfb 21c8000.lcdif: initialized  
  170. imx-sdma 20ec000.sdma: no event needs to be remapped  
  171. imx-sdma 20ec000.sdma: loaded firmware 3.1  
  172. imx-sdma 20ec000.sdma: initialized  
  173. Serial: IMX driver  
  174. 2018000.serial: ttymxc6 at MMIO 0x2018000 (irq = 71, base_baud = 5000000) is a IMX  
  175. 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 5000000) is a IMX  
  176. console [ttymxc0] enabled  
  177. 2024000.serial: ttymxc7 at MMIO 0x2024000 (irq = 72, base_baud = 5000000) is a IMX  
  178. 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59, base_baud = 5000000) is a IMX  
  179. 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 60, base_baud = 5000000) is a IMX  
  180. 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 61, base_baud = 5000000) is a IMX  
  181. 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 62, base_baud = 5000000) is a IMX  
  182. 21fc000.serial: ttymxc5 at MMIO 0x21fc000 (irq = 49, base_baud = 5000000) is a IMX  
  183. serial: Freescale lpuart driver  
  184. imx sema4 driver is registered.  
  185. [drm] Initialized drm 1.1.0 20060810  
  186. [drm] Initialized vivante 1.0.0 20120216 on minor 0  
  187. brd: module loaded  
  188. loop: module loaded  
  189. at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write  
  190. nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda  
  191. nand: Micron MT29F2G08ABAEAWP  
  192. nand: 256MiB, SLC, page size: 2048, OOB size: 64  
  193. gpmi-nand 1806000.gpmi-nand: enable the asynchronous EDO mode 5  
  194. Bad block table found at page 131008, version 0x01  
  195. Bad block table found at page 130944, version 0x01  
  196. 4 ofpart partitions found on MTD device gpmi-nand  
  197. Creating 4 MTD partitions on "gpmi-nand":  
  198. 0x000000000000-0x000000400000 : "UBoot"  
  199. 0x000000400000-0x000001400000 : "kernel"  
  200. 0x000001400000-0x000001480000 : "dtb"  
  201. 0x000001480000-0x000010000000 : "rootfs"  
  202. gpmi-nand 1806000.gpmi-nand: driver registered.  
  203. spi_gpio spi4.14: gpio-miso property not found, switching to no-rx mode  
  204. spi_imx 2008000.ecspi: probed  
  205. CAN device driver interface  
  206. flexcan 2090000.can: device registered (reg_base=a09c0000, irq=142)  
  207. flexcan 2094000.can: device registered (reg_base=a09c8000, irq=143)  
  208. 2188000.ethernet supply phy not found, using dummy regulator  
  209. pps pps0: new PPS source ptp0  
  210. libphy: fec_enet_mii_bus: probed  
  211. fec 2188000.ethernet eth0: registered PHC device 0  
  212. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver  
  213. ehci-mxc: Freescale On-Chip EHCI Host driver  
  214. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver  
  215. usbcore: registered new interface driver usb-storage  
  216. usbcore: registered new interface driver usb_ehset_test  
  217. 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator  
  218. 2184000.usb supply vbus not found, using dummy regulator  
  219. 2184200.usb supply vbus not found, using dummy regulator  
  220. ci_hdrc ci_hdrc.1: EHCI Host Controller  
  221. ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1  
  222. ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00  
  223. hub 1-0:1.0: USB hub found  
  224. hub 1-0:1.0: 1 port detected  
  225. mousedev: PS/2 mouse device common for all mice  
  226. input: 20cc000.snvs-pwrkey as /devices/soc0/soc.0/2000000.aips-bus/20cc000.snvs-pwrkey/input/input0  
  227. snvs_pwrkey 20cc000.snvs-pwrkey: i.MX snvs powerkey probed  
  228. spi0.0 supply vcc not found, using dummy regulator  
  229. ads7846 spi0.0: touchscreen, irq 247  
  230. input: ADS7846 Touchscreen as /devices/soc0/soc.0/2000000.aips-bus/2000000.spba-bus/2008000.ecspi/spi_master/spi0/spi0.0/input/input1  
  231. pwm_test_probe#################  
  232. i2c-core: driver [isl29023] using legacy suspend method  
  233. i2c-core: driver [isl29023] using legacy resume method  
  234. rtc-rx8010 0-0032: Update timer was detected  
  235. rtc-rx8010 0-0032: rtc core: registered rx8010 as rtc0  
  236. rtc-rx8010 0-0032: rx8010-irq_1 missing or invalid  
  237. rtc-rx8010 0-0032: rx8010-irq_2 missing or invalid  
  238. i2c /dev entries driver  
  239. IR NEC protocol handler initialized  
  240. IR RC5(x) protocol handler initialized  
  241. IR RC6 protocol handler initialized  
  242. IR JVC protocol handler initialized  
  243. IR Sony protocol handler initialized  
  244. IR RC5 (streamzap) protocol handler initialized  
  245. IR SANYO protocol handler initialized  
  246. IR MCE Keyboard/mouse protocol handler initialized  
  247. pxp-v4l2 pxp_v4l2.10: initialized  
  248. i2c-core: driver [mag3110] using legacy suspend method  
  249. i2c-core: driver [mag3110] using legacy resume method  
  250. imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)  
  251. Bluetooth: HCI UART driver ver 2.2  
  252. Bluetooth: HCI H4 protocol initialized  
  253. Bluetooth: HCI BCSP protocol initialized  
  254. Bluetooth: HCIATH3K protocol initialized  
  255. usbcore: registered new interface driver bcm203x  
  256. usbcore: registered new interface driver btusb  
  257. usbcore: registered new interface driver ath3k  
  258. sdhci: Secure Digital Host Controller Interface driver  
  259. sdhci: Copyright(c) Pierre Ossman  
  260. sdhci-pltfm: SDHCI platform and OF driver helper  
  261. mmc0: no vqmmc regulator found  
  262. mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA  
  263. caam 2140000.caam: Instantiated RNG4 SH0  
  264. usb 1-1: new high-speed USB device number 2 using ci_hdrc  
  265. caam 2140000.caam: Instantiated RNG4 SH1  
  266. caam 2140000.caam: device ID = 0x0a160300 (Era 8)  
  267. caam 2140000.caam: job rings = 3, qi = 0  
  268. mmc0: host does not support reading read-only switch. assuming write-enable.  
  269. mmc0: new high speed SDHC card at address aaaa  
  270. mmcblk0: mmc0:aaaa SU08G 7.40 GiB   
  271.  mmcblk0: p1 p2  
  272. caam algorithms registered in /proc/crypto  
  273. hub 1-1:1.0: USB hub found  
  274. hub 1-1:1.0: 4 ports detected  
  275. caam_jr 2141000.jr0: registering rng-caam  
  276. platform caam_sm: blkkey_ex: 8 keystore units available  
  277. platform caam_sm: 64-bit clear key:  
  278. platform caam_sm: [0000] 00 01 02 03 04 0f 06 07  
  279. platform caam_sm: 64-bit black key:  
  280. platform caam_sm: [0000] 8f 47 2b 1a 30 aa b1 16  
  281. platform caam_sm: [0008] 34 60 a7 58 22 3d 43 73  
  282. platform caam_sm: 128-bit clear key:  
  283. platform caam_sm: [0000] 00 01 02 03 04 0f 06 07  
  284. platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f  
  285. platform caam_sm: 128-bit black key:  
  286. platform caam_sm: [0000] c8 ff b6 f8 86 c0 56 45  
  287. platform caam_sm: [0008] 34 29 77 85 a6 9a 95 c1  
  288. platform caam_sm: 192-bit clear key:  
  289. platform caam_sm: [0000] 00 01 02 03 04 0f 06 07  
  290. platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f  
  291. platform caam_sm: [0016] 10 11 12 13 14 15 16 17  
  292. platform caam_sm: 192-bit black key:  
  293. platform caam_sm: [0000] 6e a6 30 da 4c ce 6b 1b  
  294. platform caam_sm: [0008] ca 24 b6 a6 7e bb ac 2f  
  295. platform caam_sm: [0016] 13 9d d7 9a 30 05 74 50  
  296. platform caam_sm: [0024] ce 3e 6e 97 b5 0c e0 d8  
  297. platform caam_sm: 256-bit clear key:  
  298. platform caam_sm: [0000] 00 01 02 03 04 0f 06 07  
  299. platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f  
  300. platform caam_sm: [0016] 10 11 12 13 14 15 16 17  
  301. platform caam_sm: [0024] 18 19 1a 1b 1c 1d 1e 1f  
  302. platform caam_sm: 256-bit black key:  
  303. platform caam_sm: [0000] 22 8e 30 93 45 fa 7d 18  
  304. platform caam_sm: [0008] 1e 81 c4 a2 4a 22 61 61  
  305. platform caam_sm: [0016] 1f 8e a0 f2 ec 3b 04 81  
  306. platform caam_sm: [0024] 1a 5a ba e0 c4 9e 21 e2  
  307. platform caam_sm: 64-bit unwritten blob:  
  308. platform caam_sm: [0000] 00 00 00 00 00 00 00 00  
  309. platform caam_sm: [0008] 00 00 00 00 00 00 00 00  
  310. platform caam_sm: [0016] 00 00 00 00 00 00 00 00  
  311. platform caam_sm: [0024] 00 00 00 00 00 00 00 00  
  312. platform caam_sm: [0032] 00 00 00 00 00 00 00 00  
  313. platform caam_sm: [0040] 00 00 00 00 00 00 00 00  
  314. platform caam_sm: [0048] 00 00 00 00 00 00 00 00  
  315. platform caam_sm: [0056] 00 00 00 00 00 00 00 00  
  316. platform caam_sm: [0064] 00 00 00 00 00 00 00 00  
  317. platform caam_sm: [0072] 00 00 00 00 00 00 00 00  
  318. platform caam_sm: [0080] 00 00 00 00 00 00 00 00  
  319. platform caam_sm: [0088] 00 00 00 00 00 00 00 00  
  320. platform caam_sm: 128-bit unwritten blob:  
  321. platform caam_sm: [0000] 00 00 00 00 00 00 00 00  
  322. platform caam_sm: [0008] 00 00 00 00 00 00 00 00  
  323. platform caam_sm: [0016] 00 00 00 00 00 00 00 00  
  324. platform caam_sm: [0024] 00 00 00 00 00 00 00 00  
  325. platform caam_sm: [0032] 00 00 00 00 00 00 00 00  
  326. platform caam_sm: [0040] 00 00 00 00 00 00 00 00  
  327. platform caam_sm: [0048] 00 00 00 00 00 00 00 00  
  328. platform caam_sm: [0056] 00 00 00 00 00 00 00 00  
  329. platform caam_sm: [0064] 00 00 00 00 00 00 00 00  
  330. platform caam_sm: [0072] 00 00 00 00 00 00 00 00  
  331. platform caam_sm: [0080] 00 00 00 00 00 00 00 00  
  332. platform caam_sm: [0088] 00 00 00 00 00 00 00 00  
  333. platform caam_sm: 196-bit unwritten blob:  
  334. platform caam_sm: [0000] 00 00 00 00 00 00 00 00  
  335. platform caam_sm: [0008] 00 00 00 00 00 00 00 00  
  336. platform caam_sm: [0016] 00 00 00 00 00 00 00 00  
  337. platform caam_sm: [0024] 00 00 00 00 00 00 00 00  
  338. platform caam_sm: [0032] 00 00 00 00 00 00 00 00  
  339. platform caam_sm: [0040] 00 00 00 00 00 00 00 00  
  340. platform caam_sm: [0048] 00 00 00 00 00 00 00 00  
  341. platform caam_sm: [0056] 00 00 00 00 00 00 00 00  
  342. platform caam_sm: [0064] 00 00 00 00 00 00 00 00  
  343. platform caam_sm: [0072] 00 00 00 00 00 00 00 00  
  344. platform caam_sm: [0080] 00 00 00 00 00 00 00 00  
  345. platform caam_sm: [0088] 00 00 00 00 00 00 00 00  
  346. platform caam_sm: 256-bit unwritten blob:  
  347. platform caam_sm: [0000] 00 00 00 00 00 00 00 00  
  348. platform caam_sm: [0008] 00 00 00 00 00 00 00 00  
  349. platform caam_sm: [0016] 00 00 00 00 00 00 00 00  
  350. platform caam_sm: [0024] 00 00 00 00 00 00 00 00  
  351. platform caam_sm: [0032] 00 00 00 00 00 00 00 00  
  352. platform caam_sm: [0040] 00 00 00 00 00 00 00 00  
  353. platform caam_sm: [0048] 00 00 00 00 00 00 00 00  
  354. platform caam_sm: [0056] 00 00 00 00 00 00 00 00  
  355. platform caam_sm: [0064] 00 00 00 00 00 00 00 00  
  356. platform caam_sm: [0072] 00 00 00 00 00 00 00 00  
  357. platform caam_sm: [0080] 00 00 00 00 00 00 00 00  
  358. platform caam_sm: [0088] 00 00 00 00 00 00 00 00  
  359. platform caam_sm: 64-bit black key in blob:  
  360. platform caam_sm: [0000] 47 4c 9f 05 19 00 bf 89  
  361. platform caam_sm: [0008] 22 7e e9 f6 6e 58 6a 8c  
  362. platform caam_sm: [0016] 7e 41 54 a1 d0 85 fd 37  
  363. platform caam_sm: [0024] 32 6d 90 cb 45 3a f8 40  
  364. platform caam_sm: [0032] d8 2a 88 6d 71 5d 0f 88  
  365. platform caam_sm: [0040] fb 57 7f 60 72 bf c7 95  
  366. platform caam_sm: [0048] a4 af 5e 7a a0 16 e2 3f  
  367. platform caam_sm: [0056] 00 00 00 00 00 00 00 00  
  368. platform caam_sm: [0064] 00 00 00 00 00 00 00 00  
  369. platform caam_sm: [0072] 00 00 00 00 00 00 00 00  
  370. platform caam_sm: [0080] 00 00 00 00 00 00 00 00  
  371. platform caam_sm: [0088] 00 00 00 00 00 00 00 00  
  372. platform caam_sm: 128-bit black key in blob:  
  373. platform caam_sm: [0000] 79 cf f2 02 b6 fc cc d5  
  374. platform caam_sm: [0008] f0 f0 36 7b 7a 75 5a cf  
  375. platform caam_sm: [0016] 8e f5 24 fa 01 22 2c 91  
  376. platform caam_sm: [0024] e6 bf 92 3c 9c c9 22 91  
  377. platform caam_sm: [0032] 80 78 39 0e c1 39 f6 32  
  378. platform caam_sm: [0040] 94 9e 2a 35 0f 2c 43 01  
  379. platform caam_sm: [0048] bc 51 eb 1b db 96 e7 3b  
  380. platform caam_sm: [0056] 6f e4 b4 e3 34 7a c2 85  
  381. platform caam_sm: [0064] 00 00 00 00 00 00 00 00  
  382. platform caam_sm: [0072] 00 00 00 00 00 00 00 00  
  383. platform caam_sm: [0080] 00 00 00 00 00 00 00 00  
  384. platform caam_sm: [0088] 00 00 00 00 00 00 00 00  
  385. platform caam_sm: 192-bit black key in blob:  
  386. platform caam_sm: [0000] 61 62 cc c3 ac e7 e7 07  
  387. platform caam_sm: [0008] 3c 44 0c c3 5a 46 5d 78  
  388. platform caam_sm: [0016] 36 15 6e 7a 87 fe 37 a9  
  389. platform caam_sm: [0024] 52 47 29 81 0b 44 8f 61  
  390. platform caam_sm: [0032] db 2b 9a 10 89 e1 a0 a3  
  391. platform caam_sm: [0040] 5a 34 71 d8 4f a9 3a cf  
  392. platform caam_sm: [0048] d3 37 be b9 b8 4b 0c 4d  
  393. platform caam_sm: [0056] 2f 2f 00 e1 0f 7b 72 06  
  394. platform caam_sm: [0064] 55 75 26 b6 d4 e8 0c 2e  
  395. platform caam_sm: [0072] 00 00 00 00 00 00 00 00  
  396. platform caam_sm: [0080] 00 00 00 00 00 00 00 00  
  397. platform caam_sm: [0088] 00 00 00 00 00 00 00 00  
  398. platform caam_sm: 256-bit black key in blob:  
  399. platform caam_sm: [0000] 50 38 e5 63 34 57 02 f2  
  400. platform caam_sm: [0008] 03 ad dc 1e e1 f6 c4 14  
  401. platform caam_sm: [0016] 40 47 ab 99 12 ff 3b 5f  
  402. platform caam_sm: [0024] c0 16 7a 2a 40 dc 9e 70  
  403. platform caam_sm: [0032] 13 f1 8c 7e 0f b9 b3 27  
  404. platform caam_sm: [0040] e9 89 cd 24 40 f5 4c 52  
  405. platform caam_sm: [0048] 7c b2 c3 98 e9 7d 91 a5  
  406. platform caam_sm: [0056] 13 1a 56 21 32 c6 51 c5  
  407. platform caam_sm: [0064] 5e c6 00 47 89 da 1a 40  
  408. platform caam_sm: [0072] 9f 71 75 3a 78 e1 e4 f8  
  409. platform caam_sm: [0080] 00 00 00 00 00 00 00 00  
  410. platform caam_sm: [0088] 00 00 00 00 00 00 00 00  
  411. platform caam_sm: restored 64-bit black key:  
  412. platform caam_sm: [0000] a0 e7 0c 01 19 44 ff 89  
  413. platform caam_sm: [0008] 91 b2 43 78 09 38 eb ce  
  414. platform caam_sm: restored 128-bit black key:  
  415. platform caam_sm: [0000] c8 ff b6 f8 86 c0 56 45  
  416. platform caam_sm: [0008] 34 29 77 85 a6 9a 95 c1  
  417. platform caam_sm: restored 192-bit black key:  
  418. platform caam_sm: [0000] 6e a6 30 da 4c ce 6b 1b  
  419. platform caam_sm: [0008] ca 24 b6 a6 7e bb ac 2f  
  420. platform caam_sm: [0016] 5a 2c 97 fe 12 7a 0c 5f  
  421. platform caam_sm: [0024] 05 68 b4 53 6e e6 ee 40  
  422. platform caam_sm: restored 256-bit black key:  
  423. platform caam_sm: [0000] 22 8e 30 93 45 fa 7d 18  
  424. platform caam_sm: [0008] 1e 81 c4 a2 4a 22 61 61  
  425. platform caam_sm: [0016] 1f 8e a0 f2 ec 3b 04 81  
  426. platform caam_sm: [0024] 1a 5a ba e0 c4 9e 21 e2  
  427. snvs-secvio 20cc000.caam-snvs: violation handlers armed - non-secure state  
  428. usbcore: registered new interface driver usbhid  
  429. usbhid: USB HID core driver  
  430. fsl-asrc 2034000.asrc: driver registered  
  431. snd-soc-dummy snd-soc-dummy: ASoC: Failed to create platform debugfs directory  
  432. imx-wm8960 sound.13: wm8960-hifi <-> 202c000.sai mapping ok  
  433. imx-wm8960 sound.13: snd-soc-dummy-dai <-> 2034000.asrc mapping ok  
  434. imx-wm8960 sound.13: wm8960-hifi <-> 202c000.sai mapping ok  
  435. NET: Registered protocol family 26  
  436. TCP: cubic registered  
  437. NET: Registered protocol family 10  
  438. sit: IPv6 over IPv4 tunneling driver  
  439. NET: Registered protocol family 17  
  440. can: controller area network core (rev 20120528 abi 9)  
  441. NET: Registered protocol family 29  
  442. can: raw protocol (rev 20120528)  
  443. can: broadcast manager protocol (rev 20120528 t)  
  444. can: netlink gateway (rev 20130117) max_hops=1  
  445. Bluetooth: RFCOMM TTY layer initialized  
  446. Bluetooth: RFCOMM socket layer initialized  
  447. Bluetooth: RFCOMM ver 1.11  
  448. Bluetooth: BNEP (Ethernet Emulation) ver 1.3  
  449. Bluetooth: BNEP filters: protocol multicast  
  450. Bluetooth: BNEP socket layer initialized  
  451. Bluetooth: HIDP (Human Interface Emulation) ver 1.2  
  452. Bluetooth: HIDP socket layer initialized  
  453. 8021q: 802.1Q VLAN Support v1.8  
  454. Key type dns_resolver registered  
  455. cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)  
  456. gpio_dvfs: disabling  
  457. can-3v3: disabling  
  458. regulator-dummy: disabling  
  459. imx mcc test is registered.  
  460. rtc-rx8010 0-0032: setting system clock to 1970-01-01 01:01:29 UTC (3689)  
  461. fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:00, irq=-1)  
  462. IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready  
  463. libphy: 2188000.ethernet:00 - Link is Up - 100/Full  
  464. IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready  
  465. IP-Config: Guessing netmask 255.255.255.0  
  466. IP-Config: Complete:  
  467.      device=eth0, hwaddr=30:30:3a:30:34:3a, ipaddr=192.168.1.120, mask=255.255.255.0, gw=255.255.255.255  
  468.      host=192.168.1.120, domain=, nis-domain=(none)  
  469.      bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=  
  470. ALSA device list:  
  471.   #0: wm8960-audio  
  472. EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)  
  473. EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (244)  
  474. EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem  
  475. EXT4-fs (mmcblk0p2): write access will be enabled during recovery  
  476. EXT4-fs (mmcblk0p2): recovery complete  
  477. EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)  
  478. VFS: Mounted root (ext4 filesystem) readonly on device 179:2.  
  479. devtmpfs: mounted  
  480. Freeing unused kernel memory: 384K (80a19000 - 80a79000)  
  481. init: Console is alive  
  482. init: - watchdog -  
  483. init: - preinit -  
  484. Press the [f] key and hit [enter] to enter failsafe mode  
  485. Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level  
  486. mount_root: mounting /dev/root  
  487. EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)  
  488. procd: - early -  
  489. procd: - watchdog -  
  490. random: jshn urandom read with 63 bits of entropy available  
  491. Failed to connect to ubus  
  492. procd: - ubus -  
  493. procd: - init -  
  494. Please press Enter to activate this console.  
  495. random: nonblocking pool is initialized  
  496.   
  497.   
  498.   
  499. BusyBox v1.24.2 () built-in shell (ash)  
  500.   
  501.   _______                     ________        __  
  502.  |       |.-----.-----.-----.|  |  |  |.----.|  |_  
  503.  |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|  
  504.  |_______||   __|_____|__|__||________||__|  |____|  
  505.           |__| W I R E L E S S   F R E E D O M  
  506.  -----------------------------------------------------  
  507.  DESIGNATED DRIVER (Bleeding Edge, 50082)  
  508.  -----------------------------------------------------  
  509.   * 2 oz. Orange Juice         Combine all juices in a  
  510.   * 2 oz. Pineapple Juice      tall glass filled with  
  511.   * 2 oz. Grapefruit Juice     ice, stir well.  
  512.   * 2 oz. Cranberry Juice  
  513.  -----------------------------------------------------  
  514. root@192:/# EXT4-fs (mmcblk0p1): recovery complete  
  515. EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)

 

 

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值