- 博客(35)
- 收藏
- 关注
原创 镁光内存查询方法
官方查询方法:https://www.micron.com/support/tools-and-utilities/fbga。
2025-01-06 11:17:20
1872
原创 sram、dram、sdram、ddr的区别和用途
StaticRandom-AccessMemory静态随机存储器。掉电后数据丢失,不需要周期性上电。上电后,直到掉电前数据不受影响。常用于cpu二级缓存。因为价格较高,所以不能用作内存。
2022-07-20 20:00:00
1419
原创 记录:Linux开发常用的环境变量
QT :debugexport QT_DEBUG_PLUGINS=1Waylanddebugexport WAYLAND_DEBUG=1持续更新
2022-03-28 09:30:48
334
原创 git常用命令
查看\修改文件权限查看当前权限[localhost]$ git ls-files --stage run.sh100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 run.sh增加可执行权限[localhost]$ git update-index --chmod +x run.sh查看当前权限[localhost]$ git ls-files --stage run.sh100755 79faae1187e6b365412bb30d
2022-02-18 17:57:52
1265
原创 嵌入式Linux开发中qt.conf配置
Qt程序启动时会用QLibraryInfo类载入qt.conf文件,qt.conf主要用于配置qt编译环境,如qt头文件所在路径,qt动态库所在路径等。如果没有qt.conf,qt会采用硬编码在qmake内的路径如下是常用的qt.conf路径及功能[Paths]#待续Prefix = /usrHeaders = /usr/include/qt5Libraries = /usr/lib64ArchData = /usr/lib64Data = /usr/shareBinaries = /us
2022-01-13 21:00:00
1629
原创 嵌入式Linux:制作ramdisk并启动
1.开发环境主机:Ubuntu 18.04.5交叉编译链:aarch64-none-elf-linux内核:4.19.1652.配置Linux内核1)Initial RAM filesystem and RAM disk (initramfs/initrd) support使内核支持以ramdisk文件系统作为根文件系统启动。从menuconfig下图所在位置配置,或者直接在配置文件添加CONFIG_BLK_DEV_INITRD=y2)RAM block device support使内
2021-12-30 22:00:00
4235
原创 从sd卡挂载文件系统时出现VFS: Cannot open root device “mmcblk1p2“
uboot传递给内核的参数bootargs需添加rootwait,避免sd卡驱动加载完成前就从sd卡加载文件系统如:setenv bootargs root=/dev/mmcblk1p2 rootwait rw
2021-12-23 17:12:37
1845
2
原创 Linux select函数
select会被信号量中断,比如SIGINT#include <stdio.h>#include <fcntl.h>#include <signal.h>#include <sys/time.h>int s_runflag = 1;void sig_int(int sig){ printf("signal int[%d]\n", sig);}void sig_quit(int sig){ printf("signal
2021-12-14 21:00:00
1998
原创 buildroot中取得包在编译时的根目录
$(@D)变量存储着当前包的在编译时的根目录如:***/buildroot/build/qt5base-5.12.5
2021-11-19 19:00:00
459
原创 shell脚本:变量
#!告诉系统其后面的可执行程序即是解释运行此脚本的shell如#!/bin/sh#1/bin/bash变量变量命名必须遵守如下规则命名只能使用英文字母,数字和下划线,首个字符不能以数字开头。中间不能有空格,可以使用下划线 _。不能使用标点符号。不能使用bash里的关键字(可用help命令查看保留关键字)。定义变量时,变量名和等号间不能有空格。使用变量时只需要在变量前加$符号即可如:test_var="hello"echo $test_varecho ${test_var}
2021-10-19 19:52:28
101
原创 C语言:长度为0的数组
概述长度为0的数组在标准c和c++中是不合法的,但是在gcc中是可行的。长度为0数组它的最典型的用法就是位于结构体中的最后一项。使用方式如下面的例子,分别使用长度为0的数组和指针声明结构体,实现可变长度的数组功能:#include <stdio.h>#include <stdlib.h>struct test1{ int a; int b[0];};struct test2{ int a; int *b;};struct
2021-10-12 20:00:00
531
原创 couldn‘t be accessed by user ‘_apt‘
使用一个新到手的Ubuntu服务器时,使用apt-get遇到的报错W: Download is performed unsandboxed as root as file ‘/var/cache/apt/archives/partial/bc_1.07.1-2_amd64.deb’ couldn’t be accessed by user ‘_apt’. - pkgAcquire::Run (13: Permission denied)...
2021-09-29 11:01:36
1024
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人