maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory" (https://talk.maemo.org/showthread.php?t=92186)

lonk 2013-12-28 12:52

Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
I'm trying to install Debian on a 4GB micro sd card
I'm following these steps: http://elektranox.org/n900/installation/manual.html

but when I try to chroot I get

Code:

chroot: can't execute '/bin/sh': No such file or directory
what do I do at this stage? I've also tried the tarbal file installation and when I try to chroot I get "exec format error"

elros34 2013-12-28 13:13

Re: Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
Did you try on phone or on pc?

lonk 2013-12-28 13:48

Re: Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
I'm doing it on the N900

Code:

Nokia-N900:~# uname -a
Linux Nokia-N900 2.6.28.10-power52 #1 PREEMPT Sat Apr 6 11:59:23 UTC 2013 armv7l GNU/Linux


lonk 2013-12-28 13:51

Re: Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
also I'm using debootstrap_1.0.55~bpo70+1_all.deb from the first step because debootstrap_1.0.30_all.deb was not available

elros34 2013-12-28 13:56

Re: Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
What happens if you type: chroot /path/to/mount/point /bin/bash

lonk 2013-12-28 14:07

Re: Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
I get this

Code:

Nokia-N900:~# chroot /mnt/debian/ /bin/bash
chroot: can't execute '/bin/bash': No such file or directory

some additional info:
Code:

Nokia-N900:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.9M    219.0M      4.7M  98% /
ubi0:rootfs            227.9M    219.0M      4.7M  98% /
tmpfs                    60.0M    76.0K    59.9M  0% /tmp
tmpfs                  256.0K    84.0K    172.0K  33% /var/run
none                    10.0M    80.0K      9.9M  1% /dev
tmpfs                    64.0M      4.0K    64.0M  0% /dev/shm
/dev/mmcblk0p2            2.0G    852.7M      1.0G  45% /home
/home/opt                2.0G    852.7M      1.0G  45% /opt
/opt/pymaemo/usr/lib/python2.5
                          2.0G    852.7M      1.0G  45% /usr/lib/python2.5
/opt/pymaemo/usr/share/pyshared
                          2.0G    852.7M      1.0G  45% /usr/share/pyshared
/opt/pymaemo/usr/lib/pyshared
                          2.0G    852.7M      1.0G  45% /usr/lib/pyshared
/opt/pymaemo/usr/share/python-support
                          2.0G    852.7M      1.0G  45% /usr/share/python-support
/opt/pymaemo/usr/lib/python-support
                          2.0G    852.7M      1.0G  45% /usr/lib/python-support
/dev/mmcblk0p1          27.0G    25.5G      1.5G  95% /home/user/MyDocs
/dev/mmcblk1p1            3.6G    148.7M      3.2G  4% /mnt/debian

Code:

Nokia-N900:~# parted /dev/mmcblk1
GNU Parted 2.3
Using /dev/mmcblk1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                           
print
Model: SD  (sd/mmc)
Disk /dev/mmcblk1: 33.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End    Size    Type    File system  Flags
 1      1049kB  3880MB  3879MB  primary  ext3

(parted)


elros34 2013-12-28 14:36

Re: Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
Quote:

Originally Posted by lonk (Post 1401451)
I've also tried the tarbal file installation and when I try to chroot I get "exec format error"

I have tried this tarball and everything is OK.

lonk 2013-12-28 14:44

Re: Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
Quote:

Originally Posted by elros34 (Post 1401507)
I have tried this tarball and everything is OK.

I'm downloading it now and will report back if it works for me

elros34 2013-12-28 14:50

Re: Problems installing Debian in micro SD card "chroot: can't execute '/bin/sh': No such file or directory"
 
I think you should try this script with unknown obvious's kernel (armhf/thumb2 support). Long time ago I've used this script (with little modifications) to install armhf debian.


All times are GMT. The time now is 19:14.

vBulletin® Version 3.8.8