-
Notifications
You must be signed in to change notification settings - Fork 0
Board: BeagleBone
BeagleBone is an $89 MSRP, credit-card-sized Linux computer that connects to the Internet and runs software such as Android 4.0 and Ubuntu. With plenty of I/O and processing power for real-time analysis provided by an AM335x 720MHz ARM® processor, BeagleBone can be complemented with cape plug-in boards to augment functionality.
MCU | AM3359 |
---|---|
Family | ARM Cortex-A8 |
Vendor | TI |
Package | 324NFBGA |
RAM | 256 MB |
Flash | 1 GB |
Frequency | up to 1 GHz |
FPU | no |
Timers | 8 (8 x 32bit) |
ADCs | 8-ch 12-bit |
UARTs | 6 |
SPIs | 2 |
I2Cs | 3 |
Vcc | 3.3V - 5.0V |
System Reference Manual | System Reference Manual |
BeagleBone Website | Website |
In order to get our code onto the BeagleBone, we are using a bootloader called "u-boot". To install this on our SD card, the following steps have to be completed:
-
First of all, we will need a toolchain in order to cross-compile code for the board. We used the arm-none-eabi chain, but there are other options (for example arm-linux-gnueabi). Both of these can be found in the user repositories.
-
Now we clone u-boot from their git repository and compile it. The CROSS_COMPILE variable should be set accordingly, of course.
git clone git://git.denx.de/u-boot.git && cd u-boot
ARCH=arm CROSS_COMPILE=arm-none-eabi- make am335x_evm_config
ARCH=arm CROSS_COMPILE=arm-none-eabi- make
-
Now we have to prepare the SD card, which means formating it to FAT32. This can be done for example with
mkfs.vfat -F 32 /dev/sdx
-
Lastly we simply mount the SD card and copy the files "u-boot.img" and "MLO" located in the u-boot directory onto the SD card.
When we now open the device with a serial terminal such as minicom (we can also recommend cutecom), u-boot should be giving us a prompt. The simplest way from this point is to send the code via the serial port:
-
loady
prepares u-boot for data transfer and after recieving the data, it will load the code to a specific address (usually 0x80200000) and can now be started usinggo 0x80200000
. !!If this starting address differs, the DDR address in the linkerscript (xam3359_linkerscript.lds) has to be set accordingly!! -
it should be noted that the code cannot be in .elf format, it has to be a binary. Fortunately, RIOT make already creates a .hex that we can use.
When working on a bigger project, it might be worth the time to set up u-boot's tftpboot, which enables us to send the data via ethernet and automatically execute it. In order to achieve this, a local DNS server has to be set up and a config file for u-boot has to be stored on the SD card.
-
as a DNS server we can recommend dnsmasq - since we want to load a file from a specific location, this location has to be known to the program. To achieve this, we edit the config file (/etc/dnsmasq.conf). Find these 2 lines, uncomment them and make sure to name the directory where you want to place the code in the future. NOTE: dnsmasq has to be running when we want to send data via FTP.
- #Enable dnsmasq's built-in TFTP server
- #enable-tftp
- #Set the root directory for files available via FTP.
- #tftp-root=/home/user/riot/bin
-
the config file has to be named uEnv.txt and in it we want to set a couple of variables. Here is an example of what it can look like:
- ipaddr=192.168.2.106
- serverip=192.168.2.102
- gatewayip=192.168.2.1
- netmask=255.255.255.0
- hostname=mycomputer
- rootpath=/home/user/riot/bin
- bootfile=helloworld.hex
- tftpboot=echo Booting from network...; tftp ${loadaddr} ${serverip}:${bootfile}; setenv bootargs ${bootargs}; go ${loadaddr};
- uenvcmd=run tftpboot;
U-boot will check the path named in rootpath for the file named in bootfile and run it. This should be the same as the tftp-root we set for our DNS server before.
Now we simply copy the uEnv.txt onto our SD card (like we did with u-boot.img and MLO). The board should now automatically attempt to load and start the code from the specified directory upon booting (make sure to have dnsmasq running). We can still stop this automatic boot and use the bootloader as we did before.
RIOT - The friendly Operating System for the Internet of Things
Homepage | [GitHub] (https://github.com/RIOT-OS/) | Developers Mailing List | Users Mailing List | Twitter @RIOT_OS
- Family: ARM
- Board: Airfy Beacon
- Board: Arduino Due
- Board: CC2538DK
- Board: HikoB Fox
- Board: IoT LAB M3
- Board: LimiFrog-v1
- Board: mbed_lpc1768
- Board: MSB-IoT
- Board: MSBA2
- Board: Nucleo-L1
- Board: Nucleo-F334
- Board: Nucleo-F303
- Board: Nucleo-F091
- Board: Mulle
- Board: OpenMote
- Board: PCA1000x (nRF51822 Development Kit)
- Board: Phytec phyWAVE-KW22
- Board: RFduino
- Board: Samr21 xpro
- Board: Spark Core
- Board: STM32F0discovery
- Board: STM32F3discovery
- Board: STM32F4discovery
- Board: UDOO
- Board: yunjia-nrf51822
- Family: ATmega
- Board: Arduino Mega2560
- Family: MSP430
- Board: MSB-430H
- Board: TelosB
- Board: WSN430
- Board: Zolertia Z1
- Board: eZ430-Chronos
- Family: native
- Board: native
- Family: x86
- Board: Intel Galileo