Reply
Thread Tools
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#11
I want to learn a redhat type system as well as debian.
 
Posts: 228 | Thanked: 145 times | Joined on Dec 2009
#12
And flowers blossomed, and birds sang a song of spring, and an angel wiped away a joyful tear.



Godspeed.
 
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#13
I downloaded fedora arm rootfs, untarred it, put into the directory /home/user/MyDocs/Fedora/rootfs. I then ran chroot on that directory. It fails saying (to this effect don't have n900 now) "can't bind /bin/sh. Hmm so I saw a little script in jebbers wiki and made that file in rootfs but nothing changed. No birds singing here
 
Posts: 999 | Thanked: 1,117 times | Joined on Dec 2009 @ earth?
#14
Originally Posted by extendedping View Post
I downloaded fedora arm rootfs, untarred it, put into the directory /home/user/MyDocs/Fedora/rootfs. I then ran chroot on that directory. It fails saying (to this effect don't have n900 now) "can't bind /bin/sh. Hmm so I saw a little script in jebbers wiki and made that file in rootfs but nothing changed. No birds singing here
Keep going, the birds will sing one day!
__________________
I like cake.
 
giannoug's Avatar
Posts: 334 | Thanked: 171 times | Joined on Dec 2009
#15
Originally Posted by extendedping View Post
I downloaded fedora arm rootfs, untarred it, put into the directory /home/user/MyDocs/Fedora/rootfs. I then ran chroot on that directory. It fails saying (to this effect don't have n900 now) "can't bind /bin/sh. Hmm so I saw a little script in jebbers wiki and made that file in rootfs but nothing changed. No birds singing here
That's because MyDocs is mounted with no execute, which means you can't execute programs from there.

Take a look at qchroot, part of the Easy Chroot package made by qole. What you'll have to do is make an ext2 image containing the Fedora ARM rootfs and then use qchroot to mount it inside Maemo, for example in /fedora Oh, qchroot will also copy some essential stuff from Maemo and finally chroot to it!
 
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#16
Originally Posted by giannoug View Post
That's because MyDocs is mounted with no execute, which means you can't execute programs from there.

Take a look at qchroot, part of the Easy Chroot package made by qole. What you'll have to do is make an ext2 image containing the Fedora ARM rootfs and then use qchroot to mount it inside Maemo, for example in /fedora Oh, qchroot will also copy some essential stuff from Maemo and finally chroot to it!
with help like this perhaps the birds will sing after all...

will try it tomorrow, this would really be great if I could get it working.
quick question, goes to the original title of the post. since you are running chroot, does the os need to match the processor? meaning, could I do this with centos? or just fedora as that has an arm distro?
 
Posts: 228 | Thanked: 145 times | Joined on Dec 2009
#17
chroot just refers to location of binaries on disk. those binaries still have to be compiled for the correct architecture! there's no emulation involved. can you find a centos built for arm?
 
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#18
I can't even find my arm.
 

The Following User Says Thank You to extendedping For This Useful Post:
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#19
ok here is where things stand. I got the rootfs-f12 root file system via the link in the jebber wiki. I created a folder called /.fedora which has the exact same permissions and ownership of the /.debian folder used for easy debian. I created a 2GB image file and called /home/user/fedora.img and then I did a mount /home/user/MyDocs/fedora.img /mnt. I then copied all the files doing cp -ar * from the /home/user/Mydocs/rootfs-f12 to /mnt and then did umount /mnt. I hope I did that step correctly, that was to get the file system into the /home/user/MyDocs/fedora.img

next I do "mount | grep -i loop" and nothing shows up.
next I try to mount and chroot using the qchroot....

Nokia-N900:~# qchroot /home/user/MyDocs/fedora12.img /.fedora/
Mounting...
using image file: /home/user/MyDocs/fedora12.img
fs type is img
Don't know img: Using ext2 file system
Using ext2 file system
mounting /home/user/MyDocs/fedora12.img on loop
.../home/user/MyDocs/fedora12.img mounted on loop0
.
..
...
....
mount: mounting /var/run/dbus on /.fedora//var/run/dbus failed: No such file or directory
mount: mounting /var/lib/dbus on /.fedora//var/lib/dbus failed: No such file or directory
mount: mounting /var/run/pulse on /.fedora//var/run/pulse failed: No such file or directory
Everything set up, running chroot...
chroot: cannot execute /bin/sh: No such file or directory

ok so I cd into /.fedora and ls...

Nokia-N900:~# cd /.fedora/
Nokia-N900:/.fedora# ls
bin home mnt sbin tmp
boot lib opt selinux usr
dev lost+found proc srv var
etc media root sys

I look in /bin there is no sh...there is /bin/bash but no /bin/sh

then I check the mount command again...

Nokia-N900:/.fedora# mount |grep -i loop
/dev/loop0 on /.fedora type ext2 (loop,noatime,nobh,nodiratime)

so somhow quole's qchroot has done some mounting magic but I can't chroot????? possible due to no /bin/sh in /.fedora????

so next try to umount or qumount...(umount fails but)...qumount works???

Nokia-N900:/# qumount /.fedora
..Unmounting /.fedora...
successful unmount...
Nokia-N900:/# mount |grep loop
Nokia-N900:/# ls /.fedora

so there is now no mouted /dev/loop0 and /.fedora is empty...so I am back to square one here...

is the entire issues at this point that there is no /bin/sh in the mounted fedora file system?

here is the output of a centos system I have running via kvm on ubuntu...I know it is not fedora but I do see /bin/sh so I am suprised the arm fedora root filesystem does not have it....

[root@clunk bin]# ls -l sh
lrwxrwxrwx 1 root root 4 Apr 9 12:05 sh -> bash


Am I close here or way off base.

quole put on your cape and save me......

Last edited by extendedping; 2010-08-06 at 16:19.
 
Posts: 838 | Thanked: 292 times | Joined on Apr 2010
#20
well I did a qchroot again and now neither a qumount /dev/loop0 qumount /.fedora or a regular umount of those directory will unmount it, I have to restart the phone.

help

me

please.

Last edited by extendedping; 2010-08-06 at 19:17.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:52.