[原创]ubuntu7.10上搭建arm9交叉开发环境

内核编译和嵌入式产品的设计与开发
yiqinchen
帖子: 19
注册时间: 2008-05-22 20:29

#16

帖子 yiqinchen » 2008-06-07 12:53

:oops: 怀恋 读书时那些 嵌入式陪伴的 日子
peter81015
帖子: 16
注册时间: 2008-01-19 19:33

Re: 菜鸟安装NFS失败,向各位大侠请教

#17

帖子 peter81015 » 2008-07-06 10:04

bucker 写了:菜鸟安装NFS失败,向各位大侠请教

输入:sudo apt-get install nfs-kernel-server
提示如下:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
E: 无法找到软件包 nfs-kernel-server

请问有何办法解决。我的系统是6.10版的,这样的问题和版本有关吗?
可能软件源的问题?你可以参考以下链接的快速设置指南试一下
http://wiki.ubuntu.org.cn/index.php?tit ... iant=zh-cn

安装过程需要系统光盘。
peter81015
帖子: 16
注册时间: 2008-01-19 19:33

搂主的帖子写的很不错

#18

帖子 peter81015 » 2008-07-06 10:18

应该置顶的帖子,我用的是Ubuntu7.04和橫颐2410EB的板子;

已经实现nfs的挂载,不过我对楼主最后从nfs启动有点疑问:
正常的从nandfalsh启动,然后再配置网络挂载nfs,也可以运行测试程序,为什么要从NFS启动呢?

还有一个问题请教专家:
我有ARM9的Muti-ICE仿真器,似乎它只能配合ADS在windows环境下调试一些简单程序,比如LED走马灯之类的,这种情况下是不用到嵌入式linux系统的。如果把linux内核的源代码加入ADS的工程中,能否由ADS来编译linux-kernel,开发调试基于嵌入式linux开发板上运行的程序,像单片机和keil一样,设置断点来进行调试诊断???
lgl_5923
帖子: 11
注册时间: 2008-05-06 18:23
来自: 云南-麻栗坡
联系:

#19

帖子 lgl_5923 » 2008-07-10 17:30

你好:
我看了你的贴子了,我用 的板子也是QQ2440的。照看你说的步骤做了,可是不到挂载目录,找不到,可以提示信息已经挂上了啊,以下是提示信息:

$: sudo mount -t nfs 192.168.0.212:/opt/QQ2440/NFS /mnt
mount: 192.168.0.212:/opt/QQ2440/NFS 已被挂载或 /mnt 正忙
mount: 根据 mtab 中的信息,192.168.0.212:/opt/QQ2440/NFS 已经被挂载到 /mnt 了

可是我到 /mnt目录下是空的:
$: cd /mnt/
$: ls
$:

会不会是权限的问题啊?
/etc/exports 配置是:
##My QQ2440
/opt/QQ2440/NFS 192.168.0.*(rw,sync)
第一次试时我加了,no_root_squash 还是一样的不能看到!

另外$: showmount -e 时出现提示信息是:
showmount: can't get address for akae-207-77
这是正常的吗?

su root 换不到root用户不知道怎么回事? 麻烦你有空时帮我解决一下,谢谢了!
我的QQ是:463383346 发在QQ上也行,谢谢了!
lijie_sh
帖子: 1
注册时间: 2008-07-10 23:06

#20

帖子 lijie_sh » 2008-07-10 23:08

我用的是8.04 为什么/dev下没有nfs呢
秋天的童话
帖子: 9
注册时间: 2008-04-02 21:52

#21

帖子 秋天的童话 » 2008-07-11 9:46

好东西,一定要顶的!
楼主能够留个联系方式
头像
xhylyx
帖子: 353
注册时间: 2007-04-09 15:19

#22

帖子 xhylyx » 2008-07-11 16:19

lgl_5923 写了:你好:
我看了你的贴子了,我用 的板子也是QQ2440的。照看你说的步骤做了,可是不到挂载目录,找不到,可以提示信息已经挂上了啊,以下是提示信息:

$: sudo mount -t nfs 192.168.0.212:/opt/QQ2440/NFS /mnt
mount: 192.168.0.212:/opt/QQ2440/NFS 已被挂载或 /mnt 正忙
mount: 根据 mtab 中的信息,192.168.0.212:/opt/QQ2440/NFS 已经被挂载到 /mnt 了

可是我到 /mnt目录下是空的:
$: cd /mnt/
$: ls
$:

会不会是权限的问题啊?
/etc/exports 配置是:
##My QQ2440
/opt/QQ2440/NFS 192.168.0.*(rw,sync)
第一次试时我加了,no_root_squash 还是一样的不能看到!

另外$: showmount -e 时出现提示信息是:
showmount: can't get address for akae-207-77
这是正常的吗?

su root 换不到root用户不知道怎么回事? 麻烦你有空时帮我解决一下,谢谢了!
我的QQ是:463383346 发在QQ上也行,谢谢了!
第五步你仔细检查下你成功的把NFS服务打开了没,你在本机上mount下看看
如果没成功那就是在第五步出问题了
如果第五步成功了你再看下你按照我第六步的设置做了没
lgl_5923
帖子: 11
注册时间: 2008-05-06 18:23
来自: 云南-麻栗坡
联系:

#23

帖子 lgl_5923 » 2008-07-12 16:00

我PC的NFS在别的机器mount成功了,
但进入QQ2440的supervivi>时,输入

param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.0.212:/opt/QQ2440/NFS ip=192.168.0.230:192.168.0.212:192.168.0.212:255.255.255.0:FriendlyARM.arm9.net:eth0:off"

****************************************************************************************************************
时出错了,以下是我的PC 的IP信息:

$: ifconfig
eth2 链路封装:以太网 硬件地址 00:E0:4C:6A:28:99
inet 地址:192.168.0.212 广播:192.168.0.255 掩码:255.255.255.0
inet6 地址: fe80::2e0:4cff:fe6a:2899/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:6518 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:1730 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:2365007 (2.2 MiB) 发送字节:363162 (354.6 KiB)
中断:19

lo 链路封装:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:199 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:199 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:15716 (15.3 KiB) 发送字节:15716 (15.3 KiB)

*****************************************************************************************************************
以下是板子IP的信息:

[root@FriendlyARM /]# sh shi.sh
eth0 Link encap:Ethernet HWaddr 08:00:3E:26:0A:5B
inet addr:192.168.0.230 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:922 (922.0 B) TX bytes:0 (0.0 B)
Interrupt:53 Base address:0x300

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
[root@FriendlyARM /]#


************************************************************************************************************
板子出错信息是:

Supervivi> param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.1
68.0.212:/opt/QQ2440/NFS ip=192.168.0.230:192.168.0.212:192.168.0.212:255.255.25



