免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6073 | 回复: 10
打印 上一主题 下一主题

急问:arm板上linux系统起来进不了命令提示符 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-24 10:15 |只看该作者 |倒序浏览
请问各位大侠:arm板上linux系统起来进不了命令提示符,一般是由什么原因导致的

论坛徽章:
0
2 [报告]
发表于 2008-09-24 10:54 |只看该作者
樓主確定linux系統已經啟動了?

论坛徽章:
0
3 [报告]
发表于 2008-09-24 11:17 |只看该作者
是的
## Booting image at 20100000 ...
   Image Name:   uClinux Kernel and ext2
   Created:      2008-09-04   2:42:50 UTC
   Image Type:   Blackfin Linux Kernel Image (gzip compressed)
   Data Size:    3021851 Bytes =  2.9 MB
   Load Address: 00001000
   Entry Point:  00001000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Starting Kernel at = 1000
Ethnet Addr:00:28:36:49:58:79
Linux version 2.6.19.3-ADI-2007R1-svn (root@crf) (gcc version 4.1.1 (ADI 07R1)) #446 Thu Sep 4 10:35:48 CST 2008
Warning: limiting memory to 27MB due to hardware anomaly 05000263
Blackfin support (C) 2004-2006 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev. 0.2
Blackfin uClinux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 Mhz System Clock
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
  text      = 0x00001000-0x001a8568
  init      = 0x001a9000-0x001be188
  data      = 0x001c4824-0x002097e8
  stack     = 0x001c6000-0x001c8000
  bss       = 0x002097f0-0x002216c8
  available = 0x002216c8-0x01b00000
  rootfs    = 0x01b00000-0x01f00000
  DMA Zone  = 0x01f00000-0x02000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Hardware Trace Enabled
Built 1 zonelists.  Total pages: 6845
Kernel command line: root=/dev/mtdblock2 rw
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
bfin-rtc: invalid date; resetting
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Physical pages: 1b00
Memory available: 25104k/30957k RAM, (84k init code, 1693k kernel code, 95k data, 1024k dma)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin DATA_A SRAM: 16 KB
Blackfin DATA_B SRAM: 16 KB
Blackfin Instruction SRAM: 48 KB
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
SCSI subsystem initialized
*********init rtc-dev 2**********<6>NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -2, 1024 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Dynamic Power Management Controller Driver v0.1: major=10, minor = 254
Blackfin Watchdog Timer: 0.01 initialized. wd_action_code=0 cnt_sec=20 sec (nowayout= 0)
SoftDog: cannot register miscdev on minor=130 (err=-16)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 1 is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
Ethnet Addr in bfin_mac:00:28:36:49:58:79
Blackfin mac net device registered
audio codec dev entries driver
video input /dev entries driver
SAA131  init!!!
enter mp4_dev_init
comswitch driver /dev entries driver
bf_key dev entries driver.
setting the system clock to 2059-09-19 08:04:03
pf4down driver /dev entries driver
BF5xx flash: probing 16-bit flash bus
BF5xx flash: Probing for STM MW320D compatible flash...
BF5xx flash: Found 1 x 4MiB ST MW320D at 0x00000000
mfr id 0x01, dev_id 0xf9
Using static partition definition
Creating 2 MTD partitions on "BF5xx flash":
0x00100000-0x00400000 : "kernel"
0x00040000-0x00100000 : "JFFS2"
uclinux[mtd]: RAM probe address=0x1b00000 size=0x400000
Creating 1 MTD partitions on "RAM":
0x00000000-0x00400000 : "ROMfs"
uclinux[mtd]: set ROMfs:EXT2  to be root filesystem
rtc-test rtc-test.0: rtc intf: sysfs
rtc-test rtc-test.0: rtc intf: dev (254:0)
rtc-test rtc-test.0: rtc core: registered test as rtc0
rtc-test rtc-test.1: rtc intf: sysfs
rtc-test rtc-test.1: rtc intf: dev (254:1)
rtc-test rtc-test.1: rtc core: registered test as rtc1
*********init rtc-dev 1**********<7>bfin_rtc_init:432: here i am
rtc-bfin rtc-bfin: rtc intf: sysfs
rtc-bfin rtc-bfin: rtc intf: dev (254:2)
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc2
i2c /dev entries driver
wm8510.c: starting probe for adapter i2c-bfin-twi (0x0)
wm8510.c: detecting wm8510 client on address 0x34
    2  ,   59  
    4  ,   11  
    6  ,   89  
   5a  ,   40  
   5e  ,    5  
   14  ,    0  
   64  ,    0  
   6c  ,   40  
   70  ,    1  
    8  ,   10  
    c  ,    9  
val: 0
wm_code.c: starting probe for adapter i2c-bfin-twi (0x0)
val: 0
SAA131 is attached!!!
val = 0<7>i2c-dev: adapter [i2c-bfin-twi] registered as minor 0
flash_env /dev entries driver
ethaddr /dev entries driver
Netfilter messages via NETLINK v0.30.
IPv4 over IPv4 tunneling driver
ip_conntrack version 2.4 (216 buckets, 1728 max) - 228 bytes per conntrack
ctnetlink v0.90: registering with nfnetlink.
ip_conntrack_pptp version 3.1 loaded
ip_nat_pptp version 3.0 loaded
ip_tables: (C) 2000-2006 Netfilter Core Team
ClusterIP Version 0.8 loaded successfully
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-test rtc-test.0: setting the system clock to 2059-09-19 08:04:04 (2831184244)
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 84k freed (0x1a9000 - 0x1bd000)
dma_alloc_init: dma_page @ 0x001ab000 - 256 pages at 0x01f00000

