• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..18-Apr-2025-

patches/18-Apr-2025-

busybox.fragment A D18-Apr-202577 43

genimage.cfg A D18-Apr-20251,014 7459

linux.fragment A D18-Apr-20251.5 KiB6968

post-image.sh A D18-Apr-2025318 1510

readme.txt A D18-Apr-20252.9 KiB10074

readme.txt

1Lego Mindstorms EV3
2
3Intro
4=====
5
6This is the buildroot basic board support for the Lego Mindstorms EV3
7programmable brick.
8
9The Lego Mindstorms EV3 brick comprises a Texas Instruments AM1808 SoC, with
10an ARM 926EJ-S main processor running at 300 MHz.
11See:
12- https://en.wikipedia.org/wiki/Lego_Mindstorms_EV3
13- http://www.lego.com/en-us/mindstorms/products/ev3/31313-mindstorms-ev3/
14- http://www.ti.com/product/am1808
15
16How it works
17============
18
19Boot process :
20--------------
21
22The EV3 boots from an EEPROM. This loads whatever is on the built-in 16MB flash
23(usually U-Boot) and runs it. The U-Boot from the official LEGO firmware and
24mainline U-Boot will attempt to boot a Linux kernel from the external µSD card.
25It will try to load a uImage (and optional boot.scr) from the first µSD card
26partition, which must be formatted with a FAT filesystem. If no µSD is found or
27it does not contain a uImage file, then the EV3 will boot the uImage from the
28built-in 16MB flash.
29
30How to build it
31===============
32
33Configure Buildroot
34-------------------
35
36The lego_ev3_defconfig configuration provides basic support to boot on the Lego
37Mindstorms EV3 programmable brick:
38
39  $ make lego_ev3_defconfig
40
41Build everything
42----------------
43
44Note: you will need to have access to the network, since Buildroot will
45download the packages' sources.
46
47  $ make
48
49Result of the build
50-------------------
51
52After building, you should obtain this tree:
53
54    output/images/
55    ├── boot.vfat
56    ├── flash.bin
57    ├── rootfs.ext2
58    ├── rootfs.ext3 -> rootfs.ext2
59    ├── rootfs.squashfs
60    ├── sdcard.img
61    ├── u-boot.bin
62    ├── uImage -> uImage.da850-lego-ev3
63    └── uImage.da850-lego-ev3
64
65Installation
66============
67
68You can use either flash.bin or the sdcard.img. To load flash.bin, use the
69official Lego Mindstorms EV3 programming software firmware update tool to load
70the image. To use sdcard.img, use a disk writing tool such as Etcher or dd to
71write the image to the µSD card.
72
73NOTE: The sdcard.img created by lego_ev3_defconfig won't boot if the official
74LEGO firmware is installed on the EV3 (it has an old version of U-Boot that
75doesn't know about device tree). You must either set the kernel configuration
76option to append the device tree to the kernel or you can create a boot.scr
77that chainloads a newer U-Boot or you can install a newer U-Boot in the flash
78memory (just flashing u-boot.bin is enough).
79
80Finish
81======
82
83To have a serial console, you will need a proper USB to Lego serial port
84adapter plugged into the EV3 sensors port 1.
85See:
86- http://botbench.com/blog/2013/08/15/ev3-creating-console-cable/
87- http://botbench.com/blog/2013/08/05/mindsensors-ev3-usb-console-adapter/
88
89The serial port config to use is 115200/8-N-1.
90
91Bluetooth
92=========
93
94To enable Bluetooth:
95
96    # modprobe hci_uart
97    # /usr/libexec/bluetooth/bluetoothd &
98    # bluetoothctl
99    [bluetooth]# power on
100