[TOOL]Heimdall v1.4 RC1 - Raspberry Pi General

Hi Folks
heimdall.7z - 334.63 KB
I thought I'd continue in the same vein as my previous post and add to the Pi's arsenal of android related tools , So here is the Open Source Samsung Flashing utility Heimdall.
There's nothing special about this build, I just cloned the git sources and compiled them on Rapbian. Easy as, well , Pi I suppose
you'll have to install either libusb-1.0-0 or libusb-1.0-0-dev using apt-get.
[ EDIT: ] Do It yourself!
Just for completeness here's the steps if you want to build it yourself using Raspbian
Open a terminal window
Code:
sudo apt-get install git-core libusb-1.0-0-dev
cd ~/
git clone git://github.com/Benjamin-Dobell/Heimdall.git
cd Heimdall/libpit
./configure
make
cd ../heimdall
./configure
make
sudo make install
cd ~/
rm -rf Heimdall
The configure -> make -> make install workflow is used by a large number of linux tools this make compiling most things for the Pi on the Pi as simple as the steps above. Sometimes finding where the official source code is for a package is the hardest step.

trevd said:
Hi Folks
[ heimdall.7z ]
I thought I'd continue in the same vein as my previous post and add to the Pi's arsenal of android related tools , So here is the Open Source Samsung Flashing utility Heimdall.
There's nothing special about this build, I just cloned the git sources and compiled them on Rapbian. Easy as, well , Pi I suppose
you'll have to install either libusb-1.0-0 or libusb-1.0-0-dev using apt-get.
I've not got a samsung device to hand at the minute but I'm going to give it a test later on
Click to expand...
Click to collapse
Awesome work! Having both ADB and now Heimdall working definitely opens up some really interesting possibilities for the RPi.
Sent from my SCH-I535 using xda premium

I love you trevd!
Sent from my GT-S5830 using Tapatalk 2

did you try it on any phones?
Hi,
I'm glad to see someone else considering using a Pi for this. Did you try using it on any phones?
I don't have a linux or windows machine handy, just a mac (which has some problems with heimdall), so I thought I'd try the Pi for rooting an old Epic 4G (a Galaxy S phone), in order to upgrade to CM10. Unfortunately I ran into two problems:
1) When I plug the phone in (not just the USB cable), the Pi would sometimes completely restart. This didn't happen every time. I think this may be due to power issues (perhaps it was trying to charge, and the Pi couldn't produce the right current), I didn't try a powered hub (I don't have one). But it also could be a software bug crashing the system. Debugging crashes like this is a little beyond my expertise, though if I get some time and can reproduce it I might try some more.
2) I was only able to get heimdall to detect the phone once. Other times it said "no device detected". When it was detected, I flashed clockwork recovery mod (or at least I typed the commands to do so), and it seemed to work (as far as I could tell), but when I started in recovery mode it was a stock recovery. Perhaps it didn't finish? I'm not sure what happened, since heimdall treated it as a success and the phone restarted.
Anyway, I thought I'd give my experience in case anyone else saw either of these problems too (or knew the answers). And I'd be interested to hear if someone had no problems.
Steve

sdeneefe said:
Hi,
I'm glad to see someone else considering using a Pi for this. Did you try using it on any phones?
I don't have a linux or windows machine handy, just a mac (which has some problems with heimdall), so I thought I'd try the Pi for rooting an old Epic 4G (a Galaxy S phone), in order to upgrade to CM10. Unfortunately I ran into two problems:
1) When I plug the phone in (not just the USB cable), the Pi would sometimes completely restart. This didn't happen every time. I think this may be due to power issues (perhaps it was trying to charge, and the Pi couldn't produce the right current), I didn't try a powered hub (I don't have one). But it also could be a software bug crashing the system. Debugging crashes like this is a little beyond my expertise, though if I get some time and can reproduce it I might try some more.
2) I was only able to get heimdall to detect the phone once. Other times it said "no device detected". When it was detected, I flashed clockwork recovery mod (or at least I typed the commands to do so), and it seemed to work (as far as I could tell), but when I started in recovery mode it was a stock recovery. Perhaps it didn't finish? I'm not sure what happened, since heimdall treated it as a success and the phone restarted.
Anyway, I thought I'd give my experience in case anyone else saw either of these problems too (or knew the answers). And I'd be interested to hear if someone had no problems.
Steve
Click to expand...
Click to collapse
I haven't tried this tool at all as I use my pi as a htpc, but i can tell you from experience setting that up that power can be a major issue. I didn't have reboots, but rather all my usb devices would quit working, even powered ones(and the only thing drawing power was a keyboard dongle) and my power supply is supposed to be rated for 2A.
I picked up a 20$ 7 port hub that works almost flawlessly (the 7th port doesn't agree with it). I would recommend picking one up.
Just my 2 cents
Also you don't mention what os you are running but try checking /var/log if it happens again. This is where logs generally get generated
Sent from my DROID3 using xda premium

sdeneefe said:
I'm glad to see someone else considering using a Pi for this. Did you try using it on any phones?
I don't have a linux or windows machine handy, just a mac (which has some problems with heimdall), so I thought I'd try the Pi for rooting an old Epic 4G (a Galaxy S phone), in order to upgrade to CM10. Unfortunately I ran into two problems:
Click to expand...
Click to collapse
Hi sdeneefe,
I never did get round to have a go myself .....but it's top of my new years resolutions list I've got a galaxy S lying around the place to have a go with so I'll let you know my results.
sdeneefe said:
1) When I plug the phone in (not just the USB cable), the Pi would sometimes completely restart. This didn't happen every time. I think this may be due to power issues (perhaps it was trying to charge, and the Pi couldn't produce the right current), I didn't try a powered hub (I don't have one). But it also could be a software bug crashing the system. Debugging crashes like this is a little beyond my expertise, though if I get some time and can reproduce it I might try some more.
2) I was only able to get heimdall to detect the phone once. Other times it said "no device detected". When it was detected, I flashed clockwork recovery mod (or at least I typed the commands to do so), and it seemed to work (as far as I could tell), but when I started in recovery mode it was a stock recovery. Perhaps it didn't finish? I'm not sure what happened, since heimdall treated it as a success and the phone restarted.
Anyway, I thought I'd give my experience in case anyone else saw either of these problems too (or knew the answers). And I'd be interested to hear if someone had no problems.
Click to expand...
Click to collapse
Endoroid said:
I haven't tried this tool at all as I use my pi as a htpc, but i can tell you from experience setting that up that power can be a major issue. I didn't have reboots, but rather all my usb devices would quit working, even powered ones(and the only thing drawing power was a keyboard dongle) and my power supply is supposed to be rated for 2A.
Click to expand...
Click to collapse
Thanks for sharing sdeneefe, I'm no electronics expert, but a educated stab in the dark and given the fun I had myself finding a stable setup combination I'd be tempted to agree with Endoroid, power does seem to be in the hands of the gods. Personally I could not find a charging plug the would supply enough power to keep the HDMI output stable on my monitor.....every other display I've tried works fine apart from the intended main one, partly to do with the monitor I think because it also has trouble with MHL connections. I eventually solved my power woe's by using my computer's USB as the power source.
EDIT: Initial Tests seems OK although I had to run with sudo because I've not configured udev but device is detected and I've pulled and printed the pit. This is both through a powered hub and jacked straight into the device I'll try flash a rom in a bit...... because doesn't everyone spend NYE flashing roms and posting on xda,

wanted to drop this Linux 64 Heimdall 1.4 RC1 built from today's source debian package somewhere
http://d-h.st/2Vj

trevd said:
Hi Folks
heimdall.7z - 334.63 KB
I thought I'd continue in the same vein as my previous post and add to the Pi's arsenal of android related tools , So here is the Open Source Samsung Flashing utility Heimdall.
There's nothing special about this build, I just cloned the git sources and compiled them on Rapbian. Easy as, well , Pi I suppose
you'll have to install either libusb-1.0-0 or libusb-1.0-0-dev using apt-get.
[ EDIT: ] Do It yourself!
Just for completeness here's the steps if you want to build it yourself using Raspbian
Open a terminal window
Code:
sudo apt-get install git-core libusb-1.0-0-dev
cd ~/
git clone git://github.com/Benjamin-Dobell/Heimdall.git
cd Heimdall/libpit
./configure
make
cd ../heimdall
./configure
make
sudo make install
cd ~/
rm -rf Heimdall
The configure -> make -> make install workflow is used by a large number of linux tools this make compiling most things for the Pi on the Pi as simple as the steps above. Sometimes finding where the official source code is for a package is the hardest step.
Click to expand...
Click to collapse
packaged in deb format.... Please let me know if this works.. i had to guess the arch code.
If this doesn't work, it's the arch, and I can repackage properly. I'm working on getting CASUAL support up on the Raspi.