Welcome to:
       ____ _  _                  
      /  __| ||_|             _  _
_   _| |  | | _ ____  _   _ \ \/ /
| | | | |  | || |  _ \| | | | \  /
| |_| | |__| || | | | | |_| | /  \
|  ___\____|_||_|_| |_|\____|/_/\_\
|_|                                   

For further information see:
http://www.uclinux.org/
http://blackfin.uclinux.org/

然后下面就没了,没有显示:
BusyBox v1.4.1 (2008-07-10 14:47:58 CST) Built-in shell (msh)
Enter 'help' for a list of built-in commands.


还有同一个系统下到两块不同的板子上,一个有命令提示符,一个没,板子也是同一批次出来的

[ 本帖最后由 suntek-video 于 2008-9-24 11:30 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-09-24 11:40 |只看该作者
可以将busybox上的inittab、rcS等配置文件贴出来吗?

论坛徽章:
0
5 [报告]
发表于 2008-09-24 11:46 |只看该作者
inittab:
# inittab for uClinux
# Format:
# ttyline:termcap-entry:getty-command
#inet:ttyS0:/bin/inetd
#httpd:unknown:/bin/httpd
#sh:unknown:/bin/sh
#ttyS0::respawn:-/bin/sh
#sh:console:respawn:/bin/sh
#console::askfirst:-/bin/sh

slog:unknown:/bin/syslogd -n
klog:unknown:/bin/klogd -n


rc:
hostname blackfin
mount -t proc proc /proc
mount -t ramfs ramfs /var
mount -t sysfs sysfs /sys

#mount -t devpts devpts /dev/pts
#[ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb
#if [ -e /bin/mdev ] ; then
#        echo /bin/mdev 2>/dev/null > /proc/sys/kernel/hotplug
#        /bin/mdev -s 2> /dev/null
#fi
mkdir /var/tmp
mkdir /var/log
mkdir /var/run
mkdir /var/lock
#dhcpcd &
#ifconfig eth0 10.100.4.251 up
ifconfig lo 127.0.0.1
#ifconfig eth0 192.168.2.142 netmask 255.255.255.0 up



inetd &
#cat /etc/issue
cat /etc/motd

#echo 1 > /proc/sys/net/ipv4/ip_forward
#iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

#iptables -A POSTROUTING -t nat -s 192.168.0.0/24 -o eth1 -j SNAT --to-source 192.168.2.142

sleep 1
cd bin

mkdir /mnt/jffs2
mount -t jffs2 /dev/mtdblock1 /mnt/jffs2

#ifconfig eth0  up
#ifconfig eth0 192.168.0.226
#ifconfig eth1  up
#ifconfig eth1  192.168.0.233


#ifconfig eth1 multicast
#route add -net 224.0.0.0 netmask 240.0.0.0 eth1
#mount -o nolock 192.168.0.48:/home/beni/uc_mnt /mnt
#mount -o nolock 192.168.0.44:/home/devtest/uc_mnt /mnt
#./test_all &

ifconfig eth0  up
ifconfig eth0 192.168.10.7
#cd /bin/
#./config_init
#./changeip
#ifconfig eth0 192.168.0.226
ifconfig eth0 multicast
route add -net 224.0.0.0 netmask 240.0.0.0 eth0

#ifconfig eth0 192.168.1.3
#mount -o nolock 192.168.0.158:/home/beni/uc_mnt /mnt
#./test_vin

#./videosvr_mp4 &
#./manageDevice &

论坛徽章:
0
6 [报告]
发表于 2008-09-24 12:42 |只看该作者
inittab:
# inittab for uClinux
# Format:
# ttyline:termcap-entry:getty-command
#inet:ttyS0:/bin/inetd
#httpd:unknown:/bin/httpd
#sh:unknown:/bin/sh
#ttyS0::respawn:-/bin/sh
#sh:console:respawn:/bin/sh
#console::askfirst:-/bin/sh

slog:unknown:/bin/syslogd -n
klog:unknown:/bin/klogd -n

把相关的注释去掉看看,改为
sh:unknown:/bin/sh
ttyS0::respawn:-/bin/sh
sh:console:respawn:/bin/sh
console::askfirst:-/bin/sh

[ 本帖最后由 sep 于 2008-9-24 12:43 编辑 ]

评分

参与人数 1可用积分 +15 收起 理由
bitmilong + 15 鼓勵

查看全部评分

论坛徽章:
0
7 [报告]
发表于 2008-09-24 13:35 |只看该作者
还是一样,好象根本就没运行inittab

论坛徽章:
0
8 [报告]
发表于 2008-09-24 13:58 |只看该作者
原帖由 suntek-video 于 2008-9-24 13:35 发表
还是一样,好象根本就没运行inittab

恩。最好在配置文件里用echo打印一些信息
你的linuxrc是怎样配置的?用busybox的话,应该会首先运行这个脚本

论坛徽章:
0
9 [报告]
发表于 2008-09-24 14:41 |只看该作者
这个系统现在是在有的板子上出命令提示符,而有的板子上没有命令提示符,这批板子将近有40%没有命令提示符,还有用的是uclinux没找到对应的linuxrc,只有一个rc文件

论坛徽章:
0
10 [报告]
发表于 2008-09-24 16:46 |只看该作者
首先感谢二位的帮忙,经检查,确定是由于rtc的原因造成的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP