首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

[转帖]ARMer9上linux跑起来

[转帖]ARMer9上linux跑起来

vivi> boot smc kernel Copy linux kernel from 0x00030000 to 0x30008000, size = 0x00170000 ... done zImage magic = 0x016f2818 Setup linux parameters at 0x30000100 linux command line is: "noinitrd root=/dev/bon/2 init=/linuxrc console=ttyS0" MACH_TYPE = 193 NOW, Booting Linux...... Uncompressing Linux............................................... done, booting the kernel. Linux version 2.4.18-rmk7-pxa1 (root@localhost.localdomain) (gcc version 2.95.2 20000516 (release) [Rebel.com]) #2 Îå 8ÔÂ 6 23:53:20 HKT 2004 CPU: ARM/CIRRUS Arm920Tsid(wb) revision 0 Machine: Samsung-SMDK2410 On node 0 totalpages: 16384 zone(0): 16384 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: noinitrd root=/dev/bon/2 init=/linuxrc console=ttyS0 DEBUG: timer count 15626 Console: colour dummy device 80x30 Calibrating delay loop... 99.94 BogoMIPS Memory: 64MB = 64MB total Memory: 62880KB available (1226K code, 295K data, 64K init) Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes) Inode-cache hash table entries: 4096 (order: 3, 32768 bytes) Mount-cache hash table entries: 1024 (order: 1, 8192 bytes) Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes) POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket CPU clock = 200.000 Mhz, HCLK = 100.000 Mhz, PCLK = 50.000 Mhz Starting kswapd devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2410 ttyS%d1 at I/O 0x50004000 (irq = 55) is a S3C2410 ttyS%d2 at I/O 0x50008000 (irq = 58) is a S3C2410 Console: switching to colour frame buffer device 30x40 Installed S3C2410 frame buffer pty: 256 Unix98 ptys configured s3c2410-ts initialized S3C2410 Real Time Clock Driver v0.1 block: 128 slots per queue, batch=32 eth0: cs8900 rev J(3.3 Volts) found at 0xd0000300 cs89x0 media RJ-45, IRQ 37 UDA1341 audio driver initialized NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung K9D1208V0M) bon0: 00000000-00030000 (00030000) 00000000 bon1: 00030000-0017c000 (0014c000) 00000000 bon2: 00180000-02000000 (01e80000) 00000000 bon3: 02000000-03ff8000 (01ff8000) 00000001 NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 4096 bind 4096) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com VFS: Mounted root (cramfs filesystem). Mounted devfs on /dev Freeing init memory: 64K mount /etc as ramfs re-create the /etc/mtab entries console=/dev/cosole init started: BusyBox v0.60.3 (2002.05.13-08:36+0000) multi-call binary Starting pid 16, console /dev/console: '/etc/init.d/rcS' modprobe: modprobe: Can't open dependencies file /lib/modules/2.4.18-rmk7-pxa1/m odules.dep (No such file or directory) mount: Mounting /dev/mtdblock/1 on /usr failed: No such device exec: /usr/etc/rc.local: No such file r directory Waiting for enter to start '/bin/sh' (pid 20, terminal /dev/console) Please press Enter to activate this console. Starting pid 20, console /dev/console: '/bin/sh' BusyBox v0.60.3 (2002.05.13-08:36+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. # 看看Busybox中集成了哪些命令和实用工具。:) # ls bin etc linuette mnt qt tmp var dev lib linuxrc proc sbin usr # # cd bin # ls [ date grep ln ping sync uptime basename dd gunzip login ps sz usleep busybox df gzip ls pwd tail vi cat dmesg head mkdir rdate tar wget chgrp du hostname mknod rm telnet zcat chmod echo irattach more rmdir test chown env irdadump mount rz time clear expr irdaping mv sed true cp false kill netstat sh umount cut free killall obex_test sleep uname # # cd sbin # ls cardmgr ifconfig inetd ksyms pump route depmod ifport init lnx_init pump.sh fuser ifuser insmod lsmod reboot halt in.telnetd kallsyms modprobe rmmod # 看看配置文件有哪些。 # cd etc # ls fstab init.d passwd resolv.conf group login.defs pcmcia services hosts modules.conf ppp tmp inetd.conf mtab protocols var # 看看启动了哪些网络服务。 # more inetd.conf # #ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a telnet stream tcp nowait root /sbin/in.telnetd in.telnetd #
看看ARMer9主机网络配置文件
# more hosts
127.0.0.1 localhost localhost.localdomain
192.168.129.2 pda pda.localdomain
192.168.129.1 pc pc.localdomain
#


