失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > i.MX 6ULL 驱动开发 一:搭建开发环境

i.MX 6ULL 驱动开发 一:搭建开发环境

时间:2020-10-30 23:27:29

相关推荐

i.MX 6ULL 驱动开发 一:搭建开发环境

一、搭建编译环境

1、工具

2、搭建 tftp 服务器

ubuntu20.04 搭建tftp服务器_lqonlylove的博客-CSDN博客_ubuntu配置tftp服务器

3、搭建 nfs 服务器

ubuntu20.04 搭建NFS服务器_lqonlylove的博客-CSDN博客

二、配置编译工具链

1、版本选择

2、解压

sudo tar -vxf gcc-linaro-4.9.4-.01-x86_64_arm-linux-gnueabihf.tar.xz

解压后名字太长,更改 gcc 文件夹名:

onlylove@ubuntu:~/my/gcc$ lsgcc-linaro-4.9.4 gcc-linaro-4.9.4-.01-x86_64_arm-linux-gnueabihf.tar.xzonlylove@ubuntu:~/my/gcc$

3、配置

打开/etc/profile 以后,在最后面输入如下所示内容:

export PATH=$PATH:/home/onlylove/my/gcc/gcc-linaro-4.9.4/bin

配置完后,重启主机。

4、验证

onlylove@ubuntu:~$ lsDesktop Documents Downloads Music my Pictures Public Templates Videosonlylove@ubuntu:~$ arm-linux-gnueabihf-gcc -vUsing built-in specs.COLLECT_GCC=arm-linux-gnueabihf-gccCOLLECT_LTO_WRAPPER=/home/onlylove/my/gcc/gcc-linaro-4.9.4/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.4/lto-wrapperTarget: arm-linux-gnueabihfConfigured with: /home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/snapshots/gcc-linaro-4.9-.01/configure SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-objc-gc --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --with-fpu=vfpv3-d16 --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnuThread model: posixgcc version 4.9.4 (Linaro GCC 4.9-.01) onlylove@ubuntu:~$

三、uboot

1、版本选择

因使用正点原子开发板,因此选择正点原子提供uboot版本。

2、解压

tar -xvf uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek.tar.bz2

onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ pwd/home/onlylove/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientekonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ ls api disk imxdownload.c load.imx net tools u-boot.maparch docimxdownload.h MAINTAINERSpost u-bootu-boot-nodtb.binboarddriversinclude MAKEALL README u-boot.bin u-boot.sreccmd dtsKbuild Makefile scriptsu-boot.cfg u-boot.symcommonexamplesKconfig mx6ull_14x14_evk_emmc.sh mit uboot.code-workspaceconfig.mk fs lib mx6ull_alientek_emmc.sh System.map u-boot.imxconfigs imxdownload Licenses mx6ull_alientek_nand.sh test u-boot.ldsonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$

3、编译脚本

onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ lsapi disk imxdownload.c load.imx net tools u-boot.maparch docimxdownload.h MAINTAINERSpost u-bootu-boot-nodtb.binboarddriversinclude MAKEALL README u-boot.bin u-boot.sreccmd dtsKbuild Makefile scriptsu-boot.cfg u-boot.symcommonexamplesKconfig mx6ull_14x14_evk_emmc.sh mit uboot.code-workspaceconfig.mk fs lib mx6ull_alientek_emmc.sh System.map u-boot.imxconfigs imxdownload Licenses mx6ull_alientek_nand.sh test u-boot.ldsonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ cat mx6ull_alientek_emmc.sh #!/bin/bashmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distcleanmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mx6ull_alientek_emmc_defconfigmake V=0 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j16onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$

4、编译

onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ lsapi disk imxdownload.c load.imx net tools u-boot.maparch docimxdownload.h MAINTAINERSpost u-bootu-boot-nodtb.binboarddriversinclude MAKEALL README u-boot.bin u-boot.sreccmd dtsKbuild Makefile scriptsu-boot.cfg u-boot.symcommonexamplesKconfig mx6ull_14x14_evk_emmc.sh mit uboot.code-workspaceconfig.mk fs lib mx6ull_alientek_emmc.sh System.map u-boot.imxconfigs imxdownload Licenses mx6ull_alientek_nand.sh test u-boot.ldsonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ ./mx6ull_alientek_emmc.sh

onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ lsapi commondoc fs include LicensesMakefile netmitarch config.mk drivers imxdownload Kbuild load.imxmx6ull_14x14_evk_emmc.sh posttestboard configs dts imxdownload.c Kconfig MAINTAINERS mx6ull_alientek_emmc.sh README toolscmd disk examples imxdownload.h libMAKEALLmx6ull_alientek_nand.sh scripts uboot.code-workspaceonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ ./mx6ull_alientek_emmc.sh CLEAN scripts/basicCLEAN scripts/kconfigCLEAN include/config include/generatedCLEAN .config include/config.hHOSTCC scripts/basic/fixdepHOSTCC scripts/kconfig/conf.oSHIPPED scripts/kconfig/zconf.tab.cSHIPPED scripts/kconfig/zconf.lex.cSHIPPED scripts/kconfig/zconf.hash.cHOSTCC scripts/kconfig/zconf.tab.oIn file included from scripts/kconfig/zconf.tab.c:2534:scripts/kconfig/confdata.c: In function ‘conf_write’:scripts/kconfig/confdata.c:771:19: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]771 | sprintf(newname, "%s%s", dirname, basename);| ^~~~~~scripts/kconfig/confdata.c:771:19: note: assuming directive output of 7 bytesIn file included from /usr/include/stdio.h:867,from scripts/kconfig/zconf.tab.c:84:/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 1 or more bytes (assuming 4104) into a destination of size 409736 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,|^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~37 | __bos (__s), __fmt, __va_arg_pack ());| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~In file included from scripts/kconfig/zconf.tab.c:2534:scripts/kconfig/confdata.c:774:20: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]774 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());|^~~~~~~~~~~~~~~~~In file included from /usr/include/stdio.h:867,from scripts/kconfig/zconf.tab.c:84:/usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 13 and 4119 bytes into a destination of size 409736 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,|^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~37 | __bos (__s), __fmt, __va_arg_pack ());| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~HOSTLD scripts/kconfig/conf## configuration written to .config#scripts/kconfig/conf --silentoldconfig KconfigCHKinclude/config.hUPDinclude/config.hGENinclude/autoconf.mkGENinclude/autoconf.mk.depCHKinclude/config/uboot.releaseCHKinclude/generated/timestamp_autogenerated.hUPDinclude/generated/timestamp_autogenerated.hUPDinclude/config/uboot.releaseCFGu-boot.cfgCHKinclude/generated/version_autogenerated.hUPDinclude/generated/version_autogenerated.hCClib/asm-offsets.sCCarch/arm/lib/asm-offsets.sCHKinclude/generated/generic-asm-offsets.hCHKinclude/generated/asm-offsets.hUPDinclude/generated/generic-asm-offsets.hUPDinclude/generated/asm-offsets.hHOSTCC tools/bmp_logoHOSTCC tools/gen_eth_addrHOSTCC tools/img2srecLDSu-boot.ldsHOSTCC tools/mkenvimage.oHOSTCC tools/os_support.oWRAP tools/lib/crc32.cHOSTCC tools/aisimage.oHOSTCC tools/atmelimage.oWRAP tools/common/bootm.cHOSTCC tools/default_image.oWRAP tools/lib/fdtdec_common.cWRAP tools/lib/fdtdec.cHOSTCC tools/fit_common.oHOSTCC tools/fit_image.oHOSTCC tools/gpimage.oHOSTCC tools/gpimage-common.oWRAP tools/common/image-fit.cHOSTCC tools/image-host.oWRAP tools/common/image.cHOSTCC tools/imagetool.oHOSTCC tools/imximage.oHOSTCC tools/kwbimage.oWRAP tools/lib/md5.cHOSTCC tools/lpc32xximage.oHOSTCC tools/mxsimage.oHOSTCC tools/omapimage.oHOSTCC tools/pblimage.oHOSTCC tools/pbl_crc32.oWRAP tools/lib/rc4.cHOSTCC tools/rkcommon.oHOSTCC tools/rkimage.oHOSTCC tools/rksd.oHOSTCC tools/rkspi.oHOSTCC tools/socfpgaimage.oWRAP tools/lib/sha1.cWRAP tools/lib/sha256.cWRAP tools/common/hash.cHOSTCC tools/ublimage.oHOSTCC tools/zynqimage.oWRAP tools/lib/libfdt/fdt.cWRAP tools/lib/libfdt/fdt_ro.cWRAP tools/lib/libfdt/fdt_rw.cWRAP tools/lib/libfdt/fdt_strerror.cWRAP tools/lib/libfdt/fdt_wip.cWRAP tools/lib/libfdt/fdt_region.cHOSTCC tools/dumpimage.oHOSTCC tools/mkimage.oHOSTCC tools/proftoolHOSTCC tools/fdtgrep.otools/bmp_logo --gen-info ./tools/logos/freescale.bmp > include/bmp_logo.htools/bmp_logo --gen-data ./tools/logos/freescale.bmp > include/bmp_logo_data.hHOSTCC tools/lib/crc32.oHOSTCC tools/common/bootm.oHOSTCC tools/lib/fdtdec_common.oHOSTCC tools/lib/fdtdec.oHOSTCC tools/common/image-fit.oHOSTCC tools/common/image.oHOSTCC tools/lib/md5.oHOSTCC tools/lib/rc4.oHOSTCC tools/lib/sha1.oHOSTCC tools/lib/sha256.oHOSTCC tools/common/hash.oHOSTCC tools/lib/libfdt/fdt.oHOSTCC tools/lib/libfdt/fdt_ro.oHOSTCC tools/lib/libfdt/fdt_rw.oHOSTCC tools/lib/libfdt/fdt_strerror.oHOSTCC tools/lib/libfdt/fdt_wip.oHOSTCC tools/lib/libfdt/fdt_region.oHOSTLD tools/mkenvimageHOSTLD tools/dumpimageHOSTLD tools/mkimageHOSTLD tools/fdtgrepLDarch/arm/cpu/built-in.oCCarch/arm/cpu/armv7/cache_v7.oCCarch/arm/imx-common/iomux-v3.oCCboard/freescale/common/mmc.oASarch/arm/lib/vectors.oASarch/arm/lib/crt0.oASarch/arm/lib/relocate.oLDboard/freescale/common/built-in.oCCarch/arm/imx-common/cpu.oCCarch/arm/lib/bootm-fdt.oCCboard/freescale/mx6ull_alientek_emmc/mx6ull_alientek_emmc.oCCarch/arm/cpu/armv7/cpu.oCCarch/arm/lib/bootm.oCCarch/arm/cpu/armv7/cp15.oCCarch/arm/imx-common/speed.oboard/freescale/mx6ull_alientek_emmc/mx6ull_alientek_emmc.c:127:22: warning: ‘seq’ defined but not used [-Wunused-variable]static enum qn_level seq[3][2] = {^board/freescale/mx6ull_alientek_emmc/mx6ull_alientek_emmc.c:131:21: warning: ‘qn_output’ defined but not used [-Wunused-variable]static enum qn_func qn_output[8] = {^CCarch/arm/cpu/armv7/syslib.oCCarch/arm/lib/sections.oCCarch/arm/imx-common/i2c-mxv7.oCCarch/arm/lib/stack.oLDboard/freescale/mx6ull_alientek_emmc/built-in.oASarch/arm/cpu/armv7/lowlevel_init.oCCarch/arm/cpu/armv7/mx6/soc.oCCarch/arm/lib/interrupts.oCCarch/arm/imx-common/misc.oCCcmd/boot.oCCarch/arm/imx-common/cache.oCCarch/arm/lib/reset.oCCcmd/bootm.oCCarch/arm/imx-common/init.oCCarch/arm/lib/cache.oCCarch/arm/cpu/armv7/mx6/clock.oCCarch/arm/lib/cache-cp15.oCCcmd/help.oCCarch/arm/imx-common/video.oCCcmd/version.oCCarch/arm/imx-common/syscounter.oARarch/arm/lib/lib.aCCarch/arm/lib/eabi_compat.oCCcmd/source.oLDarch/arm/lib/built-in.oCCarch/arm/imx-common/cmd_bmode.oCCcmd/bdinfo.oCCcommon/init/board_init.oLDarch/arm/imx-common/built-in.oCCcmd/bmp.oCCdisk/part.oLDarch/arm/cpu/armv7/mx6/built-in.oASarch/arm/cpu/armv7/start.oLDcommon/init/built-in.oCCcommon/main.oLDarch/arm/cpu/armv7/built-in.oLDdrivers/adc/built-in.oCCdrivers/block/disk-uclass.oCCcmd/cache.oCCcommon/exports.oLDdrivers/block/built-in.oCCdisk/part_dos.oCCdrivers/core/device.oCCcmd/console.oCCcommon/hash.oCCcmd/echo.oCCcommon/cli_hush.oLDdisk/built-in.oLDdrivers/dma/built-in.oCCcmd/elf.oCCdrivers/gpio/mxc_gpio.oLDdrivers/gpio/built-in.oCCdrivers/core/lists.oCCdrivers/i2c/i2c_core.oCCcmd/exit.oCCcmd/ext4.oCCdrivers/core/root.oCCdrivers/i2c/mxc_i2c.oCCcmd/ext2.oCCdrivers/core/uclass.oCCcmd/fat.oCCcmd/fdt.oCCcommon/autoboot.oLDdrivers/i2c/built-in.oCCdrivers/mmc/fsl_esdhc.oCCdrivers/core/util.oCCcommon/board_f.oCCdrivers/core/device-remove.oCCdrivers/mmc/mmc.oCCdrivers/core/dump.oCCcommon/board_r.oCCcmd/flash.oLDdrivers/core/built-in.oCCdrivers/crypto/fsl/sec.oCCcmd/fs.oCCcommon/board_info.oCCcmd/fuse.oLDdrivers/crypto/fsl/built-in.oLDdrivers/crypto/rsa_mod_exp/built-in.oLDdrivers/crypto/built-in.oLDdrivers/dfu/built-in.oCCcommon/bootm.oLDdrivers/hwmon/built-in.oCCdrivers/input/input.oCCcmd/gpio.oCCcmd/i2c.oCCcommon/bootm_os.oLDdrivers/input/built-in.oLDdrivers/memory/built-in.oCCdrivers/misc/mxc_ocotp.oCCdrivers/mmc/mmc_write.oCCcommon/env_attr.oLDdrivers/mmc/built-in.oCCdrivers/mtd/mtdcore.oLDdrivers/misc/built-in.oCCcmd/itest.oCCdrivers/pcmcia/tqm8xx_pcmcia.oCCcommon/env_callback.oLDdrivers/pcmcia/built-in.oLDdrivers/pwm/built-in.oCCdrivers/rtc/date.oCCcmd/load.oCCcommon/env_flags.oLDdrivers/rtc/built-in.oLDdrivers/soc/built-in.oLDdrivers/sound/built-in.oCCdrivers/thermal/thermal-uclass.oCCdrivers/mtd/mtd_uboot.oCCdrivers/thermal/imx_thermal.oCCcommon/env_mmc.oLDdrivers/mtd/built-in.oLDdrivers/mtd/onenand/built-in.oCCcmd/mem.oCCdrivers/mtd/spi/sf_probe.oLDdrivers/thermal/built-in.oLDdrivers/timer/built-in.oCCcommon/fdt_support.oLDdrivers/tpm/built-in.oLDdrivers/twserial/built-in.oCCdrivers/video/cfb_console.oCCdrivers/mtd/spi/spi_flash.oCCcmd/mii.oCCcmd/mdio.oCCcommon/miiphyutil.oCCdrivers/mtd/spi/sf_params.oCCcmd/misc.oCCdrivers/mtd/spi/sf.oCCcommon/usb.oCCcmd/mmc.oLDdrivers/mtd/spi/built-in.oCCcmd/net.oCCdrivers/video/mxsfb.oCCcmd/pcmcia.oCCdrivers/video/videomodes.oCCcmd/sf.oCCcmd/setexpr.oCCcommon/usb_hub.oCCcmd/test.oLDdrivers/video/bridge/built-in.oLDdrivers/video/built-in.oCCdrivers/watchdog/imx_watchdog.oCCcmd/usb.oLDdrivers/watchdog/built-in.oLDdrivers/built-in.oCCcmd/ximg.oCCdrivers/net/fec_mxc.oCCcommon/usb_storage.oCCcmd/nvedit.oCCcmd/disk.oLDdrivers/net/built-in.oCCdrivers/net/phy/phy.oCCcommon/flash.oLDcmd/built-in.oCCcommon/splash.oCCdrivers/net/phy/smsc.oCCcommon/env_common.oLDdrivers/pci/built-in.oCCdrivers/power/power_core.oCCdrivers/power/power_i2c.oCCcommon/bouncebuf.oLDdrivers/net/phy/built-in.oLDdrivers/power/built-in.oLDdrivers/power/battery/built-in.oCCcommon/console.oCCcommon/dlmalloc.oLDdrivers/power/fuel_gauge/built-in.oLDdrivers/power/mfd/built-in.oCCcommon/malloc_simple.oCCdrivers/power/pmic/pmic_pfuze3000.oLDdrivers/power/pmic/built-in.oLDdrivers/power/regulator/built-in.oCCdrivers/serial/serial.oCCcommon/image.oCCcommon/image-fdt.oCCdrivers/serial/serial_mxc.oCCcommon/memsize.oCCcommon/stdio.oCCcommon/cli_simple.oCCcommon/cli.oLDdrivers/serial/built-in.oCCdrivers/spi/spi.oCCcommon/cli_readline.oCCcommon/command.oCCcommon/s_record.oCCdrivers/spi/fsl_qspi.oCCcommon/xyzModem.oLDdrivers/spi/built-in.oLDdrivers/usb/dwc3/built-in.oLDdrivers/usb/emul/built-in.oLDdrivers/usb/gadget/built-in.oCCdrivers/usb/eth/usb_ether.oLDdrivers/usb/gadget/udc/built-in.oCCdrivers/usb/host/ehci-hcd.oLDcommon/built-in.oCCdrivers/usb/eth/asix.oLDdrivers/usb/musb/built-in.oLDdrivers/usb/phy/built-in.oLDdrivers/usb/ulpi/built-in.oLDdrivers/usb/musb-new/built-in.oCCfs/fs.oCClib/libfdt/fdt.oLDdrivers/usb/eth/built-in.oCCnet/checksum.oCClib/libfdt/fdt_ro.oCCfs/ext4/ext4fs.oCCnet/arp.oCCdrivers/usb/host/ehci-mx6.oCCnet/bootp.oCCfs/ext4/ext4_common.oLDdrivers/usb/host/built-in.oLDtest/built-in.oCCtest/dm/cmd_dm.oCClib/libfdt/fdt_rw.oLDtest/dm/built-in.oCClib/libfdt/fdt_strerror.oCCnet/eth_legacy.oCClib/libfdt/fdt_sw.oCClib/libfdt/fdt_wip.oCClib/libfdt/fdt_empty_tree.oCCnet/eth_common.oCClib/libfdt/fdt_addresses.oCClib/libfdt/fdt_region.oCCnet/net.oCCnet/nfs.oLDlib/libfdt/built-in.oCClib/zlib/zlib.oCCnet/ping.oCCfs/ext4/dev.oCCnet/tftp.oCCfs/ext4/ext4_write.oCCfs/ext4/ext4_journal.oLDnet/built-in.oCCfs/ext4/crc16.oCClib/crc7.oCClib/crc8.oCClib/crc16.oCClib/gunzip.oCClib/initcall.oCClib/lmb.oLDfs/ext4/built-in.oLDlib/zlib/built-in.oCCfs/fat/fat_write.oCClib/ldiv.oCClib/net_utils.oCClib/qsort.oCClib/rc4.oCClib/strmhz.oCClib/list_sort.oCClib/hashtable.oCClib/errno.oCClib/display_options.oCClib/crc32.oCClib/ctype.oCClib/div64.oCClib/hang.oCClib/linux_compat.oCClib/linux_string.oCClib/membuff.oCClib/slre.oCClib/string.oCClib/time.oCClib/vsprintf.oCCfs/fat/file.oCClib/panic.oCClib/strto.oLDfs/fat/built-in.oLDfs/built-in.oLDlib/built-in.oCCexamples/standalone/stubs.oCCexamples/standalone/hello_world.oLDexamples/standalone/libstubs.oLDexamples/standalone/hello_worldOBJCOPY examples/standalone/hello_world.srecOBJCOPY examples/standalone/hello_world.binLDu-bootOBJCOPY u-boot-nodtb.binOBJCOPY u-boot.srecSYMu-boot.symCOPY u-boot.binCFGS board/freescale/mx6ull_alientek_emmc/imximage.cfg.cfgtmpMKIMAGE u-boot.imxonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ lsapi disk imxdownload.c load.imx net tools u-boot.maparch docimxdownload.h MAINTAINERSpost u-bootu-boot-nodtb.binboarddriversinclude MAKEALL README u-boot.bin u-boot.sreccmd dtsKbuild Makefile scriptsu-boot.cfg u-boot.symcommonexamplesKconfig mx6ull_14x14_evk_emmc.sh mit uboot.code-workspaceconfig.mk fs lib mx6ull_alientek_emmc.sh System.map u-boot.imxconfigs imxdownload Licenses mx6ull_alientek_nand.sh test u-boot.ldsonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.1

