yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] donb123:
no workie

So I just got my shiny new 16gb SDHC class 10 just for this and can't get it to work either. I was going to hack around in the bootdeb to see if I could isolate where it's going wrong, e.g. mounting like it seems to be for others, but I cannot find bootdeb anywhere.

Edit.. the updated apk link is broken also

edit2.. I can confirm that /dev/loop does not exist on my ROM. I create it and the script still doesn't run.. however, if I manually fire off the script commands in a shell from adb it works. I just successfully ran apt-get update

script:mount -o remount,rw -t yaffs2 /dev/block/mmcblk1p21 /system

echo "Setting up paths.."

export bin=/system/bin

export img=/mnt/sdcard/debian/debian.img

export mnt=/data/local/debian

export OLDPATH=$PATH

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH

export TERM=linux

export HOME=/root

echo "Mounting Linux image.."

busybox mount -t ext3 -o loop /sdcard/debian/debian.img /data/local/debian

busybox mount -t devpts devpts $mnt/dev/pts

busybox mount -t proc proc $mnt/proc

busybox mount -t sysfs sysfs $mnt/sys

echo "Setting up network.."

busybox sysctl -w net.ipv4.ip_forward=1

echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf

echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf

echo "127.0.0.1 localhost" > $mnt/etc/hosts

echo "Mounting sdcard.."

busybox mount --bind /mnt/sdcard/ $mnt/mnt/sdcard

echo "Launching debian.."
[Defy Android Development] donb123:
So if you add mkdir /dev/loop to the script you should be good to go. The problem I have now is that I cannot find, anywhere, this bootdeb and I was just copy/pasting parts of what I've found thus far. I don't see where it's firing off any init in the chroot'ed environment or launching X or anything. That's where I'm stumped now.
[Defy Android Development] xdaid:
Actually the bootdeb script does not exist in this version. An earlier version was script-based, but now the commands are performed through java code.

I should resume that old version but i'm afraid i deleted the sources..
[Defy Android Development] donb123:
Lol.. well I get further along than the java one apparently. Never the less, if you're trying to mount via loop and the device folder doesn't exist in the ROM you'll have the same problem. Perhaps that's where you should look for those of us where it won't work.
[Defy Android Development] xdaid:
String[] cmd =

{

"mkdir /data/local/debian",

"mount -o remount,rw -t yaffs2 /dev/block/mmcblk1p21 /system",

"export bin=/system/bin",

"export img=" + sdpath + "/debian/debian.img",

"export mnt=/data/local/debian",

"export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH",

"export TERM=linux",

"export HOME=/root",

//"busybox mknod /dev/block/loop5 b 7 0",

//"busybox losetup /dev/block/loop5 $img",

//"busybox mount -t ext3 -o noatime,nodiratime /dev/block/loop5 $mnt",

"mount -t ext3 -o loop,noatime,nodiratime $img $mnt",

"busybox mount -t devpts devpts $mnt/dev/pts",

"busybox mount -t proc proc $mnt/proc",

"busybox mount -t sysfs sysfs $mnt/sys",

"busybox mount --bind " + sdpath + " $mnt/sdcard",

"busybox sysctl -w net.ipv4.ip_forward=1",

"echo \"nameserver 8.8.8.8\" > $mnt/etc/resolv.conf",

"echo \"nameserver 8.8.4.4\" >> $mnt/etc/resolv.conf",

"echo \"127.0.0.1 localhost\" > $mnt/etc/hosts",

"busybox chroot $mnt /bin/bash",

"if ps -Al | grep vnc > /dev/null",

"then",

"echo \"vnc detected\"",

"else",

"export USER=root",

"rm -r /tmp",

"mkdir /tmp",

"vncserver -geometry 854x480",

"fi",

"exit",

"mount -o remount,ro -t yaffs2 /dev/block/mmcblk1p21 /system",

};

These are executed by the program in order to boot the debian image in /sdcard/debian/ (or /mnt/sdcard/debian)
[Defy Android Development] donb123:
I can say that the none of these worked on my ROM

"busybox mknod /dev/block/loop5 b 7 0",

"busybox losetup /dev/block/loop5 $img",

"busybox mount -t ext3 -o noatime,nodiratime /dev/block/loop5 $mnt",

"mount -t ext3 -o loop,noatime,nodiratime $img $mnt",

Below worked from adb shell. The two mkdir statements I needed to add for my ROM (jboogie orange) are in UPPERCASE BELOW.

mount -o remount,rw -t yaffs2 /dev/block/mmcblk1p21 /system

echo "Setting up paths.."

export bin=/system/bin

export img=/mnt/sdcard/debian/debian.img

