UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer dtrask
Observer
10,475 Views
Registered: ‎01-08-2014

Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

I have disabled uWeb and enabled busybox httpd on my Petlinux 2014.4 build. When I boot the image on the target, I see /etc/init.d/busybox-httpd which points to daemon at /usr/sbin/httpd. However, /usr/sbin/httpd does not exist. There is a /sbin/httpd which is a link to /bin/busybox.nosuid. I cannot find any information to tell me how to either change the busybox-httpd script to point to the correct location or to change the location of the httpd executable in the target rootfs. Any help getting this info would be much appreciated.

0 Kudos
1 Solution

Accepted Solutions
Observer dtrask
Observer
19,066 Views
Registered: ‎01-08-2014

Re: Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

Well, this has been a lesson in creating Debian packages. Once I learned the steps to do this properly, I was able to correctly update the Packages file at petalinux-v2014.4-final/components/packages-repo/plnx-repo/dists/default/main/binary-armv7a-vfp-neon/ to contain the correct file size and has sums. I used this website to generate the hash sums... http://onlinemd5.com/

 

This allowed me to get through the build process. Now, let's see if this has solved my original problem, which was that the httpd daemon was not starting because the busybox-httpd pointed to the wrong location for the daemon executable.

View solution in original post

7 Replies
Observer dtrask
Observer
10,451 Views
Registered: ‎01-08-2014

Re: Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

So, I updated the busybox-httpd_1.22.1-r32_armv7a-vfp-neon.deb so that the /etc/init.d/busybox-httpd script points to the correct location for httpd. Now, when I build I get this error:

 

[ALL  ] Failed to fetch file:/opt/petalinux-v2014.4-final/components/packages-repo/plnx-repo/pool/main/b/busybox-httpd/busybox-httpd_1.22.1-r32_armv7a-vfp-neon.deb  Size mismatch

 

So, I suppose I need to update a table somewhere to reflect the correct size of the new .deb file. Can you help me with this, please?

0 Kudos
Observer dtrask
Observer
19,067 Views
Registered: ‎01-08-2014

Re: Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

Well, this has been a lesson in creating Debian packages. Once I learned the steps to do this properly, I was able to correctly update the Packages file at petalinux-v2014.4-final/components/packages-repo/plnx-repo/dists/default/main/binary-armv7a-vfp-neon/ to contain the correct file size and has sums. I used this website to generate the hash sums... http://onlinemd5.com/

 

This allowed me to get through the build process. Now, let's see if this has solved my original problem, which was that the httpd daemon was not starting because the busybox-httpd pointed to the wrong location for the daemon executable.

View solution in original post

Participant lee_xiao
Participant
10,250 Views
Registered: ‎02-25-2014

Re: Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

Have you solved the problem? I have got the same problem.

 

Regards.

 

 

Lee

0 Kudos
Observer dtrask
Observer
10,238 Views
Registered: ‎01-08-2014

Re: Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

Yes, I marked my previous post as the solution. I had to update the Debian package so that the /etc/init.d/busybox-httpd script pointed to the right location. It's really more of a work-around than a solution, as the problem should be fixed in the original busybox distribution from Xilinx.

0 Kudos
Participant lee_xiao
Participant
10,219 Views
Registered: ‎02-25-2014

Re: Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

Thanks.

 

 

Lee

0 Kudos
Scholar vanmierlo
Scholar
9,336 Views
Registered: ‎06-10-2008

Re: Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

I admire your solution to update the debian package. But would it not have been much simpler work-around to create an application project that adds an extra link in the rootfs from /usr/sbin/httpd to /bin/busybox.nosuid ?

 

Still, I agree Xilinx should fix this.

Observer dtrask
Observer
9,329 Views
Registered: ‎01-08-2014

Re: Petalinux 2014.4 busybox httpd not found in /usr/sbin on target

Jump to solution

I think that would work just fine. Thanks for the suggestion. I'll keep it in mind if the problem persists in future versions of Petalinux.

0 Kudos