Monthly: February 2011
dnw for linux: Ubuntu下可用,无需编译驱动,mini2440可用
我上次找到的一个dnw需要编译驱动,然后用insmod命令加入内核。不过这个完全没有这么复杂!编译和使用也非常方便!速度也不错!
该文件需要libusb库,没有该库需要先安装:
$ sudo apt-get install libusb-dev
下面给出源代码:点击下载
/* dnw2 linux main file. This depends on libusb.
*
* Author: Fox <hulifox008@163.com>
... [阅读全文]
挂载NFS错误排解
NFS错误排解:按步骤来!
启动 portmap 或者 rpcbind
service rpcbind start (or service portmap start)
启动由客户端和服务器端共享的服务
service nfs-common start
启动服务器端服务
server nfs-server start
NFS错误排解:说说具体的!
错误类型1:
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcb... [阅读全文]
Kernel: 编译、安装内核详细过程
本文已过期!请查看更新版本:Kernel:编译、安装内核详解教程
清理
$ make distclean
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
复制配置文件(自己配置可以省略此步骤)
cp /boot/config-current_version-general ./.config
生成配置文件
$ make menuconfig
HOSTCC scripts/basi... [阅读全文]
三、GRUB2:删除内核文件,删除多余引导菜单项
GRUB2中没有menu.lst,并且不允许直接编辑/boot/grub/grub.cfg。那么怎么删除多余的引导菜单项呢?
答案是必须先删除/boot下的相关内核文件,以及与之相关的模块文件
自动删除内核文件
System -> Administration -> Synaptic Package Manager
搜索 “linux-image”
找到你要删除的kernel,Mark for complete removal,Apply
注意:不需要再另外执... [阅读全文]
二、GRUB2配置详解:默认启动项,超时时间,隐藏引导菜单,配置文件详解,图形化配置
配置文件详解: /etc/default/grub
# 设定默认启动项,推荐使用数字
GRUB_DEFAULT=0
# 注释掉下面这行将会显示引导菜单
#GRUB_HIDDEN_TIMEOUT=0
# 黑屏,并且不显示GRUB_HIDDEN_TIMEOUT过程中的倒计时
GRUB_HIDDEN_TIMEOUT_QUIET=true
# 设定超时时间,默认为10秒
# 设定为-1取消倒计时
GRUB_TIMEOUT=10
# 获得发行版名称(比如Ubunt... [阅读全文]
一、GRUB, GRUB2: 区别、比较
关于版本:
GRUB2 使之版本号为1.98之后的grub;GRUB legacy(版本为0.97)是指GRUB,而非GRUB2
检测版本:
$ grub-install -v
grub-install (GNU GRUB 1.98-1ubuntu10)
GRUB2与GRUB的区别:
1.GRUB2引导菜单启动项是从/boot自动生成的,不是有menu.lst配置的。
2.执行grub-update之后会自动更新启动项列表,自动添加有效的操作系统项目
3.分区编号... [阅读全文]
Ubuntu 10.04: 配置NFS
本文主要介绍Ubuntu 10.04上NFS服务的安装、配置。
安装NFS相关的软件包
$ sudo apt-get install nfs-kernel-server
进行配置
与之相关的配置文件有:
/etc/default/nfs-kernel-server
NEED_SVCGSSD=no # no is default
注释: 因为我们并不打算启用NFSv4 安全配置
注意: 如果启用,客户端也必须启用
/etc/default/nfs-common
这是一个common配置... [阅读全文]
What does it mean: apt-get with caret (^)
I was confused about this for quite a long while, but now I find the answer and I am going to let you know.
我也曾为此问题困扰很久,直到最近我才直到答案,现分享给大家:
A past post of mine mentioned sudo apt-get install lamp-server^ . What does it mean?
Actually, the ^ here makes apt-get behave as tasksel.
In other words, i... [阅读全文]
在Ubuntu上建立tftp服务器 ( Set up tftp server on Ubuntu )
tftp(Trival File Transfer Protocol)是一种轻量级的文件传输协议,TFTP报文封装在UDP包之中(默认端口:69),并不可靠,因此不能 ls ,也不能认证。
但是,在嵌入式开发中,它能够为目标机提供高速下载服务。由于是在局域网中,因此数据出错的概率也是相当小。
在Ubuntu上安装tftp服务器并不复杂:
安装ftpd以及相关软件包
$ sudo apt-get install ... [阅读全文]
Solved: J-Flash ARM: PC of target system has unexpected value after …
While erasing/programming the NOR Flash of min2440, I find J-Flash ARM resists responding:
PC of target system has unexpected value after …
To solve this problem, go to
Options -> Projection settings -> CPU -> Use following init sequence ->
find Item0, set Action from Reset to Halt
Done!
Click to enlarge
[阅读全文]
近期评论 Recent Comments