Flashing under Linux - HD2 Android Q&A, Help & Troubleshooting and Genera

Any chance to flash NAND Android ROM under Linux?

Just use Virtual machine (Windows 7 since XP has some problems with flashing) using VMware player.. its very easy to install/use.. then just connect your 'HDroid' and start doing the required steps.. or just use "Clockworks Recovery" steps.. the only thing you do in Linux is copying the files to the SD Card.

white-energy said:
Just use Virtual machine (Windows 7 since XP has some problems with flashing) using VMware player.. its very easy to install/use.. then just connect your 'HDroid' and start doing the required steps.. or just use "Clockworks Recovery" steps.. the only thing you do in Linux is copying the files to the SD Card.
Click to expand...
Click to collapse
Thanks, but i know that solution, i did it that way. It is not flashing under Linux... You still need Windows. I'm interested in pure Linux way.

This is probably what you're looking for.
http://forum.xda-developers.com/showthread.php?t=901305
It's not yet released, but your need doesn't seem to be urgent.

Related

Flashing a rom on linux?

I have been having problems on XP(not regarding flashing). I am just tired of XP so i was thinking on using Ubuntu. Im going to get to the point now, Is there any software that i can use to flash my phones on linux?
I dont think so really. I have been using linux for a few years and not really seen anything for flashing wm phones. One option i was thinking of was setting up an xp install in a virtual machine and then trying that. I guess you could also try using the windows flashing app via wine but i just havent had time to do this yet.
If you do find a solution please can you report back here as it would be useful to know.
try microSD instead
well actually I am running a Gentoo OS here and tried flashing in XP in virtual machine in VirtualBox, but it did not work for me (after a certain time a timeout occured). From now on I will always flash via microSD card, I have a spare one I can always use for these purposes. Already flashed two different ROMs and works OK, so no need for XP anymore.

Updating ROMs on Ubuntu 10.04

Has anybody tried updating their ROM from Ubuntu yet, any known issues?
Sorry I think I might have posted this in the wrong forum.
i frequently flash my phone when in developing on my pc (runs Mandriva linux) by using a VM, specifically a Virtual Machine of Windows XP in VirtualBox
hope this helps
Thats probably the safest way to do it, good thinking. Cheers
I wish there were tools for flashing and cooking available for linux. I run Ubuntu all the time unless I'm cooking or flashing and for my Magic Jack.
I have never used virtual machine but I may look in to it.
I have copy nbh file to the sd card and rename it to leoimg.nbh, then reboot hd2 to flash.
Touch HD can be flashed in ubuntu.

Flashing Android into HD2 Using Linux

Hi,
Is it possible to install Android using from Ubuntu?
Thanks,
Mohammad
Maybe you could try using wine, but I wouldn't risk it personally.
If you own a copy of windows, you could install windows into a virtualbox. But if you're going to do that, you might as well install a dual-boot so you can run either linux or windows.
In short I dont think so. i have been trying for ages to get this working and just had to cave in the end when the NAND release came out. WINE was just a non-starter for flashing, and for some reason i couldnt get my virtualbox windows XP to ever want to flash the phone. I faffed and faffed, even got the sync fully working in the virtualbox WinXP but couldnt get flash working.
I have ended up with an XP install on an old HDD just to flash my HD2!
After NAND android ROMS devs should work in a new way to flash Android using Linux

[Q] Flashing via Linux

