Linux Emulation on Windows Mobile? - Windows Mobile Software Development

Hello Friends,
I am wondering if anyone has heard of emulating a Linux operating system locally on Windows Mobile (CE)? Something like PocketDOS but running a basic Linux operating system instead of DOS? I read about Bochs (http://forum.xda-developers.com/showthread.php?t=291899), which may boot a Linux image, but from I've read Bochs doesn't work too well with newer Windows Mobile?
I know I can use Putty (SSH) or VNC and such for remote Linux access, but the goal here is to get some basic version of Linux running locally. I'm not sure Haret's Android port is ready for prime time yet (from what I've read) on my specific phone (Touch Pro 2)
Does anyone have any ideas?

Related

Windows CE instalation problems

hello,
I have a hitachi g1000 with windows mobile 2002, i want to rid off from sprint win version with all functions and feature and install a normal winCE.
the problem is, I cant do that, downloaded from micrsoft website trial verision but when run setup.exe it stops and ask tell my windows on PC need some other application and etc and etc. I install one application .NET Framework 2 but still not possible to go on with setup.
I would like to know is it only with me or someone also experince similar problems, please share with me yourexperience if you have installed on your pda win CE and how.
is there any other way to install it on my hitachi, or what I'm doing wrong?
Hello dar22.
It seems you misunderstand the whole Pocket PC OS issue.
You cannot just install Windows CE because it is not a generic operating system like Windows XP.
First, Windows Mobile is a derivative of Windows CE, but it also adds some functions. Even if you could replace your OS pure windows CE cannot run most apps developed for the PPC.
Second, Windows Mobile is custom tailored for every device (so is Win CE) and the result is called ROM image. You can't just install a generic version and then add drivers because they all come together from the manufacturer.
So to conclude this:
Unless the devices OEM provides an upgrade, there is no way to change the OS.
yes I uderstand than the generic WIN CE comes without drivers for a specific PDA, but the whole idea that I don't need that pda's most of it's functions such as camera and phone functions, I need only to have WINCE on it.
Can anybody advice me how to rid off from original Windows Mobile and install instead of that pure win ce version?
I mean what applications should I have on my PC to flash my device with WIN CE?
You still haven't understood me.
When I said 'drivers' I meant such basic things like memory, touch screen, device buttons.
Even those things need specific drivers from the OEM so there is no way to install Win CE on your device, unless:
1) You can dump the original ROM and extract all the drivers.
2) You can get MS Platform Builder (full and legal version), incorporate the drivers and create a special image for your device.
(I think you actually have to be an OEM and have contract with MS for the second part)
I am not sure what you tried to install, but there is no Win CE version you can just flash to any device and it will work.
levenum, thanks for your support, what you think can I install linux instead? I just don't want to have the sprint windows version
Well, you could try looking for linux version, but I am not sure there is one for your device.
You see, for mobile devices it is pretty much the same thing with linux. OEMs do not release even the basic drivers so there are no generic OS for these devices.
There are linux projects for HP iPaqs and also xanadux project (look in the WiKi) for HTC devices, but I don't know of anything for your device.
Perhaps if you specify what exactly bugs you about the OS maybe we can recommend apps and reg tweaks to get around is.

Can we natively run Ubuntu on the Desire?

Hello,
I'm a recent Android user and I'm fascinated by this phone, much over iPhone/iOS.
I'm an old Linux dog and I was wondering about the Desire running Linux.
I've seen recently somebody started Ubuntu on the HD2 by modifying the bootloader (haret), we have the Linux kernel booting natively on the Desire, so instead of an Android image can't we just boot a linux image?
The vnc running solution is not quite what I have in mind. I want to run Ubuntu natively on the hardware so I have a few questions:
-does the desire kernel support KMS? or should I try to compile an xorg driver for the snapdragon video chipset?
-do the other drivers from the kernel can be accessed as simply as in linux? I mean in linux every driver I need is compiled in the kernel, so the desire kernel should already have all the necessary drivers in it, for wifi, touchscreen, etc, just for the sistem to use them. So can a linux use them like android does?
-r/w access I think can be bypassed as long as we boot from the sd card, I've seen the solution on this forum, correct me if I'm wrong.
-I've developed a few branch distros based on Ubuntu for my work, but all of them are x86/x64 based, so it's just package customisations, here ve have a non x86 CPU so it must all be cross-compiled, i know there are arm repos for Ubuntu, are they snapdragon compatible?
I know this area is Android development and not Ubuntu development but here are all the guys that really know something about the inners of the system.
Please pardon my English, I did my best.
afaik no one has been able to get debian running on desire.
I'd start with that if I were you.
I tried to get Debian to boot on the Desire and it turned to be impossible to boot. If you can get Debian to boot than naturally Ubuntu would boot without any issues.
I was using the VNC method though.
Well,
you can't install Ubuntu right away...
but you can make a fairly usable Linux modifying some of the available ROMs around.
The most difficulty thing is the X11 system, I don't know if there are any driver...
if android use Framebuffer, maybe you can run X11 over FB.
the rest all can be arranged... removing dalvik & core android... add basic gnome stuff, &c...
if you find some solution for dual boot and want to make a "normal" linux for HTC Desire, I can help you in this for I don't want to be flashing a custom image, then my normal "daily-use" android every now and then
It would be brilliant if we could get Maemo running on the Desire. Considering it is after all just Debian linux it should not be an impossible task. The only difficulty is drivers but that will come with time.
These days I'm busy with my exams,
I started the thread earlier than I can get to work for data/ideas collecting.
Now for what I plan on doing:
-boot a kernel and load the initial files from the sd card instead of internal flash:
h**p://forum.xda-developers.com/showthread.php?t=689911
-put a simple init script to show "hello world" and drop you to a bash prompt,
from there is Linux installing/debugging
The drivers should be provided by the kernel: /dev/eth0 or /dev/wifi0 for wifi, /dev/fb0 framebuffer, etc etc etc.

Linux

Is it possible to dual boot kit Kat and android? Does our device support linux?
Sent from my SM-N900A using Tapatalk
kitkat is android 4.4. the latest firmware is 4.4.2. android is a variant of linux.
dual boot kitkat and linux - i'm not sure.
linux in parallel - https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid
There are projects to install linux on android in various ways or to install software similar to linux desktops.
In principle, they should work on our device. But, I have tried a few, with no luck. I guess it is
because the Samsung firmware is modified. It seems to be a question of permissions.
I tried debian kit http://forum.xda-developers.com/showthread.php?t=2737935. I have
made a bit of progress since then, but it still does not work.
I tried both botbrew and botbrew basil. Neither of these worked. Always 'permission denied'.
As I said in the thread above, sometimes 'shell' can do things that 'root' cannot. Someone with
a different Samsung device was unable to install debian kit, but could do it after flashing cyanogenmod.
I want to retain S pen capabilities, so I don't want to do this. But if all these problems are really
due to the Samsung ROM....
There are some methods that don't require root. I have not tried these yet. You can look on the play store.
One difference is if you install linux in a chroot environment, or if it has access to the android files.
debian kit requires root and is not dual boot and not chroot. The
linux software is visible along with android binaries while debian kit is switched on.
I am also looking for flexible ways to transfer files over USB. No luck yet. E.g. I want to maintain a mirror of
a directory from a linux desktop to the device. Wifi is slower and not always available. There is an
app Ftp Server that allows you to ftp over USB using port forwarding with adb. Together with lftp,
this should provide a solution. But, this also fails for me. I can't be sure it is a Samsung problem.
I'd like to see an explanation of the relevant differences between Samsung and plain android.
See these threads on installing linux on Note 10.1 2014
http://forum.xda-developers.com/showthread.php?t=2590311
http://forum.xda-developers.com/showthread.php?t=2587915
http://forum.xda-developers.com/showthread.php?t=2737935

Linux & Heimdall

