Saturday, 4 January 2014

Porting Angstrom to Beagle Board XM revision C with all steps

Porting Angstrom to Beagle Board XM revision C with all steps




1)  DOWNLOAD PRE-BUILT BINARIES IMAGE AVAILABLE AT


http://www.angstrom-distribution.org/demo/beagleboard . 

AND 


 ALSO DOWNLOAD  -   mkcard.txt       FILE 


OR 


MAKE YOUR OWN IMAGE FROM


http://narcissus.angstrom-distribution.org/

2)

Insert blank card in your card reader into your pc.

Start the Ubuntu terminal (ctrl+alt+t) . Type the following commands...

->>sudo df -h

OR

 ->> sudo fdisk -l .

 This will show where your SD card is mounted. sda will be the main hard disk of your computer so the sdcard will be either 'sdb' or 'sdc' . I will refer it as sdX from here onward. 

3)

 unmount the card using :

->>sudo umount /dev/sdX   
if the card is not partitioned already it will not mount. But still I suggest you give this command and check what happens. Now the next command is :

Go to the directory where mkcard.txt is saved. 
For eg ->> cd Desktop .

Now, ->> chmod +x mkcard.txt   (makes mkcard.txt executable)

->> sudo ./mkcard.txt /dev/sdX    ( Formats the entire card and partitions it to sdX1(boot) and sdX2(Angstrom).  

->>sync

4) 
THEIR IS TWO PARTITION HAVE BEEN CREATED IN YOUR MICRO-SD CARD.

5)

 Writing image to your SD card

 Untar the downloaded file into you Angstrom partition by the following commands:

->>sudo tar -xvz -C /media/Angstrom -f [your-download-file]

->>sync 

6)

 In the Angstrom partition there will be a folder named 'boot', this will contain the boot files names MLO, u-boot.bin, uImage. 
Copy them to your boot partiton strictly in the following order using these commands

->>cd
->>cd /media/Angstrom
->>cd boot
->>sudo cp MLO  /media/boot
->>sudo cp u-boot.bin  /media/boot
->>sudo cp uImage  /media/boot 

7)

 BB revC uses a file named uEnv.txt which is very important since it contains the boot arguments. 
This also specifies the video mode which you are using and sets the resolution and other such parameters.
Copy the following text into a text editor and name it uEnv.txt 

dvimode="hd720 omapfb.vram=0:8M,1:4M,2:4M"
vram=16M
optargs="consoleblank=0"
console="tty0 console=ttyO2,115200n8"

8)

copy this file to the boot partition by using, remember to go to the directory in which it is saved :

->> sudo cp uEnv.txt  /media/boot

9)

Safely eject your card using following commands:

->> cd
->>sudo umount  /dev/sdX1
->>sudo umount  /dev/sdX2

10)

 Your are done with your SD card preparation.

your card is fully loaded with angstrom image with gui.
and put it in beagle board -xm board and restart it.

first time booting it will take around 40-45 min.  


  • Connect the Serial (BeagleBoardxM) to USB(Host PC) converter and configure the minicom connection. HDMI cable is also good option, configuration is not required for that. GUI of angstrom is directly shown in HDMI out connector module.    
  • Start minicom on your host machine in configuration mode.

As root: #  minicom -o -s -w

  • A menu of configuration should appear. Use the Down-arrow key to scroll down and select the Serial port setup option, and press Enter.
  •  Verify that the listed serial port is the same one that is connected to the target board. If it is not, press A, and enter the correct device. This is /dev/ttyUSB0 on most Linux distributions.
  • Set the Bps/Par/Bits option by pressing the letter E and using the next menu toset the appropriate values. You press the key that corresponds to the value 115200, and then press Enter.
  • Set Hardware flow control to No using the F key.
  •  Set Software flow control to No using the G key.
  • Press Enter to return to the main configuration menu, and then press Esc to exit this menu.






No comments: