Auto-tools/Projects/Pandaboard Setup: Difference between revisions
No edit summary |
|||
Line 35: | Line 35: | ||
= Flashing More SDCards = | = Flashing More SDCards = | ||
Once you have a "golden master" image you can use it to stamp out sdcards easily. | Once you have a "golden master" image you can use it to stamp out sdcards easily. | ||
<ol> | |||
<pre> $> dd if=panda.img of=<sdcarddevice></pre> | <li>Insert blank sdcard into your machine's card reader</li> | ||
<pre>$> dd if=panda.img of=<sdcarddevice></pre> | |||
<li>Put the flashed sdcard into a new pandaboard and plug in the power adapter.</li> | |||
<ul> | <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> | <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> | </ul> | ||
</ol> |
Revision as of 21:51, 23 February 2012
Bringing up a panda board is a bit different than a Tegra machine. With the pandas we will be building our own Android OS and we will be only doing that once in a while (when a new version is released). This page contains the information on how to build that image and flash a first image to a panda as well as how to re-use that image to flash additional pandas (w/o going through the build process).
Building the Android OS for the Pandaboard
- Initialize your build environment.
- I followed these instructions, but used Ubunutu 11.10, 64 bit OS build.
- Get the android OS source
- Currently, you want to pull tip
- 4.0.3 tag doesn't work, NOTE: 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.
- Download the GFX drivers for the pandaboard.
- Extract them to the root of your Android OS source tree.
- Follow the instructions at <androidsrc>/device/ti/panda/README for instructions on how to build and flash your sdcard with the new build.
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.
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).
- Install SUTAgent and Watcher you want
- These are built by the Fennec Build process, we also usually host them on people when we have an "official" version of the agent.
- No Gainroot step is required (because if we build panda-full_eng then we are always rooted, if that changes then this may change)
- Put sdcard you flashed the OS on in the "Build and OS" section into your sdcard reader.
- Use mount to figure out the device name of the sdcard reader and do:
- Now you can use panda.img to flash other sdcards.
$> dd if=<sdcarddevice> of=panda.img
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
- Put the flashed sdcard into a new pandaboard and plug in the power adapter.
- 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.
$> dd if=panda.img of=<sdcarddevice>