Linux问集锦.docVIP

  • 20
  • 0
  • 约 5页
  • 2017-06-12 发布于河南
  • 举报
Linux问集锦

Linux问题集锦 问题1、 插上U盘出现1usb 1-1: new full speed USB device using s3c2410-ohci and address 3 usb 1-1: configuration #1 chosen from 1 choice # cat /proc/partitions 读不到sda分区,说明有可能是U盘驱动没有装好,重新配置内核 解决:配置内核的USB部分 - Device Drivers - USB support * USB Mass Storage support - Device Drivers * SCSI device suppor 配置好之后,重新编译内核,插上U盘出现: usb 1-1: new full speed USB device using s3c2410-ohci and add ress 2 usb 1-1: configuration #1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices scsi 0:0:0:0: Direct-Access USB DISK DL07 PQ: 0 ANSI: 0 CCS sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 0:0:0:0: [sda] 7822560 512-byte hardware sectors: (4.00 GB/3.72 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: [sda] Assuming drive cache: write through sda: sd 0:0:0:0: [sda] Attached SCSI removable disk # cat /proc/partitions 有sda,即能读取U盘 问题2、 自己配置编译的内核,制作的文件系统(均使用的是3.4.1的交叉编译工具,这个必须配套,否则出错Kernel panic - not syncing: Attempted to kill init!),下到开发板里,可以正常启动,但是开发板总是周期性自动重启; 解决:没有喂狗,因为内核里配置了喂狗,而文件系统里没有喂狗,故重启,去掉内核里的喂狗,其实就是内核配置(make menuconfig)时把Device driver里的watchdog去掉就可以了。需要重新编译内核并烧写。 问题3、 [root@EmbedSky bin]# ./gs -h (在开发板上执行) ./gs: line 1: syntax error: unexpected ( 经过查找这个错误是由于编译程序所使用的编译器是gcc,使用gcc编译的程序可以在pc机上运行而不能在开发板上运行; 而要想程序在开发半上运行就需要使用编译器arm-linux-gcc进行编译,使用arm-linux-gcc编译的程序只能在开发板上运行而不能在pc机上运行,否则将出现bash: ./HelloWorld.o:无法执行二进制文件!bash: ./hello2: cannot execute binary file 注意:即在开发板上执行gcc编译的程序会出现【./gs: line 1: syntax error: unexpected (】,而在PC上执行arm-linux-gcc编译的程序会出现【bash: ./HelloWorld.o:无法执行二进制文件!或bash: ./hello2: cannot execute binary file】 问题4、 当执行程序[root@EmbedSky /]# ./foo2zjs 出现: -/bin/sh: ./foo2zjs: Permission denied 解决:表示权限不够,修改的权限为777或7-- 问题5、 注意:ghostscript-8.15软件支持3.4.1的交叉编译器,天嵌自带的4.3.3和3.4.5的交叉编译器都不支持,故使用它们编译时会报错。 问题6、 ./gs [root@EmbedSky bin]# ./gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=a4 -r300x300 -sDEVICE=pbmraw -sOutputFile=test.pbm test.ps Error: /undefined

文档评论(0)

1亿VIP精品文档

相关文档