GNU/Linux - U-Boot中的i2c命令

u-boot=> i2c

i2c - I2C sub-system

Usage:

i2c bus [muxtype:muxaddr:muxchannel] - show I2C bus info

i2c crc32 chip address[.0, .1, .2] count - compute CRC32 checksum

i2c dev [dev] - show or set current I2C bus

i2c loop chip address[.0, .1, .2] [# of objects] - looping read of device

i2c md chip address[.0, .1, .2] [# of objects] - read from I2C device

i2c mm chip address[.0, .1, .2] - write to I2C device (auto-incrementing)

i2c mw chip address[.0, .1, .2] value [count] - write to I2C device (fill)

i2c nm chip address[.0, .1, .2] - write to I2C device (constant address)

i2c probe [address] - test for and show device(s) on the I2C bus

i2c read chip address[.0, .1, .2] length memaddress - read to memory

i2c write memaddress chip address[.0, .1, .2] length [-s] - write memory

          to I2C; the -s option s

ers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cbfs/libcbfs.o fs/cramfs/libcramfs.o fs/ext4/libext4fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/libfs.o fs/reiserfs/libreiserfs.o fs/sandbox/libsandboxfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o fs/zfs/libzfs.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/nvram_mngr/libnvram_mngr.o lib/rsa/librsa.o lib/xz/libxz.o lib/zlib/libz.o net/libnet.o post/libpost.o test/libtest.o board/ingenic/isvp_t31/libisvp_t31.o --end-group -L /usr/lib/gcc-cross/mips-linux-gnu/5 -lgcc -Map u-boot.map -o u-boot mips-linux-gnu-ld.bfd: /usr/lib/gcc-cross/mips-linux-gnu/5/libgcc.a(_lshrdi3.o): compiled for a big endian system and target is little endian mips-linux-gnu-ld.bfd: /usr/lib/gcc-cross/mips-linux-gnu/5/libgcc.a(_lshrdi3.o): endianness incompatible with that of the selected emulation mips-linux-gnu-ld.bfd: 合并目标文件 /usr/lib/gcc-cross/mips-linux-gnu/5/libgcc.a(_lshrdi3.o) 的特定数据时失败 mips-linux-gnu-ld.bfd: /usr/lib/gcc-cross/mips-linux-gnu/5/libgcc.a(_ashldi3.o): compiled for a big endian system and target is little endian mips-linux-gnu-ld.bfd: /usr/lib/gcc-cross/mips-linux-gnu/5/libgcc.a(_ashldi3.o): endianness incompatible with that of the selected emulation mips-linux-gnu-ld.bfd: 合并目标文件 /usr/lib/gcc-cross/mips-linux-gnu/5/libgcc.a(_ashldi3.o) 的特定数据时失败 Makefile:653: recipe for target 'u-boot' failed make[2]: *** [u-boot] Error 1 make[2]: Leaving directory '/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot' .boards.depend:534: recipe for target 'isvp_t31_sfcnor_ddr128M' failed make[1]: *** [isvp_t31_sfcnor_ddr128M] Error 2 make[1]: Leaving directory '/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot' /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS #/home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/build/pad_camera_u-boot.sh -i /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/os/uboot/u-boot/u-boot-with-spl.bin -o /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/os/uboot/bin/uboot.bin -b /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/os/uboot/bin/boot_SOC_T31Z_V2.bin /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/build/pad_camera_u-boot.sh -i /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/os/uboot/u-boot/u-boot-with-spl.bin -o /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/os/uboot/bin/uboot.bin -b /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/os/uboot/bin/240927-u-boot-with-spl.bin error: Can't find input file: /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/sdk/zeratul_sdk/os/uboot/u-boot/u-boot-with-spl.bin /home/wuhsulei/share_smbd/Cworkspace/2D230/CAMEOS/product_configs/D230V1P20/product.mk:186: recipe for target 'uboot' failed make: *** [uboot] Error 1
11-18
正常编译log Configuring for isvp_t31_sfcnor_ddr128M - Board: isvp_t31, Options: SPL_SFC_SUPPORT,ENV_IS_IN_SPI_FLASH,SPL_SFC_NOR,JZ_MMC_MSC0,DDR2_128M make make[2]: Entering directory '/home/lixueming/00lixueming/zeratul_1.2/os/uboot/u-boot' Generating include/autoconf.mk Generating include/autoconf.mk.dep mips-linux-gnu-gcc -DDO_DEPS_ONLY \ -g -Os -ffunction-sections -fdata-sections -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x80100000 -DCONFIG_SPL_TEXT_BASE=0x80001000 -DCONFIG_SPL_PAD_TO=36864 -I/home/lixueming/00lixueming/zeratul_1.2/os/uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /home/lixueming/00lixueming/cameos_BS_1.2/toolchain/zeratul_sdk/mips-gcc472-glibc216-64bit/bin/../lib/gcc/mips-linux-gnu/4.7.2/include -pipe -msoft-float -std=gnu89 -DCONFIG_MIPS -D__MIPS__ -G 0 -EL -msoft-float -fpic -mabicalls -march=mips32 -mabi=32 -DCONFIG_32BIT -mno-branch-likely -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage -DCONFIG_TP_SERIAL_FORBIDDEN \ -o lib/asm-offsets.s lib/asm-offsets.c -c -S In file included from /home/lixueming/00lixueming/zeratul_1.2/os/uboot/u-boot/include/config.h:15:0, from /home/lixueming/00lixueming/zeratul_1.2/os/uboot/u-boot/include/common.h:37, from lib/asm-offsets.c:18: 出问题的编译log ls: 无法访问'/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot/tools/charge_logo/*.jpg': 没有那个文件或目录 make[2]: Leaving directory '/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot/tools/ingenic-tools' make[1]: Leaving directory '/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot' make[1]: Entering directory '/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot' Configuring for isvp_t31_sfcnor_ddr128M - Board: isvp_t31, Options: SPL_SFC_SUPPORT,ENV_IS_IN_SPI_FLASH,SPL_SFC_NOR,JZ_MMC_MSC0,DDR2_128M make make[2]: Entering directory '/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot' make[2]: mips-linux-gnu-gcc:命令未找到 /bin/sh: mips-linux-gnu-gcc: 未找到命令 dirname: 缺少操作数 Try 'dirname --help' for more information. Generating include/autoconf.mk /bin/sh: 行 3: mips-linux-gnu-gcc: 未找到命令 Generating include/autoconf.mk.dep /bin/sh: 行 3: mips-linux-gnu-gcc: 未找到命令 make[2]: mips-linux-gnu-gcc:命令未找到 /bin/sh: mips-linux-gnu-gcc: 未找到命令 dirname: 缺少操作数 Try 'dirname --help' for more information. /bin/sh: mips-linux-gnu-gcc: 未找到命令 mips-linux-gnu-gcc -DDO_DEPS_ONLY \ -g -Os -ffunction-sections -fdata-sections -D__KERNEL__ -I/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem -pipe -msoft-float -std=gnu89 -DCONFIG_MIPS -D__MIPS__ -G 0 -EB -msoft-float -fpic -mabicalls -march=mips32 -mabi=32 -DCONFIG_32BIT -mno-branch-likely -Wall -Wstrict-prototypes -DCONFIG_TP_SERIAL_FORBIDDEN \ -o lib/asm-offsets.s lib/asm-offsets.c -c -S make[2]: mips-linux-gnu-gcc:命令未找到 Makefile:779: recipe for target 'lib/asm-offsets.s' failed make[2]: *** [lib/asm-offsets.s] Error 127 make[2]: Leaving directory '/home/wuhsulei/share_smbd/Cworkspace/2D230/zeratul/os/uboot/u-boot' .boards.depend:534: recipe for target 'isvp_t31_sfcnor_ddr128M' failed make[1]: *** [isvp_t31_sfcnor_ddr128M] Error 2 请问问题可能出在哪?
最新发布
11-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夜流冰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值