Question

I am trying to install busy box on panda board which has ICS android kernel

steps are below that I used

  1. Downloaded binary file which is supported to the panda board

  2. Pushing it into system/busybox/ folder

  3. Install the busybox command line tools on the target by executing the following commands on booted filesystem:

                     pc> ./adb shell
                     target$ cd /system/busybox
                     target$ ./busybox --install .
                     target$ ./sh  #here i am getting error like ./sh: precmd: not found
    
  4. Save the original sh executable by renaming it, and then create a soft-link to busybox sh:

     target$ cd /system/bin
     target$ mv sh sh.android
     target$ ln -s /system/busybox/sh sh 
    
  5. After that Export

    export PATH=$PATH:/system/busybox:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin

I want to make Busybox shell as default shell so I can run script on Panda board, but I am getting error in 3rd step that I have mentioned there.

Was it helpful?

Solution

The precmd error seems to be due to the prompt. Try resetting the prompt, by doing:

$ unset PS1 PROMPT_COMMAND
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top