Jump to content

image build problem : chroot: failed to run command `/bin/bash'


Bino Oetomo

Recommended Posts

My build process stoped with

[ o.k. ] Install locales [ en_US.UTF-8 ]
chroot: failed to run command `/bin/bash': No such file or directory
chroot: failed to run command `/bin/bash': No such file or directory
chroot: failed to run command `/bin/bash': No such file or directory
chroot: failed to run command `/bin/bash': No such file or directory
[ error ] Installation of package failed

I take a look at 'debootstrap.sh' Aller 'Install locales' come at line 146, The command is at line 147 is :

LC_ALL=C LANGUAGE=C LANG=C chroot $DEST/cache/sdcard /bin/bash -c "apt-get -y -qq install locales"

while .... there is another similar 'chroot $DEST/cache/sdcard /bin/bash' command before it that succeed.

 

Note : My build host is i686 Precise.

 

Can any body give me a clue to fix it ?

 

Sincerely -bino-

Edited by Bino Oetomo
Link to comment
Share on other sites

dear Sir ...

There is no rootfs files/directory found in my PC.

I just reboot it.

And ... unfor tunately there is another error.
Looks like to day there is 4.3 (Yesterday it's 4.2.5) at git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

It cause some more configuration questions appears although I set KERNEL_CONFIGURE="no"
I follow all with default values,
things like :
 

[ o.k. ] Patching [ kernel 4.3.0 ]
[ o.k. ] ... compiler bug [ already reverted ]  [ kernel ]
[ warn ] ... fix BRCMFMAC AP mode Banana & CT already applied [ kernel ]
[ warn ] ... deb packaging fix already applied [ kernel ]
[ warn ] ... Banana M2 support, LEDs already applied [ kernel ]
[ warn ] ... Cubieboard2 double SD version already applied [ kernel ]
[ o.k. ] Patching [ Allwinner H3 support ]
5 out of 5 hunks FAILED -- saving rejects to file drivers/clk/sunxi/clk-sunxi.c.rej
2 out of 2 hunks FAILED -- saving rejects to file Documentation/devicetree/bindings/clock/sunxi.txt.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/clk/sunxi/Makefile.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/clk/sunxi/clk-sun8i-bus-gates.c.rej
3 out of 4 hunks FAILED -- saving rejects to file drivers/clk/sunxi/clk-sunxi.c.rej
1 out of 1 hunk FAILED -- saving rejects to file Documentation/devicetree/bindings/reset/allwinner,sunxi-clock-reset.txt.rej
3 out of 4 hunks FAILED -- saving rejects to file drivers/reset/reset-sunxi.c.rej
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/boot/dts/Makefile.rej
1 out of 1 hunk FAILED -- saving rejects to file Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/pinctrl/sunxi/Makefile.rej
[ o.k. ] Patching [ u-boot v2015.10 ]
[ warn ] ... Add Lamobo R1 already applied [ u-boot ]
[ o.k. ] ... Add AW SOM [ u-boot ]
[ warn ] ... Add Armbian boot splash already applied [ u-boot ]
[ o.k. ] Patching [ other sources ]
[ o.k. ] Compiling uboot. Please wait. [ 2015.10 ]
[ o.k. ] Target directory [ /home/bino/Documents/igor/output/debs/ ]
[ o.k. ] Building deb [ linux-u-boot-next-cubieboard2_4.6_armhf.deb ]
[ o.k. ] Compiling kernel [ @host ]
scripts/kconfig/conf  --oldconfig Kconfig
*
* Restart config...
*
*
* Control Group support
*
Control Group support (CGROUPS) [Y/n/?] y
  Example debug cgroup subsystem (CGROUP_DEBUG) [N/y/?] n
  Freezer cgroup subsystem (CGROUP_FREEZER) [Y/n/?] y
  PIDs cgroup subsystem (CGROUP_PIDS) [N/y/?] (NEW) 


and the build process stopped with last msg :

 

drivers/net/phy/Makefile:6: *** missing separator.  Stop.
make[2]: *** [drivers/net/phy] Error 2
make[1]: *** [drivers/net] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers/modules.builtin] Error 2
make: *** Waiting for unfinished jobs....
make[1]: `include/generated/mach-types.h' is up to date.
[ error ] Kernel was not built [ @host ]


Sincerely
-bino-

Link to comment
Share on other sites

Update script - remove /lib or (git checkout -f)to force update I made few changes in last several days

 

I have to check / alter patches if they are 4.3 compatible. I'll today .... 4.2.5 is working fine.

Link to comment
Share on other sites

Dear Sir.

Just a report.

1. I do that /lib refetch
2. remove output directory

The previous trial before I did refetch also with no output directory, still failed at bootstrap things.
But errors about kernel didn't show up after I change value at line 409 in configuration.sh tobe :
 

LINUXDEFAULT="4.2.5" #Used tobe 'master'


Yes it show --->

error: pathspec '4.2.5' did not match any file(s) known to git.

But the process running well until bootstrap things.

sincerely
-bino-
 

Link to comment
Share on other sites

another report

The image creation still problem.
But I thing the debs creation work, with modification at configuration.sh as above.

My trial step is this :
1. I boot my board from SD card
This SD card is based on your Vanila image.
I did debs update using my previous (pre 4.3) compile process
Reboot it .... and it give me

 

Linux cubieboard2 4.2.5-sunxi #1 SMP Sat Oct 31 11:24:10 WIB 2015 armv7l GNU/Linux

2. make another debs update using my last build process,
now it give me

 

Linux cubieboard2 4.2.5-sunxi #2 SMP Mon Nov 2 13:34:03 WIB 2015 armv7l GNU/Linux

So I thing the easiest route to make image is boot the board using your image and do dpkg -i of all new created debs.

Sincerely
-bino-

I have other question .. it's about add another dts patching process to the build script, but I'll post it to new thread.

 

Link to comment
Share on other sites

If you are adding your own custom build kernel you need to un-install default kernel package or name it differently + alter boot script otherwise the update will update it with new Armbian version.

Link to comment
Share on other sites

Kernel 4.3 building fixed. There are still some issues with compilation speed (not my script issue) but building is possible.

 

I made a test run and now testing a new kernel on R1 therefore I need to reboot it after 22 days (!) of stress test uptime. 

Linux lamobo-r1 4.3.0-sunxi #3 SMP Mon Nov 2 20:15:28 CET 2015 armv7l GNU/Linux 
Link to comment
Share on other sites

Hi,

 

I have exactly the same problem with the last git...

 

[ o.k. ] Install locales [ en_US.UTF-8 ]
chroot: failed to run command '/bin/bash': No such file or directory
chroot: failed to run command '/bin/bash': No such file or directory
chroot: failed to run command '/bin/bash': No such file or directory
chroot: failed to run command '/bin/bash': No such file or directory
[ error ] Installation of package failed

 

Link to comment
Share on other sites

Hi,

I build just as the documentation tell me : I'm running under debian jessie and I would like build simply my img file with the latest updates (with kernel security issues up to date).I have solved all the difficulty to configure the proxy/firewall and your script can reach all the files (key hkp are installed and git is ok).

my choice to build image was : jessie with legacy kernel 3.4
but as you can see, the script is stopping with this error (chroot: failed to run command '/bin/bash': No such file or directory

[ error ] Installation of package failed)

no changes have been made to the script !

thank you very much for your response !

Link to comment
Share on other sites

I am running script on daily basis and I am not the only one. I would need to ask you for more: are you using Ubuntu Trusty?

 

Next. Do a reboot, remove output/cache and try again.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines