Update to 6173f226070258

1. 添加python gevent库编译(但只支持LA)
2. 添加python gevent websocket 的编译支持
3. 更新 containerd 版本和补丁,修复编译问题
4. 添加 python pyaudio 的编译支持
5. 更新go的代理修复下载失败的问题
6. glibc版本使用2.38
7. gcc构建添加 <arch>-linux-<lib_c_name e.g. gnu musl> 格式的文件
8. 添加构建交叉编译工具链的配置
9. 添加代理使perl的资源下载更快
10. 添加pigz的压缩rootfs支持,加快构建速度
11. loongarch 支持systemd
12. 添加systemd的窗口自动登录root的功能
13. busybox的tar命令支持 tar -z 和 rev 命令
14. systemd支持自动登陆tty0(通常为屏幕)
15. 修复找不到 console-getty@.service 的bug
16. BR2_PACKAGE_QT5_JSCORE_AVAILABLE使能
17. qt5base支持LA架构编译
18. qt5script 支持 LA 架构编译
19. 修复高版本binutils(>=2.22)导致链接动态库失败的问题
20. 修复mpv使用高版本的waf不能编译的问题
21. 修复当使能WCHAR时procps-ng的编译错误
22. 2k300添加udev规则固定网口设备名字为ethX的格式
23. top命令使用新默认格式格式
24. linuxrc在systemd作为启动进程时,指向/sbin/init,修复不能启动的问题
25. busybox启动支持终端自动登录root
26. busybox启动时tty0支持登陆终端
27. 添加广东龙芯的部分自定义的package
28. 修复tty0显示终端时Qt程序被遮挡的问题
29. 修复设置默认ip失败的问题
30. 更新sdl2支持KMS DRM时无需编译opengl
31. 支持思源宋体
32. 支持在 /etc/profile 声明QT_QPA_FS_TSLIB=1
33. 2k300默认使用tslib作为qt input源
34. 添加编译Qt5的交叉编译套件的配置
35. 添加 quectel-CM 编译
36. 添加内核打包功能
37. 2k300添加strace的编译
38. 添加2k500的简易支持
39. 添加2k1000的简易支持
40. 添加嵌入式系统可用的虚拟键盘
41. 使用自定义的inputrc规则
42. 添加使用自定义systemd timesyncd 的配置
43. 添加默认自定义vimrc,支持中文显示
44. 添加opencv4的编译配置
45. 添加 stressapptest 的支持
46. 支持将RPi.GPIO的demo放入系统中
47. Qt5的交叉编译套件添加sqlite3库的编译支持
48. 添加脚本用于快速选择板卡配置文件
49. 添加gdbserver编译支持

Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
maoxiaochuan
2025-02-13 13:15:50 +08:00
committed by michael
parent 521b0953e2
commit 8114380ba5
276 changed files with 43162 additions and 34 deletions
+1
View File
@@ -4,6 +4,7 @@
/.config.old /.config.old
/..config.tmp /..config.tmp
/.config /.config
/dl/*/.lock
*.depend *.depend
*.o *.o
/*.patch /*.patch
+31
View File
@@ -0,0 +1,31 @@
loongson LA64 ls2k300
Intro
=====
This default configuration will allow you to start experimenting with the
buildroot environment for the ls2k300. With the current configuration
it will bring-up the board, and allow access through the serial console.
How to build it
===============
Configure Buildroot:
$ make loongson2k300_mini_dp_defconfig (this will use rootfs_overlay)
Compile everything and build the system:
$ make
or
$ make -j4 (run in 4 core PC)
How to install the system
========================
you can use
{buildroot_path}/output/images/rootfs.tar.gz
or
{buildroot_path}/output/images/rootfs.ubi
to install to SSD or nand by uboot function
remember rootfs.ext4.gz rename to rootfs.img
@@ -0,0 +1,2 @@
[device]
wifi.scan-rand-mac-address=no
@@ -0,0 +1,117 @@
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/bin:/sbin:/usr/bin:/usr/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM no
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
@@ -0,0 +1,13 @@
# do not edit this file, it will be overwritten on update
SUBSYSTEM!="net", GOTO="net_setup_link_end"
IMPORT{builtin}="path_id"
ACTION=="remove", GOTO="net_setup_link_end"
IMPORT{builtin}="net_setup_link"
NAME=="", ENV{ID_NET_NAME}!="", NAME="$env{ID_NET_SLOT}"
LABEL="net_setup_link_end"
@@ -0,0 +1,31 @@
top's Config File (Linux processes with windows)
Id:k, Mode_altscr=0, Mode_irixps=1, Delay_time=3.0, Curwin=0
Def fieldscur= 75 81 103 105 119 123 129 137 111 117 115 139 76 78 82 84 86 88 90 92
94 96 98 100 106 108 112 120 124 126 130 132 134 140 142 144 146 148 150 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=163124, sortindx=18, maxtasks=0, graph_cpus=2, graph_mems=2, double_up=0, combine_cpus=0, core_types=0
summclr=2, msgsclr=2, headclr=3, taskclr=2
Job fieldscur= 75 77 115 111 117 80 103 105 137 119 123 128 120 79 139 82 84 86 88 90
92 94 96 98 100 106 108 112 124 126 130 132 134 140 142 144 146 148 150 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=193844, sortindx=0, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem fieldscur= 75 117 119 120 123 125 127 129 131 154 132 156 135 136 102 104 111 139 76 78
80 82 84 86 88 90 92 94 96 98 100 106 108 112 114 140 142 144 146 148
150 152 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=193844, sortindx=21, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr fieldscur= 75 77 79 81 85 97 115 111 117 137 139 82 86 88 90 92 94 98 100 102
104 106 108 112 118 120 122 124 126 128 130 132 134 140 142 144 146 148 150 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=193844, sortindx=3, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=3, msgsclr=3, headclr=2, taskclr=3
Fixed_widest=0, Summ_mscale=1, Task_mscale=1, Zero_suppress=0, Tics_scaled=0
@@ -0,0 +1 @@
rt2870.bin
@@ -0,0 +1 @@
rt2860.bin
+31
View File
@@ -0,0 +1,31 @@
loongson LA64 ls2k300
Intro
=====
This default configuration will allow you to start experimenting with the
buildroot environment for the ls2k300. With the current configuration
it will bring-up the board, and allow access through the serial console.
How to build it
===============
Configure Buildroot:
$ make loongson2k300_mini_dp_defconfig (this will use rootfs_overlay)
Compile everything and build the system:
$ make
or
$ make -j4 (run in 4 core PC)
How to install the system
========================
you can use
{buildroot_path}/output/images/rootfs.tar.gz
or
{buildroot_path}/output/images/rootfs.ubi
to install to SSD or nand by uboot function
remember rootfs.ext4.gz rename to rootfs.img
@@ -0,0 +1,2 @@
[device]
wifi.scan-rand-mac-address=no
@@ -0,0 +1,117 @@
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/bin:/sbin:/usr/bin:/usr/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM no
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# override default of no subsystems
Subsystem sftp /usr/libexec/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
@@ -0,0 +1,13 @@
# do not edit this file, it will be overwritten on update
SUBSYSTEM!="net", GOTO="net_setup_link_end"
IMPORT{builtin}="path_id"
ACTION=="remove", GOTO="net_setup_link_end"
IMPORT{builtin}="net_setup_link"
NAME=="", ENV{ID_NET_NAME}!="", NAME="$env{ID_NET_SLOT}"
LABEL="net_setup_link_end"
@@ -0,0 +1,31 @@
top's Config File (Linux processes with windows)
Id:k, Mode_altscr=0, Mode_irixps=1, Delay_time=3.0, Curwin=0
Def fieldscur= 75 81 103 105 119 123 129 137 111 117 115 139 76 78 82 84 86 88 90 92
94 96 98 100 106 108 112 120 124 126 130 132 134 140 142 144 146 148 150 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=163124, sortindx=18, maxtasks=0, graph_cpus=2, graph_mems=2, double_up=0, combine_cpus=0, core_types=0
summclr=2, msgsclr=2, headclr=3, taskclr=2
Job fieldscur= 75 77 115 111 117 80 103 105 137 119 123 128 120 79 139 82 84 86 88 90
92 94 96 98 100 106 108 112 124 126 130 132 134 140 142 144 146 148 150 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=193844, sortindx=0, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem fieldscur= 75 117 119 120 123 125 127 129 131 154 132 156 135 136 102 104 111 139 76 78
80 82 84 86 88 90 92 94 96 98 100 106 108 112 114 140 142 144 146 148
150 152 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=193844, sortindx=21, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr fieldscur= 75 77 79 81 85 97 115 111 117 137 139 82 86 88 90 92 94 98 100 102
104 106 108 112 118 120 122 124 126 128 130 132 134 140 142 144 146 148 150 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=193844, sortindx=3, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=3, msgsclr=3, headclr=2, taskclr=3
Fixed_widest=0, Summ_mscale=1, Task_mscale=1, Zero_suppress=0, Tics_scaled=0
@@ -0,0 +1 @@
rt2870.bin
@@ -0,0 +1 @@
rt2860.bin

Some files were not shown because too many files have changed in this diff Show More