Hi Guys,
i recently installed Ubuntu 11.10 as my primary OS. I had been flashing a lot when i had a system with Windows 7, but the system i have now will not run the OS efficiently and thus my second option is Ubuntu.
I was wondering if there is any way to flash ROMs from a linux system, preferably Ubuntu.
Thanks,
Sam
android_murphy said:
Hi Guys,
i recently installed Ubuntu 11.10 as my primary OS. I had been flashing a lot when i had a system with Windows 7, but the system i have now will not run the OS efficiently and thus my second option is Ubuntu.
I was wondering if there is any way to flash ROMs from a linux system, preferably Ubuntu.
Thanks,
Sam
Click to expand...
Click to collapse
Download "Wine" from the Ubuntu Software Center, it can run Windows Softwares....
Just run Odin using Wine and do the usual and flash....
[email protected] said:
Download "Wine" from the Ubuntu Software Center, it can run Windows Softwares....
Just run Odin using Wine and do the usual and flash....
Click to expand...
Click to collapse
Hmmm... but i have heard that Wine does not support USB. Anyway will check when i get home.
I once read somewhere there was something like Odin for Linux based system called Heimdall..
Maybe that's what you need?
Dympy.
Sent from my GT-I5800 using xda premium
dympy said:
I once read somewhere there was something like Odin for Linux based system called Heimdall..
Maybe that's what you need?
Dympy.
Sent from my GT-I5800 using xda premium
Click to expand...
Click to collapse
Won't work with our phones, needs a .pit file, aka partition table
Tried ODIN via Wine ... Doesn't detect the phone...
Really is there no other way?? How come i can't flash a Linux Kernel based OS from a Linux System (kinda ironical isn't it :'()??
I'm a linux user too and I tried almost everything I think.
Wine : It'll not work. No proper usb driver support.
Virtualbox : Odin detects the phone but fail when the flash process start. The reason is that Virtualbox acts as a wrapper between windows and Linux' usb so some data are modified.
In all cases, don't try anything with odin because it can result with a bricked phone if data transmmitted to the phone are incorrect during bootloader flashing.
So, I recommand to flash only with cwm via update.zip or adb push. It's possible to mount a rfs file on linux and then push all files via adb.
@android_murphy : Create an update.zip with your zImage. Use the zip used for CM7 kernel.
Arakmar said:
I'm a linux user too and I tried almost everything I think.
Wine : It'll not work. No proper usb driver support.
Virtualbox : Odin detects the phone but fail when the flash process start. The reason is that Virtualbox acts as a wrapper between windows and Linux' usb so some data are modified.
In all cases, don't try anything with odin because it can result with a bricked phone if data transmmitted to the phone are incorrect during bootloader flashing.
So, I recommand to flash only with cwm via update.zip or adb push. It's possible to mount a rfs file on linux and then push all files via adb.
@android_murphy : Create an update.zip with your zImage. Use the zip used for CM7 kernel.
Click to expand...
Click to collapse
I'm also Linux user. Virtualbox does not work. But with VMwarePlayer (XP or Win 7) ODIN works fine. That's unfortunately the only way...
I use ubuntu as my main os and windows for flashing It's always good to have a working windows somewhere for odin
Arakmar said:
I'm a linux user too and I tried almost everything I think.
Wine : It'll not work. No proper usb driver support.
Virtualbox : Odin detects the phone but fail when the flash process start. The reason is that Virtualbox acts as a wrapper between windows and Linux' usb so some data are modified.
In all cases, don't try anything with odin because it can result with a bricked phone if data transmmitted to the phone are incorrect during bootloader flashing.
So, I recommand to flash only with cwm via update.zip or adb push. It's possible to mount a rfs file on linux and then push all files via adb.
@android_murphy : Create an update.zip with your zImage. Use the zip used for CM7 kernel.
Click to expand...
Click to collapse
Yeah CWM update.zip is a good option but not everyone provides the entire rom via update.zip. I guess only the CM7 one is in that format.
mankokoma said:
I'm also Linux user. Virtualbox does not work. But with VMwarePlayer (XP or Win 7) ODIN works fine. That's unfortunately the only way...
Click to expand...
Click to collapse
Thanks for the info, it works well with VMWare

How to make a PC Triple Boot Android, Windows 7 and Windows 10