5、将 uboot 烧录到 SD卡中

sudo dd if=u-boot.imx of=/dev/sdb bs=1k seek=1 conv=fsync

onlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ lsapi disk imxdownload.c load.imx net tools u-boot.maparch docimxdownload.h MAINTAINERSpost u-bootu-boot-nodtb.binboarddriversinclude MAKEALL README u-boot.bin u-boot.sreccmd dtsKbuild Makefile scriptsu-boot.cfg u-boot.symcommonexamplesKconfig mx6ull_14x14_evk_emmc.sh mit uboot.code-workspaceconfig.mk fs lib mx6ull_alientek_emmc.sh System.map u-boot.imxconfigs imxdownload Licenses mx6ull_alientek_nand.sh test u-boot.ldsonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ sudo dd if=u-boot.imx of=/dev/sdb bs=1k seek=1 conv=fsync[sudo] password for onlylove: 419+0 records in419+0 records out429056 bytes (429 kB, 419 KiB) copied, 0.0837758 s, 5.1 MB/sonlylove@ubuntu:~/my/uboot/uboot-imx-rel_imx_4.1.15_2.1.0_ga_alientek$

6、启动 uboot

U-Boot .03 (Aug 20 - 00:46:14 -0700)CPU: Freescale i.MX6ULL rev1.1 69 MHz (running at 396 MHz)CPU: Industrial temperature grade (-40C to 105C) at 43CReset cause: PORBoard: MX6ULL ALIENTEK EMMCI2C: readyDRAM: 512 MiBMMC: FSL_SDHC: 0, FSL_SDHC: 1unsupported panel ATK-LCD-7-1024x600In: serialOut: serialErr: serialswitch to partitions #0, OKmmc0 is current deviceNet: FEC1Normal BootHit any key to stop autoboot: 0=> help? - alias for 'help'base - print or set address offsetbdinfo - print Board Info structurebmode - sd1|sd2|qspi1|normal|usb|sata|ecspi1:0|ecspi1:1|ecspi1:2|ecspi1:3|esdhc1|esdhc2|esdhc3|esdhc4 [noreset]bmp- manipulate BMP image databoot - boot default, i.e., run 'bootcmd'bootd - boot default, i.e., run 'bootcmd'bootelf - Boot from an ELF image in memorybootm - boot application image from memorybootp - boot image via network using BOOTP/TFTP protocolbootvx - Boot vxWorks from an ELF imagebootz - boot Linux zImage image from memoryclocks - display clocksclrlogo - fill the boot logo area with blackcmp- memory compareconinfo - print console devices and informationcp- memory copycrc32 - checksum calculationdcache - enable or disable data cachedhcp - boot image via network using DHCP/TFTP protocoldm- Driver model low level accessecho - echo args to consoleeditenv - edit environment variableenv- environment handling commandserase - erase FLASH memoryexit - exit scriptext2load- load binary file from a Ext2 filesystemext2ls - list files in a directory (default /)ext4load- load binary file from a Ext4 filesystemext4ls - list files in a directory (default /)ext4size- determine a file's sizeext4write- create a file in the root directoryfalse - do nothing, unsuccessfullyfatinfo - print information about filesystemfatload - load binary file from a dos filesystemfatls - list files in a directory (default /)fatsize - determine a file's sizefatwrite- write file into a dos filesystemfdt- flattened device tree utility commandsflinfo - print FLASH memory informationfstype - Look up a filesystem typefuse - Fuse sub-systemgo- start application at address 'addr'gpio - query and control gpio pinshelp - print command description/usagei2c- I2C sub-systemicache - enable or disable instruction cacheiminfo - print header information for application imageimxtract- extract a part of a multi-imageitest - return true/false on integer compareload - load binary file from a filesystemloadb - load binary file over serial line (kermit mode)loads - load S-Record file over serial lineloadx - load binary file over serial line (xmodem mode)loady - load binary file over serial line (ymodem mode)loop - infinite loop on address rangels- list files in a directory (default /)md- memory displaymdio - MDIO utility commandsmii- MII utility commandsmm- memory modify (auto-incrementing address)mmc- MMC sub systemmmcinfo - display MMC infomtest - simple RAM read/write testmw- memory write (fill)nfs- boot image via network using NFS protocolnm- memory modify (constant address)ping - send ICMP ECHO_REQUEST to network hostpmic - PMICprintenv- print environment variablesprotect - enable or disable FLASH write protectionreset - Perform RESET of the CPUrun- run commands in an environment variablesave - save file to a filesystemsaveenv - save environment variables to persistent storagesetenv - set environment variablessetexpr - set environment variable as the result of eval expressionsf- SPI flash sub-systemshowvar - print local hushshell variablessize - determine a file's sizesleep - delay execution for some timesource - run script from memorytest - minimal test like /bin/shtftpboot- boot image via network using TFTP protocoltrue - do nothing, successfullyusb- USB sub-systemusbboot - boot from USB deviceversion - print monitor, compiler and linker version=> printenvbaudrate=115200board_name=EVKboard_rev=14X14boot_fdt=trybootargs=console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.1.15:/home/onlylove/my/nfs/rootfs,proto=tcp rw ip=192.168.1.20:192.168.1.15:192.168.1.1:255.255.255.0::eth0:offbootcmd=tftp 80800000 zImage;tftp 83000000 imx6ull-alientek-emmc.dtb;bootz 80800000 - 83000000;bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};bootdelay=3bootscript=echo Running bootscript from mmc ...; sourceconsole=ttymxc0ethact=FEC1ethaddr=b8:ae:1d:01:00:00ethprime=FECfdt_addr=0x83000000fdt_file=imx6ull-14x14-emmc-7-1024x600-c.dtbfdt_high=0xfffffffffileaddr=83000000filesize=9727findfdt=if test $fdt_file = undefined; then if test $board_name = EVK && test $board_rev = 9X9; then setenv fdt_file imx6ull-9x9-evk.dtb; fi; if test $board_name = EVK && test $board_rev = 14X14; then setenv fdt_file imx6ull-14x14-evk.dtb; fi; if test $fdt_file = undefined; then echo WARNING: Could not determine dtb to use; fi; fi;gatewayip=192.168.1.1get_cmd=dhcpimage=zImageinitrd_addr=0x83800000initrd_high=0xffffffffip_dyn=yesipaddr=192.168.1.10loadaddr=0x80800000loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber="" clk_ignore_unusedmmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}mmcautodetect=yesmmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;mmcdev=0mmcpart=1mmcroot=/dev/mmcblk0p2 rootwait rwnetargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcpnetboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;netmask=255.255.255.0panel=ATK-LCD-7-1024x600script=boot.scrserverip=192.168.1.15Environment size: 2704/8188 bytes=>

