Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,517 Members 36,930 Now Online
XDA Developers Android and Mobile Development Forum

[Q] spending lots of time with segmentation fault error (chroot)

Tip us?
 
kty1104
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 1
Join Date: Feb 2011
Question [Q] spending lots of time with segmentation fault error (chroot)

spending lots of time with segmentation fault error (chroot)

I success to open up ubuntu GUI on my android
with following site
(first googled site with "cyanogenmod ubuntu")
but fail with other imgs(such as img in nexusonehack)

for now, I am trying to bootup ubuntu 10.10 on my gw620(smart phone whose cpu is ARMv6 Qualcomm MSM7200)
by my self.
with selfmade rootstock img and busybox and chroot

I made img my self withroot stock with following option
rootstock -f kty1104-Notebook -l kty1104 -p 1 --imagesize 2047M --notarball --seed linux-image-omap,lxde,build-essential,openssh-server,tightvncserver,x11-xserver-utils

and change name to ubuntu.img and place to /sdcard/
and apply to bootubuntu.sh

bootubuntu.sh contents is this
===============================================
#!/system/bin/sh
# Original script by Paolo Sammicheli xdatap1
#
# Based on Saurik's remount.sh modified version by Mark Walker of
# URL is here but I can't write url b/c of my account privilege
# Modified version for Cyanogenmod by potoc samdroid

mkdir /mnt/ubuntu
#remount system as read/write
remount rw
export mnt=/mnt/ubuntu
export PATH=/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
export kit=/sdcard
export loopdev=/dev/block/loop4

losetup $loopdev $kit/ubuntu.img
mount -t ext2 $loopdev $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys

cat $mnt/root/logo.txt
echo " "
echo "Type EXIT to end session"
echo "Make sure you do a proper EXIT for a clean umount!"
echo " "
echo "Please reboot your device when you finished your work."

chroot $mnt /bin/bash

busybox umount -f /mnt/ubuntu/dev/pts /mnt/ubuntu/proc /mnt/ubuntu/sys /mnt/ubuntu
===============================================
do I need more option for rootstock?
or do I need special sh file for it?
I can mount ubuntu.img with
# mknod -m640 /dev/loop0 b 7 8
losetup /dev/loop0 /sdcard/ubuntu.img
mount -t ext2 /dev/loop0 /mnt/ubuntu
but when it comes to chroot, it sprit [1] segmentation fault chroot ${mnt} /b...#
if there are missing information please let me know, I will write it down

Regards.
Taeyun
 
darkguy2008
Old
#2  
darkguy2008's Avatar
Senior Member
Thanks Meter 223
Posts: 645
Join Date: Apr 2011
Location: Caracas

 
DONATE TO ME
I know I musn't revive old threads... but the question and the problem is already set up here.

I'm having the same problem with my HTC Magic 32A. Anybody knows what's up with the segfault?

Thanks!
Current devices:
ZTE Grand X V970M ["Mimosa X"]
B&N Nook Simple Touch

Previous devices:
HTC Magic 32A (stolen) - FroyoDragon ROM developer
Motorola Defy+ MB525 (sold)
 
Legion303
Old
#3  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Sep 2011
Location: Denver
I've spent a lot of time on this issue too, and as far as I can tell it's because Ubuntu versions over 9.04 (jerking jackalope or whatever idiot name they use) no longer support ARMv6. This means I can't run BT5, which is based on 10.x, but I believe Debian still supports v6.
Tags
android, chroot, fault, segmentation, ubuntu
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes