yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] douginoz:
Clearly, the reason why everyone gets an error the 2nd time they try to bootubuntu (device or resource busy) is that some file(s) are created or modified the first time that the bootubuntu cmd runs successfully. Then when it's killed or rebooted or not shut down correctly, these files remain in this state rather than being reset. It's a very old locking trick that works ok most of the time but needs to be reset after a system abend/abort.

The next time the bootuntu tries to run, it can't do the mount because these files are in the "locked/open/in use" state.

Poking around a bit in the (revised) bootubuntu script, I can see that a series of commands are executed during an orderly shutdown:

echo "Shutting down Ubuntu"

umount $mnt/dev/pts

umount $mnt/proc

umount $mnt/sys

umount $mnt

losetup -d /dev/loop1

Since these don't get executed if the process is abended/killed/phone rebooted etc AND someone previously found a workaround of using "loop2" then "loop3" etc. ad infinitum, I suspect it's something to do with this last command.

Looking at the start of the bootubuntu script reveals:

#modprobe ext2

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

export kit=/sdcard/ubuntu

export bin=/system/bin

if [ ! -d /data/local/ubuntu ]

then

mkdir /data/local/ubuntu

fi

export mnt=/data/local/ubuntu

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

export TERM=linux

export HOME=/root

mknod /dev/loop1 b 7 0

All of this works fine up until this mknod command, which fails with

mknod: /dev/loop1: File exists

but it will continue and allow you to do a losetup of the ubuntu.img file. however, you can't mount it:

# losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img

losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img

losetup: /dev/block/loop1

# mount -t ext2 /dev/block/loop1 /data/local/ubuntu

mount -t ext2 /dev/block/loop1 /data/local/ubuntu

mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: Device or resource busy

# losetup -d /dev/block/loop1

losetup -d /dev/block/loop1

losetup: /dev/block/loop1: Device or resource busy

# losetup -d /dev/loop1

losetup -d /dev/loop1

losetup: /dev/loop1: Device or resource busy

Grrrr. The device isn't mounted and you can't do a losetup -a to find out what it's attached to.

I found this interesting bit over on http://dotclue.org/archives/002577.html:

mount -o loop is an unsupported method of setting up loop devices. It’s the only one you’ll ever see anyone use in their documentation, books, and shell scripts, but it doesn’t actually work. You’re supposed to do this:

LOOP=`losetup -f`

losetup $LOOP myimage

mount -t ext2 $LOOP /mnt

...

umount /mnt

losetup -d $LOOP

If you’re foolish enough to follow the documentation, eventually you’ll simply run out of free loop devices, no matter how many you have. When that happens, the mount point you tried to use will never work again with a loopback mount; you have to delete the directory and recreate it. Or reboot. Or sacrifice a chicken to the kernel gods.
[Nexus One Android Development] thejonejone:
I have the exact same problem with my 16g card.

What I don't understand is why peolple (and losetup by the way) keeps using/returning the device directly on /dev (/dev/loop0). The correct device should be /dev/block/loop0
[Nexus One Android Development] Deathwish238:
You are a badass.
[Nexus One Android Development] as4m4df:
Hi guys,

Trying to get this working on HTC desire with 2.2 FRF91 on. Get to 'bootubuntu' section, but it just says 'bootubuntu: not found' :confused: ??

What to do?
[Nexus One Android Development] benc2010:
hi,

thank god someone got it working. I'm stay stick when it can't mount the loop back device. what version of rom and kernel you got?
[Nexus One Android Development] thalib_atc:
seems like there is a problem with sd card.. i have tried about 50 time with no luck.. Also i noticed a strange thing .. after the sh ./ubuntu.sh command there is a line saying [ can't create directory 'data/local/mnt' : File exists ] This line doesnt appear on any screen shots or of the video.. So it think this is my problem.. Any help
[Nexus One Android Development] prophetjinn:
Awesome. Thank you. :)
[Nexus One Android Development] Ducter:
I am not proficient enough in linux to know what I was doing differently, I tried repeatedly to get this working and would always fail. For the hell of it I booted into windows 7 x64 and first try it was done, setup and working. Had to use the alternative bootubunut but other than that was just as simple as copy/paste. Step 13 would fail every time, wouldnt know it till "Then hit Ctrl+D twice and Enter key."

So just a heads up for anyone trying on linux. Some of the code you enter must need to be slightly different for it to work. Dont give up, instead try it on winblows and you may be presently surprised.
[Nexus One Android Development] sdotk:
HELP!!!

To enter the Debian Linux console just type 'bootubuntu'

sh-3.2# bootubuntu

bootubuntu

Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4

/system/bin/bootubuntu: line 22: /data/local/ubuntu/etc/resolv.conf: No such fil

e or directory

/system/bin/bootubuntu: line 23: /data/local/ubuntu/etc/resolv.conf: No such fil

e or directory

Setting localhost on /etc/hosts

/system/bin/bootubuntu: line 25: /data/local/ubuntu/etc/hosts: No such file or d

irectory

READY TO ROCK AND ROLL BABY!

Brought to you by NexusOneHacks.net and the open source community!

Shutting down Ubuntu
[Nexus One Android Development] h4ck3r7y:
I have the same problem.. any fixes? thanks!
[Nexus One Android Development] h4ck3r7y:
tried this too
[Nexus One Android Development] GldRush98:
-Updated busybox

-Updated the bootubuntu script

-re-ran the ubuntu.sh

-ran bootubuntu, still crapping out:
[Nexus One Android Development] GldRush98:
Coincidence or not... I am running a 16gb card as well...
[Nexus One Android Development] Rafase282:
I use a 16 gb class 6 sdcard. I have fat32,ext3 and it works fine. The only error is when typing exit on ubuntu. It gives the error everyoen gets and then if I dont reboot the phone I have to start over from 0 like last time. Just format your whole sd and partition it, I recomend RA recovery for that. flash and go on. There may be a better way but i did that to start fresh and lessen the error chances.
[Nexus One Android Development] britoso:
The droid can now build itself :)

Build AOSP on ubuntu and install the output system images on Android.
[Nexus One Android Development] shoemeistah:
Hi,

I have the same problem, so how did you get passed that? apt-get update does not work for me which i assume is the update script?
[Nexus One Android Development] Keegan_P:
I got this going on my Xperia X10, I find the biggest thing was ignoring any error messages you see, the dude says in the video that you should ignore certain ones. Watch out for the unimportant error messages.
[Nexus One Android Development] Lou2serious:
No ext is needed for this to work. Also follow the video step by step to complete the setup. If you are using linux make sure you hit ctrl+D once where the OP says hit ctrl+D twice(only for windows terminal).

These things help me setup ubuntu where I had a lot of problems before because I'm running linux not windows. Only thing left now is the keyboard is not working properly. Key mapping is a little weird.
[Nexus One Android Development] Keegan_P:
I had the same problem with my keymappings for a while, but a quick reboot fixed the problem. Actually, a reboot has fixed any problem I've run in to with this. Anyway, don't run bootubuntu twice during the same boot, cause that's when I start getting problems, but this is just my experience.

Sent from my ROOTED x10a!
[Nexus One Android Development] teitiel:
Have the same issue on my Desire. Can someone help?
[Nexus One Android Development] Lou2serious:
make sure your in the ubuntu folder before you type bootubuntu.

su

cd /sdcard/ubuntu

sh ./ubuntu.sh

bootubuntu
[Nexus One Android Development] Grzesieq94:
I have one problem... When I connect by vnc i see grey screen but after 3 minutes i have wallpaper but i don't have any buttons :(

Anyone can help me?
[Nexus One Android Development] as4m4df:
I do all that, get to the section where it says to type 'bootubuntu' just says not found. ls -l does show it's there.

I ams confused =/

Am using Win x64, ShadowFrost 1.4 also tried defrost 2.0. Installed latest busybox.
[Nexus One Android Development] _onoff:
same here :S
[Nexus One Android Development] as4m4df:
Maybe just a desire thing, even though its the closest thing to the nexus! ! And its working on other droids!! :rolleyes:
[Nexus One Android Development] Keegan_P:
Try rooting your phone and trying again, I had no screen image with my Xperia until I reported the phone. After the reboot, it should lead you to a new desktop with a black background and a bottom, and remember to zoom out!

Sent from my ROOTED x10a!

Avatar made by me!
[Nexus One Android Development] Rafase282:
also, somethign i noted is that the first time on vnc it was the gnome, then the second time it was lxde. how do I use gnome desktop instead?
[Nexus One Android Development] Keegan_P:
I think Gnome is the one when you connect to your computer, and lxde is when you have it remotely. Either that, or in a later process, you install lxde instead of gnome.

Sent from my ROOTED x10a!

Avatar made by me!
[Nexus One Android Development] Rafase282:
Well the guide says to install it so i did, the first time is gnome, after that is xlde
[Nexus One Android Development] Keegan_P:
So you'll have to redo the whole thing, deleting the files you created, and skip the lxde step of you want gnome.

Sent from my ROOTED x10a!

Avatar made by me!
[Nexus One Android Development] Rafase282:
but the funny part is that the apps wouldnt open on gnome but they did on xlde so i'll just keep it for now, until i'm able to run ubuntu natively.
[Nexus One Android Development] shoemeistah:
Oke after the update fix I get the following message.

Shutting down Ubuntu losetup: /dev/loop1: No such device or address

I've tried editing it to block, but still no luck and I can't find a solution anywhere.

Any solved this already?

Thanks in advance.
[Nexus One Android Development] zedomax:
What phone do you have?

What phone are you trying it on? If it's not Nexus One, you will need to re-compile the kernel with loop device support, which is just one line. I can do it for you if you tell me what phone you have or help yourself here:

http://htcevohacks.com/htc-evo-hacks/how-to-build-your-own-htc-evo-4g-android-kernel/
[Nexus One Android Development] houzuoguo:
works for first 2 times but still have few little problems:

1. ubuntu does not shutdown from vnc viewer

2. after exit ubuntu from terminal, it is still running, and i can still do everything through vnc viewer

3. after the second reboot of the phone, ubuntu can only boot into X desktop and nothing is on desktop then.

Anyway great work!
[Nexus One Android Development] shpen:
I'm sure a lot of Motorola Droid users are struggling with this. I know I am. We are quite a large group of Android users, and I would really appreciate it if you could create a kernel with loop device support for us.
[EVO 4G Q&A, Help & Troubleshooting] healthpellets:
tried to boot in to recovery and got a screen with a white triangle and a yellow exclamation point inside above an android robot.

the suggestion is to battery pull. anyone else have this issue? if so, what's the procedure on reboot?

thanks.
[EVO 4G Q&A, Help & Troubleshooting] Veritas06:
I think that's the Stock Recovery Menu ( i kept getting it when i was trying to install the Patches from Fresh & used Clockwork Recovery because the two weren't compatible ).

Do you definitely have a Custom Recovery installed?
[EVO 4G Q&A, Help & Troubleshooting] absintheminded84:
You pressed the power button instead of the optical trackpad when trying to reboot from custom recovery
[EVO 4G Q&A, Help & Troubleshooting] superlinkx:
Optical trackpad? What Evo has one of those? LMAO! :D
[EVO 4G Q&A, Help & Troubleshooting] SteelH:
Flash Clockwork recovery or AmonRa recovery. You have stock (no recovery).
[EVO 4G Q&A, Help & Troubleshooting] shawnathan9:
It is hard to answer your question without further specifics.

For example:

1.) Are you rooted?

a.) If yes, what are you trying to boot into recovery for? - flash radio/wimax or rom???

b.) If no, go to Android Development and read how to Root and install a custom recovery.

2.) If you have a custom recovery, what is it?

to put it simpler than this.

1. What ROM do you have?

2. What custom recovery do you have?

3. What step did you do to get into recovery? - from android or from boot up?

*If you pull a battery while trying to flash a radio, you might have the coolest looking paper weight in your part of the town :cool:
[EVO 4G Q&A, Help & Troubleshooting] bhaismachine:
Hello shawnathan9!

I have similar problem with my Nexus one.

I have a rooted phone (used superoneclick to root)

Installed clockworkmod and flashed it with the recovery image.

Since I wanted to install latest cynogenmod I used clockworkmod to install the latest radio for it. Now when the phone rebooted it is hung diplaying a white triangle with and exclamation mark inside it. I haven't removed my battery yet and have plugged it to a power source. Can you help me ?
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
You're rooted, but you are trying to access recovery, but you don't have one loaded. Search google for Amon_RA or clockwork recovery to flash. If you have rom manager, you should be able to flash either or and it should work.
[EVO 4G Q&A, Help & Troubleshooting] charlieborg44:
I did the unrevolked 3 and got it rooted. Then I booted it up into the recovery mode and ran clockworkmod. Now how do I get a rom (like mikfroyo 4.5) on it? I tried booting and selecting a zip from my sd card(which mikfroyo 4.5 is on it in zip form still) But it would not finish/aborted ? What am I doing wrong? I have the sptint HTC EVO 4 g phone with all the latest hboot ect on it.
[EVO 4G Q&A, Help & Troubleshooting] charlieborg44:
It did say no sd-ext found, skipping backup of sd-ext. in Clockworkmod. Still getting the white triangle with the yellow ! in it?
[EVO 4G Q&A, Help & Troubleshooting] housry23:
That is part of updating the radio. Just let it finish and it will reboot into recovery. The phone has to go to that screen to update the radio. You may be able to save it by booting into that screen and just let it sit there for a while...eat dinner...take a dump...do whatever and come back and see if your phone is in recovery. I would turn it off and charge it first to make sure you have enough battery to finish the update.
[EVO 4G Q&A, Help & Troubleshooting] Android_maniac:
I have the same experience, when I updates to Gingerbread (OTA).

Hello thank you so much for your information. I will leave the phone in that mode (screen hung with triangle an exclamation mark inside + android green logo below) and plug in the charger, until tomorrow morning. Then I have a question if tomorrow the phone still hung in that screen mode, what I have to do?

If you can give me solution, I would be very thankful. Happening in August 23, 2011.
[EVO 4G Q&A, Help & Troubleshooting] Android_maniac:
After 2 days, trying to download updates firmware (OTA) GingerBread on HTC Evo 4G, I failed because the phone has been rooted, I found a "superuser permision" app. in the the All apps menu.This meant it is a rooted android phone, which will not permitted to update firmware OTA, is this true? If yes, this is the cause of screen hung at triangle with exclamation inside, and android green logo below.

August 26,2011.
[EVO 4G Q&A, Help & Troubleshooting] topeka_tom:
Thats what my phone is doing the clockworksmod menu will not come up only see the

white triangle with the exc symbal with the android symbal. have to pull the battery out ot reset but phone still loads up and works.
[Nexus One Q&A, Help & Troubleshooting] existonz09:
in 2.1, most of my apps didnt relaunch when i force close them but now they keep jumping right back even after using apps like automatic task killer and advanced task manager.. i dont want em to run when i am surfing the net thru gprs as i dont have unlimited data plans.. a little help here.. ?
[Nexus One Q&A, Help & Troubleshooting] existonz09:
pls

wow no one wana help out ...
[Nexus One Q&A, Help & Troubleshooting] PacoL250:
You're not the only one as I have same issue. I have used Advanced Task Killer Free and SystemPanel Lite, both to no avail.

Pandora Radio, Slacker Radio, Facebook App, TiKL Touch to Talk, all come back on sporadically even after being killed.

This was an issue SOMETIMES with Eclair (2.1) but not as much as it is with Froyo (2.2 - FRF91 build).

Using stock non-rooted AT&T N1.
[Nexus One Q&A, Help & Troubleshooting] big_adventure:
I get this with a few different applications. Y5 and FreeWiFi do this to me, causing my super-fast, full-bars 3G connection to deactivate and switch to a barely captured WiFi signal sometimes while walking near my house. I had to uninstall Y5 because of this, in fact: even configuring the application not to autostart and autorun didn't stop the behavior.
[Nexus One Q&A, Help & Troubleshooting] leoni1980:
What apps are you talking about here? You can always put the widget on your desktop to turn auto sync off or change the individual apps' settings to manually connect to the internet. I fail to see how force closing apps is a more reliable option or what other apps will connect to the internet of their own volition. I haven't stumbled across any.
[Nexus One Q&A, Help & Troubleshooting] :
Apps being loaded into memory doesn't mean they are active.

If you have applications that don't have internet management controls built in, there is nothing you can do to stop them from using data, short of going into airplane mode. Simply don't use any applications that use the internet without your permission.
[Nexus One Q&A, Help & Troubleshooting] luffyz:
I think task killer does not work in froyo anymore because an app can't kill other apps anymore
[Galaxy S I9000 General] bong4316:
(mods i posted this originally at the general forum can you please delete the thread in the general forum?)

The Samsung Galaxy S and the Samsung Wave s8500 are practically twins with the Galaxy S using a bigger screen and the Android OS.

Problem is the Android Powered Samsung Galaxy S is almost two times the cost of the samsung wave s8500!

Now i dont know whether this is a tactical ploy by samsung to promote its own inhouse BADA operating system but the price difference between the two phones is really an eye opener.

The good android phones and the Iphones are a bit too expensive for my taste costing as much as an entry level laptop.

Now samsung came up with the Samsung Wave s8500 which has all the power of the More expensive Smasung galaxy S

yet at only 60 percent of the price.

granted the samsung galaxy s has a larger screen and uses Android but thats about it.

BADA however has only 150 applications and most of them useless.

Only a few good games and most games dont even use the 3d capabilities of the

wave's powervr sgx 535.

