Thursday, February 6, 2014

Still Diffing

Right now, most updates to the blog will show up on the rowboat kernel <--> nook 1.2.1 kernel diffs page.  I will only make new posts to the main blog if I find something significant worth reporting...

Thursday, January 30, 2014

Clarification RE Linux Kernels in Android 2.1 and Android 2.2

On September 3, 2013, I posted that these were the same.  With new info and understanding, I thought it necessary to clarify this statement.  The kernel for Android 2.1 is based on the Linux 2.6.29 kernel.  The Android 2.2 kernel is based on Linux 2.6.32.  I am proceeding on the assumption that replicating changes made by B&N to the 2.6.29 kernel to the 2.6.32 kernel, although tedious, will be relatively simple.

What I am not sure of and would be very interested to hear from people who know more about Linux than me -- which would be just about everyone in the world, lol, is whether you think that assumption is correct.

Some of these changes will probably be unnecessary because of fixes in the kernel itself from v 2.6.29 to v 2.6.32.

I am currently thinking that when I move to the next step, I will try to compile the 2.6.32 kernel with as few changes as possible, and use B&N's changes to 2.6.29 to give myself an educated guess to solve any problems I may encounter rather than taking pot shots in the dark.

Wednesday, January 29, 2014

Using Meld to Look for Gold...

I successfully downloaded the rowboat kernel source.  I installed meld on my VM this morning.  At first glance, the differences are few enough that I am pretty confident this was the starting point they used, and even if not, is close enough that I can find the information I am looking for!  Meld will be my best friend for a while...

Tuesday, January 28, 2014

Trying to Isolate Changes B&N Made to the Kernel & Drivers -- If any.

I tried getting the kernel with the Android repo tool, but got nowhere.  I posted a request for help to the  Android Linux Kernel Development forum  on Saturday, but it has not been moderated, let alone answered.

Trolling Google, I found the  OMAP3 kernel source .  I am downloading and will compare with the B&N source!  More later...

Saturday, January 11, 2014

Building Newer Versions of Android In 32-Bit Windows

If you are interested in trying to use my Virtual Machine to build more recent versions of Android on 32-bit Windows, you will need to do the following:

1.  Remove the Sun Java JDK5
2.  Install Sun Java JDK6

ia32-libs, lib32ncurses5-dev, lib32readline5-dev,  & lib32z-dev are the only required packages listed by Google that will not install on the VM.  (All the others are already in there for you.)  These packages are used on 64-bit machines to compile 32-bit code.

Then, check out this Google doc by Bart Van Bos  .

If you try this, please leave me a comment and let me know how it went!

Friday, January 10, 2014

New & Improved VM Now Available.

The new & improved VM is now available on my Google Drive .  I cleaned it up and updated it with all the required software for building pre-Gingerbread Android.  The total download is 11.5GB, and uncompressed it is over 25 GB!

I had 7Zip compress it and break it into 24 500MB chunks.  That way, if you download it, you should only have to re-do one or two parts if something gets corrupted in transit.

You can read the  ReadMe  without having to download the entire VM.

If you use it and find it helpful, please leave me a comment and let me know!

Wednesday, January 8, 2014

A Brief Update

My new work schedule leaves me very little time to work on this project.  Unfortunately, next week my schedule changes again, and I will have even more hours working.  Even so, I discovered that gperf will no longer install on Ubuntu 10.04.  I also noticed that the Virtual machine I was using maxed out at 30GB.

To make a long story short, I have completely redone the VM with Ubuntu 12.04 and it will now allow itself to grow as large as 250GB.  I am currently compressing the machine and will post links to the new files here when it is done, and I get it uploaded to my google drive.

Tuesday, October 1, 2013

Off Topic: Back From The Dead

Well, sorry I disappeared for a while.  I have not given up on the project.  My PC started rebooting at random.  Re-seating the graphics card did not fix it...  The Reader's Digest version is that after many hours of troubleshooting, I discovered a short in the CPU case which has now been replaced.  Onward and upward!

Tuesday, September 10, 2013

Getting Android 2.1 Souce Code...

Today, I got the bugs worked out of the VM.  Using the repo tool to download the source, I kept seeing errors about ... gnutls_handshake() failed A TLS packet with unexpected length ...

I found several posts online that made me think I was going to have to rebuild git to use a different ssl application.  Fortunately, simply repeating repo sync -f over and over eventually resolved the problem.

I just added the following to my manifest.xml file in my Android 2.1 working directory:

 <project path="kernel/omap" name="kernel/omap" />


Now I am repeating the repeated repo sync's to get the linux kernal that I suspect B&N used.  More to follow...

Monday, September 9, 2013

Updated VM Coming Soon

Once I got past the problem with the VPN, I discovered that the version of git in the VM is too old.  I updated that yesterday.  I will be posting an update to the copy of the VM on my google drive that also includes the change to the user's .bashrc file.

Sunday, September 8, 2013

Problem Initializing Android Repo Tool

Following directions  here , I am trying to get source code for the latest version of Android 2.1. According to  this page , that is android-2.1_r2.1p2. When I get to the step where I issue the command:

