[Q] Developing apps and compiling roms on raspi - Raspberry Pi Q&A, Help & Troubleshooting

I'm thinking of buying a raspberry pi for learning programming and I wonder if it is possible to develop android apps and roms on the raspberry pi.
Probably the device is too weak but I thought that of running Quake 3 on the raspi, too.
So I am asking you if anyone has experiences with developing Android on the raspberry pi.
I hope you can help me.

Start here: http://www.amazon.co.uk/Raspberry-Pi-In-Easy-Steps/dp/1840785810

Doesnt say anything about Android on the site.

Android will most likely never run on pi. As far as compiling android roms on the Linux platform. Feasible at best, with half gig ram I think it would take some time to compile, but I have no experience with that. What i have experienced.... nothing on pi is fast

OK, thanks. I think I will do a little Python programming and maybe a lego robot. Do you have suggestions what to do with GPIO exept from led?

check out the projects thread, I have one to run my charcoal smoker, reads three meats pid controller runs a fan to stoke the coals. I have one to run my sprinkler system in my garden, 4 zones on a timer,I want to add a moisture sensor to that and automate it

Either by swapping on a cheap USB 3.0 drive or by waiting a little longer, the RasPi should make a dirt-cheap nightly build server! Imagine compiling CyanogenMod overnight without spending more than 2W of power! And even faster by overclocking to 1GHz with a 3$ heatsink kit! :victory:

Related

Ubuntu/Linux realease for mobile devices planned soon

