作者 主題: 麻煩幫我看一下~~~關於init~~~  (閱讀 4641 次)

0 會員 與 1 訪客 正在閱讀本文。

yaoyaohsu

  • 可愛的小學生
  • *
  • 文章數: 10
    • 檢視個人資料
麻煩幫我看一下~~~關於init~~~
« 於: 2007-12-06 19:31 »
Uncompressing Linux................................................... done, booice at location zero                                                           
ting the kernel.               
Linux version 2.4.18-rmk7-swl8 (root@localhost.localdomain) (gcc version 2.95.3             
200103     

Booting from flash!                   

If press ke
20010315 (release)) #66 二 12月 4 03:39:30 CST 2007ce at location zero                               
CPU: SAMSUNG S3C2410(Arm920T)sid(wb) revision 0 

Booting from flash! memory address is 0x00s
Machine: create ARM920T-S3C2410                               
On node 0 totalpages: 16384button 1, enter Bootloader
zone(0): 16384 pages.                     
zone(1): 0 pages.         

Bootin
zone(2): 0 pages.ry address is 0x0
Kernel command line: root=/dev/mtdblock0 men=8M console=ttyS0 rootfstype=jffs2 from flash! memory address is 0x00                                         


Calibrating delay loop... 101.37 BogoMIPS                                         
Initializing RT netlink socketress i                       
Starting kswapd 2 - K9F5608U0B
Journalled Block Device driver loaded               
Please select : 2   
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.    0 - EXITpad button 1                       
    1 - FALSH_BURN_OFFSET  =
l3 S3C2410 Adapter Initialized                 
Select edit
ttyS0 at MEM 0xe0000000 (irq = 52) is a S3C2410                                 

new FLASH_BU
ttyS1 at MEM 0xe0004000 (irq = 55) is a S3C2410 exit Bo                                       
pty: 256 Unix98 ptys configuredandFlash burn offset setting: 
Installing S3C2410 RTC     
    0 - EXITess
S3C Real Time Clock driver v1.00  1 - FALSH_BURN_OFFSET  = 0x002
block: 128 slots per queue, batch=32       
Now, please select transmit
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize         
ttyS0 at       

鏇|3`3?receive file ...... OK !oa
eth0: cs8900 rev K found at 0xf0                               
Search for id:(a0d 4600) interleave(1) type(2)             
Uncompressing Linux.............
Search for id:(a0d 4600) interleave(1) type(2)o638481c: 0x54                               
Search for id:(a0d 4600) interleave(1) type(2)             
    0 - EXIT           
ting t
Search for id:(0d 00) interleave(2) type(1)sion 2.4.18-rmk7-swl8 (root@localho       
Search for id:(a0d a0d) interleave(2) type(2)                                           

JEDEC: Found no Physically mapped flash device at location zeroFALSH_BURN_OFFSET  = 0x00000000earch for                       
s3c2410 flash device: 2000000 at 2000000                 
Memory: 64MB = 64MB to
Search for id:(ff e1a0) interleave(1) type(2)16KB available (1381K code, 281K data, 52K in
Search for id:(ff e1a0) interleave(1) type(2)                                             
Search for id:(90 e1a0) interleave(1) type(2)ache hash table entries: 8192 (order: 4, 6553
Search for id:(ff a0) interleave(2) type(1)                                           
Search for id:(ffff 00) interleave(2) type(2)                                             
Search for id:(ffff 00) interleave(2) type(2)01 Red Hat, Inc                             
Search for id:(9090 00) interleave(2) type(2)         
Journalled Block Device driver loa
JEDEC: Found no s3c2410 flash device device at location zero                                         
JFFS2 version 2.1.
NAND device: Manufacture ID: 0xec, Chip ID: 0x75 (Samsung KM29U256T)
--------------------------------------------
YOU MUST SEE nand_ids.h file
and must register your NAND SMC Device
Unsupported SmartMedia device
           Only test in MAF 0xEC, DEV 0x76
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xd9000000, IRQ 26
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
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
RAMDISK: Couldn't find valid RAM disk image starting at 0.
Freeing initrd memory: 10240K
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 52K
Warning: unable to open an initial console.
Kernel panic: No init found.  Try passing init= option to kernel.

說找不到init~~~   以下是我的kernel內的/init/main.c的檔案內容
if (open("/dev/console", O_RDWR,0 ) < 0)
      printk("Warning: unable to open an initial console.\n");
   (void) dup(0);
   (void) dup(0);
   
   /*
    * We try each of these until one succeeds.
    *
    * The Bourne shell can be used instead of init if we are
    * trying to recover a really broken machine.
    */

   if (execute_command)
      execve(execute_command,argv_init,envp_init);
   execve("/sbin/init",argv_init,envp_init);
   execve("/etc/init",argv_init,envp_init);
   execve("/bin/init",argv_init,envp_init);
   execve("/bin/sh",argv_init,envp_init);
   panic("No init found.  Try passing init= option to kernel.");
請問有人知道是怎麼回事嗎~~~教教我~~~

thyme

  • 老人組
  • 俺是博士!
  • *****
  • 文章數: 1281
    • 檢視個人資料
回覆: 麻煩幫我看一下~~~關於init~~~
« 回覆 #1 於: 2007-12-10 11:53 »
基本上在 embedded linux 中出現「Kernel panic: No init found.  Try passing init= option to kernel.」
就是你的kernel讀不到正確的 file system,原因可能是bootloader 參數不正確、file system檔案格式不正確、....
出現這問題就是先按範例正確弄出,再慢慢修改。

yaoyaohsu

  • 可愛的小學生
  • *
  • 文章數: 10
    • 檢視個人資料
回覆: 麻煩幫我看一下~~~關於init~~~
« 回覆 #2 於: 2007-12-25 21:13 »
請問有沒有人有作好確定可以用的jffs2 file system 可以讓我試一下!!
完全不知道自已錯在那~~~