File not found when running a simple busybox system

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm running Linux 4.1 and booting into a simple busybox environment. Busybox and shadow packages have been built as static and installed in my rootFS. Busybox is used for the /sbin/init and shadow's login is used for the /bin/login. I used makedevs to create /dev, and created /etc/group,shadow,passwd,inittab,rc.



I installed this on my board and it boots up and seems okay until I press Enter to login. I get that the file /bin/login is not found. Adding to my /etc/rc script I can see that /bin/login exist and is executable. So why can't the system find it?



[ 3.875852] devtmpfs: mounted
[ 3.880023] Freeing unused kernel memory: 464K (c0994000 - c0a08000)
init started: BusyBox v1.26.2 (2018-08-16 15:09:07 EDT)
Got the init message
-rwxr-xr-x 1 0 0 43752 Nov 2 2018 /bin/login

Please press Enter to activate this console.

can't run '/bin/login': No such file or directory

Please press Enter to activate this console.


This is what my /etc/inittab looks like:



::sysinit:/etc/rc init
::askfirst:/bin/login


And my /etc/rc script:



#!/bin/sh

export PATH=/usr/sbin:/usr/bin:/sbin:/bin

echo "Got the init message"
mount -n -t proc proc /proc 2>/dev/null
mount -n -t sysfs sysfs /sys 2>/dev/null
mount -o remount,rw,sync /
ls -l /bin/login








share

























    up vote
    0
    down vote

    favorite












    I'm running Linux 4.1 and booting into a simple busybox environment. Busybox and shadow packages have been built as static and installed in my rootFS. Busybox is used for the /sbin/init and shadow's login is used for the /bin/login. I used makedevs to create /dev, and created /etc/group,shadow,passwd,inittab,rc.



    I installed this on my board and it boots up and seems okay until I press Enter to login. I get that the file /bin/login is not found. Adding to my /etc/rc script I can see that /bin/login exist and is executable. So why can't the system find it?



    [ 3.875852] devtmpfs: mounted
    [ 3.880023] Freeing unused kernel memory: 464K (c0994000 - c0a08000)
    init started: BusyBox v1.26.2 (2018-08-16 15:09:07 EDT)
    Got the init message
    -rwxr-xr-x 1 0 0 43752 Nov 2 2018 /bin/login

    Please press Enter to activate this console.

    can't run '/bin/login': No such file or directory

    Please press Enter to activate this console.


    This is what my /etc/inittab looks like:



    ::sysinit:/etc/rc init
    ::askfirst:/bin/login


    And my /etc/rc script:



    #!/bin/sh

    export PATH=/usr/sbin:/usr/bin:/sbin:/bin

    echo "Got the init message"
    mount -n -t proc proc /proc 2>/dev/null
    mount -n -t sysfs sysfs /sys 2>/dev/null
    mount -o remount,rw,sync /
    ls -l /bin/login








    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm running Linux 4.1 and booting into a simple busybox environment. Busybox and shadow packages have been built as static and installed in my rootFS. Busybox is used for the /sbin/init and shadow's login is used for the /bin/login. I used makedevs to create /dev, and created /etc/group,shadow,passwd,inittab,rc.



      I installed this on my board and it boots up and seems okay until I press Enter to login. I get that the file /bin/login is not found. Adding to my /etc/rc script I can see that /bin/login exist and is executable. So why can't the system find it?



      [ 3.875852] devtmpfs: mounted
      [ 3.880023] Freeing unused kernel memory: 464K (c0994000 - c0a08000)
      init started: BusyBox v1.26.2 (2018-08-16 15:09:07 EDT)
      Got the init message
      -rwxr-xr-x 1 0 0 43752 Nov 2 2018 /bin/login

      Please press Enter to activate this console.

      can't run '/bin/login': No such file or directory

      Please press Enter to activate this console.


      This is what my /etc/inittab looks like:



      ::sysinit:/etc/rc init
      ::askfirst:/bin/login


      And my /etc/rc script:



      #!/bin/sh

      export PATH=/usr/sbin:/usr/bin:/sbin:/bin

      echo "Got the init message"
      mount -n -t proc proc /proc 2>/dev/null
      mount -n -t sysfs sysfs /sys 2>/dev/null
      mount -o remount,rw,sync /
      ls -l /bin/login








      share













      I'm running Linux 4.1 and booting into a simple busybox environment. Busybox and shadow packages have been built as static and installed in my rootFS. Busybox is used for the /sbin/init and shadow's login is used for the /bin/login. I used makedevs to create /dev, and created /etc/group,shadow,passwd,inittab,rc.



      I installed this on my board and it boots up and seems okay until I press Enter to login. I get that the file /bin/login is not found. Adding to my /etc/rc script I can see that /bin/login exist and is executable. So why can't the system find it?



      [ 3.875852] devtmpfs: mounted
      [ 3.880023] Freeing unused kernel memory: 464K (c0994000 - c0a08000)
      init started: BusyBox v1.26.2 (2018-08-16 15:09:07 EDT)
      Got the init message
      -rwxr-xr-x 1 0 0 43752 Nov 2 2018 /bin/login

      Please press Enter to activate this console.

      can't run '/bin/login': No such file or directory

      Please press Enter to activate this console.


      This is what my /etc/inittab looks like:



      ::sysinit:/etc/rc init
      ::askfirst:/bin/login


      And my /etc/rc script:



      #!/bin/sh

      export PATH=/usr/sbin:/usr/bin:/sbin:/bin

      echo "Got the init message"
      mount -n -t proc proc /proc 2>/dev/null
      mount -n -t sysfs sysfs /sys 2>/dev/null
      mount -o remount,rw,sync /
      ls -l /bin/login






      linux busybox busybox-init





      share












      share










      share



      share










      asked 6 mins ago









      dangeroushobo

      1306




      1306

























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479477%2ffile-not-found-when-running-a-simple-busybox-system%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479477%2ffile-not-found-when-running-a-simple-busybox-system%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay