Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

  • Author

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-

  • Author

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-
 

  • Author

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.

 

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 

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

 

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 !

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.