7、配置 uboot 参数

根据实际情况配置:

setenv ipaddr 192.168.6.200setenv gatewayip 192.168.6.2setenv serverip 192.168.6.129saveenv

四、rootfs

1、版本选择

2、解压

tar -xvf rootfs.tar.bz2

五、Linux

1、版本选择

2、解压

tar -xvf linux-imx-rel_imx_4.1.15_2.1.0_ga_alientek.tar.bz2

onlylove@ubuntu:~/my/linux/linux-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ pwd/home/onlylove/my/linux/linux-imx-rel_imx_4.1.15_2.1.0_ga_alientekonlylove@ubuntu:~/my/linux/linux-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ lsarchDocumentation initlib mx6ull_14x14_evk_nand.sh REPORTING-BUGS toolsblock drivers ipclinux.code-workspace mx6ull_alientek_emmc.sh samples usrCOPYING firmware Kbuild MAINTAINERS mx6ull_alientek_nand.sh scripts virtCREDITS fs Kconfig Makefile net security vmlinux.discrypto include kernel mmREADMEsoundonlylove@ubuntu:~/my/linux/linux-imx-rel_imx_4.1.15_2.1.0_ga_alientek$

3、编译

onlylove@ubuntu:~/my/linux/linux-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ lsarchDocumentation initlib mx6ull_14x14_evk_nand.sh REPORTING-BUGS toolsblock drivers ipclinux.code-workspace mx6ull_alientek_emmc.sh samples usrCOPYING firmware Kbuild MAINTAINERS mx6ull_alientek_nand.sh scripts virtCREDITS fs Kconfig Makefile net security vmlinux.discrypto include kernel mmREADMEsoundonlylove@ubuntu:~/my/linux/linux-imx-rel_imx_4.1.15_2.1.0_ga_alientek$ cat mx6ull_alientek_emmc.sh #!/bin/shmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distcleanmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- imx_alientek_emmc_defconfigmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfigmake ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- all -j16onlylove@ubuntu:~/my/linux/linux-imx-rel_imx_4.1.15_2.1.0_ga_alientek$

