当前位置:网站首页>Riotboard development board series notes (VIII) -- building desktop system
Riotboard development board series notes (VIII) -- building desktop system
2022-07-25 02:56:00 【Spend my whole life reading】
The first two blogs record how to use buildroot structure riotboard The system image of , But the built systems are not GUI, The embedded liunx The system needs in many application scenarios GUI Of , So I plan to use buildroot Transplant another GUI To come over ,GUI Migration selected X Window System - Xorg, Want to know X Window System You can do it yourself , There are many introduction materials on the Internet , This blog only briefly records the migration process .
1 buildroot Download and compile
buildroot Use 2018.11.x edition , download :
git clone https://git.busybox.net/buildroot -b 2018.11.x
Download and enter the directory , Execute first riotboard_defconfig
sudo make riotboard_defconfig
Re execution :
sudo make menuconfig
First select X.org X Window System And enter the inner directory 
Use “/” Search and select the following options :
BR2_PACKAGE_XAPP_TWM=y
BR2_PACKAGE_XAPP_XCALC=y
BR2_PACKAGE_XAPP_XCLOCK=y
BR2_PACKAGE_XAPP_XEYES=y
BR2_PACKAGE_XAPP_XINIT=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_CIRRUS=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBDEV=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_VESA=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XSERVER_XORG_SERVER=y
BR2_PACKAGE_XTERM=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_USE_WCHAR=y
Execute compilation after saving :
sudo make
2 System burning and testing
After compilation, burn the system to TF or SD In the card , See the previous blog for the burning method . After the system starts, you need /etc/X11/ Add a customized xorg.conf The configuration file , Different hardware platform configurations are also different .
touch /etc/X11/xorg.conf
vi /etc/X11/xorg.conf
RIoTBoard xorg The configuration file is shown below :
Section "Device"
Identifier "Framebuffer"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
Option "HWcursor" "false"
Option "BackingStore" "on"
EndSection
Section "Monitor"
Identifier "Generic Monitor"
ModelName "Monitor Model"
DisplaySize 480 800
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Framebuffer"
Monitor "Generic Monitor"
EndSection
Section "Module"
Load "fbdevhw"
Load "shadow"
EndSection
Then execute the following command :
xhost + localhost
Then start X Window System:
startx
Reported after startup shadowUpdatePackedWeak api A mistake we can't find :
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 1 00:10:22 1970
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
/usr/bin/X: symbol lookup error: /usr/lib/xorg/modules/drivers/fbdev_drv.so: undefined symbol: shadowUpdatePackedWeak
[ 349.556450] EXT4-fs error (device mmcblk1p1): ext4_mb_generate_buddy:747: group 82, block bitmap and bg descriptor inconsistent: 32252 vs 32250 free clusters
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
# cat /var/log/Xorg.0.log
[ 347.393]
X.Org X Server 1.20.3
Check it on the Internet , Found to be 0.4.4 edition xdriver_xf86-video-fbdev One of the bug. For the solution, please refer to the following commit , hold xdriver_xf86-video-fbdev Version upgrade to 0.5.0 That's all right. .
https://gitlab.raptorengineering.com/openpower-firmware/buildroot/-/commit/25e5c401fa3b1082653e0313b9f7bbeac1a06533
Re write the system , establish xorg.conf The configuration file , start-up X Window System after i You can see that UI 了 , There are two on it termnal, One clock, Connect the keyboard and mouse to termnal Enter the command in . Although the interface is ugly , But I can also see UI 了 .
Reference article
1 https://unix.stackexchange.com/questions/70931/how-to-install-x11-on-my-own-linux-buildroot-system
2 https://blog.csdn.net/w6980112/article/details/47155691
3 https://www.wenjiangs.com/doc/xuoplwqw
4 https://forums.justlinux.com/showthread.php?126350-error-Can-t-open-display
边栏推荐
- MySQL common function summary, very practical, often encountered in interviews
- Review all frames before sum of SSM frames
- Strategy mode, just read one article
- JS foundation -- object static method
- Learning record 12
- Actual combat in ThreadLocal project
- Technical experts from large factories: Thoughts on cloud nativity and software supply chain security
- [TinyML]EfficientFormer:Vision Transformers at MobileNet Speed
- Inheritance (prototype)
- Jenkins plug-in development -- plug-in expansion
猜你喜欢

Resolved (the latest version of selenium reported an error) attributeerror: module 'selenium webdriver‘ has no attribute ‘PhantomJS‘

Flume's study notes

How to take the mold for the picture of 1.54 inch TFT st7789 LCD screen

New key points of ES6

2022-07-19: all factors of F (I): I are added up after each factor is squared. For example, f (10) = 1 square + 2 square + 5 square + 10 square = 1 + 4 + 25 + 100 = 130.

Permanently mount the image steps

JS written test questions -- random numbers, array de duplication

Operator explanation - C language

JS foundation -- regular expression

Classic network learning RESNET code implementation
随机推荐
Hyperchain hyperblockchain Shi Xingguo was interviewed by 36 krypton: the amount of customer cooperation consulting is doubling
On Calc optimization of calcite
If there is a segment in the encryption field, are you "bronze" or "King"?
Arduino IDE for raspberry PI Pico development firmware localization installation tutorial
Domestic edge computing organization and product research
DOM operation -- get elements and nodes
Resolved (the latest version of selenium reported an error) attributeerror: module 'selenium webdriver‘ has no attribute ‘PhantomJS‘
SQL Server 2022 installation
Generator set work arrangement problem code
Do you know about real-time 3D rendering? Real time rendering software and application scenarios are coming
JS foundation -- task queue and event loop
[jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality
2022-07-19: all factors of F (I): I are added up after each factor is squared. For example, f (10) = 1 square + 2 square + 5 square + 10 square = 1 + 4 + 25 + 100 = 130.
【C】 Advanced knowledge of file operation
JS foundation -- math
JS written test question -- promise, setTimeout, task queue comprehensive question
Permanently mount the image steps
The latest interview questions and analysis of software testing in 2022
Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
JS written test -- regular expression