My favorites | Sign in
Logo
             
Search
for
Updated Sep 04, 2009 by dirk.behme
HowToGetAngstromRunning  
Great first project: From New Beagleboard to Linux (Angstrom Distro) Running.

Introduction

This is not the only way to do this. But it is the way that I have found to work. :-)

Plus, this procedure shows you how to boot up the Angstrom Demo image that has already been created and is on the web for download.

If you want to build your own Angstrom Images, then consult the elinux.org How-To Page on Open Embedded Building.

Details

Section I. Assembling the Pieces

When you buy a Beagleboard, it comes with one item -- the board itself. This is not nearly enough to actually use a Beagleboard. This section shows you how to get your Beagleboard accessories and to get set up to begin.

  • Much of this procedure should be done from a Linux PC. It's ok to use VMware machine running on a Windows PC. See BeagleBoardShoppingList for a list of places that you can get the software needed if you're operating from a Windows PC.
  • So if you have a Windows PC, then:
    • Download VMware player
    • Download the 20GB Ubuntu image from the shopping list above.
    • Install the VMware Player.
    • Unpack the Ubuntu image into a folder. (this may require the 7z unpacker -- also listed in the shopping list).
    • Start VMware, and Open the Ubuntu image that was unpacked.
    • Log in as jars/jars.
  • Be sure you can get to the point of seeing the OMAP3 beagleboard# prompt (as below).
Texas Instruments X-Loader 1.41                                              
Starting OS Bootloader...                                                    
                                        
U-Boot 1.3.3 (Jul 10 2008 - 16:33:09)   
                                        
OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz   
OMAP3 Beagle Board + LPDDR/NAND         
DRAM:  128 MB                           
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Audio Tone on Speakers  ... complete
OMAP3 beagleboard.org # 

Section II. Setting Up the Angstrom SD Card

  • Go to LinuxBootDiskFormat and follow that procedure for making a dual-partition SD card.
    • Note that on your machine, it may be /dev/sdb -- not /dev/sdc -- for example.
    • I suggest giving partition 1 the label Beagle_Boot, and partition 2 the label Angstrom_Demo
  • Unplug, and replug in your SD card, and it should now automount the two partitions that you created.
  • IMPORTANT TO DO THIS BEFORE ANY OTHER FILES ARE COPIED: Copy the MLO file that you downloaded to the Beagle_Boot partition. The MLO file must be the first file copied to the partition after re-formatting.
  • Copy the rest of the files downloaded to the Beagle_Boot partition.
  • Now cd to the partition 2 -- e.g. cd /media/Angstrom_Demo
  • Untar the filesystem. e.g. tar -xvjf /media/Beagle_Boot/Angstrom......bz2
  • Now you have a bootable SD card with the Angstrom demo fully loaded.
  • Unmount the SD card.
    • cd ~
    • sync
    • unmount /media/Beagle_Boot
    • unmount /media/Angstrom_Demo

Section III. Putting New X-Loader into Beagleboard NAND Flash Memory

The Rev B5 Beagleboards ship with an X-Loader that is not new enough to properly run Angstrom because it does not automatically use the uImage from the SD card (when present). So this section upgrades the X-Loader to a newer version.

        OMAP3 beagleboard.org # mmcinit
        OMAP3 beagleboard.org # fatload mmc 0 0x80200000 x-load.bin.ift
        OMAP3 beagleboard.org # nandecc hw
        OMAP3 beagleboard.org # nand erase 0 80000
        OMAP3 beagleboard.org # nand write.i 0x80200000 0 80000
Texas Instruments X-Loader 1.4.2 (Aug  8 2008 - 16:59:05)
Reading boot sector
Booting from nand


U-Boot 2008.10-rc2 (Oct  2 2008 - 09:02:46)

OMAP3530-GP rev 2, CPU-OPP2 L3-165MHz
OMAP3 Beagle board + LPDDR/NAND
DRAM:  128 MB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
OMAP3 beagleboard.org #

Section IV. Setting Up Your Automatic Boot

This procedure will set up your Beagleboard to automatically boot to the SD card on power on.

If you are using the 2.6.27 kernel:

        OMAP3 beagleboard.org # setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootdelay=2 rootfstype=ext3 video=omapfb:vram:2M,vram:4M'

If you are using the 2.6.28 kernel (the latest):

        OMAP3 beagleboard.org # setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait omapfb.video_mode=1024x768MR-16@60'

In either case, enter:

        OMAP3 beagleboard.org # setenv bootcmd 'mmcinit; fatload mmc 0 0x80300000 uImage; bootm 0x80300000'
        OMAP3 beagleboard.org # saveenv

.-------.
|       |                  .-.
|   |   |-----.-----.-----.| |   .----..-----.-----.
|       |     | __  |  ---'| '--.|  .-'|     |     |
|   |   |  |  |     |---  ||  --'|  |  |  '  | | | |
'---'---'--'--'--.  |-----''----''--'  '-----'-'-'-'
                -'  |
                '---'

The Angstrom Distribution beagleboard ttyS2

Angstrom 2008.1-test-20080918 beagleboard ttyS2

beagleboard login:

Section V. Getting Beagle on the Internet

If you have a USB to 10/100 or a USB to Wi-Fi interface connected into your USB 2.0 Hub connected into your Beagleboard, then you can put your Beagleboard onto the internet.

NOTE: 802.11 Wi-Fi is NOT my recommendation.

Most Wi-Fi Interfaces will NOT work. To date, I have only found the Belkin USB Wireless G Adapters to work. I found the following article very helpful as well: How to Use Belkin G in Linux.

But it is not at all easy, nor reliable that Wi-Fi will work.

  • Shutdown your Beagleboard.
  • Plug the 10/100 or Wi-Fi Adapter into your USB Hub.
  • Turn your Beagleboard back on. If you are lucky -- and sometimes you will be -- then the Beagleboard should discover and enable the Internet during the boot up process.
  • You can check your console log to see if it found the Internet Adapter. If you use the Trendnet 10/100, you should see something like this on your console terminal:
usb 1-1.3.4: new high speed USB device using musb_hdrc and address 5
usb 1-1.3.4: configuration #1 chosen from 1 choice
eth0: register 'asix' at usb-musb_hdrc-1.3.4, ASIX AX88772 USB 2.0 Ethernet, YOUR_MAC_ADDRESS_HERE
  • Log into the Console terminal as root, and try a 'ping google.com' to see if your internet is fully functional. If you get responses, you're all set. Do control-C to exit ping.
  • If not, and you're using 10/100 Wired Ethernet, try the following. This will shutdown the ethernet, and then re-attempt to bring it back up. Usually this will work.
         root@beagleboard:~# ifdown eth0
         root@beagleboard:~# ifup eth0
  • If you are using Wi-Fi, and you need to enter the ESSID in order to associate with your Access Point, or you have WEP or the like turned on, try the following. You can omit the wlan0 enc line if you don't use WEP.
         root@beagleboard:~# ifdown wlan0
         root@beagleboard:~# iwconfig wlan0 essid YOUR_ESSID_HERE
         root@beagleboard:~# iwconfig wlan0 enc YOUR_WEP_KEY_HERE open
         root@beagleboard:~# ifup wlan0
  • Hopefully at this point you will have successfully connected to the Internet. If not, and you're trying wireless, the Linux Wireless web page may have some good information.

Section VI. The Community

When you need help with Beagle, there is an active community out there all the time. The two main spots to look are:

  • The Beagleboard Chat. Just fire up mIRC, Pidgin, Trillilan, etc. and join the Beagle IRC channel.
    • Connect to irc.freenode.net.
    • /join #beagle
    • See HowToJoinBeagleChatGroup for a more detailed description of how to get logged into the group.

Section VII. Things That Likely Won't Work

The following are the roadblocks that I have encountered and have yet to get over.

Section VIII. Things That are Amazing


Comment by beagleboard.jason, Mar 09, 2009
Comment by samhs...@hotmail.com, Apr 05, 2009

In log-in screen, I can't move my USB mouse to enter the username and password. Is there anything missing during setting up Angstrom which running at SD card?

Comment by ajlennon, Apr 11, 2009

Hi - thanks for the setup instructions.

I had a few problems with the RevC board I just received from EBV (MTD block errors and such) and so am re-installing the latest Angstrom from scratch.

Presumably I can format the VFAT partition to be much smaller than the +50 cylinders above, as there shouldn't be any need to have the filesystem bzip on there as well as on the Linux partition should there?

Cheers,

Alex/

Comment by paramatmuni.neelima, Jul 22, 2009

How do I connect to internet using USB netwrok adapter

Comment by aydnmustafa, Aug 05, 2009

Hey. Great tutorial.

"In log-in screen, I can't move my USB mouse to enter the username and password. Is there anything missing during setting up Angstrom which running at SD card?"

It was my problem too. Your usb hub shouldnot get the energy from beagleboard. It should have its own energy supply.

Comment by aydnmustafa, Aug 05, 2009

I still do have a problem.Angstrom installed on my beagleboard. "root@beagleboard:~# ifdown eth0" and "root@beagleboard:~# ifup eth0" works perfect, however, b.board&angstrom needs it every time. I mean, every time when I turn on the board I have to use these commands. Do you know how can I handle it? I dont want to do that everytime.

Comment by ports...@portset.co.uk, Aug 13, 2009

This article is now out of date to current Beagleboards supplied (July 2009)in that the X-Loader is at V1.41.2 and the current version of VMplayer cannot open a ext3 partition. Also finding setenv and saveenv are not supported as it's Bash Any suggestions?

Comment by bob.fere...@rafresearch.com, Aug 18, 2009

In later versions of uboot the 'mmcinit' bootcmd becomes 'mmc init'.

Great tutorial! I had no problems except the one I stated above.

Comment by deepakvr, Sep 12, 2009

The RaLink? chipset based USB wireless also works. Dlink DWA-110 is an example,

http://www.dlink.com.au/Products.aspx?Sec=1&Sub1=11&Sub2=19&PID=321

Comment by roy.vanegas, Oct 19, 2009

In the Section II. Setting Up the Angstrom SD Card section, the author of this tutorial mentions downloading the Angstrom-Beagleboard-Demo-Image....bz2 file, and all the other files located there, but there are many files with similar names located at the directory where this .bz2 image resides. Which ones are the necessary files needed to get this Angstrom Demo working?

Comment by raveendra.padasalagi, Nov 03, 2009

Is it possible to get the sources for the 2.6.28-omap1 kernel sources ?, I mean I want to build the kernel sources on my own and try to boot up beagle, Any suggestions ?

Comment by js1...@messiah.edu, Nov 05, 2009

while running opkg upgrade our board crashed. now at the log in screen it allows us to log in but jumps back to the log in screen after trying to load the user for about 10sec (whether it is the user or the root). hyperterminal works to log in but how can we fix the display log in?


Sign in to add a comment
Hosted by Google Code