
Linux
文章平均质量分 60
Linux
lra2003
这个作者很懒,什么都没留下…
展开
-
makefile的调试
2.sh 和makefile之间传导变量。1.makefile调试变量打印。3.shell文件调试。原创 2023-02-22 10:03:52 · 345 阅读 · 0 评论 -
套接字sock实例
【代码】套接字sock实例。原创 2022-11-03 10:04:21 · 422 阅读 · 0 评论 -
git常用操作命令
git常用操作命令收集1)远程仓库相关命令检出仓库:$ git clone git://github.com/jquery/jquery.git查看远程仓库:$ git remote -v添加远程仓库:$ git remote add [name] [url]删除远程仓库:$ git remote rm [name]修改远程仓库:$ git remote set-url --push[name][newUrl]拉取远程仓库:$ git pull [remoteName] [localBranc原创 2022-03-17 17:25:03 · 1164 阅读 · 0 评论 -
OSPFv3 Commands-access-list, and default-information originate commands are not supported.
OSPFv3 CommandsFireware uses the Quagga routing software suite v1.2.4, which supports most routing commands available in more recent versions of Quagga. For more information about Quagga commands, see Quagga Routing Suite Documentation.To create or modif原创 2022-02-17 17:07:25 · 321 阅读 · 0 评论 -
How to enable IP forwarding on Linux (IPv4 / IPv6)
How to enable IP forwarding on Linux (IPv4 / IPv6)?Tutorials / October 21, 2020IntroductionIP forwarding is the ability for an operating system to accept incoming network packets on one interface, identifying that it is not meant for the system itself,原创 2022-02-12 09:53:22 · 2894 阅读 · 0 评论 -
ip 地址转换函数
地址转换函数int inet_aton(const char *strptr,struct in_addr *addrptr)将strptr所指C字符串转换成一个32位的网络字节序二进制值,并同过addrptr指针来存储,成功返回1,失败返回0int_addr_t inet_addr(const char *strptr)进行相同的转化,返回值为32位的网络字节序二进制,但是255.255.255.255不能由此函数处理,因为出错时该函数返回全1char *inet_ntoa(struct in_原创 2022-02-08 15:34:47 · 720 阅读 · 0 评论 -
ipv6的设置
IPv6的一些设置:添加IPV6地址ip -6 addr add / dev ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0ifconfig inet6 add /ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64添加默认路由ip -6 route add / via ip -6 route add default via 2001:0db8:0:f101::1route -A inet6 add /原创 2022-02-08 14:04:05 · 3425 阅读 · 0 评论 -
marvell万兆交换机内核编译总结
Marvell 98DX3236 万兆交换机 内核编译过程小结0.条件(1)Marvell技术支持提供的压缩文件:GNU EABI:arm-mv5sft-linux-gnueabi_SW3.2.tar.bz2.tar.bz2armebv7-marvell-linux-gnueabi-softfp_i686_201201.tar.bz2CPSS代码:Cpss-PP-DxCh-4.2_012.zipLinux内核文件:lsp-4.2_012.zipLSP-Unified.zipLuaCL原创 2020-08-17 13:07:23 · 1472 阅读 · 0 评论 -
gcc编译参数
gcc编译参数:gcc 命令的常用选项选项 解释-ansi 只支持 ANSI 标准的 C 语法。这一选项将禁止 GNU C 的某些特色, 例如 asm 或 typeof 关键词。-c 只编译并生成目标文件。-DMACRO 以字符串"1"定义 MACRO 宏。-DMACRO=DEFN 以字符串"DEFN"定义 MACRO 宏。-E 只运行 C 预编译器。-g 生成调试信息。GNU 调试器可利用该信息。-IDIRECTORY 指定额外的头文件搜索路径DIRECTORY。-LDIRE原创 2020-08-06 11:03:34 · 232 阅读 · 0 评论 -
makefile to compile all c files
Note: this answer assumes that you are using GNU make. If it is not the case there are probably a few things to adapt. I will not answer your last question about cross-platform portability. First because it is a complex question, second because I do not ha原创 2020-06-09 17:16:12 · 560 阅读 · 0 评论 -
armv8和linux学习
【1】ARMv8_white_paper_v5.pdf【2】ARMv8 架构与指令集.学习笔记 - 优快云博客【3】ARMv8-a架构简介【4】网上流传的Linux内核开发面试题整理 - 优快云博客【5】(Linux)详解Makefile变量 - Linux操作系统:Ubuntu_Centos_Debian - 红黑联盟【6】Linux学习博客之一【7】Linux学习博客之二...原创 2020-05-13 16:31:05 · 588 阅读 · 0 评论 -
OSPF和ISIS
【1】利用quagga进行OSPF实验_郑大哲_新浪博客【2】powerpc平台移植zebra或quagga-0.99.23 - zxiaocheng - 博客园【3】Linux Quagga守护进程启动【4】Quagga 简介 - Vinllen Chen - 优快云博客【5】OSPF区域与汇总 - 百度文库【6】OSPF配置命令 - 百度文库【7】cisco 路由器配置 ospf命令总结 - weixin_34148340的博客 - 优快云博客【8】iproute2;高级路由;ip_r原创 2020-05-13 10:19:24 · 488 阅读 · 0 评论 -
时间和NTP
【1】Linux时间变慢解决方法【2】三、内核时钟(1) - 张勇1234的博客 - 优快云博客【3】Linux时间子系统之(十七):ARM generic timer驱动代码分析【4】系统时钟慢的解决方法 linux时间慢 - liuxueyi521的专栏 - 优快云博客【5】adjtimex-rha030-ChinaUnix博客【6】Linux系统时间不准问题分析 - 风之伤 - 优快云博客【7】Linux时间子系统之(十七):ARM generic timer驱动代码分析 - Arn原创 2020-05-13 10:10:23 · 143 阅读 · 0 评论 -
DMA管理
【1】DMA (Direct Memory Access,直接内存存取) - 优快云博客【2】linux内存管理之DMA - 优快云博客【3】linux之DMA API - 优快云博客【4】linux mmap 驱动内核共享内存 - 天迥居士 - ITeye博客【5】kernel如何保证cache数据一致性 - 优快云博客【6】Linux下Cache的使用 - 优快云博客【7】Linux DMA meory简述 - lyl19的日志 - 网易博客【8】armv8 AArch64 de原创 2020-05-13 10:02:37 · 385 阅读 · 0 评论 -
GPIO中断
【1】嵌入式Linux下使用GPIO中断功能 - 优快云博客https://blog.youkuaiyun.com/toradexsh/article/details/60142857【2】Linux下用文件IO的方式操作GPIO(/sys/class/gpio) - 优快云博客https://blog.youkuaiyun.com/wangweiqiang1325/article/details/52209539【3】IO多路复用之poll总结 - Anker’s Blog - 博客园https://www.cnb原创 2020-05-12 17:10:02 · 284 阅读 · 0 评论 -
NorFlash驱动
【1】Uboot下的Nor Flash的驱动以及使用 - 优快云博客https://blog.youkuaiyun.com/han_dawei/article/details/43059139原创 2020-05-12 17:05:15 · 186 阅读 · 0 评论 -
FileSystem驱动
【1】Linux 内核/sys 文件系统介绍 - 优快云博客https://blog.youkuaiyun.com/cjsycyl/article/details/46309451【2】使用 /sys 文件系统访问 Linux 内核https://www.ibm.com/developerworks/cn/linux/l-cn-sysfs/【3】Linux设备驱动模块自加载示例与原理解析 - 优快云博客https://blog.youkuaiyun.com/luckyapple1028/article/details原创 2020-05-12 17:03:41 · 439 阅读 · 0 评论 -
Ethernet驱动
【1】SERDES和SGMIIhttps://blog.youkuaiyun.com/borntox/article/details/51871480原创 2020-05-12 17:00:12 · 639 阅读 · 0 评论 -
SPI驱动
【1】uboot移植spi驱动 - 优快云博客https://blog.youkuaiyun.com/davion_zhang/article/details/50883806【2】Linux Kernl添加spidev的设备节点 - 优快云博客https://blog.youkuaiyun.com/encourage2011/article/details/70833308【3】Linux下SPI驱动的移植和应用程序的测试 - 优快云博客https://blog.youkuaiyun.com/stephen_yu/artic原创 2020-05-12 16:58:51 · 301 阅读 · 0 评论 -
PCIE驱动
【1】uboot中PCIe驱动程序说明https://blog.youkuaiyun.com/eydwyz/article/details/72312548原创 2020-05-12 16:54:59 · 1040 阅读 · 0 评论 -
I2C驱动
【1】在uboot 的命令行下,i2c dev 0后显示的是http://blog.chinaunix.net/uid-20768928-id-5104918.html原创 2020-05-12 16:53:01 · 140 阅读 · 0 评论 -
SD卡根文件系统
SD卡根文件系统【1】修正无法正常从SD卡加载根文件系统 - 优快云博客https://blog.youkuaiyun.com/yj4231/article/details/8537655【2】ARM Linux使用SD卡根文件系统_Linux编程_Linux公社-Linux系统门户网站https://www.linuxidc.com/Linux/2011-11/47797.htm【3】linux系统起来后设置uboot参数_thinkfrl_新浪博客http://blog.sina.com.cn/s/b原创 2020-05-12 16:48:05 · 591 阅读 · 0 评论 -
解决Linux时钟变慢
Linux时间变慢解决方法情景:系统为CentOS-5.4,硬件时间正确(查看硬件时间的方法见下面),系统时间每隔24小时会慢20分钟左右Linux将时钟分为系统时钟(System Clock)和硬件(Real Time Clock,简称RTC)时钟两种。系统时间是指当前Linux Kernel中的时钟,而硬件时钟则是主板上由电池供电的那个主板硬件时钟,这个时钟可以在BIOS的Standard BIOS Feture”项中进行设置。在Linux中,用于时钟查看和设置的命令主要有date、hwclo原创 2020-05-12 16:39:49 · 987 阅读 · 0 评论