- Both phones use the The 1ghz hummingbird processor

- (Cortex A8 processor PLUS a powervr sgx 535.. much better combo than the qualcomm snapdragon processor)

- Both Phones have 5 meg cameras PLUS 720p recording

- Both use super Amoled Screens with the bigger screen going to to the Samsung galaxy S

- Both have 512mb of system memory

- I just dont get it why the Samsung Galaxy S costs almost twice the samsung wave 8500

- Maybe Samsung did this intentionally knowing most people would go for the cheaper yet identically spec-ed phone suppoting their own BAda OS.

-

Still since the hardware under the hood is so similar is it possible to port the Android OS from the samsung galaxy to the samsung wave 8500?

I just like the samsung wave's price better

(prices for Samsung galaxy s in my country 32,000 pesos or 687.433 USD

Samsung Wave S8500 in my country 18,300 pesos or 393.464 USD)

Prices are for brand new units, openline, with One year Samsung Warranty
[Galaxy S I9000 General] psychoace:
Samsung Wave s8500: 3.3 inch AMOLED touchscreen display

Samsung Galaxy S: 4 inch AMOLED touchscreen display

That is a whole lot of screen difference

Also the S has 8 gig's of internal space

Upgraded data antenna's, there is differences.

It might be possible to throw an android os on since most of the differences are not really part of the core computing chipset. Still you can never be to sure if it's going to happen or not.
[Galaxy S I9000 General] FrezoreR:
Some corrections..

The graphics chip is a PowerVR SGX540, not 535.

The 535 is the one that Apple has in their A4 chipset.
[Galaxy S I9000 General] MasK:
This is good thinking.. to top it off, I go feel that the wave's built is better.

Only if someone could crack open the device..
[Galaxy S I9000 General] kenkiller:
It will never happen.
[Galaxy S I9000 General] smackdownn:
why do u think so?
[Galaxy S I9000 General] mousezine:
Someone saying with it will never happen , just wait and see IT WILL HAPPEN its just matter of time. I can,t believe you being so skeptic. Are you open source guy or Paid Samsung Member
[Galaxy S I9000 General] psychoace:
Just because you want it to happen doesn't mean it will. There is more to porting over the OS then just a little bit of coding. You must first assess what you're dealing with in terms of driver comparability and what source material you have compiled from all your resources. Then you got to put in the long time of writing tons of new code without ever really knowing if it would work. If you get someone to figure out how its possible and thinks its a worthy project then you might have a shot but I really doubt the right person would spend there time on this
[Galaxy S I9000 General] mousezine:
You are maybe right. i will give the wave to someone and go buy a android phone instead of wasting time. thanks
[Galaxy S I9000 General] bong4316:
Its not using a 540 checkout pdabase site its using a powervr 535.

The samsung galaxy s and the wave s8500 are using 90 percent the same hardware.

Samsung has posted a link in their website where people can download the source code of the galaxy s.

If android 2.1 was ported to a touch diamond whats stopping the use of the samsung galaxy s source code to be applied on the wave s8500?

Even the bada os on the wave s8500 is based on linux.

The phones can probably dualboot too
[Galaxy S I9000 General] tids2k:
either a port is needed ... or cross compiling libraries but before that bada os source ... if it ever comes out .. and finally haret.exe compatibility to actually start testing ...
[Galaxy S I9000 General] crossjaw:
Are you sure? I was thinking it was a 540
[Galaxy S I9000 General] chris.styler:
Super-amped to get Android on the Samsung Wave

Hi guys

I would be very interested in getting android on the Samsung Wave. The phone has some awesome hardware and is priced very competitively. It is just held back by its first generation bada os right now. As someone already said, the Wave shares 90% of its hardware with the Galaxy S/i9000 which runs android. The screens may not be the same size but the resolutions are both the same.

Hopefully an awesome developer will take up the challenge of being the first one to successfully port android to a bada phone. I wait in hope. :)
[Galaxy S I9000 General] Qazz~:
should be a 540, and it would seem highly possible for a port, however not many devs have purchased the Wave and you could be facing a lack of developers.
[Galaxy S I9000 General] chris.styler:
As far as I know, Samsung have held numerous bada developer days around the world. The devs that attended each received a Samsung Wave. Hopefully one of these devs knows how to go about porting android to the Wave.

Bada is a new OS, so I think it will take a while before devs work their heads around how the OS works. I shall just have to be patient and hope that there is someone out there that is up for the challenge. I wish I had the necessary skills to do it myself. How does one go about learning the ropes?