AdamOutler said:
packaged in deb format.... Please let me know if this works.. i had to guess the arch code.
If this doesn't work, it's the arch, and I can repackage properly. I'm working on getting CASUAL support up on the Raspi.
Click to expand...
Click to collapse
No Dice on the arch, My Real Pi was doing not playing nice... but the emulators fails with this
Code:
package architecture (armv6l) does not match system (armhf)

trevd said:
No Dice on the arch, My Real Pi was doing not playing nice... but the emulators fails with this
Code:
package architecture (armv6l) does not match system (armhf)
Click to expand...
Click to collapse
I kinda figured... do this:
Code:
dpkg -i --force-architecture /path/to/heimdal.deb
I will fix the arch later tonight.

AdamOutler said:
I kinda figured... do this:
Code:
dpkg -i --force-architecture /path/to/heimdal.deb
I will fix the arch later tonight.
Click to expand...
Click to collapse
Code:
heimdall depends on libc6 (>= 2.4).
heimdall depends on libgcc1 (>= 1:4.1.1).
heimdall depends on libstdc++6 (>= 4.1.1).
heimdall depends on libusb-1.0-0 (>= 2:1.0.8).
Got some dependency version issues, Is that something you want to/can deal with automatically? or just tell the user to upgrade! I'm not overly familiar with what debs and dpkg etc are fully capable of.... I tend to let apt and aptitude do all the heavy lifting
Could always build a static one I suppose. :good:

I just placed this version of Heimdall into my CASUAL repository. Here is a proper arch Heimdall deb file packaged with the binary from the OP.
https://android-casual.googlecode.com/svn/trunk/GUI/src/CASUAL/resources/heimdall/heimdall_armv6.deb
Code:
dpkg -i heimdall_armv6.deb
This will always be up-to-date with CASUAL's capabilities because this is my source repository, so it's a good link. Let me know if there's any problems.

Hello, this stopped being usable time ago i think. I'm also having big problems compiling heimdall on current 3.12.35+/3.18.3+|4+ kernel Raspbian on rasPi B+, seems to be a libc dependancy problem. Could you please provide a new link instead of android-casual googlecode site? Thank you very much

anyone succeeded in flashing a Pi4 with "Heimdall", the flashing-software ?

Related

[LINUX] - How To: UBUNTU on Dell Streak