Hi,
How to make a PC Triple Boot Android, Windows 7 and Windows 10?
Thanks
M. Al said:
Hi,
How to make a PC Triple Boot Android, Windows 7 and Windows 10?
Thanks
Click to expand...
Click to collapse
You can use programs like Partition Magic
Maay gaad, I thought this is a tutorial thread
sure u have 3 hard disk with different Operating System (maybe)
Wondering
How it could be done.
zanodor said:
How it could be done.
Click to expand...
Click to collapse
By partitioning your hard drive and then installing each operating system in each partition then use the Grub bootloader software to allow you to choose which of the 3 systems you want to boot when you power on.
https://www.quora.com/Is-it-possible-to-install-Linux-with-Android-and-windows-10-dual-boot-easy-way
Sent from my SM-S767VL using Tapatalk
Hi,
You can also use Virtualbox or other virtualization software to create multiple virtual machine and RUN them on a single machine.
If your computer has good amount of RAM, then you utilize this Virtualbox software. It really works fine. Instead of creating different partition, i think it will be much better option.
Thanks,
Hope it helsp
ziafimawad said:
sure u have 3 hard disk with different Operating System (maybe)
Click to expand...
Click to collapse
I am curious how to do it?
Saenyu67 said:
I am curious how to do it?
Click to expand...
Click to collapse
You can use 1 hard drive or 2 hard drives or 3 hard drives, it works the same regardless of how many you use. It's easily done with just 1 hard drive. If you look at my previous post a few posts back in this thread, you will see a link with instructions to partition your hard drive to create a partition for each of the OS's that you want to install, then you install each operating system in each separate partition that you choose to install them in.
Sent from my SM-S767VL using Tapatalk
How to make a PC Triple Boot Android, Windows 7 and Windows 10
Windows booting is a simple process. You can easily boot your windows 7 OR Windows 10
you can useing some free tools for booting window 10 and windows 7.
I can explained here how to boot a drive easily. I think it will benefit you. For than messege me personally.
Thank you very much.
mdakashhossain said:
Windows booting is a simple process. You can easily boot your windows 7 OR Windows 10
you can useing some free tools for booting window 10 and windows 7.
I can explained here how to boot a drive easily. I think it will benefit you. For than messege me personally.
Thank you very much.
Click to expand...
Click to collapse
You don't understand what they are trying to do.
Sent from my SM-S767VL using Tapatalk
for android, you can use "bluestacks" on windows
So you want to use Windows 10, Windows 7 and Android on PC. For that first create 3 or 4 partitions one for windows 10, one for windows 7 and one for android. Install Windows 10 and Windows 7 on separate partitions and you will see that you have a option to boot into windows 7 or 10. now to install Android use a android based OS such as Prime OS and install it on a separate partition. You can use the pre installed grub or you can use grub2win to get all operating systems that you need
mdakashhossain said:
How to make a PC Triple Boot Android, Windows 7 and Windows 10
Windows booting is a simple process. You can easily boot your windows 7 OR Windows 10
you can useing some free tools for booting window 10 and windows 7.
I can explained here how to boot a drive easily. I think it will benefit you. For than messege me personally.
Thank you very much.
Click to expand...
Click to collapse
Hey there I'm also interested in this I currently have garuda Linux and can't get Windows 10 on
I've done this for a while, my easiest solution is:
1. Make 3 or 4 partitions. Windows 10, windows 7, data partition, and a Linux partition. (There may more created e.g. a system partition). Dont touch the data partition throughout all of this except for storing your OS ISO, liveboot ISO, other program files etc.
2. Install windows 7 on windows 7 partition.
3. Install windows 10 on windows 10 partition. Can be installed from windows 7. Let windows handle making a windows bootloader which can now boot into windows 7 or 10.
4. Create a live USB in ine of your windows. I've been using Ubuntu but used Fedora for years prior. If you aren't sure if you need x64 then go woth the 32 bit x86 architecture (useful to be able to boot on 32 and 64 bit machines). Now boot up your live USB into Linux and install automatically onto Linux partition. You'll now have a GRUB bootloader which can boot into Linux or into your windows bootloader.
5. Install android emulator. I used Linux as I felt I would get better performance emulating android in Linux, this may or may not be true.
There will things that you might find as a nuisance, for example when I boot into windows 7 from windows 10, I need to boot into the GRUB to windows bootloader, select windows 7 and it reboots again back into GRUB and then into windows 7. Not a big deal unless you want to switch OS a lot. If this is the case, you may want to just emulate to begin with. I have a laptop with *ok* processor and RAM, not the best for emulating another OS.
There is many options - you could even install Linux within windows if you so choose. Ultimately the best path will be based on your knowledge, specs of your PC ( power, ram, disk space, disk type [fora mount of partitions], BIOS/UEFI, etc. The method I laid out is the most automated and easiest method I have come up with. Don't try installing windows on top of Linux, you'll cause a headache fixing everything for your Linux system. But then again, everything I've done in Linux the hard way has helped me to understand Linux better. I've just found that even laying out all of the partitions manually for Linux can be challenging, especially if you only have 1 computer and your data is not backed up elsewhere. Start with a blank machine if you can, and have another computer on hand, then you'll have an easy time starting over if necessary. Theres still so many more options of how to do what you are asking... good luck and happy tripple booting
Flash-ARMy said:
I've done this for a while, my easiest solution is:
1. Make 3 or 4 partitions. Windows 10, windows 7, data partition, and a Linux partition. (There may more created e.g. a system partition). Dont touch the data partition throughout all of this except for storing your OS ISO, liveboot ISO, other program files etc.
2. Install windows 7 on windows 7 partition.
3. Install windows 10 on windows 10 partition. Can be installed from windows 7. Let windows handle making a windows bootloader which can now boot into windows 7 or 10.
4. Create a live USB in ine of your windows. I've been using Ubuntu but used Fedora for years prior. If you aren't sure if you need x64 then go woth the 32 bit x86 architecture (useful to be able to boot on 32 and 64 bit machines). Now boot up your live USB into Linux and install automatically onto Linux partition. You'll now have a GRUB bootloader which can boot into Linux or into your windows bootloader.
5. Install android emulator. I used Linux as I felt I would get better performance emulating android in Linux, this may or may not be true.
There will things that you might find as a nuisance, for example when I boot into windows 7 from windows 10, I need to boot into the GRUB to windows bootloader, select windows 7 and it reboots again back into GRUB and then into windows 7. Not a big deal unless you want to switch OS a lot. If this is the case, you may want to just emulate to begin with. I have a laptop with *ok* processor and RAM, not the best for emulating another OS.
There is many options - you could even install Linux within windows if you so choose. Ultimately the best path will be based on your knowledge, specs of your PC ( power, ram, disk space, disk type [fora mount of partitions], BIOS/UEFI, etc. The method I laid out is the most automated and easiest method I have come up with. Don't try installing windows on top of Linux, you'll cause a headache fixing everything for your Linux system. But then again, everything I've done in Linux the hard way has helped me to understand Linux better. I've just found that even laying out all of the partitions manually for Linux can be challenging, especially if you only have 1 computer and your data is not backed up elsewhere. Start with a blank machine if you can, and have another computer on hand, then you'll have an easy time starting over if necessary. Theres still so many more options of how to do what you are asking... good luck and happy tripple booting
Click to expand...
Click to collapse
Yes, exactly what I was indirectly suggesting. I've done it the way you describe before, but, alternatively, you can just create 2 partitions on your hard drive then install Win10 and Win7 in those partitions then create a Linux live USB or even install a full Linux distro on a fairly large USB flashdrive/external hard drive(preferably something that has solid state storage, this enables faster booting and performance and allows installing drivers and packages) and then go into BIOS and set your boot priority to boot from USB first, save changes and exit. Then, when you want to boot Linux you just connect your external drive/USB then reboot the device and it will automatically boot Linux without having to use grub and when the Linux drive isn't connected you will be able to boot 10 and 7 via windows bootloader. A little more round about but makes booting back and forth between operating systems.
Droidriven said:
Yes, exactly what I was indirectly suggesting. I've done it the way you describe before, but, alternatively, you can just create 2 partitions on your hard drive then install Win10 and Win7 in those partitions then create a Linux live USB or even install a full Linux distro on a fairly large USB flashdrive/external hard drive(preferably something that has solid state storage, this enables faster booting and performance and allows installing drivers and packages) and then go into BIOS and set your boot priority to boot from USB first, save changes and exit. Then, when you want to boot Linux you just connect your external drive/USB then reboot the device and it will automatically boot Linux without having to use grub and when the Linux drive isn't connected you will be able to boot 10 and 7 via windows bootloader. A little more round about but makes booting back and forth between operating systems.
Click to expand...
Click to collapse
I had a project to run Windoes 10 on an SD card, which proved to be more difficult than I tbought it would be. I didn't think it should have been difficult, but it seems software amd hard tales measures to prevent this from being possible / "easy". Linux is quite easy to use a live USB, so I've done that quite a bit (I'd keep a 32 bit live USB on my Keychain). I don't think I was ever able to update drivers or install updates to the live USB, however I didn't make much of an effort too. I basically used it as a save my ass tool, which it certainly did come in useful quite often in the course of my personal/school/work computer needs.
Flash-ARMy said:
I had a project to run Windoes 10 on an SD card, which proved to be more difficult than I tbought it would be. I didn't think it should have been difficult, but it seems software amd hard tales measures to prevent this from being possible / "easy". Linux is quite easy to use a live USB, so I've done that quite a bit (I'd keep a 32 bit live USB on my Keychain). I don't think I was ever able to update drivers or install updates to the live USB, however I didn't make much of an effort too. I basically used it as a save my ass tool, which it certainly did come in useful quite often in the course of my personal/school/work computer needs.
Click to expand...
Click to collapse
Instead of installing Linux live on USB, you can do a full installation of Linux on the USB the same as you would when installing Linux on hard drive. A Live USB can be setup with a persist partition to provide a bit of storage on the USB but it isn't enough to do anything with that is useful, that is why it is better to just install the distro on USB instead of using USB to run Linux live.

Categories

Resources