|
|||||||||||
| 技術交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術 | 電源技術 | 測控之家 | EMC技術 | ARM技術 | EDA技術 | PCB技術 | 嵌入式系統(tǒng) 驅動編程 | 集成電路 | 器件替換 | 模擬技術 | 新手園地 | 單 片 機 | DSP技術 | MCU技術 | IC 設計 | IC 產業(yè) | CAN-bus/DeviceNe |
uclinux-2.6為什么能看到shell了還有問題! |
| 作者:letter 欄目:嵌入式系統(tǒng) |
經(jīng)過一段時間的煎熬,終于看到shell了,可是shell總是過幾分鐘輸出: init: /bin/sh respawning too FAST 我看了啟動信息,發(fā)現(xiàn)運行腳本rc時,/bin/expand命令出錯: Command: /bin/expand /etc/ramfs.img /dev/ram1 /bin/expand: Bad command or file NAME 認為shell出錯和這個有關,望高指點,多謝。 以下是我的啟動信息: U-Boot 1.1.4 (Jan 22 2007 - 16:40:53) U-Boot code: 0C700000 -> 0C719EF8 BSS: -> 0C71E99C RAM Configuration: Bank #0: 0c000000 8 MB FLASH: 2 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 ## Booting image at 00040000 ... Image NAME: Linux-2.6.9 Created: 2007-01-26 2:50:16 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 659816 Bytes = 644.4 kB Load Address: 0c008000 Entry Point: 0c008000 Verifying CHECKSUM ... OK OK Starting kernel ... Uncompressing Linux................................................ done, bootin g the kernel. Linux version 2.6.9-hsc0 (root@localhost.localdomain) (gcc version 2.95.3 200103 15 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClin ux XIP and shared lib patches from http://www.snapgear.com/)) #48 Fri Jan 26 10: 47:23 CST 2007 CPU: Samsung-S3C44B0x [44b07700] revision 0 (ARMv4T) Machine: S3C44B0X Development Board Built 1 zonelists Kernel command LINE: root=/dev/ram0 initrd=0x0c13c53c,120K console=ttyS0,115200 & |
| 2樓: | >>參與討論 |
| 作者: wangkj 于 2007/2/1 20:28:00 發(fā)布:
文件系統(tǒng)的問題 |
|
| 3樓: | >>參與討論 |
| 作者: letter 于 2007/2/1 20:52:00 發(fā)布:
該如何解決?內核是2.6.9的。 |
|
| 4樓: | >>參與討論 |
| 作者: wangkj 于 2007/2/1 21:10:00 發(fā)布:
換個文件系統(tǒng),可能是inittab的問題或者init的問題 |
|
| 5樓: | >>參與討論 |
| 作者: letter 于 2007/2/1 21:44:00 發(fā)布:
我的inittab是空的。 inittab: #inet:UNKNOWN:/bin/inetd #boa:UNKNOWN:/bin/boa |
|
| 6樓: | >>參與討論 |
| 作者: wangkj 于 2007/2/2 8:32:00 發(fā)布:
我只是給你提示 問題還需要你自己解決,這是一個常見問題。 我是直接換的文件系統(tǒng),沒找具體原因。 |
|
| 7樓: | >>參與討論 |
| 作者: letter 于 2007/2/2 16:03:00 發(fā)布:
今天換了一個文件系統(tǒng),還是expand有問題。 今天自己做了一ramdisk, Read-only file SYSTEM問題沒了,但是還是有二處問題。 第一處: Command: /bin/expand /etc/ramfs.img /dev/ram1 Can't open expanded file /dev/ram1 pid 11: failed 768 第二處: Command: mount -t proc proc /proc Command: mount -t ext2 /dev/ram1 /var mount failed: No such file or directory 都和ram1有關,我想ram1是不是有問題? 全部信息: U-Boot 1.1.4 (Jan 22 2007 - 16:40:53) U-Boot code: 0C700000 -> 0C719EF8 BSS: -> 0C71E99C RAM Configuration: Bank #0: 0c000000 8 MB FLASH: 2 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 => bootm 40000 140000 ## Booting image at 00040000 ... Image NAME: Linux-2.6.9 Created: 2007-02-02 18:21:43 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 605444 Bytes = 591.3 kB Load Address: 0c008000 Entry Point: 0c008000 Verifying CHECKSUM ... OK OK ## Loading Ramdisk Image at 00140000 ... Image NAME: Ramdisk Created: 2007-02-02 19:02:09 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 77798 Bytes = 76 kB Load Address: 0c600000 Entry Point: 0c600000 Verifying CHECKSUM ... OK Starting kernel ... Uncompressing Linux............................................ done, booting the kernel. Linux version 2.6.9-hsc0 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #62 Fri Feb 2 13:08:52 EST 2007 CPU: SAMSUNG-S3C44B0x [44b07700] revision 0 (ARMv4T) Machine: S3C44B0X.html">S3C44B0X Development Board Built 1 zonelists Kernel command LINE: root=/dev/ram0 rw initrd=0x0c600000,800K.html">800K console=ttyS0,115200 PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) MEMORY: 8MB = 8MB total MEMORY: 5864KB available (1194K code, 164K data, 56K init) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) checking if image is initramfs...it isn't (no cpio MAGIC); looks like an initrd Freeing initrd MEMORY: 800K NET: Registered protocol family 16 init_module SAMSUNG S3C44B0 RTL8019AS driver version 0.1 (2002-02-20) <hzh12@163.net> init eth0: 12:34:56:78:90:ab get_stats devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 ttyS0 at I/O 0x1d00000 (irq = 3) is a SAMSUNG S3C44B0 Internal UART ttyS1 at I/O 0x1d04000 (irq = 2) is a SAMSUNG S3C44B0 Internal UART RAMDISK driver initialized: 16 RAM disks of 2048K size 1024 blocksize loop: loaded (max 8 DEVICEs) Using anticipatory io scheduler nbd: registered DEVICE at major 43 NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 512 bind 512) NET: Registered protocol family 1 NET: Registered protocol family 17 RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 fileSYSTEM). Mounted devfs on /dev Freeing init MEMORY: 56K Shell invoked to run file: /etc/rc Command: hostNAME SAMSUNG Command: /bin/expand /etc/ramfs.img /dev/ram1 Can't open expanded file /dev/ram1 pid 11: failed 768 Command: mount -t proc proc /proc Command: mount -t ext2 /dev/ram1 /var mount failed: No such file or directory Command: mkdir /var/config Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: mkdir /var/empty Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Command: ifconfig lo 192.168.1.8 ifconfig: Bad command or file NAME Command: route add -net 192.168.1.1 netmask 255.255.255.0 lo route: Bad command or file NAME Execution Finished, Exiting Sash command shell (version 1.1.1) /> init: /bin/sh respawning too FAST |
|
| 8樓: | >>參與討論 |
| 作者: wangkj 于 2007/2/2 16:32:00 發(fā)布:
QQ qun:35845232 QQ qun:35845232 |
|
| 9樓: | >>參與討論 |
| 作者: wangkj 于 2007/2/2 16:33:00 發(fā)布:
4510-romfs.tgz 試試看吧。 |
|
| 10樓: | >>參與討論 |
| 作者: letter 于 2007/2/2 22:03:00 發(fā)布:
好的。wangkj,非常感謝你。 |
|
| 11樓: | >>參與討論 |
| 作者: wangkj 于 2007/2/3 9:15:00 發(fā)布:
如果運行幾個命令后core dump不要奇怪 這個好像沒也沒完全作好,但也可能是內核的問題(這個和sst FLASH有關,可能)。 |
|
| 12樓: | >>參與討論 |
| 作者: letter 于 2007/2/7 16:04:00 發(fā)布:
原來是配置不對 原來是配置不對而以至文件系統(tǒng)有問題,具體問題我還不知道出在那里。我導入一個現(xiàn)成的內核配置文件就好了,可是shell不能輸入任何字符,這又是什么原因?串口驅動(因為串口驅動是自己搞上去的)? --------------------------------------------------------------------- bootm 0x0c500000 ## Booting image at 0c500000 ... Image NAME: Linux-2.6.9 Created: 2007-02-07 20:51:00 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1088276 Bytes = 1 MB Load Address: 0c008000 Entry Point: 0c008000 Verifying CHECKSUM ... OK OK Starting kernel ... Uncompressing Linux......................................................................... done, booting the kernel. Linux version 2.6.9-hsc0 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #62 Wed Feb 7 15:43:21 EST 2007 CPU: SAMSUNG-S3C44B0x [44b07700] revision 0 (ARMv4T) Machine: S3C44B0X.html">S3C44B0X Development Board Built 1 zonelists Kernel command LINE: root=/dev/ram0 initrd=0x0c136600,969k console=ttyS0,115200 PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) MEMORY: 8MB = 8MB total MEMORY: 5776KB available (2126K code, 122K data, 52K init) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) checking if image is initramfs...it isn't (ungzip failed); looks like an initrd Freeing initrd MEMORY: 969K NET: Registered protocol family 16 init_module SAMSUNG S3C44B0 RTL8019AS driver version 0.1 (2002-02-20) <hzh12@163.net> init eth0: 12:34:56:78:90:ab get_stats ttyS0 at I/O 0x1d00000 (irq = 3) is a SAMSUNG S3C44B0 Internal UART ttyS1 at I/O 0x1d04000 (irq = 2) is a SAMSUNG S3C44B0 Internal UART RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize loop: loaded (max 8 devices) NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 512 bind 512) NET: Registered protocol family 1 NET: Registered protocol family 17 RAMDISK: romfs filesystem found at block 0 RAMDISK: Loading 969KiB [1 disk] into ram disk... done. VFS: Mounted root (romfs filesystem) readonly. Freeing init MEMORY: 52K Shell invoked to run file: /etc/rc Command: hostname senglen Command: /bin/expand /etc/ramfs.img /dev/ram1 Command: mount -t proc proc /proc Command: mount -t ext2 /dev/ram1 /var Command: mkdir /var/config Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: mkdir /var/empty Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Execution Finished, Exiting Sash command shell (version 1.1.1) /> (不能接受任何字符,怪) |
|
| 13樓: | >>參與討論 |
| 作者: letter 于 2007/2/8 10:24:00 發(fā)布:
原來是串口驅動問題 現(xiàn)在問題解決了,是串口的中斷的接收入口不對,改為正確的就好了。謝謝wangkj的幫助。 --------------------------------------------------------------------- U-Boot 1.1.4 (Jan 22 2007 - 16:40:53) U-Boot code: 0C700000 -> 0C719EF8 BSS: -> 0C71E99C RAM Configuration: Bank #0: 0c000000 8 MB FLASH: 2 MB In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 ## Booting image at 00040000 ... Image NAME: Linux-2.6.9 Created: 2007-02-08 14:54:44 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1086152 Bytes = 1 MB Load Address: 0c008000 Entry Point: 0c008000 Verifying CHECKSUM ... OK OK Starting kernel ... Uncompressing Linux......................................................................... done, booting the kernel. Linux version 2.6.9-hsc0 (root@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #63 Thu Feb 8 09:36:06 EST 2007 CPU: SAMSUNG-S3C44B0x [44b07700] revision 0 (ARMv4T) Machine: S3C44B0X.html">S3C44B0X Development Board Built 1 zonelists Kernel command LINE: root=/dev/ram0 initrd=0x0c136600,968k console=ttyS0,115200 PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) MEMORY: 8MB = 8MB total MEMORY: 5776KB available (2125K code, 123K data, 52K init) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) checking if image is initramfs...it isn't (ungzip failed); looks like an initrd Freeing initrd MEMORY: 968K NET: Registered protocol family 16 init_module SAMSUNG S3C44B0 RTL8019AS driver version 0.1 (2002-02-20) <hzh12@163.net> init eth0: 12:34:56:78:90:ab get_stats ttyS0 at I/O 0x1d00000 (irq = 3) is a SAMSUNG S3C44B0 Internal UART ttyS1 at I/O 0x1d04000 (irq = 2) is a SAMSUNG S3C44B0 Internal UART RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize loop: loaded (max 8 devices) NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 512 bind 512) NET: Registered protocol family 1 NET: Registered protocol family 17 RAMDISK: romfs filesystem found at block 0 RAMDISK: Loading 968KiB [1 disk] into ram disk... done. VFS: Mounted root (romfs filesystem) readonly. Freeing init MEMORY: 52K Shell invoked to run file: /etc/rc Command: hostname ucan Command: /bin/expand /etc/ramfs.img /dev/ram1 Command: mount -t proc proc /proc Command: mount -t ext2 /dev/ram1 /var Command: mkdir /var/config Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: mkdir /var/empty Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Command: ifconfig lo 192.168.1.8 Command: route add -net 192.168.1.1 netmask 255.255.255.0 lo route: netmask and route address conflict pid 15: failed 256 Execution Finished, Exiting init: Booting to SINGLE user mode Sash command shell (version 1.1.1) /> ls bin dev etc home lib mnt proc sbin tmp usr var /> |
|
|
|
| 免費注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點此進入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號 |