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.
- Review BeagleBoardShoppingList. It has a list of many things that will be very helpful to you -- if you don't have them already.
- 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.
- Plug the SD card into your Beagle.
- Turn on your Beagle and get to the # prompt -- make sure to hit any key to stop autobooting Linux.
- Enter the following commands. This will overwrite the current X-Loader on your Beagleboard and replace it with the X-Loader from your SD card.
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- Power off your Beagle, and power it back on. Hit a key to prevent autoboot.
- You should now see that you have a newer version of X-Loader.
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:
- At the U-Boot prompt, enter:
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):
- At the U-Boot prompt, enter:
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
- Power off your Beagle and power it back on.
- It should now boot up directly into Angstrom on its own.
- Note: BE PATIENT. The first boot of Angstrom takes quite a while (5 minutes or so) to unpack all the various files needed. After that, it boots quite quickly. So give it time.
- When Angstrom boots, you should get the following prompt on your console terminal. (It has a root account set up with no password):
.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'
The Angstrom Distribution beagleboard ttyS2
Angstrom 2008.1-test-20080918 beagleboard ttyS2
beagleboard login:- And on your DVI-D Monitor, you should have a log-in screen. Enter a new username and password, and Angstrom will set up a new account for you on the Beagle.
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.
- Wi-Fi: It might work for you, but don't spend too long trying. Wired Ethernet works great.
- The Sound Driver: There are significant problems with the Sound Driver to date in Angstrom. It will work, sometimes, and almost always it will lead to a system crash. There are rumors that this will be fixed in future revisions of the Beagleboard (Rev C). There are some improvements if you want to go to a different version of the kernel -- a separate subject. If you want mplayer to run reliably, use 'mplayer -nosound'.
- The OMAP SGX Graphics accelerator. The drivers for this have yet to be released. So for now, all graphics is done in software using the Cortex-A8 with Neon core only. But note that the Cortex does quite well at graphics. So the OMAP 3503 may be enough for general graphics needs (2D).
- The OMAP Video and Audio accelerator. The drivers for this have yet to be released. So for now, all video and audio is done in software using the Cortex-A8 with Neon core only. But note that the Cortex does quite well at video and audio. So the OMAP 3503 may be enough for general video and audio needs (VGA and below).
Section VIII. Things That are Amazing
- omapfbplay: This is an amazing video player. It plays the videos using the Cortex A8 and Neon co-processor. And it plays them as fast as it can (i.e. faster than real-time if it can). And it displays a frame rate. Take a look. It can run VGA videos at 60 fps. It can run 720p videos at 24fps or so.
- Running Linux at 500 MHz for Two Watts. I have measured the power input (5VDC) to the Beagleboard and it consumes between 1.5 and 2.2 watts for the whole board. And this is without any power management software etc. Net result is that you have a full Linux computer on the internet, running about 1/2 the speed of a laptop for two watts.
- Most things will just work. I've outlined some problems above. But in general, fire up an application and it will work. There are three web browsers included (Firefox, Epiphany and Midori). There is Pidgin instant messaging included. etc. etc. etc. Play around, you'll be amazed.
- The community is very responsive. Ask a question and you will get an answer.
Setting up the screen resolution: http://elinux.org/BeagleBoardFAQ#Display_resolutions_.231
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?
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/
How do I connect to internet using USB netwrok adapter
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.
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.
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?
In later versions of uboot the 'mmcinit' bootcmd becomes 'mmc init'.
Great tutorial! I had no problems except the one I stated above.
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
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?
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 ?
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?
I am facing the same issue too... It jumps back to the login screen upon entering the username and password.
OMG! I am going to develop a WiFi? beagleboard, and based from what you've said I'm getting pretty uneasy. I will be having my first beagle this week. Hopefully, Rev.C4 won't have the same issues you experienced.
To echo roy.vanegas' question from Oct. 19, 2009, could you please list the files we are supposed to copy to the first partition? Would that include the four different modules files? Are we supposed to untar them? I too have booted to the keyboard display but can't move my mouse (I running both the mouse and the beagleboard itself through a powered usb hub).
i have try to install one angstrom in beagle i try to come command line application . i have to add graphical application. how can procedd to get i. try to enter paassword and user name . it will tell it is an incorrect login .how i solve the problem
think it should be setenv bootcmd 'mmc init; fatload mmc 0 0x80300000 uImage; bootm 0x80300000' not mccinit
@ roy.vanegas and tomgross: which files should be copied on the 1st partition is described here: http://elinux.org/BeagleBoardBeginners
This version (3/18/10) works fine. As a matter of fact I am using it to post this message. My keyboard, mouse (USB) and wifi all work fine. I am using Airlink AWLL3026. All I did is to click the lower right status icon to enter my wifi router name and password.
Now I am trying to install some extra packages. But ipkg is not installed. How/where to get it?
Never mind, I got it working using opkg. :-D
Thanks for the tutorial - very helpful for the first steps! As mentioned about with newer revisions it has to be "mmc init" instead of "mccinit" when overwriting the x-loader and also in the bootcmd. Wifi worked out of the box with the demo image (LogiLink? usb adapter with Realtek RTL8187L)
Hi
i am using rev board C4. In the Angstrom demo images page there is a folder called sd images which contains a img file. could any body tell me how to use these files to boot up the board.
Hi all
if you are using the angstrom demo images from http://www.angstrom-distribution.org/demo/beagleboard/
then try using the kernel image in Angstrom-Beagleboard-demo-image-glibc-ipk-2010.3-beagleboard.rootfs.tar.bz2 tar ball /boot folder.( if your kernel is not booting up ).
I want to write an application that connects to a client over tcp and displays some status on the screen. Is there a specific IDE or language recommended? I would like to use mono if I can as I have done mostly Windows programming in the past. Any suggestions would be helpful. Thanks.
I installed Angstrom... And it boots... But my neither my keyboard nor my mouse are working. I mean I tried multiple keyboards and mice, but the result remains the same - NO RESPONSE of either. I am stick with this for 3 days now... Please help!!!
i'm having the same trouble. I burn the image of angstrom into a SD card but either the keyboard and mouse doesn't work.
Your keyboard and mouse MUST be plugged into a USB hub!
I think there is some problem with your USB hub. To check, restart your USB hub by connect/disconnecting power from HUB exact at the time when boot progress bar tends to its end. For permanent solution you should trigger your USB hub's power from USB-OTG port's pin#4.
Are you using an active hub? You shouldn't use a bus-powered USB hub, use one with its own power supply!
My beagleboard is running nicely, with keyboard, mouse, external usb hard disk, Bafo USB ethernet adapter and external DVD-ROM for viewing DVD movies. I am using the angstrom demo image from spring 2010. Almost everything works very well. I had to solve some library dependency to get Abiword running. Also I installed vncviewer to be able to use my Windows PC remotely with the beagleboard. Also I was able to install Emacs with opkg, but not pico or nano, strange.
I'm wondering if there will be a new angstrom demo image for beagleboard? It would be great to start anew with fresh packages...
-P.
Where is the frickin Desktop? DAMNIT
Can anyone update this document? I believe some syntaxs have changed since then...
Hi, I've a XM board. I want to install my own applications to it. since it lacks NAND, i've to add the software packages to the image. how to do this?
'mmcinit' needs to be replaced with 'mmc init' at http://code.google.com/p/beagleboard/wiki/HowToGetAngstromRunning#Section_III.__Putting_New_X-Loader_into_Beagleboard_NAND_Flash_M
Can someone please update this procedure? It is woefully out of date and will brick a beagleboard.
I have a Beagleboard Rev C4. My Logitech USB mouse did not work until when connected directly to the Beagleboard. The mouse led did not come on although the board would boot up. When I connected it through a hub (an un-powered hub even), it worked great. It says in the Beagleboard doc that the Host plug is HS only and will not run LS or FS devices without them being plugged through a hub. Perhaps this is why. My hub says "USB 2.0 3-Port Hub with Ethernet Adapter".
Hello everyone I have a beagleboard XM and i successfully installed angstrom os but the BB can't recognise the mouse and the keyboard.
Any suggestions ?
H! everybody,
dixit: "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." with a 'dd' command I can understand but when copying with 'cp'?... What is the technical reason for this?I am using u-boot from here:
http://www.angstrom-distribution.org/demo/beagleboard/
I can't bet mmcinit or mmc init to work? When I do help mmc there is no init command. Is there a new way to initialize the sd card or is something missing from the u-boot found at the link provided? Any suggestions would be great thanks.
Need help hooking up beagleboard-xm rev c to hdtv w/ angstrom/Ubuntu
@sxs1385 I'm working on the same thing now and will post results here when I get it working. It looks like the mmcinit command may be depreciated because I don't have that option either.
I believe "mmc init" has become "mmc rescan". See http://elinux.org/index.php?title=Talk:BeagleBoardUbuntu&oldid=83642#Upgrade_X-loader_and_U-boot