- 博客(63)
- 收藏
- 关注
原创 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
1161
原创 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
320
原创 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
2870
原创 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
716
原创 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
3420
原创 LDP协议
参考:LDP协议详解-上:https://www.cnblogs.com/chia/p/7771381.htmlMPLS及LDP协议基础http://www.h3c.com/cn/d_201212/922113_30005_0.htmMPLS之LDP协议https://blog.youkuaiyun.com/weixin_37945631/article/details/79598764
2020-11-28 22:14:58
553
原创 Hub-Spoke
1.Hub-SpokeHub-Spoke VPN的核心思想是在VPN中设置中心访问控制设备,其它用户的互访都通过中心访问控制设备进行。上图是一个典型的Hub-Spoke网络,其中的元素分别为Hub-PE、Hub-CE、Spoke-PE和Spoke-CE,一般情况下Spoke-PE均与Hub-PE互联,Spoke-PE之间无需互联。在这里Hub-PE看上去有点类似于路由反射器RR的功能,其实并不是这样的,可以通过后面的配置中我们可以看到,在Hub-PE上并没有配置任何RR的功能,这里是通过Hub-PE和S
2020-10-28 15:46:22
11954
1
原创 SDH光网络以太网数据单板特性介绍
1.以太网单板完成的功能2.1.不同标准定义业务类型的比较4. ITU-T(G.8011) EPL EVPL EPLAN EVPLAN2.1 EPL以太网专线(Ethernet Private Line):EPL有两个业务接入点,实现对用户以太网MAC帧进行点到点的透明传送。不同用户不需要共享SDH带宽,因此具有严格的带宽保障和用户隔离,不需要采用其它的QoS机制和安全机制。由于是点到点传送,因此不需要MAC地址学习。2.2 EVPL以太网虚拟专线(Ethernet Virtual Pr
2020-10-27 17:24:07
8003
原创 BCM VLAN问题
BCM VLAN 问题:BCM56270交换芯片支持4种全局的TPID(global outer TPIDs)。如下:1.Ingress outer TPID ING_OUTER_TPID[0:3]寄存器:ING_OUTER_TPID_0(default 0x8100),ING_OUTER_TPID_1(default 0x9100),ING_OUTER_TPID_2(default 0x88a8),ING_OUTER_TPID_3(default 0x0).2.MPLS packets:
2020-08-28 14:43:19
1005
原创 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
1457
原创 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
231
原创 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
557
原创 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
587
原创 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
486
原创 时间和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
142
原创 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
382
原创 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
281
原创 NorFlash驱动
【1】Uboot下的Nor Flash的驱动以及使用 - 优快云博客https://blog.youkuaiyun.com/han_dawei/article/details/43059139
2020-05-12 17:05:15
181
原创 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
原创 Ethernet驱动
【1】SERDES和SGMIIhttps://blog.youkuaiyun.com/borntox/article/details/51871480
2020-05-12 17:00:12
637
原创 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
300
原创 PCIE驱动
【1】uboot中PCIe驱动程序说明https://blog.youkuaiyun.com/eydwyz/article/details/72312548
2020-05-12 16:54:59
1037
原创 I2C驱动
【1】在uboot 的命令行下,i2c dev 0后显示的是http://blog.chinaunix.net/uid-20768928-id-5104918.html
2020-05-12 16:53:01
140
原创 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
原创 解决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
985
原创 U-Boot
1.U-Boot GitLabhttps://gitlab.denx.de/u-boot/u-boot2.U-Boot downloadftp://ftp.denx.de/pub/u-boot/
2020-05-12 16:33:23
101
原创 NXP LS1012A
1.NXP LS1012A【1】https://www.nxp.com/support/developer-resources/run-time-software/linux-software-and-development-tools/linux-sdk-for-qoriq-processors:SDKLINUX?&tab=Design_Tools_Tab#nogo【2】https://www.yoctoproject.org/【3】https://www.yoctoproject.org/
2020-05-12 16:21:00
1260
原创 定位内存问题
如何快速定位内存问题1.先用free和top,查看系统整体的内存使用情况。2.再用vmstat和pidstat,查看一段时间的趋势,从而判断出内存的问题类型。3.最后进行详细分析,比如内存分配分析,缓存/缓冲区分析,具体进程的内存使用分析等。内存优化:可以减少内存的动态分配,比如可以使用内存池,大页 (HugePage)等。内存分配:...
2020-04-27 16:25:37
177
原创 samba配置的命令
samba服务器作可以windows和linux交互的媒介,可以让windows用户轻松地在电脑上使用图形界面访问linux文件系统,并可以设置写入权限,实用性极佳。1.首先需要安装samba程序,部分Ubuntu镜像已经自带;执行如下命令即可sudo apt-get install sambasudo apt-get install smbclient安装完成后执行samba -V...
2020-04-27 14:54:00
1683
1
原创 linux shell 2>&1
1.首先了解下1和2在Linux中代表什么在Linux系统中0 1 2是一个文件描述符名称 代码 操作符 Java中表示 Linux 下文件描述符(Debian 为例)标准输入(stdin) 0 < 或 << System.in /dev/stdin -> /proc/self/fd/0 -> /dev/pts/0标准输出(stdout) 1 >, &g...
2020-03-09 17:24:04
148
原创 我的shell脚本学习过程
1.如何判断错误输出的值:#!/bin/bash#ftpget -uftp -p123 135.251.100.20 testok 2>log#ftpget -uftp -p123 135.251.100.20 nofound 2>logftpget -uftp -p124 135.251.100.20 loginincorrect 2>log#ftpget -uftp...
2020-03-09 14:21:25
183
原创 PTN简介
1.PTN的由来PTN:Packet Transport Network(分组传送网),PTN是由MPLS发展而来的,由于MPLS的核心还是SDH,只是在SDH的基础上改进而来,即MPLS= SDH + 以太网(二层交换)+ATM(传信令),也就是在SDH的用户侧增加了以太网接口或者ATM接口,实现IP化接口,即 IP over SDH。但是MSPT承载IP业务效率低,带宽独占,调度灵活性差,所...
2020-01-23 14:01:24
26816
原创 光传输的发展史(PDH→SDH→MSTP→PTN→OTN)
光传输的发展史(PDH→SDH→MSTP→PTN→OTN)1.传输网的演进和结构光传送网的发展历程:传输网主要分为三层:接入层、汇聚层和骨干层。本地传输网由传输系统、光纤网、管道/光交、汇聚机房组成,其中,传输系统指SDH/PTN/OTN和PON网络。2.PDHPDH,准同步数字系列。PDH主要有两大系列标准:1)E1,即PCM30/32路,2.048Mbps,欧洲和我国采用...
2020-01-19 14:06:21
33703
1
原创 Linux 学习网站
Linux Tools Quick Tutorial 一本很薄但很全的Linux书籍;https://linuxtools-rst.readthedocs.io/zh_CN/latest/index.html#Linux 中国◆开源社区 作者从国外翻译大量优秀文章;https://linux.cn/良许的个人网站 不仅分享大量技术干货,还共享了海量的技术资源;http://www.lia...
2020-01-17 14:33:44
430
原创 arm与linux
ARM处理器模式切换(含MRS,MSR指令)https://www.cnblogs.com/wlzy/p/6023196.html
2019-12-24 14:46:26
154
原创 linux windows net网络接口转换
winpCaphttps://www.winpcap.org/devel.htmOpening an adapter and capturing the packetshttps://www.winpcap.org/docs/docs_412/html/group__wpcap__tut3.htmlnetif_rxhttps://www.fsl.cs.sunysb.edu/kernel-...
2019-12-20 10:21:28
148
转载 bcm 学习笔记
转:https://blog.youkuaiyun.com/daydring/article/details/42422995http://blog.chinaunix.net/uid-11140746-id-3712645.htmlbcm56146学习笔记HiGig/HiGig+/HiGig2HiGig(通常称为HiGigTM)是Broadcom公司的私有串行总线互联方案,于2001年推出,主要用于...
2019-12-13 15:48:47
2987
原创 BCM ERROR define
error.h#ifndef __BCM_ERROR_H__#define __BCM_ERROR_H__#include <shared/error.h>/* * BCM API error codes. * * Note: An error code may be converted to a string by passing the code * t...
2019-11-14 11:08:10
334
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人