Hi, Jon

Now, I have download kernel image + initrd to EDB7211 DRAM with Shoehorn3.1. Then 
system run with those message:

last message:
    VFS: Mounted root (ext2 filesystem).
    Free init Memory 68k

then system wait input.
When I press keyboard, system respond some message. For example:
  'k'  --->  SAK
  'b'  --->  restart
  'o'  --->  power off
   etc.
I found this code in "drivers/char/sysrq.c".System can't run shell.
But I want to run shell and some script after kernel init, how can I do?
And where can I find some detail documents about "run shell and edit script"? Thanks.

Best regard.


Eric






On Mon, Nov 27, 2000 at 06:29:18PM +0000, armlinux wrote:
 >> VFS: Mounted root (ext2 filesystem).
 >> 
 >> then system hang. But when I press keyboard, system can respond with some message. 
 >I found respond code in /drivers/char/sysrq.c.
 >
 >What message is it giving you?
 >
 >>    I want to know how can i organize my initrd.
 >>    when I link /sbin/init --->  /bash . System hang at 
 >>      execve("/sbin/init",argv_init,envp_init);
 >>    When I link /bin/init  ---> /bash. System hang at 
 >>      execve("/bin/init",argv_init,envp_init);
 >> 
 >>    I also link /linuxrc  ----> /bash.
 >>    I find a file named "busybox" in initrd.ext2-busybox.gz, all link point this 
 >binary file. Is "busybox" same with "bash"?
 >
 >Busybox is a multipurpose executable that replaces several independant 
 >binaries. Its shell, however, is rather weak. 
 >
 >Do you have your bash shell in the root directory? Is it compiled for the
 >ARM system? If so, linking /sbin/init to /bash should work.
 >
 >>     In those code cause "ROOT_DEV == real_root_dev = 256".
 >>     So, how can i modify kernel code and initrd to run linux on EP7211????
 >
 >You shouldn't need to modify to the kernel to get it running. The kernel and
 >initrd that are available on the Blue Mug website should work as is. You can
 >then augment the initrd to do what you would like.
 >
 >> 4. Shoehorn can download image to DRAM of EDB7211. When I download image to Flash, 
 >kernel can't run, why???   I download image to Flash with download.exe (provided by 
 >Cirrus Logic, EP7211 development kit).
 >
 >We will be releasing a new kernel patch and a modified boot loader that supports
 >booting from flash shortly.
 >
 >> 5. How can i run bash after kernel init??
 >
 >I suggest you read the busybox documentation, at http://busybox.lineo.com/,
 >and take a look at the information for it's implementation of init. You will
 >need to edit the /etc/inittab file to specify which programs to run.
 >
 >-Jon

______________________________________

===================================================================
������ѵ������� http://mail.sina.com.cn
�����Ƴ����˶���Ϣ�ֻ��㲥���� 
http://sms.sina.com.cn/

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm

Reply via email to