export mnt=/data/local/debian

export OLDPATH=$PATH

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH

export TERM=linux

export HOME=/root

MKDIR /DEV/LOOP

echo "Mounting Linux image.."

busybox mount -t ext3 -o loop /sdcard/debian/debian.img /data/local/debian

busybox mount -t devpts devpts $mnt/dev/pts

busybox mount -t proc proc $mnt/proc

busybox mount -t sysfs sysfs $mnt/sys

echo "Setting up network.."

busybox sysctl -w net.ipv4.ip_forward=1

echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf

echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf

echo "127.0.0.1 localhost" > $mnt/etc/hosts

echo "Mounting sdcard.."

MKDIR /DATA/LOCAL/DEBIAN/MNT/SDCARD

busybox mount --bind /mnt/sdcard/ $mnt/mnt/sdcard

echo "Launching debian.."

export USER=root

busybox chroot $mnt /bin/bash

vncserver -geometry 854x480

So I've found an application- gscript- that will let me save the above as a shell script and run it. I just have to figure how to properly launch vncserver and export USER=root in the chroot environment. After vncserver is launched then I run the VNC client and connect into it.
[Defy Android Development] BravoMotorola:
It seems I cannot install anything on this, not even flash for the iceweasel browser :/
[Defy Android Development] bonethugs:
can't install on adlxmod v2.03. anyone cans? any solutions to this?

p.d.: the program crashes when i press install or boot.

[EDIT]

Finally, I've run it with next script but it's only for executting it, how about the reverse steps? anyone know?...

mount -o remount,rw -t yaffs2 /dev/block/mmcblk1p21 /system

export bin=/system/bin

export img=/sdcard/debian/debian.img

export mnt=/data/local/debian

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH

export TERM=linux

export HOME=/root

#busybox mknod /dev/block/loop5 b 7 0

#busybox losetup /dev/block/loop5 $img

#busybox mount -t ext3 -o noatime,nodiratime /dev/block/loop5 $mnt

busybox mount -t ext3 -o loop,noatime,nodiratime $img $mnt

busybox mount -t devpts devpts $mnt/dev/pts

busybox mount -t proc proc $mnt/proc

busybox mount -t sysfs sysfs $mnt/sys

busybox sysctl -w net.ipv4.ip_forward=1

echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf

echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf

echo "127.0.0.1 localhost" > $mnt/etc/hosts

busybox mount --bind /sdcard $mnt/sdcard

busybox chroot $mnt /bin/bash

if ps -Al | grep vnc > /dev/null

then

echo "vnc detected"

else

export USER=root

rm -r /tmp

mkdir /tmp

vncserver -geometry 854x480

fi

exit

mount -o remount,ro -t yaffs2 /dev/block/mmcblk1p21 /system
[Defy Android Development] drmouse81:
Hi

OK, I have been PMing xdaid about this, as I have only just reached the required number of posts to reply here :mad:

Anyway, I have been looking into the loopback mount issues many seem to be having. I tried various steps, and here's a summary.

