summaryrefslogtreecommitdiff
path: root/chromium/docs/website/site/chromium-os/developer-guide/beaglebone/index.md
blob: 2f27d7a979524a0cda3edf20a72244ba6b23e4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
breadcrumbs:
- - /chromium-os
  - Chromium OS
- - /chromium-os/developer-guide
  - Chromium OS Developer Guide
page_name: beaglebone
title: Building for Beaglebone
---

Building for beaglebone uses the standard build tools, with only minor
adjustments to the options.

#### Build options

Run setup_board with the standard options:

```none
  ./setup_board --board=beaglebone
```

Run build_packages with these options:

```none
  ./build_packages --board=beaglebone --nowithtest --nowithautotest --nowithfactory
```

Assign a password to the 'chronos' account with the standard commands:

```none
  ./enable_localaccount.sh chronos
  ./set_shared_user_password.sh
```

Run build_image with these options:

```none
  ./build_image --board=beaglebone base
```

Put the image onto a micro-SD card with a command similar to this:

```none
  cros flash usb:// ../build/images/beaglebone/latest/chromiumos_base_image.bin
```

#### Connecting to the serial console

1.  Plug the USB cable into an Ubuntu system.
2.  Run these commands on the Ubuntu system.

```none
sudo modprobe ftdi_sio vendor=0x0403 product=0xa6d0
sudo screen /dev/ttyUSB1 115200
```

**Note:** In some cases, the tty device may be `/dev/ttyUSB0` instead.

#### Booting Chrome OS on the Beaglebone

Plug the micro-SD card into the beaglebone, and apply power. With the beaglebone
**black**, hold down **S2** button on board before applying power. Attach to the
beaglebone console, hit return, and type 'boot' at the U-Boot prompt.

**Note:** Power the beaglebone using the 5V barrel connector. USB power will
usually work but will fail when doing an operation with a high power draw (e.g.
update_engine).