The release is planned for October, but there are bound to be betas beforehand.
Normally with Ubuntu there are major new releases every six months(ish) and with being open source there is no risk of anyone spitting the dummy at libraries of ROMS.
http://www.ubuntu.com/news/ubuntu-for-mobile-internet-devices
For the benefit of those wondering WTF ubuntu is - its already been voted one of the top 100 products of 2007 in PC World. (Can products be free?)
http://www.pcworld.com/article/id,131935-page,13/article.html
It is also being offered now by Dell as an alternative to Vista...
http://direct2dell.com/one2one/archive/2007/05/01/13147.aspx
...prompted by Michael Dell using it on his home PC for years.
Well, if I'm not mistaken, the Mobile Internet Device referred by the news, are UMPCs (e.g. fully functional PCs). As such, porting the OS over is easy job, as compared to porting it over WinCe devices.
However, having said that, it is not all lost. With Intel on the market with Linux, chances are, probably there will be more applications written for Linux based OS and will then encourage the dev on Linux on WinCe (if you google, there is a Linux for Wizard project running already).
As far as I know there have been a few shots at linux for the wizard (et al), although the benefit of being ubuntu would be a far wider range of developers, the release structure they favour, and the finances to back it.
I still have a windows 98 boot (for some specific software than runs badly on any newer versions) and if you look at the spec of machines from then (I swapped the board, processor and memory from a Cyrix 166 with 32meg, to a pII 450 with 128 meg about late 1998), the older machines spec does not look particularly good compared to the wizards.
The xubuntu flavour of ubuntu is quite capable of extending the life of older hardware, by running more efficiently - and I have set up a few older machines I was given as scrap to play games for friends' children - to introduce them to 'proper computers' when it does not matter as much when they discover jacobs crackers fit in the floppy, or a CD rom cannot close with enough force to cut off action mans legs.
Anyway - returning to the plot - I would suspect xubuntu is currently not too far from working in a PDA - but the xubuntu project has far lower funding than ubuntu, but could be an excellent platform to adapt.
Well, as far as I know, Linux based systems do not 'really' run more efficiently. The primary reason that Linux OS is able to utilize older hardware is that it is lightweight. Thats like running DOS on older hardware.. it works well.
die, bill, DIE
hanmin said:
Well, as far as I know, Linux based systems do not 'really' run more efficiently. The primary reason that Linux OS is able to utilize older hardware is that it is lightweight. Thats like running DOS on older hardware.. it works well.
Click to expand...
Click to collapse
Nah, its my experience that ALL windows OSs are resource hoggging pigs and linux isn't and it makes much better use of system resource than winblows
take a web server running apache under winnt, replace the os with a flavor of linux and the same machine running apache has more throughput than before.
and there are distros that run very well on just about any machine, put xp on a 200mhz pentium mmx and see if you have a useable machine, that same puter with linux will work great for the average joe blow who just, web browses, emails, does word processing/ doc. creation.
linux will put computing power in the hands of people who cant blow 1000$ every 2 years to get the latest greatest pc. I wont even go into the ridiculous amounts of cash micro$oft charges for new versions of the bug ridden code they pass off as a finished product, then release 4 service packs to band-aid it together.
thanks linus, you should get a nobel peace prize or some sh1t...
bhang
bhang said:
Nah, its my experience that ALL windows OSs are resource hoggging pigs and linux isn't and it makes much better use of system resource than winblows
take a web server running apache under winnt, replace the os with a flavor of linux and the same machine running apache has more throughput than before.
and there are distros that run very well on just about any machine, put xp on a 200mhz pentium mmx and see if you have a useable machine, that same puter with linux will work great for the average joe blow who just, web browses, emails, does word processing/ doc. creation.
linux will put computing power in the hands of people who cant blow 1000$ every 2 years to get the latest greatest pc. I wont even go into the ridiculous amounts of cash micro$oft charges for new versions of the bug ridden code they pass off as a finished product, then release 4 service packs to band-aid it together.
thanks linus, you should get a nobel peace prize or some sh1t...
bhang
Click to expand...
Click to collapse
Here's a good example of some everyday anti-Microsoft rhetoric.
Linux on a slow computer won't make it do anything more than it could do running a Microsoft product. Sure, a finely customized (read: limited) Linux system might use a little less memory, but a slow computer is a slow computer.
Back on topic, I'd look more towards the already-existing Linux projects for the Wizard being useful before any Ubuntu branded distributions would be available. The BlueAngel Linux project from a couple of years ago got pretty far, I wonder if the Wizard is really all that much tougher to get working.
tone007 said:
Here's a good example of some everyday anti-Microsoft rhetoric.
Linux on a slow computer won't make it do anything more than it could do running a Microsoft product. Sure, a finely customized (read: limited) Linux system might use a little less memory, but a slow computer is a slow computer.
Click to expand...
Click to collapse
Yours will be a good example of a .. anti-old PC rhetoric?
I beg to differ. A PC's speed heavily depends on how many instructions it is running. The number of instructions run per second for any PCs is fixed, but having less unnecessary instructions to runs, yields a faster PC. Try running Vista with all fancy eye-candy enabled and browse the internet. Do the same with Windows 95. A slow PC is slow when you run something heavy on it, hence 'a slow computer is a slow computer' isn't true.
hanmin said:
Yours will be a good example of a .. anti-old PC rhetoric?
I beg to differ. A PC's speed heavily depends on how many instructions it is running. The number of instructions run per second for any PCs is fixed, but having less unnecessary instructions to runs, yields a faster PC. Try running Vista with all fancy eye-candy enabled and browse the internet. Do the same with Windows 95. A slow PC is slow when you run something heavy on it, hence 'a slow computer is a slow computer' isn't true.
Click to expand...
Click to collapse
When Ubuntu for Mobile phones is in 20 years of development, then I will consider it, however for my everyday needs, WM6 has me covered. Thanks, but no thanks. This is just the beginning for Linux on a phone, it has a LONG way to go to keep up.
Not only that, you have to find someone WILLING to create the software for FREE and well, you get what you paid for.
If you are a C++ programmer, Linux on a Mobile Phone will be a welcome challenge, but there is no market for Linux on a phone YET. Only reason anyone one the market will choose to switch is due to a CHANGE from what's already out there. I do not feel it compares at all to WM6 yet.
Sure, you can run faster, once you remove all of the graphics, background processes, etc, but you can do that with WM6 too. That's what people are creating their own roms for.
Water down any OS and you will find that it runs really fast and really well.
I wonder if there will be Blackberry support? It might be interesting to toy with.
NeoDMD said:
When Ubuntu for Mobile phones is in 20 years of development, then I will consider it, however for my everyday needs, WM6 has me covered. Thanks, but no thanks. This is just the beginning for Linux on a phone, it has a LONG way to go to keep up.
Not only that, you have to find someone WILLING to create the software for FREE and well, you get what you paid for.
If you are a C++ programmer, Linux on a Mobile Phone will be a welcome challenge, but there is no market for Linux on a phone YET. Only reason anyone one the market will choose to switch is due to a CHANGE from what's already out there. I do not feel it compares at all to WM6 yet.
Sure, you can run faster, once you remove all of the graphics, background processes, etc, but you can do that with WM6 too. That's what people are creating their own roms for.
Water down any OS and you will find that it runs really fast and really well.
Click to expand...
Click to collapse
So that's why Motorola already have, and Palm are developing linux mobile phones?
Linux on a mobile device is going to be here on mainstream handsets very soon, within the next 12 months guaranteed.
The reason?
Licensing costs.
If you develop an open source OS, and set of codecs to handle media, you don't have to pay so much to all the companies you traditionally hand money over to when you sell a phone.
People who buy a mobile phone rarely care if it can run Microsoft's pocket office apps, or RIM's office apps, or anyone elses, just as long as they can write that document, or email, and easily send it, or get it onto their PC.
People also don't care if it runs WM6, Symbian UIQ, S60, Linux, Palm, or Blackberry, they just care if it can do xyz functions, looks nice, and they can afford it.
We care, but we are not the majority of the market.
And lets be honest, out of all the mobile OS' out there, which is going to be the most hackable?
Linux on our HTC devices is always going to be a hobby more than a real alternative OS, since it's based on who wants what, and has the time to develop it. But on a commercially available device sold with it, it's already here, and more are on the way!
Linux is faster - especially non GNOME distros.
There is also Ubuntu light on the horizon.
I read this article which to me is a good summary...
http://www.theinquirer.net/default.aspx?article=40532
...and to reiterate my aforementioned point in addition to the seeking of fees - who requested the removal of the rom library here? So greater control with open source to the savvy end user.
Additionally - many of us are running linux without even realising - as its often the OS running in your routers/wireless modems.
Finally - if Windows kit for PDAs/smart phones was any good - would there be a reason for a forum like this to improve upon it, or are we all just really pernickety people?
Ubuntu is a really amazing OS.
I have been running it for a while already, and I love it (except sometimes I screwed up, need to resetup).
U should all try it
Straight from the disk it saw and set up everything - including setting the two hyperthreading processors as 4 processors (I have the non server disk version too).
Only problem so far is its not happy with my Sandisk U3 Titanium.
Another point worth mentioning is the lightest/fastest/most secure browser is purportedly 'Dilo' which is written for Linux - but I have not tried it yet. (Although the security is based on the 'you cannot hijack it - if we dont support it' school of thought.)
Linux rocks, I have ubuntu running on one of my desktops and am seriously considering dual booting my other with Fedora KDE. It really did a lot to speed up my old compaq, and i am not running a "watered down" version, I have more aps and programs on this than i did on xp, and it still boots faster and i have yet to have a weekly crash like i did with xp. I really would like it on my wizard, but in the meantime i'm going to watch palm's develpment and look in that direction.
Linwizard
If you want to play a bit this works on my wizard. Still a long way to go but I can say I have linux on my wizard. And I don't have to change anything or lose my current setup. Just extract the folder to your SD and run the app. I haven't figured out how to exit the program with out a soft reset, but big deal. Also there is no touch screen support or shifted or symbol support for the keyboard.
http://sourceforge.net/projects/linwizard/
Cheers...