The most obvious problem I encountered was that the /dev/loopN nodes did not exist (I found later they are under /dev/block/loopN, although mount -o loop doesn't look there...). The simple fix for this is:

for N in `seq 0 7`; do if [[ ! -e /dev/loop$N ]]; then mknod /dev/loop$N b 7 $N; fi; done

Now, at least mount -o loop would find a loop dev to use (even if you are using the new form of app2sd which uses loop devs, as I found out.. something to be aware of). But this didn't solve the problem.

Next I tried creating my own images on the SD to use. I found that small images would work most of the time, but larger ones consistently failed with "invalid argument" messages. After a few tries, I eventually tried creating such an image on /data instead of the SD card and, guess what...

IT WORKED

This lead me to the conclusion that there must be an issue with the SD (a 32GB Sandisk), so I decided to try my 16gb Kinston form my last phone. After tranferring all my data over and downloading the image again (deleted it :( ), I tried to mount it and, again....

IT WORKED

So my conclusion here is that doing this is sensitive to SD card. If you are having this issue, try a different one, there may be some small issue with yours which is ****ing it up.

Now, Mr. Xdaid... Your App doesn't work (as previous poster mentioned) on Adlxmod F4D 2.03. When I get chance, I'll post you the logs, but it FC's doing just about anything except download.
[Defy Android Development] xdaid:
I think you hit the problem:

my sdcard is a kingston 16gb 4x.

The image was mounted from that sdcard all the times..
[Defy Android Development] drmouse81:
Here's the logs from me trying to "Boot debian"...

D/AndroidRuntime( 3658): --- registering native functions ---
E/WindowManager( 3635): Activity scd.debondroid.DebOnDroid has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@46b295a0 that was originally added here
E/WindowManager( 3635): android.view.WindowLeaked: Activity scd.debondroid.DebOnDroid has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@46b295a0 that was originally added here
E/WindowManager( 3635): at android.view.ViewRoot.<init>(ViewRoot.java:253)
E/WindowManager( 3635): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
E/WindowManager( 3635): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
E/WindowManager( 3635): at android.view.Window$LocalWindowManager.addView(Window.java:424)
E/WindowManager( 3635): at android.app.Dialog.show(Dialog.java:241)
E/WindowManager( 3635): at scd.debondroid.DialogUtils.console(DialogUtils.java:298)
E/WindowManager( 3635): at scd.debondroid.DebOnDroid.bootDebian(DebOnDroid.java:147)
E/WindowManager( 3635): at scd.debondroid.DebOnDroid.access$5(DebOnDroid.java:104)
E/WindowManager( 3635): at scd.debondroid.DebOnDroid$5.onClick(DebOnDroid.java:64)
E/WindowManager( 3635): at android.view.View.performClick(View.java:2408)
E/WindowManager( 3635): at android.view.View$PerformClick.run(View.java:8824)
E/WindowManager( 3635): at android.os.Handler.handleCallback(Handler.java:587)
E/WindowManager( 3635): at android.os.Handler.dispatchMessage(Handler.java:92)
E/WindowManager( 3635): at android.os.Looper.loop(Looper.java:143)
E/WindowManager( 3635): at android.app.ActivityThread.main(ActivityThread.java:4717)
E/WindowManager( 3635): at java.lang.reflect.Method.invokeNative(Native Method)
E/WindowManager( 3635): at java.lang.reflect.Method.invoke(Method.java:521)
E/WindowManager( 3635): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/WindowManager( 3635): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/WindowManager( 3635): at dalvik.system.NativeStart.main(Native Method)
D/AndroidRuntime( 3658): Shutting down VM

I cannot see anything before or after that which is relevant (unless you want to see all the dirty jokes my friend has been posting as his status on facebook...)
[Defy Android Development] michka:
Trying this on CM7. But when it installs it gets stuck after a minute. Then when i reboot its says that its installed. When i boot debian VNC gives me "connection refused".
[Defy Android Development] nosit1:
Working great for me! I put it on wifi and use VNC from my computer. Very responsive. Set up SABnzbd on it. Amazing!
[Defy Android Development] :
Do we need busybox for this?
[Defy Android Development] rachit2588:
any plans for Ubuntu..for defy ??
[Defy Android Development] :
Ubuntu is actually based off of debian. It shouldn't be to hard for the developer to do it. Although it probably wont be very usable it would be nice for bragging rights.

Please may we get Ubuntu for this without any other window managers just pure ubuntu.
[Defy Android Development] Lou2serious:
This company has ubuntu, chrome os and android booting natively on an OMAP chipset.

http://www.alwaysinnovating.com/products/smartbook.htm

Maybe someone could use this info to get ubuntu running on the defy even dual booting might be possible.

Here's the source code

http://git.alwaysinnovating.com/
[Defy Android Development] makr8100:
Absolutely, but make sure to check if your phone has busybox stock - if the new busybox doesn't have the same functions as the likely custom/proprietary stock busybox you may lose features on your phone. My Atrix's webtop broke because of either replacing busybox or using a random partition for the install (i.e. I didn't know what I was doing when selecting a partition and used the closest filename that tab would autocomplete).
[Defy Android Development] Cacceli:
I cant connect in vnc.. Some help?

Android 2.2.2 From Finland.
[Defy Android Development] sferrariba:
Think we need debondroid loop fix, the link is down
[Defy Android Development] Cacceli:
Is there another way to install Linux?
[Defy Android Development] hailmary:
Hi guys...any body tried this on latest defycm7 nightlys?
[Defy Android Development] sferrariba:
Not me. In miui 1.8.5 yit doesn't work

Enviado desde mi MB525 usando XDA Premium App
[Defy Android Development] hailmary:
Doesnt work on cm7defy boot179-4...

Vnc problem local host & port used...its almost there.
[Defy Android Development] hailmary:
grraahhh!!!:mad:

i really cant make it work...

something in the launcher & VNC that is not working..

imagefile is fine,maybe someone can make the .img run from the terminal,just like the ubuntu??:D
[Defy Android Development] doublehp:
http://xdaforums.com/showthread.php?p=16961006

Linux Installer 3.3 is out. Contact me by email if any trouble. support@galoula.com

Galoula made a huge update; I did all translations and debug. New tutorial, new quick installation guide.

No need to partition, or remove Android; it runs under Android. Only 500M needed for basic install, on SD card or internal /data . You choose.
[Defy Android Development] hailmary:
im gonna try this one ;)

i will mail u about the results..thanks
[Defy Android Development] pcz:
The download links are not working :( ( http://dogsr.us/debian-img.zip

http://www.scdevs.com/debondroid/debian-img.zip ). Can anybody give me mirrors?

Thanks
[Defy Android Development] scofilde:
Does these work on motorola Atrix >>?

if any way to run backtrack or linux on Atrix please help Me :)
[Defy Android Development] xdaid:
Hey guys,

I'm going to restore some links.. i had some trouble with the server and i lost most of the files.

Uploading now.. you'll find the debian image here:

http://www.scdevs.com/debondroid/debian-img.zip

About DebOnDroid, it still needs some fixes, especially for compatibility (not all the devices out there can run the app successfully), i hope to have the time soon or later.
[Defy Android Development] jumika:
I'm on CM7. I tried many applications to make debian work on my phone (even tried the commands found in this thread with same results). So far nothing worked. Always getting "No such device" error on the mounting stage.

On CM10 it was working fine. I'm curious about why am i the only one who get the "No such device" error (at least a search for that term doesn't brought any related results in this topic).
[Galaxy Tab Q&A, Help & Troubleshooting] chetermaat:
Hello all,

Bought a galaxy tab. And flashed it. With bad firmware.

I can set TAB in download mode.

So with ODIN I should be able to flash.

Can someone PLEASE!!!!?????? link me or tell me where to find A FULL EURO rom or P1000 compatible rom. That can be flashed with ODIN
[Galaxy Tab Q&A, Help & Troubleshooting] spandsbab:
Try latest Roto ROM here http://xdaforums.com/showthread.php?t=939360, its okay for Euro Tab...
[Galaxy Tab Q&A, Help & Troubleshooting] ovigt71:
make a accout here, and you can choise the official firmware.
[Galaxy Tab Q&A, Help & Troubleshooting] chetermaat:
Samfirmware

Did that flashed and TAB boots and hangs at the SAMSUNG logo.

edit : DId a full whipe did not resolve hanging at the SAMSUNG logo

Used Jk5 with that. Downing Jk2 now.
[Galaxy Tab Q&A, Help & Troubleshooting] ayman07:
Why would u recommend this? Don't u know that they have locked bootloaders? People who don't understand stuff shouldn't be trying to help. Now he's gonna need to use the bootloader fix which has risks.

From the Tab.

www.twitter.com/ayman07
[Galaxy Tab Q&A, Help & Troubleshooting] knightnz:
Only if he flashes one of the JMx series.

Flash the Rotohammer JMI firmware, it's a _complete_ firmware with the locked bootloader removed. If it doesn't work then you've either done something wrong (start again, read instructions carefully), or you've got a locked bootloader.

If you've already tried flashing a JMx firmware and are now having issues then you'll need to go back to whatever original firmware you had and then run the bootloader fix, which as long as you pay attention to the instructions is unlikely to be an issue, get it wrong however and you've got problems.

Also - this is not a development related question, should be in the general subforum.
[Galaxy Tab Q&A, Help & Troubleshooting] chetermaat:
TAB Dead

Tab is 3 days old and dead.

No recovery mode,

No Download mode,

only a blinking logo (screen of and on) that looks similar to the downloading logo when in flash mode when wall charger is attached.

No live indication or responsive s.

Indicates this a RMA to samsung service center.

Never had A flash or root problem of this kind before.

just the on of screen. If in wrong Category I hope some Admin might want to move it to the correct position.
[Galaxy Tab Q&A, Help & Troubleshooting] chetermaat:
Ok so you can give me a direct link to flashing boot of tab please ?:)
[Galaxy Tab Q&A, Help & Troubleshooting] knightnz:
If it won't even get into download mode then there's nothing you can do to fix it, you'll have to take it back to the shop. Any fixes require being able to boot into download or recovery mode.
[Galaxy Tab Q&A, Help & Troubleshooting] fastcx:
Perhaps you mean the logo is phone at the left, middle is ! pc at the right, it's also a download mode, which you can flash thru odin, just flash with roto's rom, and do a repartition.
[Galaxy Tab Q&A, Help & Troubleshooting] fastcx:
Basically if odin still able to detect your tab, it's not totally dead yet, if your tab's display is like what I mentioned above, just get roto's rom, AND MAKE SURE CHECKSUM IS CORRECT! Before flashing.
[Galaxy Tab Q&A, Help & Troubleshooting] Heppieboeddah:
Dutch!

http://gathering.tweakers.net/forum/list_message/35564050#35564050
[HD2 Android Q&A, Help & Troubleshooting and Genera] Staxxthedan:
Guys,

I would like to make my my personalize window Transparent, Can anyone share which specific apk and inside files that need modding. Have looked inside resources.apk, framework.apk & Rosie.apk but just can't figure out how.

Thanks.
[HD2 Android Q&A, Help & Troubleshooting and Genera] Staxxthedan:
C'mon guys don't be stingy with open source...
[EVO 4G General] Raillery:
This has happened once before, but just for a small amount of time to to the heat (I believe). The phone has been off for over and hour and refuses to turn on whether I hold down the volume button, don't hold down the volume button, or push the battery in at the exact time as I'm doing the other one or two. The splash screen flashed for half a second and immediately went back off when I plugged my evo charger, the usb part, into my portable ipod charger, so I believe this means there is still help available! Last time this happened, which was months ago, it seemed as if it just needed to cool down a bit, and my reading on the internet confirmed that the phones shut off when their batteries reach too high of temperatures. So what I did was wrap the phone and the battery, separately, in a large wash cloth and let them sit it the fridge for a little while. No luck, I'm running out of ideas (and I realize a ziplock bag may have been better but who cares). A few days ago I installed cm7gginggerbread7 (wimax) over cm7gingerbread2, but have not had any issues up until now and everything has run perfectly as well as smoothly. Is there any way I can turn my brick into a phone? Perhaps there's a way to adb something even though the phone wont boot (im a noob). I'm just pissed cuz I finally got every little thing exactly the way I wanted it, and now I'm stuck with a paperweight :/ I thank you for all your help, brave knights
[EVO 4G General] mattykinsx:
It just suddenly shut off and won't turn back on?

And you weren't messing with anything?

If so, sounds like it's a hardware or battery issue.

Can you try a different battery?
[EVO 4G General] sitlet:
Does the charging light come on when you plug it in? It could be a dead battery, and if the charging port is broke, it wont charge.

Otherwise, it seems like a hardware issue. I would take it to sprint, and they should be able to replace it for you.
[EVO 4G General] matt2053:
But it has teh rootz!!!!!!!!!

Smash that mofo with a hammer and call Asurion!!!!!!

jk
[EVO 4G General] mattykinsx:
If they can't get it to power on then it really doesn't matter if it's rooted or not because they won't be able to find out.

;)
[EVO 4G General] Raillery:
Well I was messin with it a couple days ago, flashed gginggerbread6 w/ wimax over gginggerbread2 after wiping cache and dalvik and of course making a nandroid. I was thinking of smashing it but I've gotten everything they way I want it for the thousandth time. I'm also reluctant to do it because this issue has resolved itself in the past, albeit a tad quicker. For christ's sake, it even fixed itself for half a second this time, just enough to show me the splash screen lol. I'm very gentle with my evo and have never had any problems that weren't easily resolved with a little bit of work. I guess I could smash it until it works, and then if it ends up breaking then I win either way, but I'd really like to get my darling fixed. I know it's nothing compared to the cyanogenmod team, but I've flashed and flashed (almost always to cyanogenmod, what can I say it's perfect) and I have FINALLY got everything set up the way I wanted it, which includes manually going through and changing all the icons to custom pngs lol.

I guess I just don't understand why this would happen all of a sudden like this, I've onlu had it for three or four months, htc can't make that shotty of work can they? The other thing is I have a battery widget so as to make sure my battery does not get to hot, as well as having a setting in setcpu which stops overheating if it should ever occur. I really have a feeling it's something which can be fixed just because it has been magically fixed in the past and it was "fixed" for half a second today. Is there any way to adb into recovery even though the screen is black? Any suggestions help, I have important calls coming in as well as rather important calls to (hopefully) future employers. Of course I also don't want people to think that I am ignoring them, which isn't quite as bad but I still try to be as rude as possible :/

So...any ideas guys :D Don't wanna sound like I'm fishing for compliments, but you all are by far the best in the field. Keep up the good work (on my phone haha) Thanks so much for the advice you're going to give me on how to fix this up so I don't miss all my friends calls and texts until I get pissed off at. Later trooper

EDIT: Sry got block of text. tl/dr fix my evo that wont turn on asap thx
[EVO 4G General] mattykinsx:
If this occurred while you were NOT changing anything with the radio partition or recovery partition then it's not a brick issue.

Sounds like you have a hardware issue.

Take it to the store.

If you smash it you will be paying $100 to asurion for a replacement as Sprint changed the TEP again.