主题 : 通过串口不能登录的问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 8071
精华: 0
发帖: 16
金钱: 90 两
威望: 24 点
综合积分: 32 分
注册时间: 2009-08-08
最后登录: 2015-03-26
楼主  发表于: 2010-07-26 11:23

 通过串口不能登录的问题

各位高手,我在移植内核的时候出现了"can't access tty; job control turned off"提示,按照网上的方法选择"Support running commands with a controlling-tty"选项重编译了busybox,并把/etc/inittab中的
::sysinit:/etc/init.d/rcS改为
console::sysinit:/etc/init.d/rcS

把::respawn:/sbin/getty 115200 console改为
console::respawn:/sbin/getty 115200 console
重新启动内核,顺利通过,但在现出了"/etc/init.d/rcS: /etc/init.d/rcS: 59: /sbin/madplay: not found"提示,而且在登录提示后输入root,root并不能登录系统,请问如何解决?谢谢
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-07-26 13:28
/etc/init.d/rcS: /etc/init.d/rcS: 59: /sbin/madplay: not found

文件系统里没有/sbin/madplay这个文件?

而且在登录提示后输入root,root并不能登录系统

你怎么知道用你的文件系统,root帐号的密码就一定是“root”?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 8071
精华: 0
发帖: 16
金钱: 90 两
威望: 24 点
综合积分: 32 分
注册时间: 2009-08-08
最后登录: 2015-03-26
2楼  发表于: 2010-07-27 17:49
jlong@jlong-desktop:~/work/kernel/linux-2.6.32.2$ ls root_mini/sbin/
adjtimex     ftp       ifdown  led-player  mkswap      rmmod              swapoff      udhcpc
armcomtest   getty     ifup    loadkmap    modprobe    route              swapon       vconfig
boa          halt      inetd   losetup     nameif      runlevel           switch_root  watchdog
fdisk        hdparm    init    lsmod       pivot_root  setconsole         sysctl       zcip
freeramdisk  hwclock   insmod  madplay     poweroff    start-stop-daemon  syslogd
fsck.minix   ifconfig  led     makedevs    reboot      sulogin            telnetd
在sbin目录下应该是有madplay文件的,
级别: 新手上路
UID: 8071
精华: 0
发帖: 16
金钱: 90 两
威望: 24 点
综合积分: 32 分
注册时间: 2009-08-08
最后登录: 2015-03-26
3楼  发表于: 2010-07-27 17:50
我查看passwd文件看到有root用户密码
jlong@jlong-desktop:~/work/kernel/linux-2.6.32.2$ cat root_mini/etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
级别: 新手上路
UID: 8071
精华: 0
发帖: 16
金钱: 90 两
威望: 24 点
综合积分: 32 分
注册时间: 2009-08-08
最后登录: 2015-03-26
4楼  发表于: 2010-07-27 17:54
感谢kasim的回复,附上完整的启动信息一份,另外,说明一下,我用的是initramfs方式启动内核

FA24x0> tftp 32000000 uImage;bootm 32000000
TFTP from server 192.168.1.101; our IP address is 192.168.1.70
Filename 'uImage'.
Load address: 0x32000000
Loading: #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #########################################################
done
Bytes transferred = 7610288 (741fb0 hex)
## Booting image at 32000000 ...
   Image Name:   Linux-2.6.32.2-FriendlyARM
   Created:      2010-07-27   9:45:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    7610224 Bytes =  7.3 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................................................................................................................................................................................................................................................................................................................................................. done, booting the kernel.
Linux version 2.6.32.2-FriendlyARM (jlong@jlong-desktop) (gcc version 3.4.1) #69 Tue Jul 27 17:45:33 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: FriendlyARM Mini2440 development board
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/mtdblock3 console=ttySAC0
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 52576KB available (2760K code, 323K data, 9216K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Jul 27 2010 17:34:48 Installing.
msgmni has been set to 102
alg: No test for stdrng (krng)
io scheduler noop registered (default)
Console: switching to colour frame buffer device 30x20
fb0: s3c2410fb frame buffer device
backlight    initialized
leds    initialized
buttons    initialized
pwm    initialized
adc    initialized
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
loop: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 3300 at 0x000003390000
Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "supervivi"
0x000000040000-0x000000060000 : "param"
0x000000100000-0x000000600000 : "Kernel"
0x000000600000-0x000040600000 : "root"
mtd: partition "root" extends beyond the end of device "NAND 64MiB 3,3V 8-bit" -- size truncated to 0x3a00000
0x000000000000-0x000040000000 : "nand"
mtd: partition "nand" extends beyond the end of device "NAND 64MiB 3,3V 8-bit" -- size truncated to 0x4000000
dm9000 Ethernet Driver, V1.31
eth0: dm9000e at c4810300,c4814304 IRQ 51 MAC: 08:90:90:90:90:90 (chip)
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 42, io mem 0x49000000
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 ums-alauda
usbcore: registered new interface driver ums-cypress
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-isd200
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-karma
usbcore: registered new interface driver ums-onetouch
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /devices/virtual/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
s3c2410-rtc s3c2410-rtc: setting system clock to 2001-01-20 10:26:08 UTC (979986368)
Freeing init memory: 9216K
hwclock: Could not access RTC: No such file or directory
/etc/rc.d/init.d/httpd: /etc/rc.d/init.d/httpd: 16: /sbin/boa: not found
/etc/rc.d/init.d/leds: /etc/rc.d/init.d/leds: 16: /sbin/led-player: not found
                        
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
/etc/init.d/rcS: /etc/init.d/rcS: 59: /sbin/madplay: not found

FriendlyARM login: root
Password:
Login incorrect
FriendlyARM login: root
Password:
Login incorrect
FriendlyARM login: jlong
Password:
Login incorrect
login[391]: invalid password for `UNKNOWN' on `console'


FriendlyARM login:
级别: 侠客
UID: 10328
精华: 0
发帖: 79
金钱: 400 两
威望: 80 点
综合积分: 158 分
注册时间: 2009-10-31
最后登录: 2012-03-02
5楼  发表于: 2011-05-21 23:35
FriendlyARM login: root
Password:

这个FriendlyARM是在哪里设置的

uboot还是内核里,我要改成lxf login:

如何改