Auto-tools/Projects/Pandaboard Setup: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2: Line 2:


= Building the Android OS for the Pandaboard =
= Building the Android OS for the Pandaboard =
# Initialize your [http://source.android.com/source/initializing.html build environment]. I followed these instructions, but used Ubunutu 11.10, 64 bit OS build.
<ol>
# Get the [http://source.android.com/source/downloading.html android OS source] - currently, you want to pull tip (4.0.3 tag doesn't work, TBD: This may change in the future). If repo stops pulling items down mid-way, just start it again. It is smart enough to pick up where it left off.
<li>Initialize your [http://source.android.com/source/initializing.html build environment].</li>
# Download the [http://code.google.com/android/nexus/drivers.html#pandaiml74k GFX drivers for the pandaboard]. Extract them to the root of your Android OS source tree.
<ul><li>I followed these instructions, but used Ubunutu 11.10, 64 bit OS build.</li></ul>
# Follow the instructions at [http://quidecco.com/cgi-bin/cgi_ref_by_path/referer/http_3a_2f_2fwrla.ch_2fblog_2f2012_2f02_2fplaying-with-pandas_2f/url/http_3a_2f_2fsource-android.frandroid.com_2fdevice_2fti_2fpanda_2fREADME/ <androidsrc>/device/ti/panda/README] for instructions on how to build and flash your sdcard with the new build.
<li>Get the [http://source.android.com/source/downloading.html android OS source]</li>
<ul>
<li>Currently, you want to pull tip</li>
<li>4.0.3 tag doesn't work, NOTE: This may change in the future</li>
<li>If repo stops pulling items down mid-way, just start it again. It is smart enough to pick up where it left off.</li>
</ul>
<li>Download the [http://code.google.com/android/nexus/drivers.html#pandaiml74k GFX drivers for the pandaboard].</li>
<ul><li>Extract them to the root of your Android OS source tree.</li></ul>
<li>Follow the instructions at [http://quidecco.com/cgi-bin/cgi_ref_by_path/referer/http_3a_2f_2fwrla.ch_2fblog_2f2012_2f02_2fplaying-with-pandas_2f/url/http_3a_2f_2fsource-android.frandroid.com_2fdevice_2fti_2fpanda_2fREADME/ <androidsrc>/device/ti/panda/README] for instructions on how to build and flash your sdcard with the new build.</li>
</ol>


It takes about 30-40 minutes to build on a reasonably fast machine (i7, 8Gb RAM). Currently this will produce a build of androidOS that will change its MAC address on each boot if configured with DHCP. This may be something we change by either applying a kernel patch, or by ensuring pandas always use static IPs. So the above instructions may be modified to accommodate that patch once we figure that out.
It takes about 30-40 minutes to build on a reasonably fast machine (i7, 8Gb RAM). Currently this will produce a build of androidOS that will change its MAC address on each boot if configured with DHCP. This may be something we change by either applying a kernel patch, or by ensuring pandas always use static IPs. So the above instructions may be modified to accommodate that patch once we figure that out.
Line 11: Line 20:
= Making an OS Image For Distribution =
= Making an OS Image For Distribution =
Once you have a built, working androidOS on your pandaboard you will want to re-distribute it. Follow these steps (and note they may change in the future).
Once you have a built, working androidOS on your pandaboard you will want to re-distribute it. Follow these steps (and note they may change in the future).
<ol>
<li>Install SUTAgent and Watcher you want</li>
<ul>
<li>These are built by the Fennec Build process, we also usually host them on people when we have an "official" version of the agent.</li>
<li>No Gainroot step is required (because if we build panda-full_eng then we are always rooted, if that changes then this may change)</li>
</ul>
<li>Put sdcard you flashed the OS on in the "Build and OS" section into your sdcard reader.</li>
<li>Use mount to figure out the device name of the sdcard reader and do:</li>
<pre>$> dd if=<sdcarddevice> of=panda.img</pre>
<li>Now you can use panda.img to flash other sdcards.</li>
</ol>
= Flashing More SDCards =
Once you have a "golden master" image you can use it to stamp out sdcards easily.
# Insert blank sdcard into your machine's card reader
<pre> $> dd if=panda.img of=<sdcarddevice></pre>
# Put the flashed sdcard into a new pandaboard and plug in the power adapter.
<ul>
<li>Note: If you plug in both the power adapter and the USB cord at the same time, panda will go into fastboot mode, which is not what you want. Plug in power, boot, then plug in usb.</li>
</ul>
Confirmed users
3,816

edits