EDIT: I can't post to XDA due to the fact that i just signed up for an account, but look at fards' copy of my post to see how to install Ubuntu on your Dell Streak
Here's Pats Post on modaco;
although it would be nicer to keep development discussion to just one thread, the more constructive input the better
Hello All,
I'm attempting to natively port Ubuntu and/or Debian to the Streak. With it being such a powerful device there really is no reason it SHOULDN'T be running a “desktop” operating system. However, implementing his is quite a difficult task, so if any and everyone's help would be very much appreciated.
In the mean time, this is my first guide on how to get ubuntu running piggyback on the Dell Streak. After quite a while (and numerous different trials), I have found that this is the easiest way to get Ubuntu Mobile up and running fast. All commands can be done through either ADB shell or the terminal emulator on the phone.
This was *NOT* done entirely by me, but is a culmination of the effort of lots of people in the android community. I just modified it so that it would work on the Streak.
**This Installation DOES NOT install Linux natively, and as such is should not be destructive to your Android system, however i take absolutely no responsibility for anything that happens and you do this COMPLETELY at your own risk**
Here is how to do it:
1) Root your phone. There are plenty of guides on how to do it, so find one and get root access on your phone.
**YOUR PHONE MUST BE ROOTED. THIS WILL NOT WORK WITHOUT IT.**
2) Download Ubuntu Mobile Bundle: http://uploading.com/files/bbm6b311/ubuntu.zip/
This contains an image of the filesystem as well as other necessary scripts to get it working.
2) Busybox - Install Titanium Backup from Android Market - if you press the "Problems" button it will install Busybox on your phone for you (Feel free to uninstall Titanium after this is done). This is the fastest and most pain free way to install busybox on the streak that i know of for now (the other ways of doing this ARE NOT fun...)
3) On your SD card's root directory, create a folder called ubuntu and extract all files in the ubuntu mobile bundle there.
4) Replace the bootubuntu executeable file in the ubuntu directory with mine, found here http://www.mediafire.com/?fi011w4fbmymw3y
5) Unmount phone from computer. ADB and Android Terminal will not work if the phone is mounted.
5) Download a terminal from the Android Market - I used Jack Palevich's Android Terminal Emulator (android market search: terminal) but anything similar should work the same
CODE
Code:
su
cd /sdcard/ubuntu
sh ubuntu.sh
6) Ignore any errors thrown up by ubuntu.sh. From this point, all that is needed to boot ubuntu is just to enter this:
CODE
Code:
bootubuntu
To start ubuntu from now on, this is all you need to do.
You should now have ubuntu working on your laptop, and while it DOES connect to your phone's internet sources, it DOES NOT yet have a graphical interface.
Here is how to add one:
1) Update the system with the following commands in ubuntu:
CODE
Code:
apt-get update
apt-get upgrade
The first one updates the package lists, the second one downloads updates to the system itself.
2) Install TightVNC in ubuntu:
CODE
Code:
apt-get install tightvncserver
3) Configure TightVNC:
CODE
Code:
export USER=root
vncserver -geometry 800x480
For security purposes, it is recommended that you assign a password to your VNC server when asked.
4) Download Android VNC Viewer from the market
5) Configure Android VNC Viewer:
Change the port to 5901 and type in your password that you entered before.
Other Problems
There appears to be a bug with the X window server sometimes refusing to connect to VNC. DO NOT change any settings on Android VNC Viewer, instead open a terminal and run the folloring command:
CODE
Code:
rm -R /tmp/.X11-unix
What Does Not Work – Will Try To Fix
Keyboard from Android VNC Viewer
Shutdown – Does Nothing
Reboot
Log Out
Native Install
I hope you guys enjoy this, and I can't wait to get your feedback.
- Pat
Click to expand...
Click to collapse
there was a thread about this but it wasnt work on me. now i am downloading and i will inform you again
what is the address for vnc ?
OMG! Could that be any slower on the download?
EDIT:
That sounded totally ungrateful - sorry!
Thank you very much for this
yeah works fine without problems.
it is better from g1 but not as well as a netbook. so only experimental use i think
I connected to the loopback 127.0.0.1 on 5901 and it worked - haven't seen how to connect to it remotely though
Edit:
Reading is fundamental - I can connect to it form another machine
now to fix the keyboard issue
in terminal emulator there is a note : localhost:1 vnc could work properly so i connect with only port and password.
is it possible to install jolicloud since its an ubuntu based system?
Newbie questions, sorry....
Before to try this port, just some maybe stupid questions for you:
- Still working the phone function?
- Is it easy to go back to standard or Steve Streaks Roms?
- Are there lack of drivers for bluetooth, gps, audio, wifi, etc?
Thanks.
No your missing the point here, this isn't an OS separate to android. Think of this as an app it runs on top of the android system. Also this is very experimental most features would be limited and no ubuntu can't be used as an smartphone os -No phone...
beginner said:
Before to try this port, just some maybe stupid questions for you:
- Still working the phone function?
- Is it easy to go back to standard or Steve Streaks Roms?
- Are there lack of drivers for bluetooth, gps, audio, wifi, etc?
Thanks.
Click to expand...
Click to collapse
1) Ubuntu does not replace android, and the UI only runs in a VNC server, so you can switch back and forth between ubuntu and the phone app (or angry birds?)
2) I installed mine on top of DJ Steve's 1.8.1 rom... It's not native, so it only runs on top of android instead of replacing it
3) Haven't tried audio yet, but it should work (let me know how it goes)... internet connectivity works and provided you have an internet connection enabled in android you can use tools like APT or Firefox in ubuntu... only problem is keyboard is a bit wonky...
For those who had trouble figuring out how to set up the VNC, here is a picture of my VNC configuration on my phone. If you find out the phone's IP address you should even be able to VNC into it from your computer (if your on the same wifi network)
Also, openoffice.org
- pat
Is anyone actively attempting to get Ubuntu running native?
audio not working
keyboard not working
also lots of lags.
ear0wax said:
Is anyone actively attempting to get Ubuntu running native?
Click to expand...
Click to collapse
Yes, i'm looking into it, but it's quite an uphill battle in order to get it working. I'll let everyone know when we make some progress.
www.cepdukkani.net said:
audio not working
keyboard not working
also lots of lags.
Click to expand...
Click to collapse
cause you are running 2 operating systems at the same time
But seriously, if ubuntu can run native (no android in the background) then the lag would be gone, and (if set up right) audio and keyboard would work.
- pat
could i recieve phone and uses sms?
Getting error
Hi all after passing command for booting ubuntu I get a error chroot can't find /bin/bash folder or directory missing
Sent from my Dell Streak using XDA Premium App
www.cepdukkani.net said:
audio not working
Click to expand...
Click to collapse
Im wondering if I install a rdp server instead of vnc if I can get remote audio working.
Ill post with whatever results i get once I'm done waiting 2 hours for the ubuntu image to download.
As for lag. I had a n900 running @600mhz and was doing a chroot into ubuntu and it ran fine, but it used xpyher not vnc. Is there any embedded X servers for android yet? (I highly doubt it)
data requirement for updating GUI pkg of Ubuntu
Can any body tell me size of the data required to update to gui ......as i m not using wi -fi i hv to stick on gsm data usage which is limited in my plan
Very cool!
I had lots of trouble rooting my 2.2.2, but finally got it done by running Gingerbreak twice in a row on a cleanly re-started Streak.
Thanks for a fun gig!

