文件管理 · 2022年8月21日

ltib配置文件|如何参看或配置DDR工作频率IMX6Q的SD卡IMX6D能直接用吗

『壹』 zlib找不到怎么办,明明装了zlib。

在系统有网络的情况下,可以联网安装:sudo apt-get install zlib或者,有的系统是用yum install命令。也可以使用相关的命令来查看已经安装的包。

『贰』 ubuntu不通过ltib单独编译内核

运行make就行。执行之前可以先运行makeclean清空生成的内核文件,或者编译中间有问题了,想重新编译,可以用这个先清空已经生成的内核文件。在VirtualBox虚拟机的ubuntu8、04系统里面执行make命令,结果make一次花的编译时间应该在两个小时以上。

『叁』 我用VC++6.0点击打开.dsw文件提示[DBNELTIB] [ConnectionOpen (Connect()).] SQLserver 不存在或拒绝访问是

你连接了MSSQLSERVER服务器连接字段可能和你本地的数据库不匹配重新连接一下

『肆』 交叉编译时,如何链接指定路径下的库

在整个工程的configure.in文件中加入如下代码:#configure.inif test x$CC = xgcc; then#AC_PATH_PROG(BLKID, blkid, [], [$PATH:/sbin])#AC_PATH_PROG(VOLID, vol_id, [], [$PATH:/lib/udev])AC_MSG_WARN($BLKID ————————————–) #code only for testAM_CONDITIONAL(MY_CROSS_COMPILE,false)else#AC_PATH_PROG(BLKID, blkid, [], [/home/user-name/ltib/rootfs/sbin])#AC_PATH_PROG(VOLID, vol_id, [], [/home/user-name/ltib/rootfs/lib])AC_MSG_WARN($BLKID ++++++++++++++++++++++++++++++++++++++) #code only for testAM_CONDITIONAL(MY_CROSS_COMPILE,true)fi在需要blkid库的Makefile.am文件中if MY_CROSS_COMPILEAM_CPPFLAGS = -include $(top_builddir)/config.h -I ../include \-DLOCALEDIR=\"$(localedir)\" -I /home/user-name/ltib/rootfs/usr/includeAM_CFLAGS = -fsigned-char -I /home/user-name/ltib/rootfs/usr/includeelseAM_CPPFLAGS = -include $(top_builddir)/config.h -I ../include \-DLOCALEDIR=\"$(localedir)\"AM_CFLAGS = -fsigned-char endiflib_mount_la_LIBADD = $(LDADD_common)LDADD_common = if MY_CROSS_COMPILELDADD_common += -L$(LTIB_PATH)/rootfs/usr/lib -lblkid -luuidelseLDADD_common += -lblkid -luuidendif

『伍』 [求助 i.mx6 vpu] 在rpm/BUILD/imx-lib*/下找不到vpu目录,求各位前辈指点

是这样的,我想单独编译IMX_MMCODEC*/ltib codecs/libfslvpuwrap-*。但是我执行./configure时提示 lib_vpu is required, consider installing imx-lib我已经在ltib里选择了:imx-test、imx-lib、imx-vpu-lib另外,我自己做了个makefile编译上述文件时,提示找不到vpu-lib.h。我找到这个文件,并用-L指定了这个路径,编译通过;但是链接不通过,因为没有vpu的库。我想知道如何安装vpu库,因为我想在自己的程序里调用vpu-lib.h里面的函数。另外,《linux reference manual》里VPU一章说,执行前述指令后,在rpm/BUILD/imx-lib*/下有vpu目录,莫非我理解有误? 查看更多答案>>

『陆』 使arm-linux-gcc 编译器编译.c文件但是报错,怎样才能找到头文件呢

ifneq ($(KERNELRELEASE),)obj-m:=hello.oelseKERNELDIR := /opt/kangear/kernel/linux-2.6.32.2PWD := $(shell pwd)default: make -C $(KERNELDIR) M=$(PWD) molesendif

makefile这样写,KERNELDIR是内核源代码位置。

『柒』 如何参看或配置DDR工作频率IMX6Q的SD卡IMX6D能直接用吗

