root@ubuntu:/home/zhangbin/code# apt-get install nfs-kernel-server nfs-common portmap Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libgssglue1 libnfsidmap2 librpcsecgss3 The following NEW packages will be installed: libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common nfs-kernel-server portmap 0 upgraded, 6 newly installed, 0 to remove and 121 not upgraded. Need to get 494kB of archives. After this operation, 1,536kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://Ubuntu.cn99.com/ubuntu/ lucid/main libgssglue1 0.1-4 [22.4kB] Get:2 http://Ubuntu.cn99.com/ubuntu/ lucid/main libnfsidmap2 0.23-2 [29.1kB] Get:3 http://Ubuntu.cn99.com/ubuntu/ lucid/main librpcsecgss3 0.19-2 [33.1kB] Get:4 http://Ubuntu.cn99.com/ubuntu/ lucid-updates/main portmap 6.0.0-1ubuntu2.1 [37.9kB] Get:5 http://Ubuntu.cn99.com/ubuntu/ lucid-updates/main nfs-common 1:1.2.0-4ubuntu4.1 [213kB] Get:6 http://Ubuntu.cn99.com/ubuntu/ lucid-updates/main nfs-kernel-server 1:1.2.0-4ubuntu4.1 [159kB] Fetched 494kB in 2s (226kB/s) Preconfiguring packages ... Selecting previously deselected package libgssglue1. (Reading database ... 143470 files and directories currently installed.) Unpacking libgssglue1 (from .../libgssglue1_0.1-4_i386.deb) ... Selecting previously deselected package libnfsidmap2. Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_i386.deb) ... Selecting previously deselected package librpcsecgss3. Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_i386.deb) ... Selecting previously deselected package portmap. Unpacking portmap (from .../portmap_6.0.0-1ubuntu2.1_i386.deb) ... Selecting previously deselected package nfs-common. Unpacking nfs-common (from .../nfs-common_1%3a1.2.0-4ubuntu4.1_i386.deb) ... Selecting previously deselected package nfs-kernel-server. Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.0-4ubuntu4.1_i386.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... Setting up libgssglue1 (0.1-4) ...
Setting up libnfsidmap2 (0.23-2) ...
Setting up librpcsecgss3 (0.19-2) ...
Setting up portmap (6.0.0-1ubuntu2.1) ... portmap start/running, process 5246
Setting up nfs-common (1:1.2.0-4ubuntu4.1) ...
Creating config file /etc/idmapd.conf with new version
Creating config file /etc/default/nfs-common with new version Adding system user `statd' (UID 115) ... Adding new user `statd' (UID 115) with group `nogroup' ... Not creating home directory `/var/lib/nfs'. statd start/running, process 5474 gssd stop/pre-start, process 5504 idmapd stop/pre-start, process 5537
Setting up nfs-kernel-server (1:1.2.0-4ubuntu4.1) ...
配置在/etc/exports中。 Creating config file /etc/exports with new version
配置文件在这里么? Creating config file /etc/default/nfs-kernel-server with new version * Exporting directories for NFS kernel daemon... [ OK ] * Starting NFS kernel daemon [ OK ]
Processing triggers for libc-bin ... ldconfig deferred processing now taking place
vi /etc/default/portmap 的内容:
1 # Portmap configuration file portmap配置文件 2 # 3 # Note: if you manually edit this configuration file, 4 # portmap configuration scripts will avoid modifying it 5 # (for example, by running 'dpkg-reconfigure portmap'). portmap的配置脚本,将会避免手动修改这个配置文件。 可以通过运行 dpkg-reconfigure portmap 来进行修改 6 如果,知识希望portmap监听loopback口,那么注释掉下面那行。 如果是用debconf,也会自动注释掉那行的。 7 # If you want portmap to listen only to the loopback 8 # interface, uncomment the following line (it will be 9 # uncommented automatically if you configure this 10 # through debconf). 11 #OPTIONS="-i 127.0.0.1"
显然,我是通过dpkg-reconfigure portmap来配置的。 root@ubuntu:/home/zhangbin/code# vi /etc/default/portmap ]root@ubuntu:/home/zhangbin/code# dpkg-reconfigure portmap portmap stop/waiting portmap start/running, process 6154 There are RPC services which were registered with the portmapper before the configuration was changed. You need to manually restart them in order for the changes to take effect. Current registered services: ------------------------------------------------ 100021 1 udp 45114 nlockmgr 100021 3 udp 45114 nlockmgr 100021 4 udp 45114 nlockmgr 100021 1 tcp 36529 nlockmgr 100021 3 tcp 36529 nlockmgr 100021 4 tcp 36529 nlockmgr 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 4 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100005 1 udp 46830 mountd 100005 1 tcp 52736 mountd 100005 2 udp 46830 mountd 100005 2 tcp 52736 mountd 100005 3 udp 46830 mountd 100005 3 tcp 52736 mountd 100024 1 udp 33804 status 100024 1 tcp 54953 status ------------------------------------------------ root@ubuntu:/home/zhangbin/code#
root@ubuntu:/home/zhangbin/code# vi /etc/default/portmap root@ubuntu:/home/zhangbin/code# sysv-rc-conf The program 'sysv-rc-conf' is currently not installed. You can install it by typing: apt-get install sysv-rc-conf root@ubuntu:/home/zhangbin/code# apt-get install sysv-rc-conf Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libcurses-perl libcurses-ui-perl The following NEW packages will be installed: libcurses-perl libcurses-ui-perl sysv-rc-conf 0 upgraded, 3 newly installed, 0 to remove and 121 not upgraded. Need to get 399kB of archives. After this operation, 1,446kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://Ubuntu.cn99.com/ubuntu/ lucid/universe libcurses-perl 1.28-1 [132kB] Get:2 http://Ubuntu.cn99.com/ubuntu/ lucid/universe libcurses-ui-perl 0.9607-1 [243kB] Get:3 http://Ubuntu.cn99.com/ubuntu/ lucid/universe sysv-rc-conf 0.99-6 [24.2kB] Fetched 399kB in 1s (254kB/s) Selecting previously deselected package libcurses-perl. (Reading database ... 143589 files and directories currently installed.) Unpacking libcurses-perl (from .../libcurses-perl_1.28-1_i386.deb) ... Selecting previously deselected package libcurses-ui-perl. Unpacking libcurses-ui-perl (from .../libcurses-ui-perl_0.9607-1_all.deb) ... Selecting previously deselected package sysv-rc-conf. Unpacking sysv-rc-conf (from .../sysv-rc-conf_0.99-6_all.deb) ... Processing triggers for man-db ... Setting up libcurses-perl (1.28-1) ... Setting up libcurses-ui-perl (0.9607-1) ... Setting up sysv-rc-conf (0.99-6) ...
===================================
/etc/exports 的内容 1 # /etc/exports: the access control list for filesystems which may be exported 2 # to NFS clients. See exports(5). 3 # 4 # Example for NFSv2 and NFSv3: 5 # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_ check) 6 # 7 # Example for NFSv4: 8 # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) 9 # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) 10 # ~ ~
root@ubuntu:/# vi /etc/exports root@ubuntu:/# exportfs -r exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/nfsboot". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x
通过这个看是否运行么? root@ubuntu:/# showmount -e Export list for ubuntu: /nfsboot *
*应该靠近后面的。 /nfsboot * (rw,sync,no_root_squash,no_subtree_check)
root@ubuntu:/# exportfs -r exportfs: No options for /nfsboot *: suggest *(sync) to avoid warning exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/nfsboot". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x
exportfs: No host name given with /nfsboot (rw,sync,no_root_squash,no_subtree_check), suggest *(rw,sync,no_root_squash,no_subtree_check) to avoid warning exportfs: incompatible duplicated export entries: exportfs: *:/nfsboot (0x420) [IGNORED] exportfs: *:/nfsboot (0x425)
11 /nfsboot * (rw,sync) 中间代表任何ip的*,应该和后面的括号紧贴着。 exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/nfsboot". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x
exportfs: incompatible duplicated export entries: exportfs: *:/nfsboot (0x424) [IGNORED] exportfs: *:/nfsboot (0x425)
应该是这样的,这是按照说明书上写的。事实是,确实可行。 /nfsboot *(rw,sync) root@ubuntu:/# exportfs -r exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/nfsboot". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x
================================== 重新启动nfs服务的命令 root@ubuntu:/# /etc/init.d/nfs-kernel-server restart * Stopping NFS kernel daemon [ OK ] * Unexporting directories for NFS kernel daemon... [ OK ] * Exporting directories for NFS kernel daemon... 不指定那些选项的话,会有报错的情况出现。 exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/nfsboot". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x
[ OK ] * Starting NFS kernel daemon [ OK ]
================================= 这次怎么启动的是eth3呢 root@ubuntu:/# ifconfig eth3 Link encap:Ethernet HWaddr 00:0c:29:da:5e:d4 inet addr:192.168.248.128 Bcast:192.168.248.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:feda:5ed4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3000 errors:0 dropped:0 overruns:0 frame:0 TX packets:1339 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4038109 (4.0 MB) TX bytes:102113 (102.1 KB) Interrupt:19 Base address:0x2024
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:525 errors:0 dropped:0 overruns:0 frame:0 TX packets:525 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:65572 (65.5 KB) TX bytes:65572 (65.5 KB)
测试下nfs服务器是否工作了,这个命令是把/nfsboot挂载到 /mnt上去。 mount 192.168.248.128:/nfsboot /mnt root@ubuntu:/# ls /mnt hgfs root@ubuntu:/# cd hgfs bash: cd: hgfs: No such file or directory root@ubuntu:/# ls /mnt/hgfs root@ubuntu:/# mount 192.168.248.128:/nfsboot /mnt
root@ubuntu:/# df 文件系统 被挂载到 Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 19737268 7109512 11625160 38% / none 250352 248 250104 1% /dev none 254580 264 254316 1% /dev/shm none 254580 120 254460 1% /var/run none 254580 0 254580 0% /var/lock none 254580 0 254580 0% /lib/init/rw 192.168.248.128:/nfsboot 19737280 7109504 11625216 38% /mnt
然后卸载掉 root@ubuntu:/# umount /mnt root@ubuntu:/# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 19737268 7109512 11625160 38% / none 250352 248 250104 1% /dev none 254580 264 254316 1% /dev/shm none 254580 120 254460 1% /var/run none 254580 0 254580 0% /var/lock none 254580 0 254580 0% /lib/init/rw
========================================= 为了让nfs服务器和班子交互正常,要停用掉防火墙 停用防火墙的命令不是这个: root@ubuntu:/home/zhangbin/code# service iptables stop iptables: unrecognized service
iptables防火墙的过滤规则 root@ubuntu:/home/zhangbin/code# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
root@ubuntu:/home/zhangbin/code# iptables -t nat -L Chain PREROUTING (policy ACCEPT) target prot opt source destination
Chain POSTROUTING (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
iptables是内核模块删除不了滴 所以,更不是通过删除这个防火墙,禁用防火墙的服务。
应该是 root@ubuntu:/home/zhangbin/code# ufw disable Firewall stopped and disabled on system startup
==============================================
打开以太网并配置IP地址:
ifconfig eth0 up up就是打开了。
ifconfig eth0 192.168.1.13 这就是配置ip地址了
======================================= 安装minicom root@ubuntu:/home/zhangbin/code# apt-get install minicom Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: lrzsz The following NEW packages will be installed: lrzsz minicom 还有左边这个包。 0 upgraded, 2 newly installed, 0 to remove and 121 not upgraded. Need to get 412kB of archives. After this operation, 1,470kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://Ubuntu.cn99.com/ubuntu/ lucid/universe lrzsz 0.12.21-5 [99.9kB] Get:2 http://Ubuntu.cn99.com/ubuntu/ lucid/universe minicom 2.4-1 [312kB] Fetched 412kB in 1s (290kB/s) Selecting previously deselected package lrzsz. (Reading database ... 143714 files and directories currently installed.) Unpacking lrzsz (from .../lrzsz_0.12.21-5_i386.deb) ... Selecting previously deselected package minicom. Unpacking minicom (from .../minicom_2.4-1_i386.deb) ... Processing triggers for man-db ... Setting up lrzsz (0.12.21-5) ... Setting up minicom (2.4-1) ...
配置的命令是-s # minicom -s 进入到minicom配置界面后选择 :Serial port setup 然后按照下面的设置下就OK了 A - Serial Device : :/dev/ttyS0 B - Lockfile Location : /var/lock C - Callin Program : D - Callout Program : E - Bps/Par/Bits : 115200 8N1 F - Hardware Flow Control : No G - Software Flow Control : No 选择这项是保存:Save setup as dfl
OK
U-Boot 1.1.6 (Jan 4 2011 - 21:24:28) for SMDK6410
CPU: S3C6410@800MHz Fclk = 800MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC Mode ) Board: SMDK6410 DRAM: 256 MB Flash: 0 kB NAND: Maf. ID is d3 1024 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x40000, size 0x300000 3145728 bytes read: OK Boot with zImage
Starting kernel ...
Uncompressing Linux............................................................. ................................................................................ ......................................... done, booting the kernel. Linux version 2.6.28.6 (figo@figo-desktop) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #721 PREEMPT Sun Jan 2 16:59:05 CST 2011 CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: SMDK6410 Memory policy: ECC disabled, Data cache writeback CPU S3C6410 (id 0x3 S3C24XX Clocks, (c) 2004 Simtec Electronics S3C64XX: PLL settings, A=800000000, M=532000000, E=24000000 S3C64XX: HCLKx2=266666666, HCLK=133333333, PCLK=66666666 div1: 00000555 mout_apll: source is fout_apll (1), rate is 800000000 mout_epll: source is fout_epll (1), rate is 24000000 mout_mpll: source is mpll (1), rate is 532000000 mmc_bus: source is dout_mpll (1), rate is 44333333 mmc_bus: source is dout_mpll (1), rate is 44333333 mmc_bus: source is dout_mpll (1), rate is 44333333 usb-host-bus: source is mout_epl uclk1: source is dout_mpll (1), rate is 66500000 spi_epll: source is mout_epll (0), rate is 24000000 spi_epll: source is mout_epll (0), rate is 24000000 sclk_audio0: source is mout_epll (0), rate is 24000000 sclk_audio1: source is mout_epll (0), rate is 24000000 sclk_audio2: source is mout_epll (0), rate is 24000000 irda-bus: source is mout_epll (0), rate is 24000000 s3c64xx: 10485760 bytes SDRAM reserved for fimc at 0x50810000 s3c64xx: 8388608 bytes SDRAM reserved for pp at 0x51210000 s3c64xx: 8388608 bytes SDRAM reserved for tv at 0x51a10000 s3c64xx: 6291456 bytes SDRAM reserved for mfc at 0x52210000 s3c64xx: 8388608 bytes SDRAM reserved for jpeg at 0x52810000 s3c64xx: 8388608 bytes SDRAM reserved for cmm at 0x53010000 s3c64xx: 19922944 bytes SDRAM reserved for s3c-g3d at 0x53810000 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 56896 Kernel command line: noinitrd console=ttySAC0 ubi.mtd=1 root=ubi0:rootfs rootfst ype=ubifs init=/init video=fb:WX4300F mem=224M ppp=none PID hash table entries: 1024 (order: 10, 4096 bytes) Console: colour dummy device 80x30 console [ttySAC0] enabled 一直都是用的ttySAC0这个输出,这个是串口输出。usb转串口,也是这个作为输出。 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 224MB = 224MB total Memory: 152064KB available (5308K code, 928K data, 152K init) SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Calibrating delay loop... 797.90 BogoMIPS (lpj=1994752) Mount-cache hash table entries: 512 CPU: Testing write buff net_namespace: 288 bytes NET: Registered protocol family 16 S3C6410 Power Management, (c) 2008 Samsung Electronics S3C6410: Initialising architecture S3C DMA-pl080 Controller Driver, (c) 2006-2007 Samsung Electronics Total 32 DMA channels will be initialized. SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb cfg80211: Using static regulatory domain info cfg80211: Regulatory domain: US (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) cfg80211: Calling CRDA for c NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered NET: Registered protocol family 1 S3C64XX ADC driver, (c) 2008 Samsung Electronics S5P64XX ADC driver successfully probed NetWinder Floating Point Emulator V0.97 (double precision) ashmem: initialized yaffs Jan 2 2011 16 msgmni has been set to 297 alg: No test for stdrng (krng) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) 下面的这个就是LCD初始化的过程 ,看上去应该是在内核中,被初始化的,也就是说, 驱动程序,在内核里头都有。 S3C_LCD clock got enabled :: 133.333 Mhz LCD TYPE :: WX4300F will be initialized Window[0] - FB1: map_video_memory: clear ff000000:0007f800 FB1: map_video_memory: dma=5d200000 cpu=ff000000 size=0007f800 Window[0] - FB2: map_video_memory: clear ff03fc00:0003fc00 FB2: map_video_memory: dma=5d23fc00 c Console: switching to colour frame buffer device 60x34 fb0: s3cfb frame buffer device Window[1] - FB1: map_video_memory: clear ff080000:0003fc00 FB1: map_video_memory: dma=5d1c0000 cpu=ff080000 size=0003fc00 Window[1] - FB2: map_video_memory: clear ff09fe00:0001fe00 FB2: map_video_memory: dma=5d1dfe00 cpu=ff09fe00 size=0001fe00 fb1: s3cfb frame buffer device Window[2] - FB1: map_video_memory: clear ff0c0000:0003fc00 FB1: map_video_memory: dma=5d280000 cpu=ff0c0000 size=0003fc fb2: s3cfb frame buffer device Window[3] - FB1: map_video_memory: clear ff100000:0003fc00 FB1: map_video_memory: dma=5d2c0000 cpu=ff100000 size=0003fc00 fb3: s3cfb frame buffer device ledsinitialized. s3c-aes initialized S3C AES Drvier Serial: 8250/16550 driver4 ports, IRQ sharing disabled s3c6400-uart.0: s3c2410_serial0 at MMIO 0x7f005000 (irq = 16) is a S3C6400/10 s3c6400-uart.1: s3c2410_serial1 at MMIO 0x7f005400 (irq = 20) is a S3C6400/10 s3c6400-uart.2: s3c2410_serial2 at MMIO 0x7f005800 (irq = s3c6400-uart.3: s3c2410_serial3 at MMIO 0x7f005c00 (irq = 28) is a S3C6400/10 brd: module loaded loop: module loaded nbd: registered device at major 43 pmem: 1 init logger: created 64K log 'log_main' logger: created 256K log 'log_events' logger: created 64K log 'log_radio' mcp251x_init(1063): start PPP generic driver version 2.4.2 PPP Deflate Compression module registered PPP BSD Compression module registered SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256). CSLIP: code copyright 1989 Regents of the dm9000 Ethernet Driver eth0: dm9000 at ce890000,ce890004 IRQ 108 MAC: 00:22:12:34:56:90 libertas_sdio: Libertas SDIO driver libertas_sdio: Copyright Pierre Ossman console [netcon0] enabled 这又是个什么控制台呢。 netconsole: network logging started Linux video capture interface: v2.00 s3c-fimc: controller 0 registered successfully s3c-fimc: controller 1 registered successfully S3C6400 MFC Driver, (c) 2007 Samsung Electronics S3C6400 MFC Driver, (c) 2007 Samsung Electronics S3C PostProcessor Driver v3.12, (c) 2009 Samsung Electronics S3C6410 TV encoder Driver, (c) 2008 Samsung Electronics S3C6410 TV encoder Driver init OK. S3C6410 TV scaler Driver, (c) 2008 Samsung Electronics S3C6410 TV scaler Driver init OK. S3C Rotator Driver, (c) 2008 Samsung Electronics s3c_rotator_probe called s3c_rotator_probe success S3C JPEG Driver, (c) 2007 Samsung Electronics s3c-g2d: Driver loaded succesfully s3c-g2d: Module initialized. s3c-g3d: Driver loaded succesfully s3c-g3d: Module initialized. S3C CMM Driver, (c) 2008 Samsung Electronics Driver 'sd' needs updating - please use bus_type methods Driver 'sr' needs updating - please use bus_type methods S3C NAND Driver, (c) 2008 Samsung Electronics S3C NAND Driver is using hardware ECC. NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
Creating 2 MTD partitions on "NAND 1GiB 3,3V 8-bit": 0x00400000-0x00800000 : "cramfs" 0x00800000-0x40000000 : "ubifs" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 262144 bytes (256 KiB) UBI: logical eraseblock size: 25 UBI: smallest flash I/O unit: 2048 UBI: VID header offset: 2048 (aligned 2048) UBI: data offset: 4096 UBI: attached mtd1 to ubi0 UBI: MTD device name: "ubifs" UBI: MTD device size: 1016 MiB UBI: number of good PEBs: 4064 UBI: number of bad PEBs: 0 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 0 UBI: total number of reserv UBI: number of PEBs reserved for bad PEB handling: 40 UBI: max/mean erase counter: 2/1 UBI: background thread "ubi_bgt0d" started, PID 1053 spi->irq = 151 Max,Min-Speed [33333333, 130208]Hz Irq=80 IOmem=[0x7f00bfff-0x7f00b000] DMA=[Rx-33, Tx-34] usbmon: debugfs is not available ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver usb的驱动,是不是因为是2410移植的,就是错的呢 s3c2410-ohci s3c2410-ohci: S3C24XX OHCI s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1 s3c2410-ohci s3c2410-ohci: irq 79, io mem 0x7430000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver usbserial USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic usbserial: USB Serial Driver core USB Serial support registered for GSM modem (1-port) usbcore: registered new interface driver opt option: v0.7.2:USB Driver for GSM modems s3c-udc : S3C HS USB OTG Device Driver, (c) 2008-2009 Samsung Electronics s3c-udc : version 15 March 2009 (DMA Mode) android adb driver Registered gadget driver 'android_adb' mice: PS/2 mouse device common for all mice gpio-keys init input: gpio-keys as /devices/platform/gpio-keys/input/input0 S3C Touchscreen driver, (c) 2008 Samsung Electronics S3C TouchScreen got loaded successfully : 12 bits input: S3C TouchScreen as /devices/virtual/input/input1 S3C24XX RTC, (c) 2004,2006 Simtec Electronics s3c2410_rtc: tick irq 34, alarm irq 92 s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0 i2c /dev entries driver s3c2440-i2c s3c2440-i2c: slave address 0x10 s3c2440-i2c s3c2440-i2c: bus frequency set to 378 KHz [CAMERA]camera_attach_adapter. parent clock for camera: 266.666 MHz, divisor: 11 parent clock for camera: 266.666 MHz, divisor: 11 parent clock for camera: 266.666 MHz, divisor: 9 CAMERA TVP5150 attache s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter at24 0-0050: 1024 byte 24c08 EEPROM (writable) sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (44333333 Hz) mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA sdhci: card inserted. s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.1: clock source 1: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.1: clock source 2: mmc_bus (44333333 Hz) mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA sdhci: card removed. usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver Advanced Linux Sound Architecture Driver Version 1.0.18rc3. ASoC version 0.13.2 WM9713/WM9714 SoC Audio Codec 0.15 playback: 1, capture : 1 asoc: AC97 HiFi <-> s3c64xx-ac97 mapping ok [WM9713]Open speaker volume. ALSA device list: #0: SMDK6400 (WM9713) TCP cubic registered NET: Registered protocol family 17 can: controller area network core (rev 20081130 abi 8) NET: Registered protocol family 29 RPC: Registered udp transport module. RPC: Registered tcp transport module. ieee80211: 802.11 data/management/control stack, git-1.1.13 ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com> VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 s3c2410-rtc s3c2410-rtc: setting system clock to 2011-02-23 5371) UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS: file system size: 1034514432 bytes (1010268 KiB, 986 MiB, 4009 LEBs) UBIFS: journal size: 33546240 bytes (32760 KiB, 31 MiB, 130 LEBs) UBIFS: media format: 4 (latest is 4) UBIFS: default compressor: LZO UBIFS: reserved for root: 5182151 bytes (5060 KiB) VFS: Mounted root (ubifs filesystem). Freeing init memory: 152K Failed to execute /init. Attempting defaults... Try to bring eth0 interface up......eth0: link down Done Now,starting the qtopia-2.2.0....
Please press Enter to activate this console. s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully Mouse type USB:/dev/input/mice unsupported eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 s3c-nand: 1 bit(s) error detected, corrected successfully Warning: could not register server
看一下板子的ip地址。 [root@Real6410 /]# ifconfig eth0 Link encap:Ethernet HWaddr 00:22:12:34:56:90 inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:79 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:10630 (10.3 KiB) TX bytes:0 (0.0 B) Interrupt:108
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)
[root@Real6410 /]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@Real6410 /]# ls 1.bmp gps_test.sh~ opt sys bin lib proc tmp dev linuxrc root usr etc mnt sbin var
ping一下,说明是好的。 64 bytes from 192.168.1.1: seq=73 ttl=32 time=0.495 ms 64 bytes from 192.168.1.1: seq=74 ttl=32 time=0.491 ms 64 bytes from 192.168.1.1: seq=75 ttl=32 time=0.486 ms 64 bytes from 192.168.1.1: seq=76 ttl=32 time=0.500 ms 64 bytes from 192.168.1.1: seq=77 ttl=32 time=0.485 ms 64 bytes from 192.168.1.1: seq=78 ttl=32 time=0.488 ms 64 bytes from 192.168.1.1: seq=79 ttl=32 time=0.487 ms ^C --- 192.168.1.1 ping statistics --- 80 packets transmitted, 80 packets received, 0% packet loss round-trip min/avg/max = 0.473/0.491/0.611 ms
--- 127.0.0.1 ping statistics --- 25 packets transmitted, 25 packets received, 0% packet loss round-trip min/avg/max = 0.278/0.297/0.523 ms
killall: qt7: no process killed Mouse type USB:/dev/input/mice unsupported Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4243 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4242 Warning: could not register server Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4243 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4242 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4243 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4242 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4243 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4242 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4243 Warning: QServerSocket: failed to bind or listen to the socket
[root@Real6410 /bin]# ./qt7 s3c-nand: 1 bit(s) error detected, corrected successfully s3c-nand: 1 bit(s) error detected, corrected successfully QWSSocket::connectToLocalFile could not connect:: Connection refused QWSSocket::connectToLocalFile could not connect:: Connection refused QWSSocket::connectToLocalFile could not connect:: Connection refused QWSSocket::connectToLocalFile could not connect:: Connection refused QWSSocket::connectToLocalFile could not connect:: Connection refused QWSSocket::connectToLocalFile could not connect:: Connection refused No Qt for Embedded Linux server appears to be running. If you want to run this program as a server, add the "-qws" command-line option.
ps > 1.txt 用vi打开 283 root 0 SW< [nfsiod] PID USER VSZ STAT COMMAND 1 root 3024 S init 2 root 0 SW< [kthreadd] 3 root 0 SW< [ksoftirqd/0] 4 root 0 SW< [events/0] 5 root 0 SW< [khelper] 11 root 0 SW< [suspend] 177 root 0 SW< [kblockd/0] 184 root 0 SW< [ksuspend_usbd] 190 root 0 SW< [khubd] 193 root 0 SW< [kseriod] 197 root 0 SW< [kmmcd] 226 root 0 SW [pdflush] 227 root 0 SW [pdflush] 228 root 0 SW< [kswapd0] 274 root 0 SW< [aio/0] 283 root 0 SW< [nfsiod] 890 root 0 SW< [kapmd] 1001 root 0 SW< [libertastf/0] 1024 root 0 SW< [scsi_tgtd/0] 1033 root 0 SW< [mtdblockd] 1053 root 0 SW< [ubi_bgt0d] 1054 root 0 SW< [s3c-spi.0] - 1.txt 1/39 2%
1083 root 0 SW< [kpsmoused] 1152 root 0 SW< [rpciod/0] 1157 root 0 SW< [ubifs_bgt0_0] 1182 root 3024 S syslogd 1191 root 3284 S inetd 1193 root 3024 S telnetd 1194 root 15272 S /opt/Qtopia/bin/qpe 1195 root 3348 R -/bin/sh 1196 root 3024 S init 1197 root 3024 S init 1199 root 3024 S init 1213 root 8508 S < /opt/Qtopia/bin/qss 1214 root 10612 S N /opt/Qtopia/bin/quicklauncher 1260 root 11784 S /opt/Qtopia/bin/konqueror 1261 root 11384 S /opt/Qtopia/bin/konqueror 1303 root 3348 R ps
kill 1213之后,
[root@Real6410 /bin]# ./qpe7.sh killall: qt7: no process killed Mouse type USB:/dev/input/mice unsupported Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4243 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4242 Warning: could not register server Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4243 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4242 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4243 Warning: QServerSocket: failed to bind or listen to the socket Warning: Failed to bind to port 4242
[root@Real6410 bin]# ls Qt4_demo light-and-power qtopia-stop-internal Qt4_demo~ mediarecorder qtopia-update-symlinks addressbook mindbreaker quicklauncher appearance minesweep rotation appservices music security buttoneditor netsetup snake calculator parashoot solitaire camera photoedit sound clock pluginmanager sysinfo datebook qasteroids systemtime embeddedkonsole qcop targunzip fifteen qipkg targzip helpbrowser qipkg-info-file textedit hwsettings qpe today keypebble qpe-reorgfiles todolist konqueror qss videos language qt7~ worldtime launchersettings qtopia-addmimetype
[root@Real6410 bin]# ./Qt4_demo killall: qpe: no process killed killall: qss: no process killed killall: quicklauncher: no process killed
[root@Real6410 /bin]# df Filesystem 1K-blocks Used Available Use% Mounted on ubi0:rootfs 949256 149256 794936 16% / tmpfs 76240 0 76240 0% /dev/shm
[root@Real6410 /bin]# ls addgroup dd hostname netstat sh adduser delgroup hotplug nice sleep ash deluser ip pidof stat bbconfig df ipcalc ping stty busybox dmesg kill pipe_progress su cal4.sh dumpkmap ln printenv sync cal7.sh echo login ps tar cat ed ls pwd touch catv egrep lsattr qpe4.sh true chattr false mkdir qpe7.sh umount chgrp fdflush mknod qt4 uname chmod fgrep mktemp qt7 uncompress chown getopt more rm usleep cp grep mount rmdir vi cpio gunzip mountpoint run-parts watch date gzip mv sed zcat
直接启动还起不来
[root@Real6410 bin]# ./konqueror ./konqueror: error while loading shared libraries: libqpe.so.1: cannot open shar ed object file: No such file or directory
用图形界面倒是可以 [root@Real6410 bin]# Warning: QDir::readDirEntries: Cannot read the directory: / opt/Qtopia/plugins/konqplugins Warning: QGList::locate: Index -1 out of range Warning: QGList::locate: Index -1 out of range
读到了。 mmc1: new high speed SD card at address 1234 mmcblk0: mmc1:1234 SA02G 1.83 GiB mmcblk0:
这个时候,有点卡。触摸屏没有反应的。 此时,正在打开音乐播放器这个程序。 Warning: QObject::connect: (sender name: 'unnamed') Warning: QObject::connect: (receiver name: 'unnamed') Warning: QObject::connect: No such signal QObject::cleared() Warning: QObject::connect: (sender name: 'unnamed') Warning: QObject::connect: (receiver name: 'unnamed') Warning: QGDict::hashKeyString: Invalid null key Warning: Cannot load small icon: icons/16x16/TodoList Warning: QPixmap::convertToImage: Cannot convert a null pixmap Warning: Cannot load small icon: icons/16x16/DateBook Warning: QPixmap::convertToImage: Cannot convert a null pixmap Warning: Cannot load small icon: icons/16x16/TodoList Warning: QPixmap::convertToImage: Cannot convert a null pixmap Warning: Cannot load small icon: icons/16x16/DateBook Warning: QPixmap::convertToImage: Cannot convert a null pixmap mmc1: new high speed SD card at address 1234 mmcblk0: mmc1:1234 SA02G 1.83 GiB mmcblk0: Warning: QGDict::hashKeyString: Invalid null key Warning: Cannot load small icon: icons/16x16/sort Warning: Cannot load small icon: icons/16x16/selectAll Warning: Cannot load small icon: icons/16x16/categorize Warning: QAction::setOn() (unnamed) Only toggle actions may be switched s3c-nand: 1 bit(s) error detected, corrected successfully
就这些程序 [root@Real6410 bin]# ls Qt4_demo light-and-power qtopia-stop-internal Qt4_demo~ mediarecorder qtopia-update-symlinks addressbook mindbreaker quicklauncher appearance minesweep rotation appservices music security buttoneditor netsetup snake calculator parashoot solitaire camera photoedit sound clock pluginmanager sysinfo datebook qasteroids systemtime embeddedkonsole qcop targunzip fifteen qipkg targzip helpbrowser qipkg-info-file textedit hwsettings qpe today keypebble qpe-reorgfiles todolist konqueror qss videos language qt7~ worldtime launchersettings qtopia-addmimetype [root@Real6410 bin]#
/bin下的程序 libanl.so.1 libmad.so libpthread-2.6.1.so ld-2.6.1.so ld-linux.so.3 libBrokenLocale-2.6.1.so libBrokenLocale.so.1 libSegFault.so libanl-2.6.1.so libanl.so.1 libblkid.so libblkid.so.1 libblkid.so.1.0 libc-2.6.1.so libc.so.6 libcom_err.so libcom_err.so.2 libcom_err.so.2.1 libcrypt-2.6.1.so libcrypt.so.1 libdl-2.6.1.so libdl.so.2 libe2p.so libe2p.so.2 libe2p.so.2.3 libext2fs.so
libext2fs.so libext2fs.so.2 libext2fs.so.2.4 libgcc_s.so libgcc_s.so.1 libid3tag.so.0 libid3tag.so.0.3.0 libiw.so.29 libm-2.6.1.so libm.so.6 libmad.a libmad.la libmad.so libmad.so.0 libmad.so.0.2.1 libmemusage.so libmenu.a libmenu.so libmenu.so.5 libmenu.so.5.6 libncurses.so libncurses.so.5 libncurses.so.5.6
libnsl-2.6.1.so libnsl.so.1 libnss_compat-2.6.1.so libnss_compat.so.2 libnss_dns-2.6.1.so libnss_dns.so.2 libnss_files-2.6.1.so libnss_files.so.2 libnss_hesiod-2.6.1.so libnss_hesiod.so.2 libnss_nis-2.6.1.so libnss_nis.so.2 libnss_nisplus-2.6.1.so libnss_nisplus.so.2 libpcprofile.so libpng12.so.0 libpng12.so.0.35.0 libpthread-2.6.1.so libpthread.so.0 libresolv-2.6.1.so libresolv.so.2 librt-2.6.1.so librt.so.1
libsqlite3.so libsqlite3.so.0 libsqlite3.so.0.8.6 libss.so libss.so.2 libss.so.2.0 libthread_db-1.0.so libthread_db.so.1 libutil-2.6.1.so libutil.so.1 libuuid.so libuuid.so.1 libuuid.so.1.2 modules
[root@Real6410 /mnt]# ls mtd1 mtd2 nfs sdcard ubi udisk [root@Real6410 /mnt]# cd sdcard [root@Real6410 sdcard]# ls
[root@Real6410 sdcard]# cd udisk -/bin/sh: cd: can't cd to udisk
/usr/bin 下的 diff lsusb show-i2c wget [ [[ adc-test ar armcomtest arping awk basename bl bunzip2 buttons bzcat bzip2 cal camtest chrt chvt cksum clear cmp comm crontab cut
diff lsusb show-i2c wget dc deallocvt diff dirname dos2unix du eeprog env ether-wake expand expr find flash_eraseall fold free ftp ftpget ftpput fuser hd head hexdump hostid
i2c id install ipcrm ipcs kbd_mode killall killall5 last led led-player length less logger logname lsusb lzmacat madplay md5sum mesg microcom mkfifo
nc nmeter nohup nslookup od openvt passwd patch pgrep pkill printf pscan pwm_test rb readahead readlink realpath renice reset resize rtcwake rx rz
sb script seq setkeycodes setsid sha1sum show-i2c showkey snapshot sort split strings sum sx sz tac tail tcpsvd tee telnet test
tftp tftpd time top tr traceroute trans tty ttysize udpsvd unexpand uniq unix2dos unlzma unzip uptime usb_modeswitch uudecode uuencode vlock wc wget which who whoami wvdial wvdialconf xargs yes
我操,因为么在这里呢,这里怎么还有这个呢???
[root@Real6410 local]# ls QtEmbedded-4.5.2 etc multimedia_test_real6410 bin lib
[root@Real6410 QtEmbedded-4.5.2]# ls demos examples lib plugins setenv-arm.sh
[root@Real6410 QtEmbedded-4.5.2]# ls demos examples lib plugins setenv-arm.sh [root@Real6410 QtEmbedded-4.5.2]# cat set* export QTDIR=/usr/local/QtEmbedded-4.5.2 export QPEDIR=/usr/local/QtEmbedded-4.5.2 export PATH=$QTDIR/bin:$PATH export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATH export TSLIB_TSDEVICE=/dev/input/event1 export TSLIB_CONFFILE=/usr/local/etc/ts.conf export TSLIB_PLUGINDIR=/usr/local/lib/ts export TSLIB_CALIBFILE=/etc/pointercal export QWS_MOUSE_PROTO="TSLIB:/dev/input/event1 USB:/dev/input/mice" export QWS_SIZE='480x272' export QWS_KEYBOARD=TTY:/dev/tty1 #/usr/local/QtEmbedded-4.5.2/examples/widgets/analogclock/analogclock -qws &
/usr/local/QtEmbedded-4.5.2/examples/graphicsview/collidingmice/collidingmice -qws -fn wenquanyi
=========================
关于NFS的在嵌入式开发中的使用
1. NFS简介 NFS是Network FileSystem的缩写,NFS是由Sun开发并发展起来的一项用于在不同机器,不同操作系统之间通过网络互相分享文件的技术。NFS可以让你的PC通过网络将远端的NFS 服务器共享出来的文件mount到自己的系统中,在客户端看来使用NFS的远端文件就象是在使用本地文件一样。 使用NFS可以使应用程序的开发变得十分方便, 客户端不需要大容量的存储器,更不需要进行映像文件的烧录和下载,只要mount到服务器端的特定目录下,然后运行该目录下的程序即可观察到结果。建立NFS开发环境的工作分为两个方面,配置NFS服务器和配置客户端。 2.配置NFS服务器端 2.1确认主机安装了NFS 服务方法是查看/etc/rc.d/init.d目录下是否有nfs文件,如果有说明主机已经安装了nfs服务。 2.2编辑/etc/exports文件 服务器端在文件/etc/exports中设定允许被访问的文件、目录以及访问的权限。设定格式如下: 欲分享出去的目录 主机名称 或者IP (参数1,参数2) 可以设定的参数主要有以下这些: rw:可读写的权限; ro:只读的权限; sync:资料同步写入存储器中。 async:资料会先暂时存放在内存中,不会直接写入硬盘。 例如可以编辑/etc/exports为: /home/test 192.168.0.100(rw) 2.3使/etc/exports文件的修改生效 在启动了NFS之后又修改了/etc/exports,是不是还要重新启动nfs呢?这个时候我们就可以用exportfs命令来使改动立刻生效,该命令格式如下: exportfs [-aruv] -a :全部mount或者unmount /etc/exports中的内容 -r :重新mount /etc/exports中分享出来的目录 -u :umount 目录 -v :在 export 的時候,将详细的信息输出到屏幕上。 具体例子: exportfs –rv这个命令行要求全部重新输出一次。 在每次修改了/etc/exports文件后都要运行一次该命令。 2.4启动NFS服务 现在就可以启动NFS服务了:/etc/rc.d/init.d/nfs start 如果要停止NFS服务:/etc/rc.d/init.d/nfs stop 重新启动(停止后再启动,在修改/etc/exports之后使用)命令:/etc/rc.d/init.d/nfs restart 3.配置客户端 (ARM 板) 3.1配置内核 进入File Systems --->选项选中: NFS file system support Provide NFSv3 client support 3.2配置用户选项 进入Network Applications ---> 选项选中: portmap进入BusyBox --->选项选中: mount mount:support NFS mounts完成以上配置后,即可编译产生映像文件。
4.NFS的应用 4.1启动portmap服务器 用串口线和网线连接好主机和开发板。启动信息成功显示后,输入:/> portmap & 【portmap】NFS本身没有提供信息传输的协议和功能,但NFS却能让我们通过网络进行资料的分享,这是因为NFS使用了RPC(Remote Procedure Call远端程序呼叫)的功能。客户端通过网路传送RPC到远端电脑,请求服务。这里,portmap是一个server,主要功能是将TCP/IP 通讯协议中的端口号转换为RPC程序号,这样客户端才能完成RPC呼叫。 4.2挂载到主机 通过以下命令行,挂载到主机上: />mount –t nfs –o rsize=1024,wsize=1024,timeo=3,udp 192.168.253.1:/opt/uClinux-dist/user/Myapp /var/tmp 命令行的参数是必要的,能够改善NFS下应用程序运行的速度。当出现下一个/>时,mount成功,接下来就可以按读写本地文件的方式读写远端文件系统了 我用的开发板是UP-netARM2410。我的配置以及遇到的问题的解决如下: 在你的linux上nfs可以通过图形化的方式设置,也可以直接对etc/exports进行编辑。 输入 /arm2410dev 192.168.0.*(rw,sync,no_root_squash) 就是设置/arm2410dev 位共享目录,并且允许192.168.0.*的所有机器都可以访问,设置权限为读写, 启动nfs服务 /sbin/service nfs start 确保NFS服务已经启动 然后在用超级终端上连接arm板,执行命令: mount -t nfs -o nolock 192.168.0.10:/arm2410dev /host 然后退出/host 在进入/host 就可以看到主机/arm2410dev下的东西了 如果在超级终端上执行mount命令时出现一下错误: mount:RPC:Unable to receive; eNrno=connetionF refused mountS nfsmount faile:d: bad f le descriptor mount program didn't pass remote address! mount:mounting 192.168.0.10:/ on /tmp failed:invalid agument 请修改linux的安全级别为“无防火墙”
http://linux.chinaunix.net/bbs/archiver/tid-1006283.html
关于nfs调试时一些问题的解决方法
nfs: server xxx.xxx.xxx.xxx not responding, still trying的现象是mount正常,但PING的时候丢包率比较大,拷贝或运行一些数据量大于1K的程序将马上出现这个提示,然后几乎无响应;
这个问题的解决办法如下:
1、使用加参数的办法:mount -o nolock,rsize=1024,wsize=1024,timeo=15 192.168.2.130:/tmp/ /tmp/
2、不通过HUB,直接使用交叉线连接开发板和宿主机
Select number --> ^C[MPEG4/H263 display] signal handling [root@Real6410 multimedia_test_real6410]# ls CubeDemo1_1 CubeDemo2_0 TestVectors multimedia_test [root@Real6410 multimedia_test_real6410]# ./Cube*_1 ERROR: get config error ERROR: get config error Fail to open g3d driver: Invalid argument
>>Chunk Allocator ERROR: unable to allocate 1 th block
=======Chunk::PrintChunkBlckInfo====== Segmentation fault
root@ubuntu:/home/zhangbin# showmount Hosts on ubuntu: root@ubuntu:/home/zhangbin# showmount -e Export list for ubuntu: /nfsboot *
虚拟机用的auto eth2 root@ubuntu:/home/zhangbin# ifconfig eth2 Link encap:Ethernet HWaddr 00:0c:29:54:da:05 inet addr:192.168.146.128 Bcast:192.168.146.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe54:da05/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:124 errors:0 dropped:0 overruns:0 frame:0 TX packets:46 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:15876 (15.8 KB) TX bytes:7264 (7.2 KB) Interrupt:19 Base address:0x2024
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:156 errors:0 dropped:0 overruns:0 frame:0 TX packets:156 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12052 (12.0 KB) TX bytes:12052 (12.0 KB)
root@ubuntu:/home/zhangbin# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.146.0 * 255.255.255.0 U 1 0 0 eth2 link-local * 255.255.0.0 U 1000 0 0 eth2 default 192.168.146.2 0.0.0.0 UG 0 0 0 eth2
root@ubuntu:/home/zhangbin# apt-get install dnw Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package dnw root@ubuntu:/home/zhangbin# apt-get install libusb-dev Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libusb-dev 0 upgraded, 1 newly installed, 0 to remove and 121 not upgraded. Need to get 38.4kB of archives. After this operation, 336kB of additional disk space will be used. Get:1 http://Ubuntu.cn99.com/ubuntu/ lucid-updates/main libusb-dev 2:0.1.12-14ubuntu0.2 [38.4kB] Fetched 38.4kB in 0s (113kB/s) Selecting previously deselected package libusb-dev. (Reading database ... 143810 files and directories currently installed.) Unpacking libusb-dev (from .../libusb-dev_2%3a0.1.12-14ubuntu0.2_i386.deb) ... Processing triggers for doc-base ... Processing 1 added doc-base file(s)... Registering documents with scrollkeeper... Processing triggers for man-db ... Setting up libusb-dev (2:0.1.12-14ubuntu0.2) ...
root@ubuntu:/home/zhangbin# gcc dnw2.c -o dnw2 -lusb dnw2.c: In function ‘prepare_write_buf’: dnw2.c:96: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘__off_t’ dnw2.c: In function ‘main’: dnw2.c:142: warning: unknown conversion type character 0x9 in format
发现/dev下没有nfs。 启动nfs root@ubuntu:/etc/init.d# nfs-kernel-server restart nfs-kernel-server: command not found root@ubuntu:/etc/init.d# nfs-kernel-server reload nfs-kernel-server: command not found root@ubuntu:/etc/init.d# ./nfs-kernel-server start * Exporting directories for NFS kernel daemon... exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/nfsboot". Assuming default behaviour ('no_subtree_check'). NOTE: this default has changed since nfs-utils version 1.0.x
[ OK ] * Starting NFS kernel daemon [ OK ]
可以用本机的静态ip挂载。 root@ubuntu:/etc/init.d# mount 192.168.1.211:/nfsboot /mnt root@ubuntu:/etc/init.d# cd /mnt root@ubuntu:/mnt# ls root@ubuntu:/mnt# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 19737268 7118648 11616024 38% / none 250352 252 250100 1% /dev none 254580 252 254328 1% /dev/shm none 254580 112 254468 1% /var/run none 254580 0 254580 0% /var/lock none 254580 0 254580 0% /lib/init/rw 192.168.1.211:/nfsboot 19737280 7118656 11616064 38% /mnt
在/mnt下,会表示busy root@ubuntu:/mnt# umount /mnt umount.nfs: /mnt: device is busy umount.nfs: /mnt: device is busy root@ubuntu:/mnt# cd .. root@ubuntu:/# umount /mnt
root@ubuntu:/etc/init.d# ./portmap start Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service portmap start
Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility, e.g. start portmap root@ubuntu:/etc/init.d# start portmap start: Job is already running: portmap
设置一下 setenv bootargs noinitrd root=/dev/nfs console=ttySAC0 init=/linuxrc nfsroot=192.168.1.211:/nfsboot ip=192.168.1.20:192.168.1.211:192.168.1.1:255.255.255.0::eth0:on fbcon=rotate:1
我发现就是启动了nfs服务,/dev下,也没有nfs。 [ 7265.317864] usb 2-1: ch341-uart converter now attached to ttyUSB0 root@ubuntu:/dev# lsmod | ttyUSB root@ubuntu:/dev# ls -l /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 0 2011-03-03 01:58 /dev/ttyUSB0
root@ubuntu:/home/zhangbin# minicom minicom: cannot open /dev/ttyUSB0: Connection timed out 这是个什么错误呢。
SMDK6410 # setenv bootargs noinitrd root=/dev/nfs console=ttySAC0 init=/linuxrc nfsroot=192.168.1.211:/nfsboot ip=192.168.1.2 0:192.168.1.211:192.168.1.1:255.255.255.0::eth0:on fbcon=rotate:1 SMDK6410 # reboot Unknown command 'reboot' - try 'help' SMDK6410 # exit exit not allowed from main input shell. SMDK6410 # shutdown Unknown command 'shutdown' - try 'help' SMDK6410 # boot Unknown command 'boot' - try 'help' SMDK6410 # help ? - alias for 'help' base - print or set address offset bb - Bulk burn bdinfo - print Board Info structure bootelf - Boot from an ELF image in memory bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol bootvx - Boot vxWorks from an ELF image branch - enable or disable branch prediction cmp - memory compare cp - memory copy crc32 - checksum calculation date - get/set/reset date & time dcache - enable or disable data cache dnw - initialize USB device and ready to receive for Windows server (specific) echo - echo args to console erase - erase FLASH memory exit - exit script fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) fnfo - print FLASH memory information go - start application at address 'addr' help - print online help icache - enable or disable instruction cache icrc32 - checksum calculation iloop - infinite loop on address range imd - i2c memory display imls - list all images found in flash imm - i2c memory modify (auto-incrementing) imw - memory write (fill) inm - memory modify (constant address) iprobe - probe to discover valid I2C chip addresses itest - return true/false on integer compare loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loady - load binary file over serial line (ymodem mode) loop - infinite loop on address range md - memory display mm - memory modify (auto-incrementing) movi - MoviNAND sub-system mtest - simple RAM test mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nfs - boot image via network using NFS protocol nm - memory modify (constant address) ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables protect - enable or disable FLASH write protection rarpboot- boot image via network using RARP/TFTP protocol reset - Perform RESET of the CPU saveenv - save environment variables to persistent storage setenv - set environment variables sleep - delay execution for some time test - minimal test like /bin/sh tftpboot- boot image via network using TFTP protocol usb - USB sub-system usbboot - boot from USB device version - print monitor version SMDK6410 # bdinfo arch_number = 0x0000065A env_t = 0x00000000 boot_params = 0x50000100 DRAM bank = 0x00000000 -> start = 0x50000000 -> size = 0x10000000 ethaddr = 00:22:12:34:56:90 ip_addr = 192.168.1.20 baudrate = 115200 bps SMDK6410 # :SMDK6410 # saveenv Saving Environment to NAND... Erasing Nand...Writing to Nand... done
MDK6410 # reboot Unknown command 'reboot' - try 'help' SMDK6410 # ls / Unknown command 'ls' - try 'help' SMDK6410 # ls /usr Unknown command 'ls' - try 'help' SMDK6410 # ls /root Unknown command 'ls' - try 'help' SMDK6410 # base Base Address: 0x00000000
SMDK6410 # printenv bootcmd=nand read c0008000 40000 300000;bootm c0008000 bootdelay=3 baudrate=115200 ethaddr=00:22:12:34:56:90 ipaddr=192.168.1.20 serverip=192.168.1.178 gatewayip=192.168.1.1 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial bootargs=noinitrd root=/dev/nfs console=ttySAC0 init=/linuxrc nfsroot=192.168.1.211:/nfsboot ip=192.168.1.20:192.168.1.211:19 2.168.1.1:255.255.255.0::eth0:on fbcon=rotate:1
Environment size: 410/16380 bytes
SMDK6410 # setenv serverip 192.168.1.211 SMDK6410 # printenv bootcmd=nand read c0008000 40000 300000;bootm c0008000 bootdelay=3 baudrate=115200 ethaddr=00:22:12:34:56:90 ipaddr=192.168.1.20 gatewayip=192.168.1.1 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial bootargs=noinitrd root=/dev/nfs console=ttySAC0 init=/linuxrc nfsroot=192.168.1.211:/nfsboot ip=192.168.1.20:192.168.1.211:19 2.168.1.1:255.255.255.0::eth0:on fbcon=rotate:1 serverip=192.168.1.211
Environment size: 410/16380 bytes SMDK6410 # saveenv Saving Environment to NAND... Erasing Nand...Writing to Nand... done SMDK6410 # printenv bootcmd=nand read c0008000 40000 300000;bootm c0008000 bootdelay=3 baudrate=115200 ethaddr=00:22:12:34:56:90 ipaddr=192.168.1.20 gatewayip=192.168.1.1 netmask=255.255.255.0 stdin=serial stdout=serial stderr=serial bootargs=noinitrd root=/dev/nfs console=ttySAC0 init=/linuxrc nfsroot=192.168.1.211:/nfsboot ip=192.168.1.20:192.168.1.211:19 2.168.1.1:255.255.255.0::eth0:on fbcon=rotate:1 serverip=192.168.1.211
Environment size: 410/16380 bytes 自动把新设置的ip放到了后面去。
SMDK6410 # ping 192.168.1.1 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode ping failed; host 192.168.1.1 is not alive 这样居然激活了显示断开的xp的网络连接。
SMDK6410 # ping 127.0.0.1 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode ping failed; host 127.0.0.1 is not alive
SMDK6410 # ping 192.168.1.211 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode host 192.168.1.211 is alive SMDK6410 # ping 192.168.1.20 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode ping failed; host 192.168.1.20 is not alive
居然ping不通自己。
都插到路由器上,就好了。 SMDK6410 ping 127.0.0.1 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode host 127.0.0.1 is alive
SMDK6410 # ping 192.168.1.1 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode host 192.168.1.1 is alive
SMDK6410 # ping 192.168.1.211 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode host 192.168.1.211 is alive
SMDK6410 # ping www.163.com Usage: ping - send ICMP ECHO_REQUEST to network host
发ICMP报文 看来不知道163的ip啊
直接ping网易的ip地址。 SMDK6410 # ping 220.180.28.42 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode host 220.180.28.42 is alive
SMDK6410 # ping 192.168.1.100 dm9000 i/o: 0x18000300, id: 0x90000a46 MAC: 00:22:12:34:56:90 operating at 100M full duplex mode host 192.168.1.100 is alive
reset下
SMDK6410 # reset reset...
OK
U-Boot 1.1.6 (Jan 4 2011 - 21:24:28) for SMDK6410
CPU: S3C6410@800MHz Fclk = 800MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC Mode) Board: SMDK6410 DRAM: 256 MB Flash: 0 kB NAND: Maf. ID is d3 1024 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x40000, size 0x300000 3145728 bytes read: OK Boot with zImage
Starting kernel ...
Uncompressing Linux.......................................................................................................... ............................................................................ done, booting the kernel. Linux version 2.6.28.6 (figo@figo-desktop) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #721 PREEMPT Sun Jan 2 16:59:05 CST 2011 CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: SMDK6410 Memory policy: ECC disabled, Data cache writeback CPU S3C6410 (id 0x36410101) S3C24XX Clocks, (c) 2004 Simtec Electronics S3C64XX: PLL settings, A=800000000, M=532000000, E=24000000 S3C64XX: HCLKx2=266666666, HCLK=133333333, PCLK=66666666 div1: 00000555 mout_apll: source is fout_apll (1), rate is 800000000 mout_epll: source is fout_epll (1), rate is 24000000 mout_mpll: source is mpll (1), rate is 532000000 mmc_bus: source is dout_mpll (1), rate is 44333333 mmc_bus: source is dout_mpll (1), rate is 44333333 mmc_bus: source is dout_mpll (1), rate is 44333333 usb-host-bus: source is mout_epll (0), rate is 24000000 uclk1: source is dout_mpll (1), rate is 66500000 spi_epll: source is mout_epll (0), rate is 24000000 spi_epll: source is mout_epll (0), rate is 24000000 sclk_audio0: source is mout_epll (0), rate is 24000000 sclk_audio1: source is mout_epll (0), rate is 24000000 sclk_audio2: source is mout_epll (0), rate is 24000000 irda-bus: source is mout_epll (0), rate is 24000000 s3c64xx: 10485760 bytes SDRAM reserved for fimc at 0x50850000 s3c64xx: 8388608 bytes SDRAM reserved for pp at 0x51250000 s3c64xx: 8388608 bytes SDRAM reserved for tv at 0x51a50000 s3c64xx: 6291456 bytes SDRAM reserved for mfc at 0x52250000 s3c64xx: 8388608 bytes SDRAM reserved for jpeg at 0x52850000 s3c64xx: 8388608 bytes SDRAM reserved for cmm at 0x53050000 s3c64xx: 19922944 bytes SDRAM reserved for s3c-g3d at 0x53850000 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: noinitrd root=/dev/nfs console=ttySAC0 init=/linuxrc nfsroot=192.168.1.211:/nfsboot ip=192.168.1.20:192. 168.1.211:192.168.1.1:255.255.255.0::eth0:on fbcon=rotate:1 PID hash table entries: 1024 (order: 10, 4096 bytes) Console: colour dummy device 80x30 console [ttySAC0] enabled Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 256MB = 256MB total Memory: 184576KB available (5308K code, 928K data, 152K init) SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Calibrating delay loop... 797.90 BogoMIPS (lpj=1994752) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 288 bytes NET: Registered protocol family 16 S3C6410 Power Management, (c) 2008 Samsung Electronics S3C6410: Initialising architecture S3C DMA-pl080 Controller Driver, (c) 2006-2007 Samsung Electronics Total 32 DMA channels will be initialized. SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb cfg80211: Using static regulatory domain info cfg80211: Regulatory domain: US (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) cfg80211: Calling CRDA for country: US NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered NET: Registered protocol family 1 S3C64XX ADC driver, (c) 2008 Samsung Electronics S5P64XX ADC driver successfully probed NetWinder Floating Point Emulator V0.97 (double precision) ashmem: initialized yaffs Jan 2 2011 16:55:25 Installing. msgmni has been set to 361 alg: No test for stdrng (krng) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) S3C_LCD clock got enabled :: 133.333 Mhz video output type detect error!! Failed to allocate video RAM: -12 Trying to free already-free IRQ 62 s3c-lcd: probe of s3c-lcd failed with error -12 ledsinitialized. s3c-aes initialized S3C AES Drvier Serial: 8250/16550 driver4 ports, IRQ sharing disabled s3c6400-uart.0: s3c2410_serial0 at MMIO 0x7f005000 (irq = 16) is a S3C6400/10 s3c6400-uart.1: s3c2410_serial1 at MMIO 0x7f005400 (irq = 20) is a S3C6400/10 s3c6400-uart.2: s3c2410_serial2 at MMIO 0x7f005800 (irq = 24) is a S3C6400/10 s3c6400-uart.3: s3c2410_serial3 at MMIO 0x7f005c00 (irq = 28) is a S3C6400/10 brd: module loaded loop: module loaded nbd: registered device at major 43 pmem: 1 init logger: created 64K log 'log_main' logger: created 256K log 'log_events' logger: created 64K log 'log_radio' mcp251x_init(1063): start PPP generic driver version 2.4.2 PPP Deflate Compression module registered PPP BSD Compression module registered pyright 1989 Regents of the Univsity of California.ls, max=256). dm9000 Etheet Driver eth0: dm9000 at d0890000,d0890004 IRQ 108 MAC: 00:22:12:34:56:90 libertas_sdio: Libertas SDIO driver libertas_sdio: Copyright Pierre Ossman console [netcon0] enabled netconsole: network logging started Linux video capture interface: v2.00 s3c-fimc: controller 0 registered successfully s3c-fimc: controller 1 registered successfully S3C6400 MFC Driver, (c) 2007 Samsung Electronics S3C6400 MFC Driver, (c) 2007 Samsung Electronics S3C PostProcessor Driver v3.12, (c) 2009 Samsung Electronics S3C6410 TV encoder Driver, (c) 2008 Samsung Electronics S3C6410 TV encoder Driver init OK. S3C6410 TV scaler Driver, (c) 2008 Samsung Electronics S3C6410 TV scaler Driver init OK. S3C Rotator Driver, (c) 2008 Samsung Electronics s3c_rotator_probe called s3c_rotator_probe success S3C JPEG Driver, (c) 2007 Samsung Electronics s3c-g2d: Driver loaded succesfully s3c-g2d: Module initialized. s3c-g3d: Driver loaded succesfully s3c-g3d: Module initialized. S3C CMM Driver, (c) 2008 Samsung Electronics Driver 'sd' needs updating - please use bus_type methods Driver 'sr' needs updating - please use bus_type methods S3C NAND Driver, (c) 2008 Samsung Electronics S3C NAND Driver is using hardware ECC. NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit) Creating 2 MTD partitions on "NAND 1GiB 3,3V 8-bit": 0x00400000-0x00800000 : "cramfs" 0x00800000-0x40000000 : "ubifs" spi->irq = 151 Max,Min-Speed [33333333, 130208]Hz Irq=80 IOmem=[0x7f00bfff-0x7f00b000] DMA=[Rx-33, Tx-34] usbmon: debugfs is not available ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver s3c2410-ohci s3c2410-ohci: S3C24XX OHCI s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1 s3c2410-ohci s3c2410-ohci: irq 79, io mem 0x74300000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver usbserial USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic usbserial: USB Serial Driver core USB Serial support registered for GSM modem (1-port) usbcore: registered new interface driver option option: v0.7.2:USB Driver for GSM modems s3c-udc : S3C HS USB OTG Device Driver, (c) 2008-2009 Samsung Electronics s3c-udc : version 15 March 2009 (DMA Mode) android adb driver Registered gadget driver 'android_adb' mice: PS/2 mouse device common for all mice gpio-keys init input: gpio-keys as /devices/platform/gpio-keys/input/input0 S3C Touchscreen driver, (c) 2008 Samsung Electronics S3C TouchScreen got loaded successfully : 12 bits input: S3C TouchScreen as /devices/virtual/input/input1 S3C24XX RTC, (c) 2004,2006 Simtec Electronics s3c2410_rtc: tick irq 34, alarm irq 92 s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0 i2c /dev entries driver s3c2440-i2c s3c2440-i2c: slave address 0x10 s3c2440-i2c s3c2440-i2c: bus frequency set to 378 KHz [CAMERA]camera_attach_adapter. parent clock for camera: 266.666 MHz, divisor: 11 parent clock for camera: 266.666 MHz, divisor: 11 parent clock for camera: 266.666 MHz, divisor: 9 CAMERA TVP5150 attached successfully s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter at24 0-0050: 1024 byte 24c08 EEPROM (writable) sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (44333333 Hz) mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA sdhci: card inserted. s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.1: clock source 1: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.1: clock source 2: mmc_bus (44333333 Hz) mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA sdhci: card removed. usbcore: registered new interface driver usbhid usbhid: v2.6:USB HID core driver Advanced Linux Sound Architecture Driver Version 1.0.18rc3. ASoC version 0.13.2 WM9713/WM9714 SoC Audio Codec 0.15 playback: 1, capture : 1 asoc: AC97 HiFi <-> s3c64xx-ac97 mapping ok [WM9713]Open speaker volume. ALSA device list: #0: SMDK6400 (WM9713) TCP cubic registered NET: Registered protocol family 17 can: controller area network core (rev 20081130 abi 8) NET: Registered protocol family 29 RPC: Registered udp transport module. RPC: Registered tcp transport module. ieee80211: 802.11 data/management/control stack, git-1.1.13 ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com> VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 s3c2410-rtc s3c2410-rtc: setting system clock to 2011-02-26 02:17:43 UTC (1298686663) eth0: link down IP-Config: Complete: device=eth0, addr=192.168.1.20, mask=255.255.255.0, gw=192.168.1.1, host=192.168.1.20, domain=, nis-domain=(none), bootserver=192.168.1.211, rootserver=192.168.1.211, rootpath= Looking up port of RPC 100003/2 on 192.168.1.211 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 Looking up port of RPC 100005/1 on 192.168.1.211 VFS: Mounted root (nfs filesystem). Freeing init memory: 152K Try to bring eth0 interface up......NFS root ...Done
Starting Qto Please press Enter to activatethis console. Can't open framebuffer device /dev/fb0 Can't open framebuffer device /dev/fb0 driver cannot c^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^ [[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B
说明已经挂载到了。 [root@Real6410 /]# ls bin lib opt root tmp dev linuxrc proc sbin usr etc mnt qtopia.tar.gz sys var
[root@Real6410 /]# shutdown [root@Real6410 /]# umount: can't remount none read-only umount: none busy - remounted read-only The system is going down NOW! Sending SIGTERM to all processes Sending SIGKILL to all processes Requesting system halt System halted.
reboot按enter也不行。
[root@Real6410 bin]# ./qpe ./qpe: error while loading shared libraries: libqtopia2.so.2: cannot open shared object file: No such file or directory
看上去没有这个设备啊[root@Real6410 /dev]# ls | grep fb0 是空的
/dev下是这些
|