[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    RE: [BusyBox] Why I can't access the /bin/ash?
From:       "Daniel Yu" <Daniel_Yu () Jabil ! com>
Date:       2004-10-28 7:52:41
Message-ID: 2A5969FA1F2BAE48BA505A2BD83BD9650217C0B0 () shamsg10 ! corp ! jabil ! org
[Download RAW message or body]

--===============0771478843==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C4BCC3.1A038760"

This is a multi-part message in MIME format.


I compiled the busybox-1.00 with glibc for arm in static mode. Must I need the uclibc \
to compile the busybox other than glibc?  Thanks for your answer.
                                Daniel

-----Original Message-----
From: Bernd Eller [mailto:berell@mygeos.org]
Sent: 2004Äê10Ô 28ÈÕ 15:52
To: Daniel Yu
Subject: Re: [BusyBox] Why I can't access the /bin/ash?


chrrot to "ramsys" and check if the busybox work, befor you create the ramdisk
i think "uclibc" is missing in the ramdisk !
 
Greats
-bernd   www.mygeos.org
 

----- Original Message ----- 
From: Daniel Yu <mailto:Daniel_Yu@Jabil.com>  
To: 'Busybox (E-mail) <mailto:busybox@mail.busybox.net>  
Sent: Thursday, October 28, 2004 9:16 AM
Subject: [BusyBox] Why I can't access the /bin/ash?


Hi all: 
        I am using the linux-2.6.6 + ramdisk(ext3) + busybox-1.00. When the init \
process went into login.c -- > login_main() --> run_shell(tmp,1,0,0), the error \
message is as following:

                login: cannot run /bin/ash 
                No such file or directory. 
        But in my ramdisk, the ash, sh all exists.  And I want to mount -t proc /proc \
/proc at the file /etc/init.d/rcS. The same error message is displayed for "No such \
file or directory", 

        though I have the /proc directory at my ramdisk. 

        If i can't access the files in ramdisk, why kernel can exec the init, getty \
and login? So i am confused totally.

        I make the ramdisk according to following procedure: 
        
        dd if=/dev/zero of = /dev/ram1 
        mkfs.ext3 /dev/ram1 
        mount /dev/ram1 /mnt/ram        
        cd ramsys 
        cp -a * /mnt/ram        
        umount /mnt/ram 
        dd if=/dev/ram1 | gzip -v9 > ram_image.gz 

        Does anyone give me some clues about the problem? Thank you all! 


                                                        Daniel 



  _____  




_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<TITLE>Why I can't access the /bin/ash?</TITLE>

<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=085014807-28102004><FONT face=ËÎÌå color=#0000ff size=2>I 
compiled the busybox-1.00 with glibc for arm in static mode. Must I need the 
uclibc to compile the busybox other than glibc? </FONT></SPAN></DIV>
<DIV><SPAN class=085014807-28102004><FONT face=ËÎÌå color=#0000ff size=2>Thanks 
for your answer.</FONT></SPAN></DIV>
<DIV><SPAN 
class=085014807-28102004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& \
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
 <FONT face=ËÎÌå color=#0000ff size=2>Daniel</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Bernd Eller 
  [mailto:berell@mygeos.org]<BR><B>Sent:</B> 2004Äê10Ô 28ÈÕ 15:52<BR><B>To:</B> 
  Daniel Yu<BR><B>Subject:</B> Re: [BusyBox] Why I can't access the 
  /bin/ash?<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>chrrot to "ramsys" and check if the busybox work, 
  befor you create the ramdisk</FONT></DIV>
  <DIV><FONT face=Arial size=2>i think "uclibc" is missing in the ramdisk 
  !</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Greats</FONT></DIV>
  <DIV><FONT face=Arial size=2>-bernd&nbsp;&nbsp; <A 
  href="http://www.mygeos.org">www.mygeos.org</A></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: \
#000000 2px solid; MARGIN-RIGHT: 0px">  <DIV style="FONT: 10pt arial">----- Original \
Message ----- </DIV>  <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=Daniel_Yu@Jabil.com href="mailto:Daniel_Yu@Jabil.com">Daniel Yu</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=busybox@mail.busybox.net 
    href="mailto:busybox@mail.busybox.net">'Busybox (E-mail)</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 28, 2004 9:16 
    AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> [BusyBox] Why I can't access 
    the /bin/ash?</DIV>
    <DIV><BR></DIV><!-- Converted from text/rtf format -->
    <P><FONT face=Arial size=2>Hi all:</FONT> 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>I am 
    using the linux-2.6.6 + ramdisk(ext3) + busybox-1.00. When the init process 
    went into login.c -- &gt; login_main() --&gt; run_shell(tmp,1,0,0), the 
    error message is as following:</FONT></P>
    <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>login: 
    cannot run /bin/ash </FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>No such 
    file or directory.</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <FONT face=Arial size=2>But in my ramdisk, the ash, sh all exists.&nbsp; And 
    I want to mount -t proc /proc /proc at the file /etc/init.d/rcS. The same 
    error message is displayed for "No such file or directory", </FONT></P>
    <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>though 
    I have the /proc directory at my ramdisk.</FONT> </P>
    <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>If i 
    can't access the files in ramdisk, why kernel can exec the init, getty and 
    login? So i am confused totally.</FONT></P>
    <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>I make 
    the ramdisk according to following procedure:</FONT> 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>dd 
    if=/dev/zero of = /dev/ram1</FONT> 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial 
    size=2>mkfs.ext3 /dev/ram1</FONT> 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>mount 
    /dev/ram1 /mnt/ram&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    </FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial 
    size=2>cd ramsys</FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT 
    face=Arial size=2>cp -a * /mnt/ram&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    </FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial 
    size=2>umount /mnt/ram </FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <FONT face=Arial size=2>dd if=/dev/ram1 | gzip -v9 &gt; ram_image.gz</FONT> 
    </P>
    <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial size=2>Does 
    anyone give me some clues about the problem? Thank you all!</FONT> </P><BR>
    <P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=Arial 
    size=2>Daniel<SPAN lang=zh-cn></SPAN></FONT><SPAN lang=zh-cn></SPAN> </P>
    <P>
    <HR>

    <P></P>_______________________________________________<BR>busybox mailing 
    list<BR>busybox@mail.busybox.net<BR>http://codepoet.org/mailman/listinfo/busybox<BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>




_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox

--===============0771478843==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic