STM32 Experiment & Note —— 🍓(004) Speed up latest version of Ubuntu (Not translated)
»
(001) HAL Library LED Lighting
(002) HAL Library LCD Frame Animation
(003) HAL Library FFT Dynamic Spectrum
(004) HAL Library FFT Speed Up
(005) HAL Library Understanding DMA
(006) Watchdog Summary
(007) GPIO Usage Steps
(008) CubeIDE Implementation of USB Peripherals*
(009) Why C99
(010) Linux UDP
(011) Linux TCP
(012) Temperature Control of Arm
(013) OpenWrt cross-compilation
(014) Basic data type in C99
(015) C99 struct
(016) C99 enum
(017) C99 funciont and L-Value, R-Value
(018) C99 pointer*
(019) C99 With only value assignment*
(020) C99 array with space, pointer with no space
(021) C99 No template function
(022) POSIX pthread multi-threads mutex*
(023) POSIX pthread multi-threads programming*
(024) C99 if
(025) C99 switch
(026) C99 loop
(027) C99 time and wait*
(028) High-precision calculation with GMP*
(029) Web Service Lib*
(030) International Components for Unicode (ICU)*
(031) Performance of C is higher than C++, because...*
(032) C99 weak function
(033) MTU TCP SOCKET
(034) STM32 UART Continually Sending Data
(035) STM32 UART Continually Receiving Data
(037) STM32 Normal and Circle
(038) STM32 UART clear transfer error flag
(039) STM32 UART Idle Callback
(040) STM32 UART, RS232 single TX line
(041) STM32 RS485 Differential signal communication
(042) STM32 HAL DMA Poll For Transfer
(043) STM32 enter low power comsuption mode
(044) STM32 Clear Flag of TCx in DMA IRQ
(045) STM32软件函数命名规范
(046) Deal with Idle in xxxCpltCallback
(047) C99 Built in macros
(048) isr enabled after calling ***_IT
(049) Procedure of starting STM32
(050) Load new firmware online
(051) SCB->VTOR
(052) STM32 Address space in programme
(053) STM32 Move program to other space
(054) STM32 Bootloader
(055) Keil中的下载算法
(056)编译器优化出错点
🍓(001) Close Swapfile
🍓(002) Format USB disk to ext4 with 1k blocks
🍓(003) Query Linux Version info and CPU info
🍓(004) Speed up latest version of Ubuntu
🍓(005) Clone 360 Browser Core Source Code Script
🍓(006) Before run Firefox in Ubuntu24.04
🍓(007) MAC Address
🍓(008) RMII & PHY
🍓(009) Ubuntu Server firewall configuration
🍓(010) Linux yield cpu by code
🍓(011) Linux Hardware Concept
🍓(012) Linux Inter-Process Communication
🍓(013) Ban Git force push
🍓(014) Ban Git reset --hard
🍓(015) Save unsaved cache to disk immedutely
🍓(016) 拷贝pre-receive到每个git仓库的脚本
🍓(017) sshd密码输入错误禁用IP3分钟
🖥️(001) 异机备份低功耗自用Git服务器搭建
🖥️(002) OpenWRT配置注意事项
🕹️(001) while(1){} cpu reentered
🕹️(002) functions for multi-thread in FreeRTOS
🕹️(003) FreeRTOS critical code zone
🕹️(004) FreeRTOS fix NULL not defined error
🕹️(005) lowest priority interrupt of ARM: PENDSV
🕹️(006) Configuration of tasks priority levels
🕹️(006) Cautions of different priority tasks locked
🕹️(008) Close scheduling of same priority tasks
🕹️(009) OTA Technology
🕹️(010) FreeRTOS create static task
🕹️(011) FreeRTOS list task list
🕹️(012) FreeRTOS HeapSize statistics
🕹️(013) FreeRTOS xTaskGetHandle
🕹️(014) FreeRTOS common method of create tasks
🕹️(015) FreeRTOS fix problem of tasks locked
🕹️(016) FreeRTOS Superest interrupt: SVC
🕹️(017) FreeRTOS interrupt call in privilege mode
🕹️(018) FreeRTOS SVC enter user mode
🕹️(019) FreeRTOS delay util
🕹️(020) FreeRTOS low consumption by Tickless
🕹️(021) FreeRTOS IdleHook
🕹️(022) FreeRTOS Hooks
🕹️(023) FreeRTOS yield CPU by code
🕹️(024) FreeRTOS semaphore
🕹️(025) FreeRTOS resolve priority inversion
🕹️(026) FreeRTOS get task priority
🕹️(027) FreeRTOS set task priority
🕹️(028) FreeRTOS function prefix
🕹️(029) Don't call RTOS function in IRQ handle
🕹️(030) Bottom half operation decrease semaphore
🕹️(031) Support Suspending for ever
🕹️(032) Call FreeRTOS SysCall in ISR
🕹️(033) Principle of Top Half and bottom haf
🕹️(034) FATFS in STM32 support exFat
🕹️(035) Message Queue in FreeRTOS
🕹️(036) Timer Tasks in FreeRTOS
🕹️(037) Reason of can not ping board
🕹️(038) LwIP Tcp Server Sample Code
🕹️(039) mutex equals binarySempahore
🕹️(040) Relationship between MEMP and Pbuf
🕹️(041) FreeRTOS连接ESP WiFi(待完成)
📟(001)CMSIS标准学习
🕹️(001)函数调用被优化
    (安装最新版Ubuntu24.04一定不要选择现在就联网)

    (本文仅供自用本机安装最新版Ubuntu24.04环境使用,未免会有错误,请谨慎操作)

    1、改用xfce
    sudo apt update
    sudo apt upgrade
    sudo apt install xfce4
    sudo apt install xfce4-goodies
    sudo reboot
    登录进入xfce
    卸载 GNOME 
    sudo apt purge gnome-shell gnome-software gnome-session gnome-terminal gnome-remote-desktop cloud-init avahi-daemon iio-sensor-proxy openvpn ubuntu-advantage-desktop-daemon apport
    rm -rf ~/.config/gnome-shell
    rm -rf ~/.config/gnome-session
    sudo apt autoremove
    配置免登录:
    sudo apt install lightdm-settings
    sudo apt install lightdm slick-greeter
    sudo lightdm-settings

    2、安装sysv-rc-conf或systemctl list-unit-files --type=service配置systemctl disable ***停用不必要的服务:
    NetworkManager:网络管理服务
    bluetooth:蓝牙服务
    cups:打印服务
    avahi-daemon:网络发现服务
    cups-browsed:打印机浏览服务
    apport: 自动报告错误服务
    rsyslog: 快速系统日志服务
    syslog: 系统日志服务
    iio-sensor-proxy: 屏幕旋转服务
    openvpn: 开源vpn网络服务

    3、使用systemctl stop和systemctl disable停用不必要的服务

    4、内核加速:
    在/etc/modprobe.d/blacklist.conf里加入:
    blacklist lp
    blacklist btusb
    blacklist btrtl
    blacklist btbcm
    blacklist btintel
    blacklist floppy
    blacklist joudev


    执行命令:
    update-initramfs -u

    用户服务改为启动桌面后在.bashrc里启动

    关闭自动升级、自动错误报告服务
    使用systemd-analyze和systemd-analyze blame分析系统启动时间

    5、停用不必要的服务(不能停用NetworkManager)
    systemctl stop NetworkManager
    systemctl disable NetworkManager


    6、彻底删除snap
    参考:https://blog.csdn.net/liufangaliya/article/details/135126156
    sudo du -sh /var/lib/snapd
    cd /var/lib/snapd/snaps
    snap list --all

    多遍:

    for p in $(snap list | awk '{print $1}'); do
        sudo snap remove $p
    done

    多遍:

    sudo systemctl stop snapd
    sudo systemctl disable --now snapd.socket

    for m in /snap/core/*; do
        sudo umount $m
    done

    一遍:
    sudo apt autoremove --purge snapd

    rm -rf ~/snap
    sudo rm -rf /snap
    sudo rm -rf /var/snap
    sudo rm -rf /var/lib/snapd
    sudo rm -rf /var/cache/snapd

    (注意:以上,仅供自用本机安装Ubuntu环境使用,未免会有错误,请谨慎操作)

  
«
--Alex.Zhang
--www.v-signon.com Learningers Co-Encouraged
Back
Personal Art: www.up-task.com Unit: Individual
中文 Русский 京ICP备19038994号-2
If the content on this website infringes upon your any rights, please contact me at 1307776259@qq.com for removal