由于项目需要,把玩了半年的DSP(c6748),扔到了一边,玩起了IMX6Q。本人使用的开发板是imx6q_sarbe_sd(MCIMX6Q-SDB),以下记录如何通过u-boot设置SD,NFS启动。由于IMX6Q的linux包建议在ubuntu9.04下,非root用户下使用,首先ubuntu9.04有bug,其次非root用户,操作起来很不方便。一:SD卡启动SD卡启动,需要先把uboot,kernel,filesystem烧写到SD卡上。SD卡烧写前,可以先在windows下把它格式化。板子启动时SW6设置为8‘b0100_0010以下几步为SD卡烧写步骤:1,SD卡烧写1.1,烧写ubootsudo dd if=u-boot.bin of=/dev/sdb bs=512 seek=2 skip=2 conv=fsync 1.2,烧写uImagesudo dd if=uImage of=/dev/sdb bs=512 seek=2048 conv=fsync1.3,烧写filesystem首先需要把SD卡分一个区来保存文件系统。操作步骤如下:(1)分区$ fdisk /dev/sdbu [switch the unit to sectors instead of cylinders]d [repeat this until no partition is reported by the 'p' command ]n [create a new partition]p [create a primary partition]1 [the first partition]16384 [starting at offset sector #16384, i.e. 8MB, which leaves enough space for the kernel, the boot loader and its configuration data]<enter> [using the default value will create a partition that spans to the last sector of the medium]w [ this writes the partition table to the medium and fdisk exits](2)卸载分区$ sudo umount /dev/sdb1(3)格式化分区,可以是ext3格式,或ext4$ sudo mkfs.ext3 /dev/sdb1 Or $ sudo mkfs.ext4 /dev/sdb1(4)挂载sdb1$ mkdir /home/user/Freescale/mountpoint $ sudo mount /dev/sdb1 /home/user/Freescale/mountpoint (5)复制文件系统$ cd /home/user/Freescale/rootfs$ sudo cp -a * /home/user/Freescale/mountpoint2,uboot变量设置setenv loadaddr 0x10800000setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'setenv bootargs_mmc 'setenv bootargs ${bootargs} ip=${ipaddr} root=/dev/mmcblk1p1 rootwait rwsetenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc dev 2;mmc read ${loadaddr} 0x800 0x2000;bootm'//注意这里的mmc dev 2,dev 2 对应板子上是slot3setenv bootcmd 'run bootcmd_mmc'saveenv 二:NFS启动网络启动是在uboot起来后才能完成,因此必须先有SD卡进行uboot引导。uboot起来后,通过串口设置uboot变量,达到自己想要的启动方式。由于开发的过程kernel文件会不端更新,因此需要通过网络加载镜像文件,以下介绍使用tftpboot方式加载。1,tftp下载uImage1.1,设置ubuntu(1) Setup tftp server files # apt-get install tftpd tftp openbsd-inetd (2) make a tftp directory Here we make /opt/tftpboot be a tftp directory. # mkdir /opt/tftpboot # chmod 777 /opt/tftpboot (3) Open /etc/inetd.conf and edit it # gedit /etc/inetd.conf Add this line: tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /opt/tftpboot (4)Restarting tftp service #sudo /etc/init.d/openbsd-inetd restart 可以根据你的uImage文件放在路径,修改上述路径;也可以在/opt/tftpboot目录下生成一个目标连接文件。1.2,tftp下载uImageMX6Q SABRESD U-Boot >tftpboot uImage2,文件系统以NFS方式加载2.1 ,设置ubuntu(1), Install NFS server package # apt-get install nfs-kernel-server (2), Configure portmap # dpkg-reconfigure portmap Select “NO” (3) ,Configure mounted directory and authority # gedit /etc/exports Add the following line at the end of the file: /home/usr/ltib/rootfs *(rw,sync,no_root_squash) (4) ,Restart the NFS service #sudo /etc/init.d/portmap restart #sudo /etc/init.d/nfs-kernel-server restart 2.2,通过串口设置uboot变量设置setenv ipaddr 192.168.2.xxxsetenv serverip 192.168.2.xxx setenv bootfile uImage setenv nfsroot /home/carmili/ltib/rootfssetenv bootargs_base 'setenv bootargs console=ttymxc0,115200'setenv bootargs_nfs 'setenv bootargs ${bootargs} root=/dev/nfs rw ip=${ipaddr }:${serverip }:192.168.2.1:255.255.255.0::eth0:off nfsroot=${serverip}:${nfsroot},v3,tcpsetenv bootcmd_net 'run bootargs_base bootargs_nfs;bootm'setenv bootcmd 'tftpboot uImage; run bootcmd_net'