Version 4 (modified by ravishi, 4 years ago)

--

[Page in development]

Partitioning & Formatting an SD Card

Here's a detailed set of instructions for partitioning and formatting an SD card to boot Linux:  http://code.google.com/p/beagleboard/wiki/LinuxBootDiskFormat

Autoboot from SD

To get the BeagleBoard to autoboot from the SD card, the following commands are needed:

OMAP3 beagleboard.org # setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait'
OMAP3 beagleboard.org # set bootcmd 'mmcinit;fatload mmc 0 80300000 uImage;bootm 80300000' ; saveenv
OMAP3 beagleboard.org # printenv

Upon printing the environment, the output should show the updated settings.

OMAP3 beagleboard.org # printenv                                               
filesize=AF13C                                                                 
stdin=serial                                                                   
stdout=serial                                                                  
stderr=serial                                                                  
bootargs=console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait                
bootcmd=mmcinit;fatload mmc 0 80300000 uImage;bootm 80300000                   
                                                                               
Environment size: 181/131068 bytes

Reset the board and it should now autoboot from the SD card.

Transfer Files over Serial using ZMODEM

If using minicom and a serial connection to control the BeagleBoard, there is a transfer protocol that can transfer files between your host machine and the BeagleBoard. This can be a timesaver for transferring small files. To do this, you will need to bitbake and install the zmodem recipe.

$ source ~/oe/beagleboard/beagleboard/profile.sh
$ cd $OE_HOME
$ bitbake lrzsz

This will create three new ipk files in ~/oe/tmp/deploy/glibc/ipk/armv7a. Copy only the main file only (lrzsz_0.12.20-r4.1_armv7a.ipk) into your home directory. Replace the SD card, reboot, and minicom into the BeagleBoard. Install the ipk file and start the zmodem to wait for a file.

$ minicom -w
root@beagleboard:~# opkg install lrzsz_0.12.20-r4.1_armv7a.ipk
root@beagleboard:~# rz
 waiting to receive.**B0100000023be50

enter minicom and press CTRL-Z, then A.

General Notes

Folder name of package cannot contain underscores Package name before revision cannot contain capital letters

Use opkg instead of ipkg to install on BeagleBoard

You have to change permissions of /home/root to 777 so the other computer can insert the new pkg. This has to be done locally on the BeagleBoard (by minicom)

To install Perl on BeagleBoard, bitbake the pre-existing Perl recipe and copy over two ipk files to the rfs: perl_5.8.8-r27.1_armv7a.ipk and libperl5_5.8.8-r27.1_armv7a.ipk. Additional modules can then be installed.

Open minicom with option -w. It turns on text wrapping which is off by default.

Attachments