Another QEMU and BOCHS ports for android - Android Apps and Games

Here: http://4pda.ru/forum/index.php?showtopic=172093 and here: http://4pda.ru/forum/index.php?showtopic=169480 I've posted my own ports of QEMU and BOCHS emulators for android. Pages are in russian.
Both builds are tested on HTC Desire. May run on android 1.6+, but lots of RAM is a requirement. Need VGA+ screens, otherwise text would be unreadable.
Direct links:
http://rapidshare.com/files/393889645/BOCHS_arm_android.rar
Mod Edit: No Windows images allowed
Installation:
1. install APK from archive
2. copy SDL directory from archive to the root of storage card
3. run. If it don't run - look into ADB log. And don't ask me for help.
BOCHS is too slow to be useable, but very stable.
QEMU is really fast - but buggy. SB16 emulation is working, but no MIDI music. FPU emulation is incorrect/incomplete, so it may cause some programs not to run or behave strangely. Network is not working. Keyboard/mouse emulation is far from perfect.
Windows 9x would work in QEMU if you'll disable 32-bit disk drivers in it. This is a bug in Android (pread/pwrite functions are not working). Windows 9x speed is really fast.
This QEMU build is based on 0.9.1, newer versions have bugs in ARM TCG and can't boot Windows or similar OS.
I would not continue working on these 2 projects. If anyone is interested - I'll provide all sources and some information on building. Knowledge of C++, ARM and x86 asm is required.
Added:
Here: http://rapidshare.com/files/394622580/qemu-0.9.1-28may.rar are QEMU sources. To build them you'll need SDL (http://rapidshare.com/files/392358441/SDL-1.2.14-28may.rar and http://rapidshare.com/files/392358604/SDL-java_part-28may.rar - native and java parts) and GCC 3.4.6 (http://rapidshare.com/files/392357170/android-gcc-346.rar). Newer GCC nor NDK cannot be used to build QEMU 0.9.1. This GCC archive already contains a prebuilt SDL library.
Compiler and my SDL port are discussed here: http://4pda.ru/forum/index.php?showtopic=172092
After compiling QEMU you'll need to copy i386-softmmu\qemu as SDLapp\libs\armeabi\libnativeapp.so in the java part of SDL project, then recompile java part.
GCC installation: first install CygWin, then extract archive to /android directory in CygWin, then add its 'bin' directory to CygWin path like this: export PATH=/android/bin:$PATH
To build projects just cd to directory with sources and "make". Java part of SDL is a normal Eclipse project.

Nice work and thanks... but why won't you continue with this project?

Just tested the QEMU build on my Desire... WOW! Windows 95 is running really fast... I think you or someone else should continue with this project...
Just imagine getting network connection running... we could use vnc to connect to the machine from a remote computer!

Any chance of some different mirrors? Rapid**** hates me...

I tested the 98 version.
it says that the harddrive is not fat32 formatten.
and thasn a russian dos version.
does someone have the 95 version and upload to megaupload.

d3sm0nd said:
Just tested the QEMU build on my Desire... WOW! Windows 95 is running really fast... I think you or someone else should continue with this project...
Just imagine getting network connection running... we could use vnc to connect to the machine from a remote computer!
Click to expand...
Click to collapse
Couldnt you just install vnc on the phone?

what can i say?
I'm freakin amazed!!
qemu works flawlessly, great work.

Added sources to the first post.
To compile them you'll need CygWin and my compiled version of GCC 3.4.6. Compilers from NDK cannot be used.

This is wonderful! My nexus runs 95 better than my old 386sx33 that I used to waste countless hours playing doom on a local bbs.
thanks!

pretty freaking cool

Windows 95 runs smooth as butter after about 5 mins of use. Surprisingly fast!
It's brilliant!

What, no solitaire?

I read a post similar to this somewhere (cannot even remember which forum!) and the guy had posted windows 95 and windows 98 images in russian and english.
Does anyone recall seeing this anywhere? I'd like to snag a pre-packaged windows 98 image to play with on my android

To answer my own question, I found the link.
This post gives English images of both 95 and 98 ready to go...
http://forum.xda-developers.com/showthread.php?t=694105

Did someone try BOCHS build on Froyo? It should be running much faster...

How to boot Windows 98 and Windows ME
1. Download the tool Winimage
2. Download VMWare and create a clean Windows 98 or Me on a partition like 600MB
3. Open the file c.img from mamaich's folder in Winimage. Extract the whole image to a new folder and skip the files with error messages.
4. In Winimage click on Disk => Convert Hirtual Hard Disk image. Select the vhd from VMWare you created. Select: Convert to ima.
5. Rename the new image from .ima to .img.
6. Open the .img in Winimage. Drag and drop the folder "3" and all the files from the root folder from the extracted c.img to your image. don't overwrite files when he asks you, because i didn't try to find out which of the original files from mamaich are really needed.
7. Save the image, copy and overwrite the original c.img from mamaich.
8. Start libSDL and have fun with Win98 or ME. But you should know: Compared to Win95, it's really slow.
You can use other languages from Windows too now!
Chears!

Does win 95 and 98 work on htc hero??

sc0rpp said:
Does win 95 and 98 work on htc hero??
Click to expand...
Click to collapse
you will have to test and try yourself, from what i know, it has only been tested on a nexus one and htc desire

sc0rpp said:
Does win 95 and 98 work on htc hero??
Click to expand...
Click to collapse
It would but i'd expect it to be very very slow.