androidVNC to webtop

I have the idea that Just as the Ubuntu hacks for android work, we could use androidVNC to connect and view the webtop from the phone without HDMI or the dock, using the phones screen.
Another thing is many of us are using SystemR89's ubuntu hack, with Gnome or LXDE so then all we need is to have tightVNCserver installed as well in the Ubuntu eviroment. Do the steps provided in the above site androlinux.com and trigger that Ubuntu Session to start and then connect on loopback should work.
As I recall ubuntu.sh sets up the soft links or Binds. I don't recall what Booubuntu does but it appears to chroot you to the Ubuntu enviroment for install of the rest of the packages.
I don't think we need to mess with those, they have been done by SystemR89's WebtopMOD. We just need to Chroot to the Ubuntu.disk and give the command "export USER=root" and "vncserver -geometry 1024x800" to start the VNC server Then connect via AndroidVNC.
You'll note that our Phone already has a ubuntu.sh on the root directory. Evidence that moto basically copied the work??? IDK.
I'm looking for some ideas or help from someone who knows ubuntu better then me on how to do this.
I'll hack at it a bit and see if I can get anywhere.
I doubt too many people will find this useful, maybe I'm wrong though. If it would be helpful to you let me know, it will add to my drive to figure it out.

[Q] DUAL BOOT UBUNTU And JELLY BEAN AND GUIDE

