Brad For Dem Bedded

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, 16 November 2011

Build the PandaBoard or BeagleBoard-xM x-loader on Debian Squeeze

Posted on 06:54 by Unknown
EDIT 20111116 15:37: This post and the git repo have been updated to include info on the BeagleBoard-xM.

I wrote up some quick instructions on building the PandaBoard and BeagleBoard-xM x-loader on a Debian Squeeze host this morning. You can find them below, but also in my GitHub x-loader repo. My x-loader repo is only slightly modified from mainline. Enjoy!


To build x-loader on Debian:

Install the emdebian-archive-keyring:
$ sudo aptitude install emdebian-archive-keyring

Add to your apt sources:
deb http://www.emdebian.org/debian/ squeeze main

Perform an aptitude update:
$ sudo aptitude update

Install the Emdebian cross compilers:
$ sudo aptitude install gcc-4.4-arm-linux-gnueabi g++-4.4-arm-linux-gnueabi

Install git and partitioning tools:
$ sudo aptitude install git parted

Clone the repo from github, this will create a directory called "x-loader":
$ git clone git://github.com/bradfa/x-loader.git

Enter the directory, make the configuration you desire, then compile the MLO
file (actual x-loader). For the PandaBoard use "omap4430panda_config" and
for BeagleBoard-xM use "omap3530beagle_config" in the second step
(example uses Panda):
$ cd x-loader
$ make CROSS_COMPILE=arm-linux-gnueabi- distclean
$ make CROSS_COMPILE=arm-linux-gnueabi- omap4430panda_config
$ make CROSS_COMPILE=arm-linux-gnueabi-

Now we'll partition and format an SDcard.

***************************************
* THIS PROCESS WILL DESTROY ALL DATA! *
***************************************

Make sure your SDcard is not mounted. Then run the partitioning script to
create a 64 MB FAT partition followed by an ext3 partition taking up the rest
of the SDcard space (SDcards are slow, this may take some time). The arugment
passed to the script is the device node of the SDcard itself (/dev/sdb in our
example), not a partition!:
$ sudo ./format_sd.sh /dev/sdb

Some systems may automatically mount the newly created file systems. If not,
mount the boot file system:
$ sudo mkdir -v /mnt/boot
$ sudo mount /dev/sdb1 /mnt/boot

The _VERY_FIRST_ file written to the FAT partition should be the MLO.
$ sudo cp -v MLO /mnt/boot/

Unmount the FAT partition and boot the board to verify operation!
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in embedded, git, linux, open source, pandaboard | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Downsides and Upsides of Altera's Configuration Via Protocol
    Yesterday, I wrote a little about reconfigurable FPGAs attached to the PCI-Express bus as an addition to the general purpose computer. The...
  • Toolchain, Check! Kernel, Check!
    I've been working on the CLFS embedded book for a few months now.  I've been learning a lot and my goal has been to get a CLFS embe...
  • KDE4 Sucks
    I upgraded to Debian 6 Squeeze last weekend on my desktop.  I was very excited to get some more up-to-date packages (git, gcc, kernel, and c...
  • Low Cost ARM Computer
    I was thinking about my ARM + FPGA computer idea some more.  There's already a lot of competition in the single board computer space an...
  • Crypto Load Balancer Using Off The Shelf Hardware
    At my day job, I work a reasonable amount of time with cryptographic and authentication systems. Lately, I've been reading about OpenCL...
  • Embedded Linux and Long Term Support / Updates - Part 2
    In my previous post about embedded Linux long term support, I neglected Ubuntu. I had not realized how much effort Canonical are putting i...
  • The TuxedoBoard has a Brain! (picked out)
    I've chosen an ARM SoC (system on chip) for the TuxedoBoard! The Texas Instruments AM1707 ARM9 core will meet my requirements. The AM1...
  • Pick an ARM ABI When Building GCC
    If you follow the CLFS embedded book for ARM , you'll see that your ABI choice isn't used until compiling packages (ie: after you...
  • SanDisk iNAND
    I stumbled upon SanDisk's iNAND products today while doing some searching about SD cards. The iNAND idea looks very appealing to me co...
  • I'm Writing a Book
    I'm writing a book about embedded Linux but I'm not going to compete with traditional technical books.  O'Reilly isn't my co...

Categories

  • beagleboard
  • blog
  • book review
  • business
  • c
  • chairs
  • clfs
  • community
  • computers
  • crypto
  • db
  • debian
  • disapointment
  • embedded
  • energy
  • fedora
  • flash
  • fpga
  • gcc
  • git
  • google
  • health
  • hp
  • internet
  • iOS
  • learning
  • license
  • linux
  • market
  • microsoft
  • movie review
  • my book
  • next steps
  • open source
  • pandaboard
  • rails
  • software
  • SOPA
  • tuxedo
  • web 2.0
  • webOS
  • windows
  • work

Blog Archive

  • ►  2012 (10)
    • ►  January (10)
  • ▼  2011 (70)
    • ►  December (10)
    • ▼  November (9)
      • Dithering, NVIDIA Quadro 1000M, and HP ZR2440w
      • Google AdWords - Gone
      • Google's New Look - It Sucks
      • Debian 6 amd64 on HP Elitebook Workstation 8560w
      • Embedded Linux Long Term - Part 3
      • Build the PandaBoard or BeagleBoard-xM x-loader on...
      • The BeagleBone!
      • Bootstrapping Fedora for ARMv7 Hard Float
      • Calendar Interface
    • ►  October (7)
    • ►  September (8)
    • ►  August (1)
    • ►  July (3)
    • ►  June (3)
    • ►  May (3)
    • ►  April (8)
    • ►  March (4)
    • ►  February (5)
    • ►  January (9)
  • ►  2010 (16)
    • ►  December (6)
    • ►  November (9)
    • ►  October (1)
Powered by Blogger.

About Me

Unknown
View my complete profile