Hi,
I'm running on Xperia X10i and I have a JNI error each time I launch your apps:
Code:
I/ActivityManager( 982): Start proc libSDL.jni for activity libSDL.jni/.libSDL: pid=9060 uid=10151 gids={1015, 3003}
E/dalvikvm( 9060): Could not find method android.view.MotionEvent.getPointerCount, referenced from method libSDL.jni.libSDL.onTouchEvent
W/dalvikvm( 9060): VFY: unable to resolve virtual method 48: Landroid/view/MotionEvent;.getPointerCount ()I
W/dalvikvm( 9060): VFY: rejecting opcode 0x6e at 0x003f
W/dalvikvm( 9060): VFY: rejected LlibSDL/jni/libSDL;.onTouchEvent (Landroid/view/MotionEvent;)Z
W/dalvikvm( 9060): Verifier rejected class LlibSDL/jni/libSDL;
W/dalvikvm( 9060): Class init failed in newInstance call (LlibSDL/jni/libSDL;)
W/dalvikvm( 9060): threadid=3: thread exiting with uncaught exception (group=0x2aadda10)
E/AndroidRuntime( 9060): Uncaught handler: thread main exiting due to uncaught exception
Maybe it's because Xperia is running on Android 1.6 ?

Related

help porting a linux program to the android

hi all
i have created a custom rom for myself because i want to add a linux program: scanmem
i have copied the file in system/xbin
using this guide http://lukasz.szmit.eu/2009/12/making-your-own-rooted-android-rom.html on step6 for su command
the problem is that doesn't work ...
when i open a terminal in my desire and type :
su
scanmem
i receve this message:
scanmem: 1: syntax error: "(" unexpected
any help, suggestion ? scanmem is compiled for i386 32bit
kiokoman said:
any help, suggestion ? scanmem is compiled for i386 32bit
Click to expand...
Click to collapse
There's your problem.
Code:
[email protected]:/tmp$ file busybox
busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.14, stripped
[email protected]:/tmp$
If you don't have the source, time and a cross-compiler, you have a problem It's also Little Endian from memory.
This is the busybox binary I tested in case you want to strip it down: http://benno.id.au/blog/2007/11/14/android-busybox
i found a lot of information with google
http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html
i have the source maybe i can compile for arm
kiokoman said:
i found a lot of information with google
http://www.kbrandt.com/2009/06/how-to-cross-compile-the-bash-shell-for-android-15.html
i have the source maybe i can compile for arm
Click to expand...
Click to collapse
Precisely. You should also check the dependencies (if any) and make sure you cross-compile those too.
jayshah said:
Precisely. You should also check the dependencies (if any) and make sure you cross-compile those too.
Click to expand...
Click to collapse
oh my god
depends on libc6 and readline6, i have to cross-compile half gnu/linux
out of my hand
Shame :/
Why did you need it anyway? Perhaps there is another way for what you want to achieve.
jayshah said:
Shame :/
Why did you need it anyway? Perhaps there is another way for what you want to achieve.
Click to expand...
Click to collapse
i think it was an easy program to port and with a frontend for android I would have used it as the first cheats system like cheat engine for pc
I made this. I compile scanmem fo my android phone (p500) from sourses.
He even gets up and running, but not quite.
Opt for a process (pid command)
It finds regions of memory. But during the search, crashes ". bus Error"
Maybe it's because of the specificity of an android, or due to the fact that I had to change all calls to readline lib, because otherwise the project will not compile.
I will continue to watch and understand ...
Done. Scanmem works fine on my phone.

Debian Linux one-click installer for Motorola Defy - now with lxde desktop!

