hello Adam, you could try to look at this (very small_rootfs to unfold;) running mips using binfmt_misc ,
to see how it is setup http://wjhowto.googlepages.com/runningdd-wrtmipsinqemu HTH Le Wednesday 07 December 2011 à 10:06 -0500, Adam Magaluk a écrit : > > > I figured it was something to do with that, Im just not > very knowledgeable on how exactly binfmt_misc works. > > > Any ideas on how I could get both of my development strategies > working? > > > I tried to copy /scratchbox/tools/bin/misc_runner to my > chroot environment and it change the error to. > > > sudo chroot EmDebian/ > /scratchbox/tools/bin/misc_runner: /targets/links/scratchbox.config: > No such file or directory > > > Seeing that I tried to make the file /targets/links/scratchbox.config > in my chroot env which, I just created a blank file as im not sure > what should be in it. It seems I would have to setup the entire > Scratchbox environment when trying to chroot into my directory that > deals with arm binaries. Is there an easier way? > > > 1. Does scratchbox require binfmt_misc to be associated with it? If > not can is it possible to disable scratchbox from > starting binfmt_misc? > > > 2. Is there a way to select which binfmt_misc to associate with when > running chroot? > > > Cheers, > Adam > > > > > > On Wed, Dec 7, 2011 at 4:30 AM, Jussi Hakala <jussi.hak...@movial.com> > wrote: > On 12/07/2011 01:54 AM, Adam Magaluk wrote: > > Finally I normally run to chroot into my newly created > arm emdebian system. > > > sudo chroot EmDebian / > > > But as soon as I install scratchbox-core I get the > following error > on sudo chroot EmDebian > > > chroot: failed to run command `/bin/bash': No such > file or directory/ > > It's not breaking chroot. > > No such file or directory probably refers to the interepreter > which is assigned to handle the foreign binary that > is /bin/bash. > > For emdebian, you have probably set something > like /usr/bin/qemu-arm to run your arm binaries in binfmt_misc > whilst scratchbox uses /scratchbox/tools/bin/misc_runner. > > You have multiple conflicting assignments for arm binaries in > binfmt_misc. If memory serves, the last one is the one that > matters and after installing scratchbox, misc_runner has the > arm binaries. > > When chrooting to your emdebian root, there's > no /scratchbox/tools/bin/misc_runner, and /bin/bash cannot be > executed, hence the error message. > > Regards, > > Jussi > _______________________________________________ > Scratchbox-users mailing list > Scratchbox-users@lists.scratchbox.org > http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users > > > _______________________________________________ > Scratchbox-users mailing list > Scratchbox-users@lists.scratchbox.org > http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users _______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users