nook touchndevelopmemt toolchain Qs - Nook Touch General

Hi All,
I'm a software developer, reasonably comfortable with compiling apps in Linux, though still got more to learn on inner workings of the full system.
I've been thinking about following the Linux from Scratch book for a while - and also about converting my Nook e-reader into a useful device for developing on when out im the sun.
I guess there are some significant challenges here - device trees and commercial secrets, perhaps some crypto keys used for signing update images to boot (I'm familiar with these problems, but not solutions or good workarounds).
What I'd really like is a good understanding of:
- what tool chain I need to setup
- What has been tried already and what the problems were
- any further help/datasheets that can get me going
I'd have posted this in the 'android development' area as the closest forum for what l'm trying to do, but apparently I'm not allowed until I've got my post count up - so I'm being forced to post in 'general'. If someone agrees and can move it, that would be great.
P.s. I have searched the xda site, but I'm not finding what I'm looking for. I'm sure it must be here somewhere, so any pointers/links on where it is would be appreciated.

SimonSimpson said:
Hi All,
I'm a software developer, reasonably comfortable with compiling apps in Linux, though still got more to learn on inner workings of the full system.
I've been thinking about following the Linux from Scratch book for a while - and also about converting my Nook e-reader into a useful device for developing on when out im the sun.
I guess there are some significant challenges here - device trees and commercial secrets, perhaps some crypto keys used for signing update images to boot (I'm familiar with these problems, but not solutions or good workarounds).
What I'd really like is a good understanding of:
- what tool chain I need to setup
- What has been tried already and what the problems were
- any further help/datasheets that can get me going
I'd have posted this in the 'android development' area as the closest forum for what l'm trying to do, but apparently I'm not allowed until I've got my post count up - so I'm being forced to post in 'general'. If someone agrees and can move it, that would be great.
P.s. I have searched the xda site, but I'm not finding what I'm looking for. I'm sure it must be here somewhere, so any pointers/links on where it is would be appreciated.
Click to expand...
Click to collapse
I have tried to get info on such things three times over 2 years for different devices, no one every seems to point me in the right direction, the most i have been able to find out is how to make compile cm and a little bit of how to customize roms, not to be a downer but i think the process is often so different for ever device and difficulties usually happen that the only people that build roms are people that have either have experience I n some form from their job, just edit existing source for cm(updating to a new version, customizing roms ect...) or have screwed with the stuff for years till the point that they just figured out alot of problems themselves. Wish a could find a good guide myself to atleast get the basic dependencies required for a device to boot together, if i could get something to boot the rest of the issues could be worked out with trial and error, boot noone on xda, Android authority, Reddit or cm's own forums goes into enough depth to make that possible.

Hi jaykoerner,
Thanks for your reply - good to know I'm not alone with my echo!
I've discovered some useful links if anyone wants to begin getting to grips with all this...
1. XDA Devs has a wiki (not sure how to find from the forum links...?)
http://forum.xda-developers.com/wiki/BN_Nook_Simple_Touch
2. There's a (atleast one) customized kernel (and probably a dev-tool chain) available on GitHub:
https://github.com/javifo/NST/tree/master/kernel -- including kernel compilation instructions
https://github.com/javifo/NST -- root of the repository.
3. Parallel to Raspberry Pi kernel compilation (so you may want to learn from that as it probably has more articles)
https://www.raspberrypi.org/documentation/linux/kernel/building.md
I'll post more when I next do something with the information (Still want to understand more on the android HAL)
Hope that helps someone!
SS.

SimonSimpson said:
Hi jaykoerner,
Thanks for your reply - good to know I'm not alone with my echo!
I've discovered some useful links if anyone wants to begin getting to grips with all this...
1. XDA Devs has a wiki (not sure how to find from the forum links...?)
http://forum.xda-developers.com/wiki/BN_Nook_Simple_Touch
2. There's a (atleast one) customized kernel (and probably a dev-tool chain) available on GitHub:
https://github.com/javifo/NST/tree/master/kernel -- including kernel compilation instructions
https://github.com/javifo/NST -- root of the repository.
3. Parallel to Raspberry Pi kernel compilation (so you may want to learn from that as it probably has more articles)
https://www.raspberrypi.org/documentation/linux/kernel/building.md
I'll post more when I next do something with the information (Still want to understand more on the android HAL)
Hope that helps someone!
SS.
Click to expand...
Click to collapse
My initial thought was that toolchain should match the underlay Linux kernel of Eclair (2.6.x.y) for us to be sure it could be run on NST. This info that I still have to search through is certainly helpful. Thanks!

SimonSimpson said:
I guess there are some significant challenges here - device trees and commercial secrets, perhaps some crypto keys used for signing update images to boot...
Click to expand...
Click to collapse
Neither the NST or the newer glows use device trees.
In the Glows this is all handled by the custom ntxconfig which allows simple configuration.
For building Android apps, you use the straight Android SDK, possibly also the Android NDK (for native code).
You'd also use the NDK for building command line utilities.
I've never built a kernel from scratch, but I have binary modified/patched them.
There is the simpler bit of patching system image ramdisks which can be conviently handled by my imgutil.exe in the signature.
If you want to do audio, you really are better off with the Glow4 (7.8") which actually supports it.

Related

So many question, so little time.

Hello all,
I am new to the Android scene and I wanted to find out if there are any good tutorials on app/rom development, what are the programming languages used, etc... I know learning from scratch is probably a long and bumpy road, but it is something I am interested in. I have already rooted and flashed my phone, good times that was. Thank you all for your help.
Th3Cap3
What's your existing programming experience? You could do worse than check out the anddev forums. App development is principally in Java though you can write parts of apps in C or even assembler.
My existing programming consist of very very very basic python, and some web stuff like HTML and CSS, I would basically have to learn how to program the ones you have mentioned from scratch, I have books for most of those though. I will go check out those forums and see what I can dig up Thanks for the info.
I bookmarked that page thank you, I just got a hold of their Eclipse software and all of their beginner tutorials I can't wait to dive into this stuff.
Me too. I know C, but only have a passing acquaintance with Java & Linux; Android I know even less about, not having encountered it till getting my Hero in February. I'm working my way through Thinking in Java (Eckel) to be followed by Professional Android 2 Application Development (Meier).
Even if your grasp of Python is basic it's still a start - you don't have to struggle again with fundamental procedural programming concepts like conditional execution, program flow control & so forth. Plus Python is an OOP language, aiui (I don't know Python) so you have a head start there too
I've installed Java, Eclipse & Android's SDK on this Windows box, but I'm thinking of dual booting Ubuntu as some things just work better in Linux, especially if one wants to cross compile ROMs. Aiui Cygwin, which I already use, can be a little problematic & when one is likely to be asking for help at times, it's useful to be using a similar set up to most devs.
I have been thinking about dual booting again, I just havent had to time to partition my drive and install some sort of linux release, UBuntu is the one I am most familiar with, which isnt very, but its a start.
I am going through those video tutorials from anddev.org right now, it seems to be similar to Python in the way the coding is done, I am excited.
I have also downloaded the Eclipse program, but I have the pulsar version, it seems to be geared more towards mobile development and I have gotten the Android toolkit installed and I have had the Android SDK from when I rooted my Hero (Which is awesome, running the newest Damage Control) good times.
I think I may have a java book on PDF somewhere as well, I will have to go look.
Atm I can't make up my mind between dual boot & Virtual Box, or maybe both, to see if I can wean myself off m$
I have been thinking about the dual boot option a lot since you mentioned it, not sure what to do, I may wait till this quarters class is over so that if something goes missing. it Sony be a big deal
Sent from my HERO200 using the XDA mobile application powered by Tapatalk

Connect Android to Enterprise Java Bean

Hi!
Im sorry if this is a dumb question but I googled some stuff about it and never found a straight YES/NO answer.
Im a student in my final year and as a semestral project I have an electronic voting system built on Java Enterprise technology with enterprise java beans (EJBs) running on Glassfish.
For my final work id like to create an app for android that could communicate with those beans on a Glassfish server and thus a people could vote by a cell phone.
My question is Is this even possible? Over the past three days ive been googling stuff concerning this matter but nothing really helped. Id really appreciate a straightforward answer because my time for choosing a final project is almost up and I dont want to end up doing something that is impossible.
Don't take it bad, but it looks like you are a student who doesn't even know what he's working with. Not that it surprises me, but I'm willing to help you.
Answer these straight questions.
1. What is an EJB?
2. Who "runs" an EJB?
3. Where does an EJB "live"?
If and when you answer these three questions you'll know what is needed for a project where "people could vote with a cellphone".
What I can tell you in the most straightforward way is that it is possible for you to have people using their android phones to vote with your Glassfish server.
Android <-> Glassfish
I am looking for the same thing - to write Android apps that communicate with session beans on an app server (i.e. Glassfish). Since I will own both ends of the app, I am looking for a simple approach (e.g. RMI) as opposed to a lot of unnecessary bru-ha-ha (e.g. why turn Java objects into SOAP, just so we can turn them back into the same Java object ... not that Android really supports SOAP).
It looks like Google, for some reason, crippled the Android's ability to communicate. About the only built-in mechanisms I've found are REST (and I don't like REST) or writing my own protocol and using servlets.
Surely, by now, someone has come up with a simple, concise, mechanism for addressing this issue ... I just can't find it.

[Q] OK, So I want to build my own Android ROMs

I know how to do the WM stuff - and have some old kitchens. I used to be fairly involved in doing my own back in the Kaiser days, but never did publish them (there were always questions about whether it was REALLY kosher to do so)
Well, Android is Open Source (mostly) and so I'd like to get involved with it for the HD2. I'll publish here and maintain as well - if I come up with something useful.
Does anyone have a framework to start with on getting started? Is it best done from Windows (Win7 here) or do I need to build up a Linux box for this?
If it's already here (I looked around) please point me to it... or any online resource for that matter.
Mostly interested in cooking up NAND stuff....
(I build and write software - including kernel code in the FreeBSD realm, so I'm familiar with the "hows" - just need the correct pointers to the tools and bits I need along with a primer; I can take it from there.)
Thanks in advance!
I'm interested in the same kind of info, but it seems it's a secret kept somewhat close to the chest, and although there are tutorials aplenty for the end user, there is a clear lack of tuturials on how to make your own ROMs (be it WinMo, or Android). Either "chefs" don't want any more clutter and garbage around, or they don't think there is interest on such info...
Anyway, here is an article to get you started (little meat in the info, but dig around the wiki):
http://www.htc-linux.org/wiki/index.php?title=QuickDeveloperStartGuide
u Guy's even have take look to chef corner in this site

[Q] First app; Advice? Examples? Warnings?

Hey everyone; it wouldn't let me post in the development subforum due to the fact that I just joined, but I figured my topic would be just as relevant here.
I'm a sophomore CompSci major. Java is my strong point, but I'm far from a master. I know syntax, I know how to follow what's going on in more advanced programs, but writing them is the tough part. Anyway, I would like to create my first app; something simple. I was thinking a calculator with a small clipboard on the side (hold the button to store the number displayed in the window, hit it to place that value). It would be insanely helpful for my physics class.
So a few questions for you guys:
-Is there anything I should know beforehand? Anything to be careful of?
-Can I use Eclipse? I tried with App Inventor, and it's too limited.
-How do I obtain examples of more complex apps? Can I unpackage the apk files into java classes?
-Is there a site similar to the sun library, where it lists the available classes/objects/imports?
I'm sorry if I don't know the lingo just yet (of Droid or Java). Picking this all up is a little difficult for me, but I'm trying
Thank you in advance for even taking the time to read this. I understand rookies must aggravate you guys, but from what I've seen, the community has been nothing but welcoming!
You can definitely use Android SDK with Eclipse.
This guide will help you with install and set up process
http://developer.android.com/sdk/installing.html
SDK also contains sample projects that you can use for learning.
I don't remember about unpackaging apk files, but I'm pretty sure they contain already compiled .class files, which will be of no use to you.
And here's Android's reference page:
http://developer.android.com/reference/packages.html
Also the dev guide is very useful for learning the basics:
http://developer.android.com/guide/index.html
Resources section has useful tutorials as well!
Hope that helps. Good luck with your app!
Thank you, meshdub! And all branching from the same site; sure made me look bad...but on the upside, you've introduced me to a source I will be able to use throughout my software development lifetime.
If there's any more you or anyone else could give me as far as what to expect or look out for, please let me know! I'm honestly a little intimidated by this; I'm not too familiar with forums, and I've heard how difficult app developing can be.
But this should keep me occupied for a while, and again, thank you very much

[Q] need help from a developer

I need a push start!!
i have created a circle composed of 12 concentric rings.
i want to make a live wallpaper with these rings slowly spinning in opposite directions.
i have been studying numerous web threads on how to create live wallpaper, but it just seems to me that each one assumes that the reader knows a lot more about developing in java for android using eclipse than i do.
please help me get started.
i understand the basics. i have created a couple of text based applications that i've ran on the emulator and installed on my droid x. they worked as planned!
i'd be very appreciative and willing to donate lots of time and even cash to a developer who will work with me online or offline to get this project started.
i am a veteran of 30 years software development for the VMS operating system. I've also created 2 dozen or more clock applications in lua for the windows mobile operating system. i've developed management applications for monitoring and configuring over 1200 windows 2003 servers in java, vbscript, c#, .aspx, html, perl and so forth. i'm no dummy, i can code!
i've written code in just about everything, even java, but the use of xml, manifest files, the android graphics interface has me baffled. maybe it''s just too many ways to get it done that confuses me.
anyway, i'm in need of a push start and am willing to donate to someone who will patiently get me going in the right direction.
thank you!
Although I can't give you much help, I can recommend that you look through the samples that come with the Android SDK for base source code for live wallpapers.
And also, even though the many option make it seem difficult, one you play with it for a while it gets simple.
I hope that I've helped at all. Good luck!
Sent from my DROIDX using XDA App
anybody?!
well this sure isn't the response i thought i was going to get!!!!
bump!
You'd be better off asking this is in a more generic Android/App Dev forum.
This forum is DX specific (and quite frankly, a lot of people have left the DX platform for newer phones).
Try here:
http://forum.xda-developers.com/forumdisplay.php?f=524

Categories

Resources