repo init -u https://android.googlesource.com/platform/manifest -b android-2.1_r2.1p2

I do not get a prompt asking me for my name and email. The system returns to the prompt with no error message and nothing is downloaded.

I have posts in Google Groups:   Android Building  and  Repo and Gerrit Discussion 

I also started a discussion thread on  Stack Overflow .

Update 09/09/2013:  The problem here was that I use a VPN and it was active.  A very helpful user on the #android-dev IRC channel told me that proxies are a problem when getting the code.

Friday, September 6, 2013

Debugging Virtual Machine

I discovered a problem with the configuration of bash in my VM.  I am debugging that at the moment.  I will update the one available online ASAP.

Update 09/08/2013:  I discovered that the solution was a simple one.  I had to add the user's bin file to the path in the .bashrc file.

Wednesday, September 4, 2013

Checking For Any Modifications To The Linux Kernel

I downloaded the source for the 2.6.29 kernel from  www.kernel.org .  I am running an ascii comparison of it with the one included in the Nook source downloaded from B&N.  I will report on the results today or tomorrow as time allows.

Update 9/5/2013:  The kernal has hundreds of differences.  I am guessing they started with one from the Android tool chain.  I will follow up on that.

Tuesday, September 3, 2013

Linux Kernel Same for Android 2.1 and 2.2

 According to Wikipedia , the Linux Kernel used all Android builds before 4.0 were built using the Linux 2.6 kernel.  From Android 4 (Ice Cream Sandwich) forward, they are built on Linux 3.x.

Since the config file must work with the specific version of Linux, it should be possible to tweak the one used in the original build of Nook 1.2.1 to build Android 2.2.  The kernel running in the Nook is:  2.6.29-omap1


The file used to make the config file is:  omap3621_gossamer_evt1c_defconfig.  This is located in the \distro\kernel\arch\arm\configs directory of the source files I downloaded from B&N.  I have created a new page on the blog where I will mark it up as I go along.


At the beginning of the file it says, "Automatically generated make config".  This has me wondering what software / tool they used to generate it.

As I initially read through the file, I thought it is interesting that I don't see specific references to most of the chips / hardware on the board.  There is no info that I immediately notice about the eInk screen, but there is for the zForce touch screen for example.

Need to revisit  From Zero to Boot:  Porting Android to Your Device 

Monday, September 2, 2013

Roadblock Exploring Installed Modules

As I understand it,  I need to poke around in /sys/module and /system/lib/modules  to figure out what drivers are doing what in my device.

There is no /system/lib/modules directory on my NST.  The /sys/module directory contains the following:
  • kernel
  • printk
  • wakelock
  • userwakelock
  • earlysuspend
  • spurious
  • omap3epfb
  • keyboard
  • vt
  • bridgedriver
  • scsi_mod
  • usbcore
  • musb_hdrc
  • omap_hdq
  • w1_bq27000
  • usbhid
  • binder
  • lowmemorykiller
  • snd
  • snd_timer
  • snd_pcm
  • snd_dummy
  • oprofile
  • tcp_cubic
  • rfkill
  • pvrsrvkm
  • omaplfb
  • bc_example
  • tiwlan_drv
None of those contains any .ko files.  Using Root Explorer to search for *.ko, finds only these:
/etc/wifi/tiwlan_drv.ko
/system/bin/sgx/omaplfb.ko
/system/bin/sgx/pvrsrvkm.ko

I am trying to figure out how to get modinfo information for these.   XDA Thread    Phandroid Thread 

Friday, August 30, 2013

Very Little Time...

This week I started a new schedule at work.  So, far I have had very little time to work on the project.  I hope to get in a few hours tomorrow and Sunday...

Monday, August 26, 2013

Virtual Machine Built and Ready to Go!

I have an Ubuntu Virtual Machine that runs on 32-bit Windows.  I cleaned it up and updated it with all the required software for building pre-Gingerbread Android.  Uncompressed, it is 12 GB!

It is now available on my  Google Drive .  I had 7Zip compress it and break it into 8 chunks.  That way, if you download it, you should only have to re-do one or two parts if something gets corrupted in transit.

You can read the  ReadMe  without having to download the entire VM.

If you use it and find it helpful, please leave me a comment and let me know!

Friday, August 23, 2013

Hardware Buttons

I added the hardware buttons to the Hardware page.

My best guess is that the TI TPS65921B Mulitpurpose IC is handling I/O from these.  If so, getting the short- and long-press behavior to work on the Power Button would rely on the driver for this chip -- yes?

Android 2.2 requires 3 hardware buttons:  Back, Home and Menu. A 4th Search Button is optional. Assigning 4 of the NST's buttons to these functions and leaving the 5th user configurable would be ideal.  A second best choice would be to disable the 5th button.

I seem to recall seeing some posts about the Nook Button causing power drain problems with some modified kernels.  I will revisit that tomorrow...

Thursday, August 22, 2013

No News Today

... woke up late ...  just enough time to get ready for work!