Você está na página 1de 4

Beaglebone Black Booting

1. Configuration and Compilation linux kernel


a. cd linux-3.14.1/
b. configure linux kernel for beaglebone black
make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabiomap2plus_defconfig
c. compile the kernel
make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- uImage
LOADADDR=0x80008000 -j10
d. compile the device tree for beaglebone black SoC
make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- dtbs
2. Configuration and Compilation of u-boot
a. cd u-boot-2014.01/
b. configure & compile
make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabiam335x_boneblack
3. Copy all images to the sd card which should be attached to the wandboard
a. Attach SD card to the machine and delete all partition and unmount it.
b. # fdisk /dev/sdb
c. #enter delete option for delete existing partitions if any
d. #enter n (for creating new partition)
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-30679039, default 2048):
Using default value 2048
Last sector, +sectors or +sizeK,M,G (2048-30679039, default 30679039): +64M
e. #Set the first partition as W95 FAT32 (LBA) using the t command and entering the Hex
code c.
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c
f. #Set the bootable flag on the first partition using the a command.
Command (m for help): a
Partition number (1-4): 1
g. #Create a second primary partiion using the n command. This partition will be a linux
partition for storing the root filesystem. It will fill the rest of the SD card.

Command (m for help): n


Command action
e extended
p primary partition (1-4)
p
Partition number (1-4, default 2): 2
First sector (133120-30679039, default 133120):
Using default value 18432
Last sector, +sectors or +sizeK,M,G (133120-30679039, default 30679039):
Using default value 30679039
h. # w (save)
i. Format the first partition of the SD card with a FAT filesystem using the mkfs.vfat tool.
# mkfs.vfat /dev/sdb1 -L boot
(or)
# sudo /sbin/mkfs.vfat -n boot /dev/sdb1
h. Format the second partition of the SD card with a EXT4 filesystem using the mkfs.ext4
tool.
# mkfs.ext4 /dev/sdb2 -L rootfs
(or)
# /sbin/mkfs.ext4 -n rootfs /dev/sdb2
i. Mount the sd card.
j. untar the rootfs into the /dev/sdb2 (or /media/rootfs) of the mmc card
k. change /etc/inittab to
'T0:23:respawn:/sbin/getty -L ttyO0 115200 vt100' (for serial login)
(inittab is the file that kernal reads before executing /sbin/init.d process)
m. Add linux kernel image, dtb file, MLO, u-boot.img to the fat partition of the sd card (
/dev/sdb1 or /media/boot)
cp </path/to/u-boot/source>/u-boot.dtb /media/boot/
cp </path/to/u-boot/source>/MLO /media/boot/
cp </path/to>/linux-3.14.1/arch/arm/boot/zImage /media/boot/
cp </path/to>/linux-3.14.1/arch/arm/boot/dtbs/am335x-boneblack.dtb /media/boot/
4. Booting the images in beaglebone black :
a. attach the SD card having images to the beaglebone black.
b. Connect the beaglebone black to host machine through serial with 115200n8 settings
using minicom or cutecom
c. Connecting the beaglebone black with power adapter and press S2 button on the board to
load the bootloader from the SD card.
d. stop at bootloader in the minicom and load all images to beaglebone black RAM from SD
card
i. fatload mmc 0:1 0x80200000 uImage
ii. fatload mmc 0:1 0x88000000 am335x-boneblack.dtb
iii. setenv bootargs console=ttyO0,115200n8 root=/dev/mmcblk1p2 rootwait

ro(mmcblk1 for inbuilt eMMC mmcblk0 for external SD card)


iv. bootm 0x80200000 - 0x88000000
v. login: , password:

USB:
d. load all images to beaglebone black RAM from SD card
i. fatload usb 0:1 0x80200000 uImage
ii. fatload usb 0:1 0x88000000 am335x-boneblack.dtb
iii. setenv bootargs console=ttyO0,115200n8 root=UUID=xxxxx rootwait rw
iv. bootm 0x80200000 - 0x88000000
v. login: , password:
root=UUID=xxxx indicates that load the root filesytem from a partition with UUID=xxxxx

Ethernet:
configure and set the host with tftp server(tftpd) and place all the files in a folder
(var/lib/tftpboot)
4. Booting the images in beaglebone black :
a. connect the ethernet to the beaglebone black which is in the host network.
b. Connect the beaglebone black to host machine through serial with 115200n8 settings
using minicom or cutecom.
c. Connecting the beaglebone black with power adapter and press S1 button on the board to
load the bootloader from the SD card.(optional: as an in built bootloader is available
in eMMC)
d. stop at bootloader in the minicom and load all images to beaglebone black RAM from
ethernet
> setenv serverip xx:xx:xx:xx
> setenv ipaddr xx:xx:xx:xx
> setenv bootargs console=ttyO0,115200n8 root=/dev/mmcbk1p2 rootwait rw
> tftpboot 0x80200000 uImage
> tftpboot 0x88000000 am335x-boneblack.dtb
> bootm 0x80200000 - 0x88000000
> login: , password:
U-boot from USB or Ethernet cannot be loaded in this board initially as RBL(ROM Bootloader
which runs before U-Boot) donot have drivers or logic to load the u-boot.img from USB device or
Ethernet. So let the default u-boot.img, avilable in eMMC or the SD card connected, be loaded, then
we can replace it with our u-boot.img and run the logic at that location( # go 0x....) provided we
know the bootloader location in RAM.

/dev/fb0
frame buffer depends on tilcdc driver of DRM package
enable TPMMxx
Frame buffer devices DA8xx/omap-lim/AM335x
HDMI support for omap

omap display subsystem


omap2+ fb support (only)
la -al /dev/fb0 gives major and minor no
search for that in /sys/dev/char/major\:minor/devices/drivers/4830e000(address) from device tree

For usb to get enables usb support should be enabled and a usb driver should be enabled(musb) and
even am335x usb phy driver under usb physical layer drivers should be enabled

apt-get install xserver-xorg-core


apt-get install lightdm lightdm-gtk-greeter
apt-get install openbox
apt-get install lxde-core
http://www.askubuntu.com/questions/315580/how-does-the-display-server-display-managerwindow-manager-structure-exactly
Following are the supported resolutions of the BeagleBone Black. You display may not support all
of these resolutions on the board.
1920x1080@24 (Audio)
1324x768@60
1280x768@60
1280x1024@60
1280x720@60 (Audio)
1152x864@75
1024x768@76
1024x758@60
800x600@60
800x600@75
640x480@75
Only CEA resolutions support audio as defined by the HDMI Specification.
You can set the default resolution on the initial power up for the splash screen by adding the
following to the uENV.txt file where you can use any resolution you choose:
video=HDMI-A-1:640x480@60

Você também pode gostar