xref: /OK3568_Linux_fs/buildroot/board/stmicroelectronics/stm32f469-disco/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSTM32F469 Discovery
2*4882a593Smuzhiyun===================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThis tutorial describes how to use the predefined Buildroot
5*4882a593Smuzhiyunconfiguration for the STM32F469 Discovery evaluation platform.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunBuilding
8*4882a593Smuzhiyun--------
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun  make stm32f469_disco_defconfig
11*4882a593Smuzhiyun  make
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunFlashing
14*4882a593Smuzhiyun--------
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun  ./board/stmicroelectronics/stm32f469-disco/flash.sh output/
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunIt will flash the U-boot bootloader.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunCreating SD card
21*4882a593Smuzhiyun----------------
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunBuildroot prepares an"sdcard.img" image in the output/images/ directory,
24*4882a593Smuzhiyunready to be dumped on a SD card. Launch the following command as root:
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun  dd if=output/images/sdcard.img of=/dev/<your-sd-device>
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun*** WARNING! This will destroy all the card content. Use with care! ***
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunFor details about the medium image layout and its content, see the
31*4882a593Smuzhiyundefinition in board/stmicroelectronics/stm32f469-disco/genimage.cfg.
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunFramebuffer
34*4882a593Smuzhiyun-----------
35*4882a593SmuzhiyunAfter Linux boots, /dev/fb0 will be accessible. You can control the
36*4882a593Smuzhiyunbrightness of the display after enabling the framebuffer by running the
37*4882a593Smuzhiyunfollowing commands:
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun   # echo 0 0 > /sys/class/graphics/fb0/pan
40*4882a593Smuzhiyun   # echo 255 >/sys/class/backlight/40016c00.dsi.0/brightness
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunThe brightness ranges from 0 to 255, as you can see running the
43*4882a593Smuzhiyuncommand:
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun   # cat /sys/class/backlight/40016c00.dsi.0/max_brightness
46