Chinaunix首页 | 论坛 | 博客
  • 博客访问: 38741
  • 博文数量: 10
  • 博客积分: 360
  • 博客等级: 一等列兵
  • 技术积分: 100
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-31 10:24
文章分类
文章存档

2011年(1)

2010年(3)

2009年(6)

我的朋友

分类: 嵌入式

2009-09-16 17:37:05

1. make ARCH=arm CROSS_COMPILE=arm-linux- menuconfig

 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1
make: *** [menuconfig] 错误 2

解决方法:
sudo apt-get install ncurses-dev

2. 使用busybox制作rootfs
make ARCH=arm CROSS_COMPILE=arm-linux-
networking/interface.c:818: error: 'ARPHRD_INFINIBAND' undeclared here (not in a function)
make[1]: *** [networking/interface.o] Error 1
make: *** [networking] Error 2
解决办法:

在“networking/interface.c”添加:

#define ARPHRD_INFINIBAND 32 /* InfiniBand */
3.使用mini2440,采用nfs文件系统,linux启动参数为
"console=ttySAC0 root=/dev/nfs nfsroot=192.168.0.229:/home/yigc/rootfs_2440 ip=192.168.0.230:192.168.0.229:192.168.0.229:255.255.255.0:"

Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.

解决办法:
创建rootfs过程中,在/dev目录下手动创建如下节点:
mknod -m 660 null c 1 3
mknod -m 660 console c 5 1

4.

使用mini2440,采用nfs文件系统,linux启动参数为
"console=ttySAC0 root=/dev/nfs nfsroot=192.168.0.229:/home/yigc/rootfs_2440 ip=192.168.0.230:192.168.0.229:192.168.0.229:255.255.255.0:"
can't open /dev/tty3: No such file or directory
can't open /dev/tty2: No such file or directory
can't open /dev/tty4: No such file or directory

解决办法:
 ln -sf /dev/null /dev/tty2
ln -sf /dev/null /dev/tty3
ln -sf /dev/null /dev/tty4

5.
编译minigui时候,设置FB时出错:
NEWGAL>FBCON: Can't open /dev/tty0: No such file or directory

NEWGAL: Set video mode failure.

InitGUI: Can not initialize graphics engine!


解决办法:

内核配置时候选择下面的选项
Graphics support --->   
Support for frame buffer devices 
Virtual Frame Buffer support (ONLY FOR TESTING!)
Console display driver support --->
Framebuffer Console support     


阅读(3315) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~