• 0
Sign in to follow this  
dakefeng

strange error may because of shell?

Question

When I am doing petalinux-config, I got error like this:

$petalinux-config

INFO: Checking component...

INFO: Config linux [INFO ] config linux *** End of the configuration. ***

Execute 'make' to start the build or try 'make help'.

/bin/sh: 1: pushd: not found

/bin/sh: 1: popd: not found

make: *** [post-config-auto-config] Error 127 ERROR: Failed to post config linux ERROR: Failed to config component linux

Usually this is because shell not bash, but I am pretty sure I am using bash.. Unless the ubuntu 16 is using dash??? in my /etc/passwd it shows my shell is /bin/bash

by the way, I noticed when I am sourcing settings64.sh from petalinux, there is warning 

WARNING: /bin/sh is not bash

also.

Does someone face same problem too?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hey Dakefeng,

Sorry for the delayed reply due to the long weekend. As you have observed, the recommended shell for PetaLinux is Bash. I am not certain what you mean by making a link from bin/sh to bin/bash, however there are a couple ways to change the default shell. If you haven't already, I would suggest using the chsh command and linking to /bin/bash, such as

chsh -s /bin/bash

There are a handful of other dependencies that PetaLinux has that are easy to overlook. The PetaLinux reference guide has a list of packages you should install in order for the program to run properly, starting on page 9 I believe.

-Nate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this