# more services
# service-name port/protocol [aliases ...] [# comment]

tcpmux 1/tcp
echo 7/tcp
echo 7/udp
systat 11/tcp users
daytime 13/tcp
daytime 13/udp
netstat 15/tcp
ftp-data 20/tcp
ftp 21/tcp
ssh 22/tcp
ssh 22/udp
telnet 23/tcp
smtp 25/tcp mail
time 37/tcp timserver
time 37/udp timserver
nameserver 42/tcp name
whois 43/tcp nicname
bootps 67/tcp # BOOTP server
bootps 67/udp
bootpc 68/tcp # BOOTP client
bootpc 68/udp
tftp 69/udp
finger 79/tcp
www 80/tcp http
www 80/udp
pop3 110/tcp pop-3
pop3 110/udp pop-3
sunrpc 111/tcp portmapper
sunrpc 111/udp portmapper
auth 113/tcp authentication tap ident
nntp 119/tcp readnews untp
ntp 123/tcp
ntp 123/udp
snmp 161/udp
snmp-trap 162/udp snmptrap
#

# more protocols
# /etc/protocols:
# $Id: protocols,v 1.1 1995/02/24 01:09:41 imurdock Exp $
#
# Internet (IP) protocols
#
# from: @(#)protocols 5.1 (Berkeley) 4/17/89
#
# Updated for NetBSD based on RFC 1340, Assigned Numbers (July 1992).

ip 0 IP # internet protocol, pseudo protocol number
icmp 1 ICMP # internet control message protocol
igmp 2 IGMP # Internet Group Management
ggp 3 GGP # gateway-gateway protocol
ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'')
st 5 ST # ST datagram mode
tcp 6 TCP # transmission control protocol
egp 8 EGP # exterior gateway protocol
pup 12 PUP # PARC universal packet protocol
udp 17 UDP # user datagram protocol
hmp 20 HMP # host monitoring protocol
xns-idp 22 XNS-IDP # Xerox NS IDP
rdp 27 RDP # "reliable datagram" protocol
iso-tp4 29 ISO-TP4 # ISO Transport Protocol class 4
xtp 36 XTP # Xpress Tranfer Protocol
ddp 37 DDP # Datagram Delivery Protocol
idpr-cmtp 38 IDPR-CMTP # IDPR Control Message Transport
ipv6 41 IPv6 # IPv6
ipv6-route 43 IPv6-Route # Routing Header for IPv6
ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6
idrp 45 IDRP # Inter-Domain Routing Protocol
rsvp 46 RSVP # Reservation Protocol
gre 47 GRE # General Routing Encapsulation
esp 50 ESP # Encap Security Payload for IPv6
ah 51 AH # Authentication Header for IPv6
skip 57 SKIP # SKIP
ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6
ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6
ipv6-opts 60 IPv6-Opts # Destination Options for IPv6
rspf 73 RSPF # Radio Shortest Path First.
vmtp 81 VMTP # Versatile Message Transport
ospf 89 OSPFIGP # Open Shortest Path First IGP
ipip 94 IPIP # IP-within-IP Encapsulation Protocol
encap 98 ENCAP # Yet Another IP encapsulation
pim 103 PIM # Protocol Independent Multicast
#

看看用户组信息和用户信息
# more group
root:*:0:
daemon:*:1:
bin:*:2:
sys:*:3:
adm:*:4:
tty:*:5:
disk:*:6:
lp:*:7:lp
mail:*:8:
news:*:9:
uucp:*:10:
proxy:*:13:
kmem:*:15:
dialout:*:20:
fax:*:21:
voice:*:22:
cdrom:*:24:
floppy:*:25:
tape:*:26:
sudo:*:27:
audio:*:29:
ppp:x:99:
#

# more passwd
root::0:0:root:/:/bin/sh
bin:*:1:1:bin:/bin:
daemon:*:2:2:daemon:/sbin:
nobody:*:99:99:Nobody:/:
#

看看系统启动了哪些进程。

# ps
PID Uid VmSize Stat Command
1 root 1400 S init
2 root S [keventd]
3 root S [ksoftirqd_CPU0]
4 root S [kswapd]
5 root S [bdflush]
6 root S [kupdated]
8 root S [mtdblockd]
19 root 1400 S init
20 root 1416 S -sh
30 root 1404 R ps
#
返回列表