Just want to flash TWRP and root sm-t700 using linux anyone tried this?
Sent from my Moto G using XDA Free mobile app
Want this also. No Windows available here at home nor at work.
Thanks All
I'm also a Linux only PC user but have concluded that l have two options. One is a Windows Virtualbox environment using an old Windows OS (e.g. XP, Vista) that I own. My concern with this option is the reliability of the VM's USB connection. I have used it successfully to update firmware on a TV remote but would be more cautious in an activity which may brick an expensive device.
The more reliable option is to use a USB Hard drive bay and an old unused 30-40GB hard drive (Sata or IDE) or a 32-64GB bootable USB flash drive to install a Windows OS and boot off it just when up need Odin or KIES 3.
All of my research and reading conclude that Heidelberg and/or the Java alternative combined with recent Samsung devices are not ready yet so these other options are safer and faster to set up and use at this time.
If you do not presently have a copy of a Windows OS you likely can find a friend who has a old unused XP CD lying around.
Up to a week ago when I bought my Tab S I only had Nexus devices (10 and 5) so their Linux ADB capability made any firmware changes a breeze. Too bad Google does not enforcement ADB as a standard. Let OEM's put out their own KIES equivalents, as much of that functionality can be worked around anyway (e.g. network shares).
Sent from my SM-T800 using XDA Premium HD app
3DSammy said:
I'm also a Linux only PC user but have concluded that l have two options. One is a Windows Virtualbox environment using an old Windows OS (e.g. XP, Vista) that I own. My concern with this option is the reliability of the VM's USB connection. I have used it successfully to update firmware on a TV remote but would be more cautious in an activity which may brick an expensive device.
Click to expand...
Click to collapse
The way I understand it (I might be horribly wrong is that you should be ok if all you're going to do is to flash a custom recovery, not an entire ROM since only the recovery partition would be affected.
If you do not presently have a copy of a Windows OS you likely can find a friend who has a old unused XP CD lying around.
Click to expand...
Click to collapse
There are actually legal ways of downloading Windows for free. One is to download a copy from Microsoft itself. Google for "Windows evaluation copy". This will get you a perfectly free copy of Windows 8.1. The only catch, besides the need to register and give some personal info, is that your Windows installation will time out after 30 days, which should be more than enough time to flash a custom recovery onto your Android device.
I've also heard of a probably legal way to download a copy of Windows 7 from a licensed online distributor. This was supposed to be a backup copy of the OEM version (for those who lost or damaged their Windows installer), which needs to be activated with a valid key. However, you can run your Windows install without activation also for 30 days.
Speaking of legal, I'm actually more concerned about the legality of Odin. Does anybody have any idea who authored the software?
Odin is samsungs official software.
Microsoft also has VM images for download, which are meant for testing Internet Explorer versions... They also have limited lifetime, but if you want a VM it's a faster option.
Too lazy to Google for the url, cause I'm on the phone and all
EDIT: http://dev.modern.ie/tools/vms/
Real or virtual Windows is the only way to go. Heimdall or anything that uses its code doesn't work on the tab s.
fred_be9300 said:
Microsoft also has VM images for download, which are meant for testing Internet Explorer versions... They also have limited lifetime, but if you want a VM it's a faster option.
Too lazy to Google for the url, cause I'm on the phone and all
EDIT: http://dev.modern.ie/tools/vms/
Click to expand...
Click to collapse
Seems to be the better option if you don't want to bother with the process of virtual disk setup and OS installation. Like you said it's also a much smaller download if you choose the IE6 on XP VM (1GB vs. the 3GB+ needed for Windows 7/8). But does the VM copy actually provide USB access? I'm asking because I usually use KVM/QEMU rather than VirtualBox, which is quite hard to set up from the command line compared to KVM.
Gondwanaland said:
But does the VM copy actually provide USB access?
Click to expand...
Click to collapse
I don't know. I guess that's depends more on the features of the VM player software (VMware, kvm, VirtualBox, ..) than on the VM. I've never tried using USB within a VM.
fred_be9300 said:
I don't know. I guess that's depends more on the features of the VM player software (VMware, kvm, VirtualBox, ..) than on the VM. I've never tried using USB within a VM.
Click to expand...
Click to collapse
USB's working fine. I just checked with the IE8 on WinXP image for Virtualbox, which I ran under KVM! Tip for KVM users the zip archive contains a file with an .ova extension. This appears to be a standard Unix tar archive that in turn contains two files with .vdmk and .ovf extensions. The .vdmk file is the Virtualbox image that you can run through KVM in read-only mode. If you want to save changes, you need to convert the image to KVM's native qcow2 format. Note: I only tested if Odin can recognize a Samsung device is connected. I haven't actually tried flashing an image, yet.
Gondwanaland said:
... Note: I only tested if Odin can recognize a Samsung device is connected. I haven't actually tried flashing an image, yet.
Click to expand...
Click to collapse
If you attempt to flash please post your results either way, thanks.
Sent from my SM-T800 using XDA Premium HD app
Successful Odin flashing from a Virtualbox VM
I have successfully flashed Samsung stock firmware to a SM-T800 from a Virtualbox Windows 7 VM guest with Odin v3.10 and a Ubuntu 14.04 host. The guide is general to Windows VMs. I set up both an XP and Windows 7 which had both KIES3 and Odin v3.10 access to the SM-T800 but only flashed with the Win7 VM.
[How-To] Linux, Virtualbox and ODIN for your Samsung device
Also I rooted without tripping KNOX using this guide:
[GUIDE] How to root without tripping knox - Kitkat and Lollipop, Locked bootloader
It's also quite easy to create a bootable version of Windows on a usb drive.
Use Heimdall, worked for me
lucasavalos said:
Just want to flash TWRP and root sm-t700 using linux anyone tried this?
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
I just installed TWRP 3.1.1; then Lineage 14.1
Here's my setup:
Target: SM-T700
Workstation: Arch Linux, system update 2011-11-11
Heimdall 1.4.2
Run heimdall command line as root, one command per boot works and if I got an error I needed to unplug the battery to get another successful command
Try
Code:
#heimdall print-pit
and if that works and reboots your device then
Code:
#heimdall flash --RECOVERY twrp-3.1.1-0-klimtwifi.img --no-reboot
Then unplug the battery, boot straight to recovery; failing recovery boot on first try overwrites your TWRP recovery image.
Good luck!
Unplug the battery? On a T700? Interesting lol.

Root on non Windows PC?

Hi, I do not have access to a Windows PC, so was wondering if anyone knows/has figured out how to use OS X or some form of linux to root the G4.
Thanks.
d oyou go to school or have access to library? SAFEST method would be to eaither download programs required and just go to a public windows library and root from there. IF that cant be done, next best thing is to try windows on linux with Virtual maching or using Wine. same thing with Mac OS, get a virtual machine that acts as windows
Zion Lion, did you ever find any resources for rooting on a non-Windows machine? I have a mac and libraries (at least locally) don't allow you to plug anything in to their computers, and I'm not going to purchase a license for Windows just to root a phone.

Categories

Resources