[Q] Flash under Linux (Ubuntu) - HD2 Android Q&A, Help & Troubleshooting and Genera

Hello all.
I search in the forum but I don't find the answer. Maybe no solution or my English is definitively too poor !!!
I have a computer with Linux (Ubuntu 10.10). Every time I want to make a change on my HD2, I have to reboot and launch my Windows session. But I want to definitively ****ch to Ubuntu. So is a solution exist to flash under linux (directly, with wine or with virtual machine like virtualbox).
I want to be able to flash my HD2 to return to WM6.5 or to flash the CWM recovery etc...
Do you have some answers ?
Thanks for attention.
Bye

as of now, the only way to flash rom through linux is using CWM (perhaps you'd need windows for that too).
The reason behind this is that the CustomRUU is only made for windows and not for linux.
Ive had my own tries with virtualisation and qemu but to no avail, CustomRUU needs to establish a direct serial contact with the device which is not possible for any VM in linux as of my knowledge, so the best bet is to get cLK loader, it uses userspace linux for android on nand, so you can flash recovery, rom, boot, kernel using the sdk tools of linux since it supports fastboot. after installing cLK, your phone becomes pretty close to a native linux one with the only drawback being the rom needs some changes to work with cLK but the good news is anyone can do it easily, we only need to repack the supplied kernel in a .img to flash using fastboot.

Thanks for information. I will try cLK and SDK.

Related

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

android ubuntu loader

hi
is there any way to load ubuntu 3 for hd2 from nand android?
+1 yes it is possibly ?
1. i copied the files on my sd-card.
2. renamed initrd.cpio.gz to initrd.gz
3. renamed zImage_htcleo_usbhost_2.6.32.9-38182-g6ad7e77 to zImage
in magdlr:
1.i go to 9.services then 1.boot setting then 2.always menu
2-i go to 9.services then 1.bootsetting then 3.ad sd dir and select linux folder
3.shut down
after power on the magdlr menu appear, and if i select boot ad nand, android will boot compeletly, and if i select boot ad sd haret will execute, but after complete loading and when mouse pointer appear, phone will restart,whats the problem?
alikhalesi said:
and if i select boot ad sd haret will execute
Click to expand...
Click to collapse
Wrong!
haret is a windows mobile executable and it has nothing to do with magldr.
TheATHEiST said:
Wrong!
haret is a windows mobile executable and it has nothing to do with magldr.
Click to expand...
Click to collapse
yes,but haret executed,and ubuntu loaded.when mouse pointer and keyboard appear, phone restarted.
alikhalesi said:
yes,but haret executed,and ubuntu loaded.when mouse pointer and keyboard appear, phone restarted.
Click to expand...
Click to collapse
linux and android don't in the same way.
ask the cook of your android rom to enable kexec on the kernel in his next release, then you should be able to boot ubuntu from within android.
a bit like haret on windows.
plopper
plopper said:
linux and android don't in the same way.
ask the cook of your android rom to enable kexec on the kernel in his next release, then you should be able to boot ubuntu from within android.
a bit like haret on windows.
plopper
Click to expand...
Click to collapse
is there any android build that kernels support kexec now?
and if i download it, problem will be solved?
alikhalesi said:
is there any android build that kernels support kexec now?
and if i download it, problem will be solved?
Click to expand...
Click to collapse
not that i know off, so it's up to some rom chef to enable it so we can test it.
plop
Interesting thanks.
Well is it now possible to boot ubuntu from android?
And is there a tutorial? If not, may anyone post something about that.
I'm using the Typhoon Android and it would be a funny gimick to boot Ubuntu
Ehm i read somewhere that someone booted Win98 oder 95 on the HD2 is there a Video up or a hp?
only if someone ports a similar Haret app on Android but im pretty sure theres other ways via terminal not sure
I am also very interested in a haret for Android! This would be great.
I use NO windows anymore (on any device for that matter) and would like too keep it that way
Super cool job, looks great in the youtubes...
it would be very nice to know if there's a way. thank you all
i would guess there's 2 ways for this to work. 1: from inside android after it's already loaded (like haret) and 2. from the bootloader when you first start your phone up.
i know with a PC, you can have any OS's files on a hard drive, or partition or whatever. but if your bios doesn't know it's there, it wont just go auto looking for it. it will tell you 'operating system not found' or something along those lines. now when you install an OS on a PC it updates that boot menu, or in linux the grub menu which is pretty much the same thing. there's also a program handy in windows called 'easyBCD' and linux has the 'startupmanager' respectively. so it's already been taken care of in those OS's and i gotta think it can't be that hard to get one going for mobile OS's as well.
i would think, it shouldn't be that hard to direct the bootloader at the startup of the phone, to wherever your directory for your phone's OS is located (and similarly for a secondary OS). just a matter of modifying that line so it reads into the correct directory. of course i can't program but it sounds right
非常有趣的感谢~
First off not to sound rude to anyone but haret builds can boot within magldr but a proper roof.img is needed for magldr and not windows. i dual boot sd builds and nand all the time when i use magldr but im using cLK cause i work at night and dont want to risk the battery dying on me. Also have you try the hd2 toolkit not the one for flashing clk or magldr but the that loads hbl to boot up ubuntu here : http://forum.xda-developers.com/showthread.php?t=1095726 just for the new ones that dont know.
It's very possible, we just need a dev who's motivated enough to create a app, or script that will execute the correct terminal codes.
Ubuntu with Android
On Ubuntu website, they claim to have Ubuntu working (in near future) on smartphomes supporting ARM. From what I gather, they install Ubuntu but only with Android system. Is anyone working on this? I use windows to sync in with all contacts and calendars, but want to do this with Ubuntu.

[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

Flash tools under Linux (> Windows VM?)

Long time ago i asked a Question here, but there's something i'm interested in.
I currently dual boot Win and Linux and i'm totally done in doing this, wont waste space for this windows anymore, so my question is, how to use the Flash tool under linux which is explicit for windows?
Someone tested it already? Is it maybe possible to use it in a Windows virtualmachine or will it cause some trouble due to missing USB drivers, even if they are installed?
Thanks.

Categories

Resources