Supervivi> boot
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttySAC0 root=/dev/nfs nfsroot=192.1"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux.............................................................
............................................ done, booting the kernel.
Linux version 2.6.13 ([email protected]) (gcc version 3.4.1) #1 Tue Sep
18 06:09:37 CST 2007
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: SBC2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
BUG: mapping for 0x19000000 at 0xd0000000 overlaps vmalloc space
S3C2440: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.1
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000007
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 61184KB available (2535K code, 1005K data, 144K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
USB Power Control, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, UPLL 48.000 MHz
SCSI subsystem initialized
usbcore: registered new driver hub
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch ([email protected])
devfs: boot_options: 0x1
yaffs Sep 18 2007 06:07:37 Installing.
Initializing Cryptographic API
Console: switching to colour frame buffer device 30x20
S3C24X0 fb0: s3c2410fb frame buffer device initialize done
GPIO L3 bus interface for S3C2440, installed
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
leds initialized
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
eth0: CS8900A rev E at 0xd0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5B
Linux video capture interface: v1.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide_s3c2440_init
ide0: S3C2410 IDE interface
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand: mapped registers at c4880000
s3c2440-nand: timing: Tacls 9ns, Twrph0 39ns, Twrph1 9ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 3472 at 0x03640000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00030000 : "bootloader"
mtd: Giving out device 0 to bootloader
0x00050000-0x00250000 : "kernel"
mtd: Giving out device 1 to kernel
0x00250000-0x03ffc000 : "root"
mtd: Giving out device 2 to root
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
usbcore: registered new driver ov511
drivers/usb/media/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver
usbcore: registered new driver gspca
drivers/usb/media/gspca/gspca_core.c: gspca driver 00.60.00 registered
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
s3c2410 TouchScreen successfully loaded
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
mmci-s3c2410: probe: mapped sdi_base=c4d00000 irq=37 irq_cd=60 dma=0.
mmci-s3c2410: initialisation done.
SBC2440 SOUND driver register
SBC2440 SOUND driver probe!
SBC2440 UDA1341 audio driver initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond locked busy. Probably have broken SD-Card.
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

**********************************************************************************************************
然后就是死在那了,不知道为什么会这样,为什么没有挂载成功呢?是不是我的命令入的不对啊?

param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.0.212:/opt/QQ2440/NFS ip=192.168.0.230:192.168.0.212:192.168.0.212:255.255.255.0:FriendlyARM.arm9.net:eth0:off"

这是我输入的命令
麻烦你再我帮看看,谢谢了! --------梁光林
mxd271966940
帖子: 46
注册时间: 2007-12-27 20:50

#24

帖子 mxd271966940 » 2008-07-19 0:29

我mount mount -t nfs 192.168.2.2:/opt/FriendlyARM/QQ2440/root_nfs /mnt,这个失败,没有mount上,mount.nfs: access denied by server while mounting 192.168.2.2:/opt/FriendlyARM/QQ2440/root_nfs
lgl_5923
帖子: 11
注册时间: 2008-05-06 18:23
来自: 云南-麻栗坡
联系:

#25

帖子 lgl_5923 » 2008-07-20 19:00

在别人的机器上能mount上本机也能,可板子挂不上。。。。
很奇怪!
梁光林(void)
{
while(!终点)
printf(" 每天进步一点!");
return (成功);
}
deco1515
帖子: 13
注册时间: 2008-07-15 23:40

新手很着急

#26

帖子 deco1515 » 2008-07-24 11:02

minicom配置Serial Device时 已经改为dev/ttyS0
并Save setup as dfl ,可回看就变成/de/dev/ttyS0了
athurg
帖子: 3
注册时间: 2008-08-17 22:24

Re: 新手很着急

#27

帖子 athurg » 2008-08-25 20:47

deco1515 写了:minicom配置Serial Device时 已经改为dev/ttyS0
并Save setup as dfl ,可回看就变成/de/dev/ttyS0了
这种情况是因为默认的配置文件/etc/minirc.dfl和保存于当前用户的配置文件~/.minicom内容不一致造成的。

你得确保你运行minicom的用户和save的地方一样。

推荐的解决办法是删除~/.minicom,通过编辑/etc/minirc.dfl来修改配置,而不是用mincom的菜单。
athurg
帖子: 3
注册时间: 2008-08-17 22:24

#28

帖子 athurg » 2008-08-25 20:48

lgl_5923 写了:在别人的机器上能mount上本机也能,可板子挂不上。。。。
很奇怪!
是挂载不上,还是自己中止了?
可能需要等待一会儿。(我这里等了差不多2分钟才搞定)
chenlb206
帖子: 56
注册时间: 2008-08-11 10:44

#29

帖子 chenlb206 » 2008-08-25 21:07

恩恩恩
chiorange
帖子: 11
注册时间: 2008-07-24 21:30
来自: 南京大学

Re: 菜鸟安装NFS失败,向各位大侠请教

#30

帖子 chiorange » 2008-08-27 10:29

bucker 写了:菜鸟安装NFS失败,向各位大侠请教

输入:sudo apt-get install nfs-kernel-server
提示如下:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
E: 无法找到软件包 nfs-kernel-server

请问有何办法解决。我的系统是6.10版的,这样的问题和版本有关吗?


14楼,,这应该是你的更新源设的不好,,上网找一些
或者试试 sudo apt-get install nfs
回复