hey guys, for those that havnt seen it today Ubuntu has been released for the Nexus 7 and for both 8GB and 16GB Models! wondering if anyone in the community has figured out how to dual boot it or if it is even possible? thanks all!
Heres the link of how to install if your wondering
What you will need:
Nexus 7 Tablet (8GB or 16GB)
Standard MicroUSB Cable (should come with the device)
Ubuntu Nexus 7 Desktop Installer installed on your development system
Ubuntu 12.04 LTS or Later
Optional
Micro USB Host Cable (OTG Cable) - used for attaching keyboard, mouse, etc. Directions on how to get and use one of these are towards the bottom of this page.
Ubuntu Nexus 7 Desktop Installer
A simple one-click installer has been provided, and is available in a PPA.
sudo add-apt-repository ppa:ubuntu-nexus7/ubuntu-nexus7-installer
sudo apt-get update
sudo apt-get install ubuntu-nexus7-installer
Usage instructions for the installer are provided below.
Unlocking the Nexus 7
The Nexus 7 ships with a locked bootloader. You must unlock it in order to flash different images to the device. Fortunately, this is a trivial process, and you only need to do it once.
Warning: Unlocking the bootloader erases all data and resets the device to factory defaults.
Reboot the Android device into the Android boot loader. To do this, hold the volume down button and press the power button. Continue holding the volume down and power buttons until you see the boot loader UI. The device now displays the boot loader GUI, which looks like this:
Verify fastboot lists the device:
$ sudo fastboot devices
1234567891234567 fastboot
Start the bootloader unlock process:
sudo fastboot oem unlock
You are prompted on screen to unlock the bootloader on the Android device screen. Follow the on-screen directions to continue. Your screen should now look like this:
Complete the process by rebooting:
sudo fastboot reboot-bootloader
Or simply press the power button.
Installing Ubuntu on Nexus 7
Once all setup has been completed, the installation can start. To install, ensure the Nexus 7 is in fastboot mode, plug it into your computer (and make sure NO OTHER DEVICES are plugged in).
Find the installer in the dash (search for 'nexus'):
This will provide a Graphical Interface for installing Ubuntu. This tool will download the latest image automatically, and flash it accordingly. The flashing step should take about 2 minutes. Once the flashing is complete, the device will reboot and finish the installation. This step can take 10-15 minutes.
Returning your Nexus 7 to Stock Android
Warning: Disconnect ALL other mobile devices connected from your computer or they might get erased too. This will erase ALL DATA on your Nexus 7.
In case anything happens while developing, the system image for Nexus 7 can be found here: https://dl.google.com/dl/android/aosp/nakasi-jro03d-factory-e102ba72.tgz
After downloading the above tarball, uncompress it with the following:
tar zxvf nakasi-jro03d-factory-e102ba72.tgz
Then, place your machine into fastboot mode and run the resulting script:
cd nakasi-jro03d/
sudo ./flash-all.sh
You may get the following warnings, which you can ignore, the restoration will continue anyway.
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
Troubleshooting the Install
If you have problems installing the image, please use the following troubleshooting steps:
Detach the USB cable, restart the tablet back into fastboot mode, and re-attach the USB cable.
If problems persist, reboot your host PC.
If you still have issues, try a different USB cable.
If you have a 16G tablet, try using the 8G image.
If you still have issues after doing all this, return the image to stock using the directions above and re-try.
If none of that works, ask a question on Ask Ubuntu using the mobile tag, or ask for help in the #ubuntu-arm channel on freenode. If you believe it's a bug, file a bug against ubuntu-nexus7 in Launchpad.
Ehm, do i miss something or is this ubuntu only installation?
Edit: i mean, not dual boot, but only ubuntu
Do I need a mouse and a keyboard to use Ubuntu? Or I can also without them?
Rusl1TA said:
Do I need a mouse and a keyboard to use Ubuntu? Or I can also without them?
Click to expand...
Click to collapse
it has a built in touch keyboard/mouse, so you can do either way
you can use a touch screen for it, mouse and keyboard is compatible
what do you mean ubuntu only install?
sorry if you mis understood, but i posted the guide there but i am also curious if theres a dual boot avaliable.
is bluetooth not usable in the in ubuntu while installed?
And I saw this install method over at androidcentral.com and I dont recall it being dualboot. It did a complete install of ubuntu only and erased android from the device
As of right now, dual-booting is not an option, however, this build did just come out today, and in the coming weeks, we'll likely have many updates and options, so i'd hang tight. Needless to say, it's a great experience
yess dual boot will be awesome.
Download and follow the instructions in the complete Linux installation guide. (Its an app in the play store) It works pretty well and you can use Ubuntu, Debian and a few others without wiping your system. I prefer the Ubuntu lite version. Something else to try out
Sent from my Nexus 7 using xda app-developers app
technolust109 said:
what do you mean ubuntu only install?
sorry if you mis understood, but i posted the guide there but i am also curious if theres a dual boot avaliable.
Click to expand...
Click to collapse
Why did you title the thread as "Dual Boot Ubuntu" then?? Confused as well.
Change your thread title,its misleading.
yes my question was about dual booting, sorry if theres any confusion caused.
Folks, it's not that hard of a question when you actually read what the poster states. CURRENTLY, THERE IS AN INSTALLER THAT INSTALL UBUNTU TO THE NEXUS 7, BUT DOING THIS WILL CAUSE THE DEVICE TO BE FULLY WIPED FIRST REMOVING ANDROID. HE IS WONDERING IF THERE COULD BE [OR IS] AN INSTALLER THAT INSTALLS UBUNTU ALONGSIDE ANDROID TO BE ABLE TO BOOT THE DEVICE TO EITHER OS AS THE USER WISHES [ ALSO ASKING IF DUAL BOOTING BETWEEN THE 2 IS EVEN POSSIBLE.SO HE KNOWS IF IT IS WORTH HIS TIME TO INVEST IN MAYBE FIGURING IT OUT ON HIS OWN]. I am going to assume some form of dual booting would be possible as Linux bootloaders are generally very capable of booting OSes that use environments totally different from itself.
I am wondering the same thing as I am a very good technical user who can deal with a lot of issues, but have never gotten deep in to the programming side of things. I am shocked that for such an alpha build [really flaky Bluetooth, [Wi-Fi is solid] Unity crashes quite often and nVidia has had sucky Linux driver support for years now [wish they would take Linux more seriously but hey at least they have drivers]]. All leads to a painful experience for most [especially if you are not a nerd or techie and not used to dealing with very new alpha Linux type issues, if you don't mind it it does work].
Why wouldn't they have set it up as a dual boot to begin with? That way if you know something you need to get done can be done in Android and not in Ubuntu then you could just restart and choose the different OS. Not to mention if this is for modders and enthusiasts to test bed things on the tablet then they are going to most likely be some Android developers to start who would love to say use Eclipse to develop Android code for whatever and then oh no restart in to Android to I dunno test their work.
All that to say PLEASE SOMEONE WITH THE KNOW HOW let's figure out a way to fully dual boot a NATIVE Linux [not that install a loop file system and have it use VNC server to view the session junk you see on the Play Market, it's quaint and all, but not nearly as nice as a full Linux with full access to the hardware [I use it too, much love to backtrack] but am dying to dual boot an Android/More full [ I REALLY want Backtrack 5+ but Ubuntu would be worth keeping around until Backtrack gets around to working out their builds to be dual boot on some Android based systems] Linux as needed.
The approach that the Boot Manager app uses would probably work. They modify the /boot partition to point to a different device for /data than normal. Then you can switch between ROMs by flashing a different /boot partition. They automatically bundle the /boot partition into an update.zip and store them next to the image file on you SD card.
thanks for clearing it out RealPariah! by the way your username link to the band pariah orr? Cheers.
I would like to try this but what's the best/easiest way to back up my system? (I.e. app and game save data as well as for directory bind and folder structures). I tried clockworks backup process before, but I either did it wrong or it doesn't cover everything.
Can I just copy paste everything from my root folder?
Nikguy said:
I would like to try this but what's the best/easiest way to back up my system? (I.e. app and game save data as well as for directory bind and folder structures). I tried clockworks backup process before, but I either did it wrong or it doesn't cover everything.
Can I just copy paste everything from my root folder?
Click to expand...
Click to collapse
you might want to try and use titanuium backup and copy out the entire "titanium backup" folder onto your computer, so when you revert back to android you should be able to copy it back in and restore from titanium backup. hope it works.
technolust109 said:
you might want to try and use titanuium backup and copy out the entire "titanium backup" folder onto your computer, so when you revert back to android you should be able to copy it back in and restore from titanium backup. hope it works.
Click to expand...
Click to collapse
Huh great idea! Thanks, I'll give it a shot
all good mate! good luck!

Need advice on setting up linux install

In that I got an idea, took the first step, and am now completely out of my depth.
Let me start at the beginning.
I've always wanted to get into android development, but with the departure of CosmicDan, my recent format of my home computer, and a lucky shot at taking a general development class have all culminated to suggest now's the time.
Here's my objective: Dualcore desktop computer, dualbooting Windows 8 and a flavor of linux focused entirely on being an android toolkit. Here's my problem: I used linux for a week in my highschool networking class most of a decade ago. Red Hat 7 or 8, maybe? Anyway, I know virtually nothing except what I've osmosed from using an ADB shell.
I need to know which flavor of linux is best for android dev, how to set up a dual boot, and after that point, probably step-by-step instructions on establishing a build environment and using github. I'm not completely useless at this, I know how to use google, but a lot of information is outdated and this is a somewhat situational goal.
ANY HELP IS GREATLY APPRECIATED!
Ubuntu!
And google Ubuntu google installer
Sent from my R800i using xda app-developers app
Ubuntu is more user friendly but if you want development I would suggest 1: backtrack 2: arch Linux (for advanced users) 3: fedora
Sent from my R800x using Tapatalk 2
Apparently Backtrack is called Kali Linux now...
"It includes support for the Metasploit Project's Metasploit Framework, a tool for developing and executing exploit code against a remote target machine.[2] It also includes the security tools Wireshark, John the Ripper, Nmap and Aircrack-ng.[2]"
Hahaha hell yes I'll take some of that.
I still think I'll need to install Ubuntu - I don't know how I'd put this particular build on a flash drive. Installing it from inside ubuntu would probably be easiest.
EDIT: Actually they have excellent instructions on the website for setting up a flashdrive.
im using ubuntu just fine
im on ubuntu 10.04 i compile builds fine
Use the Ubuntu wubi installer for dual boot
Sent from my R800i using xda app-developers app
Okay, Kali Linux is installed and operational, programs are updated, and I even figured out how to install Flash via the mysterious powers of 'apt-get'. Using Grub for dual boot, and I found my way around configuring it and populating a new cfg file via the terminal. Whew.
Perhaps 4/20 was a bad choice for learning a new and notoriously complex OS, or maybe it was the best choice.
I guess I'm ready to set up a kitchen, but now I need input again. Do I just 'apt-get' some magical box of android goodies, or is this process more involved?
Edit: The answer is 'more involved', but not by much. I got the kitchen from http://forum.xda-developers.com/showthread.php?t=633246 and I was even able to independantly apt-get my way out of an error without googling it! So, it's running... I guess it's time to start cutting up a ROM. I'm inclined to believe CyanogenMod would be the best starting point for that, and I'm doublefortunate that my roommate has a Nexus he's willing to let me experiment on, as I don't want to navigate the unique structure of Xperias yet.

[DEV][WIP] PyAdb Python 2.7 Package [Windows/Unix]

KEarlier I saw a thread that demonstrated a python wrapper for the adb command. I remembered a while ago that adb uses a TCP protocol (duh it's written in the docs)
I had some spare time today so I decided to write a script for you all (I know how redundant it is, but hey why not)
This script incorporates the core functionality of adb into it, such as detecting your device... that's pretty much it at this stage..
so here it is. PyAdb​
I doubt this will brick anyone's devices... but just in case..
disclaimer:
if this bricks your device, it was not my fault. you used this at your own risk.
I don't care if this crashes your computers, or shoots you in the foot. you used it, not me
Click to expand...
Click to collapse
The general concept with how this works is below:
firstly, you have to choose your command from this list
secondly: the length of that command (in hexadecimal) needs to be prefixed before the command is sent. This is probably to do with security so the adb server on the device only reads the right amount of data
thirdly:... well there's not much more to it. just enjoy, tinker with it, and remember to contribute!!
note about getting device detected:
You need to ensure that the Android Debugging Bridge driver is installed for your device. this is normally supplied with standard device drivers. please refer to your device forums for instructions on how to install these
You also need to make sure your pc is authorised with stock adb, otherwise you won't be able to connect with PyAdb (for 4.2 upwards)
note about the current shell integration:
I now have a threaded interactive console, however single commands are still not read from a thread. If you want to use grep or kmsg, launch a full session
page not found!
Fixed link: https://github.com/cybojenix/PyAdb/
Looks like OP removed the file he linked to and forgot to change the link.
404 page not found?
cybojenix said:
Earlier I saw a thread that demonstrated a python wrapper for the adb command. I remembered a while ago that adb uses a TCP protocol (duh it's written in the docs)
I had some spare time today so I decided to write a script for you all (I know how redundant it is, but hey why not)
This script incorporates the core functionality of adb into it, such as detecting your device... that's pretty much it at this stage..
so here it is. PyAdb​
I doubt this will brick anyone's devices... but just in case..
disclaimer:
The general concept with how this works is below:
firstly, you have to choose your command from this list
secondly: the length of that command (in hexadecimal) needs to be prefixed before the command is sent. This is probably to do with security so the adb server on the device only reads the right amount of data
thirdly:... well there's not much more to it. just enjoy, tinker with it, and remember to contribute!!
note about getting device detected:
You need to ensure that the Android Debugging Bridge driver is installed for your device. this is normally supplied with standard device drivers. please refer to your device forums for instructions on how to install these
note about the current shell integration:
I haven't added a threaded data capture method yet, purely because I don't have time at the moment. it will (should) work with single commands. it isn't reliable for commands that take a while to run (such as grep)
Click to expand...
Click to collapse
404 page not found?
omegavesko said:
Fixed link: https://github.com/cybojenix/PyAdb/
Looks like OP removed the file he linked to and forgot to change the link.
Click to expand...
Click to collapse
lol yeah thanks. I did some file changes and forgot I linked to the file in the thread rather than the repo

Categories

Resources