编译成功后,将 zImage 和 设备树拷贝到 tftp 下载目录下。

onlylove@ubuntu:~/my/tftp$ pwd/home/onlylove/my/tftponlylove@ubuntu:~/my/tftp$ lsimx6ull-alientek-emmc.dtb zImageonlylove@ubuntu:~/my/tftp$

4、uboot 加载启动 linux

1、uboot加载命令

tftp 80800000 zImagetftp 83000000 imx6ull-alientek-emmc.dtbbootz 80800000 - 83000000

2、uboot加载参数配置

setenv bootargs 'console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.6.129:/home/onlylove/my/nfs,proto=tcp,nfsvers=4 rw ip=192.168.6.200:192.168.6.129:192.168.6.2:255.255.255.0::eth0:off'setenv bootcmd 'tftp 80800000 zImage;tftp 83000000 imx6ull-alientek-emmc.dtb;bootz 80800000 - 83000000;'saveenv

3、加载过程

U-Boot .03 (Aug 20 - 00:46:14 -0700)CPU: Freescale i.MX6ULL rev1.1 69 MHz (running at 396 MHz)CPU: Industrial temperature grade (-40C to 105C) at 54CReset cause: PORBoard: MX6ULL ALIENTEK EMMCI2C: readyDRAM: 512 MiBMMC: FSL_SDHC: 0, FSL_SDHC: 1unsupported panel ATK-LCD-7-1024x600In: serialOut: serialErr: serialswitch to partitions #0, OKmmc0 is current deviceNet: FEC1Normal BootHit any key to stop autoboot: 0FEC1 Waiting for PHY auto negotiation to complete.... doneUsing FEC1 deviceTFTP from server 192.168.6.129; our IP address is 192.168.6.20Filename 'zImage'.Load address: 0x80800000Loading: ###################################################################################################################################################################################################################################################################################################################################################################################################################2.3 MiB/sdoneBytes transferred = 5901752 (5a0db8 hex)Using FEC1 deviceTFTP from server 192.168.6.129; our IP address is 192.168.6.20Filename 'imx6ull-alientek-emmc.dtb'.Load address: 0x83000000Loading: ###3.4 MiB/sdoneBytes transferred = 39280 (9970 hex)Kernel image @ 0x80800000 [ 0x000000 - 0x5a0db8 ]## Flattened Device Tree blob at 83000000Booting using the fdt blob at 0x83000000Using Device Tree in place at 83000000, end 8300c96fStarting kernel ...Booting Linux on physical CPU 0x0Linux version 4.1.15 (onlylove@ubuntu) (gcc version 4.9.4 (Linaro GCC 4.9-.01) ) #1 SMP PREEMPT Sat Aug 20 01:19:15 PDT CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387dCPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cacheMachine model: Freescale i.MX6 ULL 14x14 EVK BoardReserved memory: created CMA memory pool at 0x8c000000, size 320 MiBReserved memory: initialized node linux,cma, compatible id shared-dma-poolMemory policy: Data cache writeallocPERCPU: Embedded 12 pages/cpu @8bb2f000 s16768 r8192 d24192 u49152Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048Kernel command line: console=ttymxc0,115200 root=/dev/nfs nfsroot=192.168.6.129:/home/onlylove/my/nfs,proto=tcp,nfsvers=4 rw ip=192.168.6.200:192.168.6.129:192.168.6.2:255.255.255.0::eth0:offPID 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: 180220K/524288K available (7300K kernel code, 333K rwdata, 2524K rodata, 404K init, 439K bss, 16388K 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 - 0x809a0308 (9825 kB).init : 0x809a1000 - 0x80a06000 ( 404 kB).data : 0x80a06000 - 0x80a595e0 ( 334 kB).bss : 0x80a5c000 - 0x80ac9fc4 ( 440 kB)SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1Preemptible hierarchical RCU implementation.Additional per-CPU info printed with stalls.RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1NR_IRQS:16 nr_irqs:16 16mxc_clocksource_init 3000000Switching to timer-based delay loop, resolution 333nssched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841nsclocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 nsConsole: colour dummy device 80x30Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)pid_max: default: 32768 minimum: 301Mount-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 propertyCPU0: thread -1, cpu 0, socket 0, mpidr 80000000Setting up static identity map for 0x80008280 - 0x800082f0Brought up 1 CPUsSMP: Total of 1 processors activated (6.00 BogoMIPS).CPU: All CPU(s) started in SVC mode.devtmpfs: initializeddevice-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 nspinctrl core: initialized pinctrl subsystemNET: Registered protocol family 16DMA: preallocated 256 KiB pool for atomic coherent allocationscpuidle: using governor laddercpuidle: using governor menuhw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.hw-breakpoint: maximum watchpoint size is 8 bytes.imx6ul-pinctrl 20e0000.iomuxc: Invalid fsl,pins property in node /soc/aips-bus@02000000/iomuxc@020e0000/imx6ul-evk/flexcan2grpimx6ul-pinctrl 20e0000.iomuxc: Invalid fsl,pins property in node /soc/aips-bus@02000000/iomuxc@020e0000/imx6ul-evk/uart2dtegrpimx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driverimx6ul-pinctrl 2290000.iomuxc-snvs: Invalid fsl,pins property in node /soc/aips-bus@02200000/iomuxc-snvs@02290000/imx6ul-evk/lcdifresetgrpimx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl drivermxs-dma 1804000.dma-apbh: initializedSCSI subsystem initializedusbcore: registered new interface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbi2c i2c-0: IMX I2C adapter registeredi2c i2c-0: can't use DMAi2c i2c-1: IMX I2C adapter registeredi2c i2c-1: can't use DMALinux video capture interface: v2.00pps_core: LinuxPPS API ver. 1 registeredpps_core: Software ver. 5.3.6 - Copyright - Rodolfo Giometti <giometti@linux.it>PTP clock support registeredAdvanced Linux Sound Architecture Driver Initialized.Switched to clocksource mxc_timer1NET: Registered protocol family 2TCP 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 1RPC: 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 loadedfutex hash table entries: 256 (order: 2, 16384 bytes)VFS: Disk quotas dquot_6.6.0VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)NFS: Registering the id_resolver key typeKey type id_resolver registeredKey type id_legacy registeredjffs2: version 2.2. (NAND) © 2001- Red Hat, Inc.fuse init (API version 7.23)io scheduler noop registeredio scheduler deadline registeredio scheduler cfq registered (default)imx-weim 21b8000.weim: Driver registered.backlight supply power not found, using dummy regulator21c8000.lcdif supply lcd not found, using dummy regulatormxsfb 21c8000.lcdif: failed to find mxc display driverConsole: switching to colour frame buffer device 128x37mxsfb 21c8000.lcdif: initializedimx-sdma 20ec000.sdma: no event needs to be remappedimx-sdma 20ec000.sdma: loaded firmware 3.3imx-sdma 20ec000.sdma: initialized000.serial: ttymxc0 at MMIO 0x000 (irq = 19, base_baud = 5000000) is a IMXconsole [ttymxc0] enabled21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 233, base_baud = 5000000) is a IMXimx sema4 driver is registered.[drm] Initialized drm 1.1.0 0810[drm] Initialized vivante 1.0.0 0216 on minor 0brd: module loadedloop: module loadedfsl-quadspi 21e0000.qspi: unrecognized JEDEC id bytes: ff, ff, fffsl-quadspi 21e0000.qspi: Freescale QuadSPI probe failedspi_imx 000.ecspi: probedCAN device driver interfaceflexcan 2090000.can: device registered (reg_base=a09e8000, irq=25)20b4000.ethernet supply phy not found, using dummy regulatorpps pps0: new PPS source ptp0libphy: fec_enet_mii_bus: probedfec 20b4000.ethernet eth0: registered PHC device 02188000.ethernet supply phy not found, using dummy regulatorpps pps1: new PPS source ptp1fec 2188000.ethernet eth1: registered PHC device 1PPP generic driver version 2.4.2PPP BSD Compression module registeredPPP Deflate Compression module registeredPPP MPPE Compression module registeredNET: Registered protocol family 24usbcore: registered new interface driver rtl8187usbcore: registered new interface driver rndis_wlanusbcore: registered new interface driver r8152usbcore: registered new interface driver asixusbcore: registered new interface driver ax88179_178ausbcore: registered new interface driver cdc_etherusbcore: registered new interface driver net1080usbcore: registered new interface driver rndis_hostusbcore: registered new interface driver cdc_subsetusbcore: registered new interface driver zaurususbcore: registered new interface driver cdc_ncmGobiNet: Quectel_WCDMA&LTE_Linux&Android_GobiNet_Driver_V1.3.0usbcore: registered new interface driver GobiNetehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driverehci-mxc: Freescale On-Chip EHCI Host driverohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driverusbcore: registered new interface driver cdc_acmcdc_acm: USB Abstract Control Model driver for USB modems and ISDN adaptersusbcore: registered new interface driver usb-storageusbcore: registered new interface driver usbserialusbcore: registered new interface driver optionusbserial: USB Serial support registered for GSM modem (1-port)2184800.usbmisc supply vbus-wakeup not found, using dummy regulator2184000.usb supply vbus not found, using dummy regulatorci_hdrc ci_hdrc.0: EHCI Host Controllerci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00hub 1-0:1.0: USB hub foundhub 1-0:1.0: 1 port detected2184200.usb supply vbus not found, using dummy regulatorci_hdrc ci_hdrc.1: EHCI Host Controllerci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00hub 2-0:1.0: USB hub foundhub 2-0:1.0: 1 port detectedmousedev: PS/2 mouse device common for all miceinput: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0usbcore: registered new interface driver xpadusb 2-1: new high-speed USB device number 2 using ci_hdrcinput: EP0820M09 as /devices/platform/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-0038/input/input1snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0i2c /dev entries driverIR NEC protocol handler initializedIR RC5(x/sz) protocol handler initializedIR RC6 protocol handler initializedIR JVC protocol handler initializedIR Sony protocol handler initializedIR SANYO protocol handler initializedIR Sharp protocol handler initializedIR MCE Keyboard/mouse protocol handler initializedIR XMP protocol handler initializedpxp-v4l2 pxp_v4l2: initializedimx2-wdt 20bc000.wdog: use WDOG_B to reboot.imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)sdhci: Secure Digital Host Controller Interface driversdhci: Copyright(c) Pierre Ossmansdhci-pltfm: SDHCI platform and OF driver helper/soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecifiedsdhci-esdhc-imx 2190000.usdhc: Got CD GPIOsdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator foundhub 2-1:1.0: USB hub foundhub 2-1:1.0: 4 ports detectedmmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA/soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecifiedsdhci-esdhc-imx 2194000.usdhc: No vmmc regulator foundsdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator foundmmc0: host does not support reading read-only switch, assuming write-enablemmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMAusbcore: registered new interface driver usbhidusbhid: USB HID core drivermmc0: new high speed SDHC card at address aaaammcblk0: mmc0:aaaa SC16G 14.8 GiBmmcblk0: p1fsl-asrc 2034000.asrc: driver registeredimx-wm8960 sound: wm8960-hifi <-> 202c000.sai mapping okimx-wm8960 sound: snd-soc-dummy-dai <-> 2034000.asrc mapping okimx-wm8960 sound: wm8960-hifi <-> 202c000.sai mapping okmmc1: MAN_BKOPS_EN bit is not setNET: Registered protocol family 10mmc1: new HS200 MMC card at address 0001mmcblk1: mmc1:0001 8GTF4R 7.28 GiBsit: IPv6 over IPv4 tunneling driverNET: Registered protocol family 17can: controller area network core (rev 0528 abi 9)mmcblk1boot0: mmc1:0001 8GTF4R partition 1 4.00 MiBmmcblk1boot1: mmc1:0001 8GTF4R partition 2 4.00 MiBmmcblk1rpmb: mmc1:0001 8GTF4R partition 3 512 KiBNET: Registered protocol family 29can: raw protocol (rev 0528)mmcblk1: p1 p2can: broadcast manager protocol (rev 0528 t)can: netlink gateway (rev 0117) max_hops=1lib80211: common routines for IEEE802.11 driversKey type dns_resolver registeredRegistering SWP/SWPB emulation handlerinput: gpio-keys as /devices/platform/gpio-keys/input/input2snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:23:05 UTC (1385)fec 20b4000.ethernet eth0: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=20b4000.ethernet:01, irq=-1)IPv6: ADDRCONF(NETDEV_UP): eth0: link is not readyfec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/txIPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes readyIP-Config: Complete:device=eth0, hwaddr=b8:ae:1d:01:00:00, ipaddr=192.168.6.200, mask=255.255.255.0, gw=192.168.6.2host=192.168.6.200, domain=, nis-domain=(none)bootserver=192.168.6.129, rootserver=192.168.6.129, rootpath=gpio_dvfs: disablingcan-3v3: disablingALSA device list:#0: wm8960-audioVFS: Mounted root (nfs4 filesystem) on device 0:15.devtmpfs: mountedFreeing unused kernel memory: 404K (809a1000 - 80a06000)ALSA: Restoring mixer setting......Please press Enter to activate this console. random: nonblocking pool is initialized/var/empty must be owned by root and not group or world-writable./ # lsbin homemnt share videodev include music sys 中文测试drivers lib proctmpetc linuxrc rootusrgdbtest minicom.log sbinvar/ #

5、挂载异常解决

如果觉得《i.MX 6ULL 驱动开发 一:搭建开发环境》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。