G1 Limits of ARM and classic games like X-Wing

After playing some Doom on my G1 (Scheff's Blend) it got me thinking about the limits of the phone's ARM processor. If it can play Doom, then why not X-Wing, considering it was released the same time as Doom in 1993. Obviously not the cd collectors edition released later, by why not the original floppy disc version.
Maybe I got some work to do, because it would be an awesome port.
I guess the Mac version of X-Wing would be easier to port, at least I think it would. Just got to find me the old floppy Mac version and dust off my programming skills that I last used in probably 1999 with some C++!
The problem is finding somebody willing/interested in such a project. Coding for ARM is different than your x86. smaller cache, more registers, etc. It's a new way of thinking.
SiXiam said:
After playing some Doom on my G1 (Scheff's Blend) it got me thinking about the limits of the phone's ARM processor. If it can play Doom, then why not X-Wing, considering it was released the same time as Doom in 1993. Obviously not the cd collectors edition released later, by why not the original floppy disc version.
Maybe I got some work to do, because it would be an awesome port.
I guess the Mac version of X-Wing would be easier to port, at least I think it would. Just got to find me the old floppy Mac version and dust off my programming skills that I last used in probably 1999 with some C++!
Click to expand...
Click to collapse
Someone was able to port quake3 running at 30FPS (not even optimized yet.) I forgot where the video was. But im sure X-wing should be an easier task if anyone is up to the challenge
SiXiam said:
After playing some Doom on my G1 (Scheff's Blend) it got me thinking about the limits of the phone's ARM processor. If it can play Doom, then why not X-Wing, considering it was released the same time as Doom in 1993. Obviously not the cd collectors edition released later, by why not the original floppy disc version.
Maybe I got some work to do, because it would be an awesome port.
I guess the Mac version of X-Wing would be easier to port, at least I think it would. Just got to find me the old floppy Mac version and dust off my programming skills that I last used in probably 1999 with some C++!
Click to expand...
Click to collapse
Is it open source? Doom, quake, etc. are open source and therefore possible to "port". Closed source programs would require an emulator and would therefore be stupidly slow, especially if compiled for different CPUs.
Well I stumbled upon this thread:
http://ubuntuforums.org/showthread.php?t=147798
Apparently the easiest solution is to use the Linux version of DosBox, combined with X-Wing.
I managed to find/acquire the old floppy disk version of the game (from 1993) and I just have to manage to get DosBox working on the G1...
And pray that it has enough ARM power to play it...

Use Pi to compile ROM/kernel for other ARM devices

So I have my Raspberry Pi and while waiting to develop my Giant Flying Robot with it, I was wondering if we can use it to compile a kernel or ROM for one of my phones. I know it will be much slower than on Linux on x86 or the Mac, but I'm in no hurry.
I am fairly competent in building regular kernels for linux, but Android specific kernels are new to me and I want to to a few test runs.
Plus the other architectures need a cross compiler, where as the Pi is already using ARM processor. Don't know if the different versions need different compilers. I don't know where to start, so any suggestion are appreciated.
laxamar said:
I don't know where to start, so any suggestion are appreciated.
Click to expand...
Click to collapse
Start here:
http://forum.xda-developers.com/forumdisplay.php?f=564
Or here, because your raspberry is a real linux pc and you can use tutorials like this one:
http://forum.xda-developers.com/showthread.php?t=2029080
Of cause the cpu is slow and it has a smal ram, but possible it's enough.
Try it!
Compile
if you also want to compile android:
It doesn`t work with Android, the needed time would be so high.... And you need many disk space.
By the Way:
The very Slim Linux Kernel took so many hours on my Pi. I woudn´t prefer it.

Raspberry pi vs old android

I was wondering, what would the benefits of using a raspberry pi over an old android for DIY hacking projects?
Also, bit more off topic, would it be possible to put a raspberry pi OS on an android? Like to use the phone as a computer board like a raspberry pi. Just a thought because they are both ARM devices with similar specs.
Jesse72 said:
I was wondering, what would the benefits of using a raspberry pi over an old android for DIY hacking projects?
Also, bit more off topic, would it be possible to put a raspberry pi OS on an android? Like to use the phone as a computer board like a raspberry pi. Just a thought because they are both ARM devices with similar specs.
Click to expand...
Click to collapse
if its a android device with 700mhz and 512mb of ram (Not really that bad for an older phone) its probably not the best option because it has older hardwear, they might both be ARM but the pi cpu is a little newer and can be overclocked easier if you really need to, it Really is basically a cheap computer, you would be able to do most things better with the PI with more diy project options.

How close are we to running Android 5.x on the new Raspberry Pi 3 ?

Now that we've got a quad-core 64 bit processor, as well as many handset connections and do-dads, are we any closer to a serviceable Android port for current releases?
portsample said:
Now that we've got a quad-core 64 bit processor, as well as many handset connections and do-dads, are we any closer to a serviceable Android port for current releases?
Click to expand...
Click to collapse
Android is able to run also on Raspberry Pi 1, it is not a problem about SoC.. As we can see there are no Devs able to port Android to Raspberry Pi.
Maxximo88 said:
Android is able to run also on Raspberry Pi 1, it is not a problem about SoC.. As we can see there are no Devs able to port Android to Raspberry Pi.
Click to expand...
Click to collapse
I'm actually interested in doing that. Just got my RBP3 and I will give a try and hopefully learn something.
Anyone interested to team up?
I saw a video of a guy running 5.x on Raspberry Pi 2 https://youtu.be/aSgQDhM84Ko
yeah i'm interested in teaming up. email me at [email protected] i already started to work on this.
Do you need specifically Android 5? peyo (can't post links - search for "peyo-hd" on GitHub) is doing great work with his CM repositories for RPi2 + RPi3. We also have a working image for RPi3 based on AOSP Android N Preview (again, no links... "RTAndroid" on GitHub). We also have downloadable images at our website.
Raspberry PI 3 is going to be supported officially by Google. So someone can port it for RPi2 too hopefully. Links:
Official Raspberry Pi 3 Twitter page
Google's AOSP repository for the Raspberry Pi 3
Mirhawk said:
Raspberry PI 3 is going to be supported officially by Google. So someone can port it for RPi2 too hopefully. Links:
Official Raspberry Pi 3 Twitter page
Google's AOSP repository for the Raspberry Pi 3
Click to expand...
Click to collapse
Wow, that is very exciting. I am developing an application for use on the AndroidOS/JM for remote data collection, SalmonCam (https://twitter.com/yatrafish). I've had problems coping with the subtle variations in manufacturer Android builds and hardware specificities. I am hoping that we can create custom ROMS for the Pi that are less phone-ish and more technical. Thanks.
Mirhawk said:
Raspberry PI 3 is going to be supported officially by Google.
Click to expand...
Click to collapse
Based on the fact that the repository is still empty, I think it will take a while until we have an official version. Would be pretty cool though.
portsample said:
Wow, that is very exciting. I am developing an application for use on the AndroidOS/JM for remote data collection, SalmonCam (https://twitter.com/yatrafish). I've had problems coping with the subtle variations in manufacturer Android builds and hardware specificities. I am hoping that we can create custom ROMS for the Pi that are less phone-ish and more technical. Thanks.
Click to expand...
Click to collapse
That sounds amazing. Becoming more technical is exactly the reasoning behind RTAndroid. Although we gave up on RPi2 as it was super slow.
kalkov said:
Based on the fact that the repository is still empty, I think it will take a while until we have an official version. Would be pretty cool though.
That sounds amazing. Becoming more technical is exactly the reasoning behind RTAndroid. Although we gave up on RPi2 as it was super slow.
Click to expand...
Click to collapse
I agree totally, there is a significant need for a modern technical OS.
WinCE/PocketPC is the primary option where ruggedized field terminals with hardware buttons are needed. See http://www.junipersys.com/ for an example of the industry standard device.
portsample said:
I agree totally, there is a significant need for a modern technical OS.
WinCE/PocketPC is the primary option where ruggedized field terminals with hardware buttons are needed. See http://www.junipersys.com/ for an example of the industry standard device.
Click to expand...
Click to collapse
I'm glad I finally found somebody with a similar opinion. We did actually contact several manufacturers/resellers of rugged tablets, but only a small part of them were interested in Android in general. And those who were told us they are happy with the normal AOSP. I never understood how they don't have any other requirements for those devices. May be customers are now yet aware of what is possible.
http://geektillithertz.com/wordpress/index.php/2016/06/02/android-tv-for-raspberry-pi-3/
portsample said:
Now that we've got a quad-core 64 bit processor, as well as many handset connections and do-dads, are we any closer to a serviceable Android port for current releases?
Click to expand...
Click to collapse
Not sure whether it has to be Android 5. There are several working images with support for Android N.

Categories

Resources