This is my one-click installer to get debian linux 5.0 working on Defy.
Here we go, debian with desktop and all the graphic stuff!
FIXED - NEW APK - Tested on different Froyo roms: China 0.26, CEE 3.4.2-155, Finnland
New faster mirror: http://dogsr.us/debian-img.zip
Many thanks to texasice
1) copy the apk to your phone, install, open the app
2) click "download debian-img.zip" (wifi recommended)
3) click "install debian"
4) done
Terminal emulator not required!
but this time you need androidVNC (android-vnc-viewer) in order to display the lxde desktop.
So, make sure to install androidVNC - it's free, available on the market too - then start with debian installation.
The installation process will take several minutes, so, be patient
Once debian is installed press "boot debian" button, you'll be automatically redirected to androidVNC:
to access the debian desktop provide the data listed below then click "Connect".
Important: Let some debian stuff load, wait 5-10 seconds before clicking "Connect"
Password: password
Address: localhost
Port: 5901
Et voilà, you'll get debian-lxde on your defy, ready to run your favorite linux apps.
Once done, make sure to close debian properly, this is important:
from the androidVNC menu click "Disconnect", go back to DebOnDroid and click "quit debian" button.
* You may need to click "quit debian" twice in some cases.
As you can imagine, to remove debian just click "remove debian".
This will delete debian image and links, not the downloaded zip file (which can be used again). This file is placed in /sdcard/debian/, can be deleted manually.
Note:
You need 1,83Gb free on sdcard (1,5 for debian image + 339 for installation file).
debian-img.zip (339mb - file hosted on scdevs.com) contains the image of debian filesystem.
Once extracted the image size is 1,5Gb, so the "disk space" available for debian will be 1,5Gb.
All stuff is in the storage card, even if you download and install new linux apps no space in the defy's main storage is taken.
The storage card is accessible from debian too.
If you prefer to download the compressed image file (debian-img.zip) from PC, here are a couple of links:
http://dogsr.us/debian-img.zip
http://www.scdevs.com/debondroid/debian-img.zip
The downloaded file must be placed in "/sdcard/debian", so make a folder called "debian" in the root of the sdcard and copy the file there.
Credits to cocus, me, and many other guys who share info over the net.
enjoy!
Please post feedbacks, even if it works or not, it works flawlessy on my Defy and i wish to know how it works on different (Defy) roms.
euro beers
american beers
hey, im not really into that linux stuff, but im curious.
is it (theoretically) possible to create a linux based OS/GUI for the defy?
so that the phone doesnt run on android but linux?
i can imagine that this is nearly impossible because of all the drivers and stuff...
what was your intention to use linux for on the defy anyway?
reinsen said:
hey, im not really into that linux stuff, but im curious.
is it (theoretically) possible to create a linux based OS/GUI for the defy?
so that the phone doesnt run on android but linux?
i can imagine that this is nearly impossible because of all the drivers and stuff...
what was your intention to use linux for on the defy anyway?
Click to expand...
Click to collapse
hi, the final goal is getting a linux GUI able to use the mobile's graphic chip. Some attemps has been made, take a look here (thx to cocus for this link):
http://labs.igep.es/index.php/How_to_get_the_Ubuntu_distribution
At the moment you can have a linux GUI in your phone but it is only accessible via vnc (running locally in your phone) due to linux has not access to the graphics on android.
Running debian on our defy is not so useful but definitely interesting, however, some cool stuff can be done, for example you can use the command
"apt-get install ..."
which is a powerful tool to download and install new linux packages, in this case you'll get those packages installed on your phone.
Right now i used apt-get to install the gftp tool (ftp client for linux) in my defy, it works perfectly, although i have to use the command line
reinsen said:
hey, im not really into that linux stuff, but im curious.
is it (theoretically) possible to create a linux based OS/GUI for the defy?
so that the phone doesnt run on android but linux?
i can imagine that this is nearly impossible because of all the drivers and stuff...
what was your intention to use linux for on the defy anyway?
Click to expand...
Click to collapse
For the GUI: The hardware of the Defy is THE SAME of the BeagleBoard xM (http://beagleboard.org/hardware-xM). I've installed X11 on my defy, and the video driver for the OMAP3 FrameBuffer device (kind of extension for Xorg desktop (x11)).
As the Kernel of Defy firmware currently loads the driver, we really dont have to hack anything. (I think)
In fact, it doesn't work at all, but at least, the screen goes black, and the X11 omap3 driver detects the graphic device. There are some kind of fail initliazing the "plane":
Code:
(EE) omapfb(0): OMAPFBScreenInit: Plane setup failed: Invalid argument
Fatal server error:
AddScreen/ScreenInit failed for driver 0
And if I run it again:
Code:
(EE) omapfb(0): Driver can't support depth 24
(EE) Screen(s) found, but none have a usable configuration.
Fatal server error:
no screens found
Now, I've reached another error, I think its a stupid error, because the driver relies on the boot arguments... And I think it is impossible to add or modify any argument on the boot.
Code:
(II) LoadModule: "omapfb"
(II) Loading /usr/lib/xorg/modules/omapfb_drv.so
(II) Module omapfb: vendor="X.Org Foundation"
compiled for 1.7.4, module version = 0.1.1
ABI class: X.Org Video Driver, version 6.0
(II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:
omap1/2/3, S1D13745, HWA742
(WW) Falling back to old probe method for OMAPFB
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(II) Running in FRAMEBUFFER Mode
(WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory
(WW) Can't autodetect LCD controller, assuming internal
(II) LCD controller: internal
(II) omapfb(0): VideoRAM: 0KiB (SDRAM)
(II) omapfb(0): Creating default Display subsection in Screen section
"Builtin Default fbdev Screen 0" for depth/fbbpp 16/16
(**) omapfb(0): Depth 16, (--) framebuffer bpp 16
(==) omapfb(0): RGB weight 565
(==) omapfb(0): Default visual is TrueColor
(--) omapfb(0): Virtual size is 0x0 (pitch 0)
(**) omapfb(0): Built-in mode "current"
(==) omapfb(0): DPI set to (96, 96)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 1.7.7, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.4
Backtrace:
Floating point exception at address 0x2938
Fatal server error:
Caught signal 8 (Floating point exception). Server aborting
reinsen said:
hey, im not really into that linux stuff, but im curious.
is it (theoretically) possible to create a linux based OS/GUI for the defy?
so that the phone doesnt run on android but linux?
i can imagine that this is nearly impossible because of all the drivers and stuff...
what was your intention to use linux for on the defy anyway?
Click to expand...
Click to collapse
Let me make your day...Android IS Linux and you are using it right now.
amazing work !
at last, can we use linux apps on our android system?
xjlfu said:
amazing work !
at last, can we use linux apps on our android system?
Click to expand...
Click to collapse
Once you get into the debian shell you can download, install and use any linux package. But note, you won't have graphic UI, it's just console. This means it's better to install stuff that works with command line.
Soon an new installer for debian + lxde (GUI for debian) should be ready, you will be hooked to a vnc to see the GUI and all the apps with graphic UI ... i will post it as soon as possible
xdaid said:
Once you get into the debian shell you can download, install and use any linux package. But note, you won't have graphic UI, it's just console. This means it's better to install stuff that works with command line.
Soon an new installer for debian + lxde (GUI for debian) should be ready, you will be hooked to a vnc to see the GUI and all the apps with graphic UI ... i will post it as soon as possible
Click to expand...
Click to collapse
thanks for your great works
if it can work find , it will easy to port Linux apps to android plantform, isnt it?
Sent from my MB525 using XDA App
Waiting that new version...
xdaid said:
Here is my one-click installer to get debian linux 5.0 working on Defy.
So far it's console only, but i'm planning a debian + lxde installer.
- copy the apk to your phone, install, open the app
- click "download debian.img.bz2" (wifi recommended)
- click "install debian"
- done
Note:
You need 890mb free on sdcard.
debian.img.bz2 (90mb - file hosted on scdevs.com) contains the image of debian filesystem.
Once extracted the image size is 800mb, so the "disk space" available for debian will be 800mb.
The installation process will take several minutes, so, be patient
As you can imagine, to remove debian just click "remove debian".
This will delete debian image and links, not the downloaded bz2 file (which can be used again). This file is placed in /sdcard/debian/, can be deleted manually.
All stuff is in the storage card, even if you download and install new linux tools no space in the defy's main storage is taken.
Last note, the storage card is accessible from debian too.
Credits to cocus, me, and many other guys who share info over the net.
enjoy!
Please post feedbacks, even if it works or not, it works flawlessy on my Defy and i wish to know how it works on different (Defy) roms.
euro beers
american beers
Click to expand...
Click to collapse
Hey, I've tested Squeeze, and it works nicely. Even LXDE and all the stuff related.
Still waiting...
Perilla_ said:
Still waiting...
Click to expand...
Click to collapse
Still working.. but almost done.
I had a little issue to make the underlaying terminal coexist with the lxde term, now solved.
Atm all it's working but i'm looking for a better way, i'd like to launch debian with no terminal interface, so the user can go directly to the vnc once "boot debian" button is pressed.
Nice nice I only want some info about if it was going.
Thanks for your work
Thank you for this work!
Can you please implement an option to choose this VirtualImage-size?
Sry for double-posting but I have an interesting question:
Can we chmod an Android2.3-system using this method?
This would be very great because so we could experiment with newer kernels etc.
m11kkaa said:
Sry for double-posting but I have an interesting question:
Can we chmod an Android2.3-system using this method?
This would be very great because so we could experiment with newer kernels etc.
Click to expand...
Click to collapse
honestly i have no idea but, in my opinion, there's no chance to chroot android2.3 for 2 reasons:
1) debian provides all the tools you need to build a filesystem image which can be mounted easily
2) I think android is not so "open" as debian, i mean, probably gingerbread will detect the underlaying eclair or froyo and won't boot at all (but, i can be wrong, i never tried such a thing).
after downloading image, the install process wont start, (nothing happens).
- term emu and your installer have su rights.
- running jboogie3 orange
????
dbk3r said:
after downloading image, the install process wont start, (nothing happens).
- term emu and your installer have su rights.
- running jboogie3 orange
????
Click to expand...
Click to collapse
a dialog with a message should appear, even when the installation fails..
i'm trying to figure out what goes wrong after you press the install button.
Tested on Eclair EU deblur, France and (modded) Froyo China, the installation starts all the times, but not tested on jboogie3
PS. is busybox properly installed?
Does anyone know, if there is an ARM-version of XAMPP/LAMPP or anything else?
Because it's very much work to install and configure everything myself.
Edit: I did it myself now. The problem were the user-setting in the mysql-server but now it works very well.
Edit2: Ther semms to be some right-problems. I have to run the server (mysql, apache2) as root so they can start.
Is there any solution?
xdaid said:
a dialog with a message should appear, even when the installation fails..
i'm trying to figure out what goes wrong after you press the install button.
Tested on Eclair EU deblur, France and (modded) Froyo China, the installation starts all the times, but not tested on jboogie3
PS. is busybox properly installed?
Click to expand...
Click to collapse
Busybox is not installed
Dialog..installin Debian appears and disappers a second later
Sent from my MB525

[java][debian][armv6][jre1.6][jdk 7] [jdk 8]

woo, I found this gem on a search and ended up at talk.maemo.org in the n900 section.
oracle released an armv6/armv7 headless 1.6 jre binary set! way back in april, but I hadn't seen it until today.
works in debian squeeze on my armv6 (msm7627) optimus v... it runs, but I haven't put it through its paces yet for any real testing.
I thought someone might enjoy this since for a long time it was really hard to find a jre for arm debian except for icedtea, which isn't as compatible with some things as the oracle release hopefully is.
here is the post including a download link for the jre.
another post by the same user points to an arm-friendly java7 download as well.
thank you Fabry.
official Oracle java jdk now released for ARM Linux!
download page
editbsolete.
since the sun java6 jdk is available for download to arm devices through debian apt-get, but it has a set of binaries which won't work on the armv6, someone enterprising might be able to patch the jre binaries into the jdk for a usable armv6 jdk.
/end edit
edit:
to use the 1.6 jre...
download it from Oracle
copy it to /opt in your armel debian install (or chroot)
untar it there
Code:
cd /opt
tar -xzvf ejre-1_6_0_25-fcs-b06-linux-arm-vfp-eabi-headless-14_apr_2011.tar.gz
ln -s /opt/java/ejre1.6.0_25/bin/java /usr/bin/java
thank you Dak.
after that, you should be able to use java at the command line.
further down in the first linked thread are instructions for linking the jre to fennec, probably adaptable to iceweasel.
edit:
newer JDK!
JDK 8 (with JavaFX) for ARM Early Access
for armv6 hard float applications. Installation instructions for the Raspberry Pi are linked from that page. You have to accept a license agreement.
I know this was quite a long time ago, but you state that sun-java6-jdk is in debian repositories for arm, but I am not finding it.
Is there a download link for sun-java6-jdk on arm?
Hope you see this.
Take care man. And thanks for the great info!
DiehlC said:
I know this was quite a long time ago, but you state that sun-java6-jdk is in debian repositories for arm, but I am not finding it.
Is there a download link for sun-java6-jdk on arm?
Hope you see this.
Take care man. And thanks for the great info!
Click to expand...
Click to collapse
It showed up back then when google searching for the package, but apt-get won't bring it in because of the jre dependency it can't fulfill.
they must've realized and removed it.
It may be possible to get the x86 .deb and repack it with the jre binaries or something... I actually had it installed on some chroot on my android phone to try building the android emulator on-device (which eventually worked, but the dang thing wouldn't boot in qemu.)
I'll dig around and see if I've still got it, but no guarantees.
bigsupersquid said:
It showed up back then when google searching for the package, but apt-get won't bring it in because of the jre dependency it can't fulfill.
they must've realized and removed it.
It may be possible to get the x86 .deb and repack it with the jre binaries or something... I actually had it installed on some chroot on my android phone to try building the android emulator on-device (which eventually worked, but the dang thing wouldn't boot in qemu.)
I'll dig around and see if I've still got it, but no guarantees.
Click to expand...
Click to collapse
I reolize this topic is a bit older but thought it would be worth letting you all know that installing orical's Java is way easier on Android running Linux. I've been at it awile and have a script set up to fully install the soft float version of JDK 7 and am working on a downloader script (it is actually a tall order reliably downloading the source from orical reliably) to incorperate in when debugged. Eventually I'll be testing/writing one for hard float versions too but for now you all can find what has been tested as working with "Debian Kit" from here https://github.com/S0AndS0/Debian-Kit-Mods check the readme for how to modify for your preferred version of Java and enjoy
Update 02272014- the java downloading script I mentioned earlier is now ready for testing; you may use it to download jre or jdk either hard float or soft float (4 options) and the installer script has been updated for soft float jdk version 7u51. I'll be working on making the download script call up the installer scripts today too
Update 03032014- try the "ARM_Linux_Mods" script in the above github; it will step you through the download and installation of Java JDK soft or hard float.
bigsupersquid said:
woo, I found this gem on a search and ended up at talk.maemo.org in the n900 section.
oracle released an armv6/armv7 headless 1.6 jre binary set! way back in april, but I hadn't seen it until today.
works in debian squeeze on my armv6 (msm7627) optimus v... it runs, but I haven't put it through its paces yet for any real testing.
I thought someone might enjoy this since for a long time it was really hard to find a jre for arm debian except for icedtea, which isn't as compatible with some things as the oracle release hopefully is.
here is the post including a download link for the jre.
another post by the same user points to an arm-friendly java7 download as well.
thank you Fabry.
official Oracle java jdk now released for ARM Linux!
download page
editbsolete.
since the sun java6 jdk is available for download to arm devices through debian apt-get, but it has a set of binaries which won't work on the armv6, someone enterprising might be able to patch the jre binaries into the jdk for a usable armv6 jdk.
/end edit
edit:
to use the 1.6 jre...
download it from Oracle
copy it to /opt in your armel debian install (or chroot)
untar it there
Code:
cd /opt
tar -xzvf ejre-1_6_0_25-fcs-b06-linux-arm-vfp-eabi-headless-14_apr_2011.tar.gz
ln -s /opt/java/ejre1.6.0_25/bin/java /usr/bin/java
thank you Dak.
after that, you should be able to use java at the command line.
further down in the first linked thread are instructions for linking the jre to fennec, probably adaptable to iceweasel.
edit:
newer JDK!
JDK 8 (with JavaFX) for ARM Early Access
for armv6 hard float applications. Installation instructions for the Raspberry Pi are linked from that page. You have to accept a license agreement.
Click to expand...
Click to collapse
I'm working on AOSP. I copied all extracted tar file to somewhere inside system folder. When I type
Code:
java -version
It says:
Code:
/system/bin/sh: java: No such file or directory
But it exist!
In other side, I typed
Code:
ln -s /system/ejre1.6.0_25/bin/java /usr/bin/java
and it said:
Code:
4 /system/linux_arm_sflt/jre/bin/java 4 /system/bin/java
What should I do now?
UPDATE:
When I run java directly Or symbolink), it says:
Code:
/system/bin/sh: java: can't execute: Permission denied
And when I run it with busybox, it says:
Code:
java: applet not found
UPDATE:
Even when I root my device, I get above errors.
dr_jacky_2005 said:
thank you Dak.
after that, you should be able to use java at the command line.
further down in the first linked thread are instructions for linking the jre to fennec, probably adaptable to iceweasel.
edit:
newer JDK!
JDK 8 (with JavaFX) for ARM Early Access
for armv6 hard float applications. Installation instructions for the Raspberry Pi are linked from that page. You have to accept a license agreement.
I'm working on AOSP. I copied all extracted tar file to somewhere inside system folder. When I type
It says:
But it exist!
In other side, I typed
and it said:
What should I do now?
UPDATE:
When I run java directly Or symbolink), it says:
And when I run it with busybox, it says:
UPDATE:
Even when I root my device, I get above errors.
Click to expand...
Click to collapse
you have to run Java in a Linux chroot.
Android shell can't handle it (system/bin/sh is definitely Android path)
bigsupersquid said:
you have to run Java in a Linux chroot.
Android shell can't handle it (system/bin/sh is definitely Android path)
Click to expand...
Click to collapse
What do you mean by run it in a Linux chroot?
If you means run it after type SU command, I did.
I root my device, then I can use su command in shell.
But if you means something else, please explain more in detail.
Thanks.
dr_jacky_2005 said:
What do you mean by run it in a Linux chroot?
If you means run it after type SU command, I did.
I root my device, then I can use su command in shell.
But if you means something else, please explain more in detail.
Thanks.
Click to expand...
Click to collapse
here's an example of how to use a chroot for Nexus 10
you can also look up lil debi, linuxonandroid, and variations of "chroot (debian, Ubuntu) on Android" with Google, for more information.
bigsupersquid said:
here's an example of how to use a chroot for Nexus 10
you can also look up lil debi, linuxonandroid, and variations of "chroot (debian, Ubuntu) on Android" with Google, for more information.
Click to expand...
Click to collapse
All of these installed a virtual Linux that can access with VNC!
But I want to put java binary and its libraries in my Android source, and compile it; then run my jar file with for wxampel installed terminal amulator.apk, or from PC (adb shell command).
Is that possible?
dr_jacky_2005 said:
All of these installed a virtual Linux that can access with VNC!
But I want to put java binary and its libraries in my Android source, and compile it; then run my jar file with for wxampel installed terminal amulator.apk, or from PC (adb shell command).
Is that possible?
Click to expand...
Click to collapse
probably not. the Java binary relies on Linux libraries, like libc instead of bionic. not seen anything about running Java under Android except for their dalvik java.
bigsupersquid said:
probably not. the Java binary relies on Linux libraries, like libc instead of bionic. not seen anything about running Java under Android except for their dalvik java.
Click to expand...
Click to collapse
Do you mean if I install a buildroot on my device, or pure linux from first (there is no android on my device anymore), then I can use JRE for armv7 and run a jar with GUI?
dr_jacky_2005 said:
Do you mean if I install a buildroot on my device, or pure linux from first (there is no android on my device anymore), then I can use JRE for armv7 and run a jar with GUI?
Click to expand...
Click to collapse
I've not had tons of luck getting Linux to run natively on devices, but if you can do it, yes that should work.
i like enlightenment as gui (e17) for debian on mobile device, if you're going that way.

[R&D] Writing custom Gear 2 roms, starting with the source.

As the most of you probably know the Gear 2's sources are released by Samsung over here: http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=r381
Are there amongst you who already started the development of custom software for this device or who have experience with Tizen's source code?
What I want to know right now:
How do I compile these sources?
Found information:
I found this guide (https://source.tizen.org/documentat...ctions/creating-tizen-images-scratch-one-page) which describes how to compile Tizen from scratch.
[UPDATE: 21/6/14] So we figured out you need a 32 bit Ubuntu install to be able to compile these files.
How can I push the compiled code to the Gear 2?
Found information:
Probably the tools provided with the Tizen SDK have the ability to create a rom package which we can deploy (Am I right here?) to the Smartwatch with Odin (http://forum.xda-developers.com/gal...08-2013-odin-3-09-odin-1-85-versions-t2189539). For the people unfamiliar with flashing watches (like me), here is how you set the watch in download mode: https://www.youtube.com/watch?v=EXT7kr3j2Ac.
Where do I have to start modding these sources to eventually be able to create an open platform for the Gear 2?
All help is appreciated!
Thanks
We probably have to see if we can even flash anything without modifications
CovXX said:
We probably have to see if we can even flash anything without modifications
Click to expand...
Click to collapse
This weekend I'm going to experiment with the source to see if I can compile it. I'll keep ya updated on the progress!
Corstian said:
This weekend I'm going to experiment with the source to see if I can compile it. I'll keep ya updated on the progress!
Click to expand...
Click to collapse
have you made any progress ??? even at emulated level ????
gav-collins1983 said:
have you made any progress ??? even at emulated level ????
Click to expand...
Click to collapse
I was stuck on compiling the source. My Ubuntu installation gives errors which say that it can't execute binary files. Also, on my primary PC I don't have enough free space on my hard disk to install Ubuntu. So after a while other stuff came through and I stopped trying around.
Whatsoever, I still have Gear 2 which is useless to me and you just motivated me to continue the journey
Btw, all help is appreciated
Corstian said:
I was stuck on compiling the source. My Ubuntu installation gives errors which say that it can't execute binary files. Also, on my primary PC I don't have enough free space on my hard disk to install Ubuntu. So after a while other stuff came through and I stopped trying around.
Whatsoever, I still have Gear 2 which is useless to me and you just motivated me to continue the journey
Btw, all help is appreciated
Click to expand...
Click to collapse
I have linux kali set up. On a vm on one of my machines. But I've only just started to learn linux. And my god there is a lot to learn. Once I get my wireless adaptor running in kali. Which I've had a little trouble with. And not a lot of time . I can maybe help. Even if it means installing Ubuntu onto another of my laptops . I just feel a little useless not knowing all the jargon for Linux as yet. Cmd is complicated even with Google help. I have a windows 7 a windows 8 and an Xp machine if it helps
gav83collins said:
I have linux kali set up. On a vm on one of my machines. But I've only just started to learn linux. And my god there is a lot to learn. Once I get my wireless adaptor running in kali. Which I've had a little trouble with. And not a lot of time . I can maybe help. Even if it means installing Ubuntu onto another of my laptops . I just feel a little useless not knowing all the jargon for Linux as yet. Cmd is complicated even with Google help. I have a windows 7 a windows 8 and an Xp machine if it helps
Click to expand...
Click to collapse
Practically the only thing you have to know is how the commands within the terminal works. Also, I can recommend you to already start downloading the source from the Samsung Opensource site (Search for SM-R380) as the download is very slow (1.3 Gb at 40 Kb/s). With the source, a guide is provided which exactly tells you how to compile it. Read this guide very carefully when trying to set up your environment!
Furtheron, once we're able to compile it all we can try to modify the source. I really don't know your coding skills but please notice this isn't a project to learn how to code. But for now, lets try to compile it all.
I'm out camping in the sticks at the moment. But once um home il look into it
ok dude im home, and im downloading, the sm-r380 --- sm r381 source code, i have the standalone sbd, but im gonna need the sdk too i imagine, so il grab that too, now to wait
edit.....
oh i see windows 8 isnt supported, this is my main machine, my win 7, is my wired media centre into my tv/av reciever......
gonna try running in compatibility for win 7 on my win 8 machine, fingers crossed, if not, il create a second linux vm, next to kali, ubuntu of course
gav83collins said:
ok dude im home, and im downloading, the sm-r380 --- sm r381 source code, i have the standalone sbd, but im gonna need the sdk too i imagine, so il grab that too, now to wait
edit.....
oh i see windows 8 isnt supported, this is my main machine, my win 7, is my wired media centre into my tv/av reciever......
gonna try running in compatibility for win 7 on my win 8 machine, fingers crossed, if not, il create a second linux vm, next to kali, ubuntu of course
Click to expand...
Click to collapse
I'd STRONGLY recommend you to run Ubuntu (12.04) for your build environment to prevent unnecessary hassle.
I'm downloading and installing an Ubuntu 12.04 AMD64 build. I guess, and hope, that the errors I got during my first time trying were because I used a x86 build of Ubuntu.
Corstian said:
I'd STRONGLY recommend you to run Ubuntu (12.04) for your build environment to prevent unnecessary hassle.
I'm downloading and installing an Ubuntu 12.04 AMD64 build. I guess, and hope, that the errors I got during my first time trying were because I used a x86 build of Ubuntu.
Click to expand...
Click to collapse
, ive had no errors installing the sdk i just toubleshooted compatibility first, and updating the repos, was pretty straight forward, i too am on an amd 64 bit windows,,,,,,,
what issues have you had, did you try the windows sdk b4 u installed linux
im still waiting on my source to download, after 6 hours waiting we had a power shortage here in western australia, typically my luck, ive restarted
gav83collins said:
, ive had no errors installing the sdk i just toubleshooted compatibility first, and updating the repos, was pretty straight forward, i too am on an amd 64 bit windows,,,,,,,
what issues have you had, did you try the windows sdk b4 u installed linux
im still waiting on my source to download, after 6 hours waiting we had a power shortage here in western australia, typically my luck, ive restarted
Click to expand...
Click to collapse
The problem isn't in installing the Tizen SDK. The problem is in compiling the Tizen source code and the dependencies needed to do this. I have attached the contents of the "HOW_TO_BUILD" file so you can see the steps needed to compile the Tizen source you are currently trying to download.
HOW_TO_BUILD
System requirement (Strongly recommended)
* OS: Ubuntu 12.04 or newer
Installing Development Tools in Ubuntu
* Open the source list by using text editor.
$ sudo vi /etc/apt/sources.list
* Add Tizen tools repository to the source list.
deb http://download.tizen.org/tools/latest-release/Ubuntu_12.04 /
* Resynchronize the package index files from the sources specified in the source list by executing the following command:
$ sudo apt-get update
* Install a development tool by executing the following command:
$ sudo apt-get install gbs
Build root strap setup
* Download build rootstrap and unpack into home directory
$ sudo tar xfz {build rootstrap name} --same-owner
* Change root to the build rootstrap
$ sudo chroot standard-armv7l
* Change account to abuild
$ su abuild
Building a package
* Source packages are in the /home/abuild/rpmbuild/SRPMS
* Build a package with rpmbuild
$ cd /home/abuild/rpmbuild/SRPMS
$ rpmbuild --rebuild {src.rpm name}
* You can find binary rpms in /home/abuild/rpmbuild/RPMS
Install a package
* rpm -ivh {src.rpm name}
* if {src.rpm name} is already installed : rpm -ivh --force {src.rpm name}
Corstian said:
The problem isn't in installing the Tizen SDK. The problem is in compiling the Tizen source code and the dependencies needed to do this. I have attached the "HOW_TO_BUILD" file so you can see the steps needed to compile the Tizen source you are currently trying to download.
HOW_TO_BUILD
System requirement (Strongly recommended)
* OS: Ubuntu 12.04 or newer
Installing Development Tools in Ubuntu
* Open the source list by using text editor.
$ sudo vi /etc/apt/sources.list
* Add Tizen tools repository to the source list.
deb http://download.tizen.org/tools/latest-release/Ubuntu_12.04 /
* Resynchronize the package index files from the sources specified in the source list by executing the following command:
$ sudo apt-get update
* Install a development tool by executing the following command:
$ sudo apt-get install gbs
Build root strap setup
* Download build rootstrap and unpack into home directory
$ sudo tar xfz {build rootstrap name} --same-owner
* Change root to the build rootstrap
$ sudo chroot standard-armv7l
* Change account to abuild
$ su abuild
Building a package
* Source packages are in the /home/abuild/rpmbuild/SRPMS
* Build a package with rpmbuild
$ cd /home/abuild/rpmbuild/SRPMS
$ rpmbuild --rebuild {src.rpm name}
* You can find binary rpms in /home/abuild/rpmbuild/RPMS
Install a package
* rpm -ivh {src.rpm name}
* if {src.rpm name} is already installed : rpm -ivh --force {src.rpm name}
Click to expand...
Click to collapse
thanks, but thats ubuntu, unless absolutley neccessary, i want to use windows 8, i dont think my machine will handle ubuntu with my linux kali on a vm, and all my cloud, n media editing software aswell, il just configure the enviroment variables to make it work..........hows your compiling going
gav83collins said:
thanks, but thats ubuntu, unless absolutley neccessary, i want to use windows 8, i dont think my machine will handle ubuntu with my linux kali on a vm, and all my cloud, n media editing software aswell, il just configure the enviroment variables to make it work..........hows your compiling going
Click to expand...
Click to collapse
Well crap! So I've installed Ubuntu 12.04 AMD64 as VM (Which runs pretty amazing btw) and I still have the same errors. Le me trying to dig deeper into the operating system to find the problem of this all. (I'm also not really into UNIX OS's) Turns out I / we all need a 32 bit operating system to be able to use the binary files.
Running the file xargs command on the xargs file gave this result:
Code:
xargs: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.25, stripped
Whatsoever, I gotta start downloading a 32 bit Ubuntu 12.04 iso.
Corstian said:
Well crap! So I've installed Ubuntu 12.04 AMD64 as VM (Which runs pretty amazing btw) and I still have the same errors. Le me trying to dig deeper into the operating system to find the problem of this all. (I'm also not really into UNIX OS's) Turns out I / we all need a 32 bit operating system to be able to use the binary files.
Running the file xargs command on the xargs file gave this result:
Code:
xargs: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.25, stripped
Whatsoever, I gotta start downloading a 32 bit Ubuntu 12.04 iso.
Click to expand...
Click to collapse
again thats ubuntu, with windows 64 win 8, you can runx86 0n 64 bit, dynamically, and also sys compat to any previous version, if you get errors, change the correct enviroment variable path
you do your way, il try mine, between us, we should get somewhere
i gotta be honest reading up on this app making, standalone, or otherwise, is blowing my mind, im not the brightest spark
gav83collins said:
again thats ubuntu, with windows 64 win 8, you can runx86 0n 64 bit, dynamically, and also sys compat to any previous version, if you get errors, change the correct enviroment variable path
you do your way, il try mine, between us, we should get somewhere
i gotta be honest reading up on this app making, standalone, or otherwise, is blowing my mind, im not the brightest spark
Click to expand...
Click to collapse
So I tried multiple editions of Ubuntu and still no luck in compiling the source. How's it going on Windows?
Corstian said:
So I tried multiple editions of Ubuntu and still no luck in compiling the source. How's it going on Windows?
Click to expand...
Click to collapse
My source download keeps failing. Can you mirror it to a fat er site
Like Google drive . Your own and share the folder to me. Australian Internet is ****. I'm currently dev testing the gear 2 Cam app on the s3 s5 and s5 over multiple android versions and builds 4.1.2, 4.2.2, 4.3, 4.4.x - aosp, Aokp, miui, cyanogen. Slim. Pa etc
When running the command "su abuild", I got the error message "bash: /bin/su: cannot execute binary file".
I use a vm of ubuntu 12.04 64bit.

Android Studio crahes upon opening

I just installed Android Studio 2020.3.1 on Windows 10 after a PC reset and just after Android Studios starts and opens and prepares all necessary files it just crashes, this was happening as well before I reset my PC, so thinking reinstalling Windows would solve this issue but the problem still persists all I get is a .txt log file indicating what the problem is. I have Java installed in my computer as well as JDK.
My knowledge about code is nearly zero. Could anyone be so kind to help me sort this out?
Here is the header of the log file I get, anyway I am attaching the whole file.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x00007ff9797939af, pid=6752, tid=2448
#
# JRE version: OpenJDK Runtime Environment (11.0.10) (build 11.0.10+0-b96-7249189)
# Java VM: OpenJDK 64-Bit Server VM (11.0.10+0-b96-7249189, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C [libandroid_runtime.dll+0xb39af]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- S U M M A R Y ------------
Command Line: exit -Xms256m -Xmx1280m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -Dsun.io.useCanonCaches=false -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Djna.nosys=true -Djna.boot.library.path= -Didea.vendor.name=Google -Djb.vmOptionsFile=C:\Program Files\Android\Android Studio\bin\studio64.exe.vmoptions -Djava.library.path=C:\Program Files\Android\Android Studio\jre\\bin;C:\Program Files\Android\Android Studio\jre\\bin\server -Didea.platform.prefix=AndroidStudio -Didea.jre.check=true -Dide.native.launcher=true -Didea.vendor.name=Google -Didea.paths.selector=AndroidStudio2020.3 -XX:ErrorFile=C:\Users\Alberto\java_error_in_studio64_%p.log -XX:HeapDumpPath=C:\Users\Alberto\java_error_in_studio64.hprof
Host: AMD Athlon(tm) II X2 220 Processor, 2 cores, 10G, Windows 10 , 64 bit Build 19041 (10.0.19041.1202)
Time: Mon Sep 20 10:32:56 2021 Pacific Daylight Time elapsed time: 646.755396 seconds (0d 0h 10m 46s)
I have the same problem, did you solve?
Either replace OpenJDK by Microsoft's version of it
Download the Microsoft Build of OpenJDK
Describes where to download the Microsoft Build of OpenJDK.
docs.microsoft.com
or replace OpenJDK by Oracle's JDK
https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
No but I got this from Android Studio
Download the Microsoft Build of OpenJDK ​Describes where to download the Microsoft Build of OpenJDK.
docs.microsoft.com
or replace OpenJDK by Oracle's JDK
https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
jwoegerbauer said:
Either replace OpenJDK by Microsoft's version of it
Download the Microsoft Build of OpenJDK
Describes where to download the Microsoft Build of OpenJDK.
docs.microsoft.com
or replace OpenJDK by Oracle's JDK
https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
Click to expand...
Click to collapse
Thank you very much
It doesn't work with me, I also reinstalled the operating system, switching from windows 10 to windows 11. I have the same problem
I'm sorry it doesn't work for you. I personally haven't installed it yet, though to avoid problems I installed an old Android Studio version android-studio-ide-182.5199772-windows and it is working fine, just do a side search for old Android Studio versions. Try it out it might solve your problem

Categories

Resources