server BMC firmware bring up test 服务器系统BMC固件启动(开机)测试


server BMC firmware bring up test 服务器系统BMC固件启动(开机)测试


Read More

中国公司MAC OUI申请数目统计


中国公司MAC OUI申请数目统计,只显示统计数目超过8的公司。

数据来源:1. MAC Address Block Large (MA-L)
http://standards-oui.ieee.org/oui/oui.csv
http://standards-oui.ieee.org/oui/oui.txt

HUAWEI TECHNOLOGIES CO.,LTD 786
Huawei Device Co., Ltd. 300
zte corporation 233
TP-LINK TECHNOLOGIES CO.,LTD. 146
Hon Hai Precision Ind. Co.,Ltd. 130
Fiberhome Telecommunication Technologies Co.,LTD 124
Xiaomi Communications Co Ltd 114
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP.,LTD 100
vivo Mobile Communication Co., Ltd. 86
Espressif Inc. 72
New H3C Technologies Co., Ltd 56
TCT mobile ltd 39
Sichuan Tianyi Comheart Telecom Co.,LTD 39
China Mobile Group Device Co.,Ltd. 33
Shenzhen YOUHUA Technology Co., Ltd 31
Hangzhou Hikvision Digital Technology Co.,Ltd. 29
Hangzhou H3C Technologies Co., Limited 26
SHENZHEN GONGJIN ELECTRONICS CO.,LT 24
CHONGQING FUGUI ELECTRONICS CO.,LTD. 24
COMPAL INFORMATION (KUNSHAN) CO., LTD. 23
Taicang T&W Electronics 22
FN-LINK TECHNOLOGY LIMITED 21
Hui Zhou Gaoshengda Technology Co.,LTD 20
China Mobile IOT Company Limited 19
Zhejiang Dahua Technology Co., Ltd. 19
Beijing Xiaomi Mobile Software Co., Ltd 18
Skyworth Digital Technology(Shenzhen) Co.,Ltd 17
Shenzhen TINNO Mobile Technology Corp. 16
SHENZHEN FAST TECHNOLOGIES CO.,LTD 15
WEIFANG GOERTEK ELECTRONICS CO.,LTD 14
SHENZHEN MERCURY COMMUNICATION TECHNOLOGIES CO.,LT... 13
SHENZHEN CHUANGWEI-RGB ELECTRONICS CO.,LTD 13
SHENZHEN BILIAN ELECTRONIC CO.,LTD 13
Cambridge Industries(Group) Co.,Ltd. 12
Motorola (Wuhan) Mobility Technologies Communicati... 12
SHENZHEN RF-LINK TECHNOLOGY CO.,LTD. 12
LCFC(HeFei) Electronics Technology co., ltd 12
Alcatel-Lucent Shanghai Bell Co., Ltd 12
Qingdao Hisense Communications Co.,Ltd. 11
Tenda Technology Co.,Ltd.Dongguan branch 11
Sichuan Changhong Electric Ltd. 11
Honor Device Co., Ltd. 11
Zhejiang Tmall Technology Co., Ltd. 11
Realme Chongqing Mobile Telecommunications Corp.,L... 10
GD Midea Air-Conditioning Equipment Co.,Ltd. 10
Sichuan AI-Link Technology Co., Ltd. 10
Nokia Shanghai Bell Co., Ltd. 10
Beijing Xiaomi Electronics Co., Ltd. 9
China Mobile (Hangzhou) Information Technology Co.... 9
OnePlus Technology (Shenzhen) Co., Ltd 9
Sichuan AI-Link Technology Co., Ltd. 9
Shenzhen SuperElectron Technology Co.,Ltd. 8
MERCURY COMMUNICATION TECHNOLOGIES CO.,LTD. 8
Shenzhen Jingxun Software Telecommunication Techno... 8
XIAOMI Electronics,CO.,LTD 8
Ruijie Networks Co.,LTD 8
Sunitec Enterprise Co.,Ltd 8
CLOUD NETWORK TECHNOLOGY SINGAPORE PTE. LTD. 8
Quectel Wireless Solutions Co., Ltd. 8

Read More

MAC OUI根据国家或者地区申请数目统计


 

MAC OUI根据国家或者地区申请数目统计。

数据来源:1. MAC Address Block Large (MA-L)
http://standards-oui.ieee.org/oui/oui.csv
http://standards-oui.ieee.org/oui/oui.txt

US 10370
CN 5496
KR 2316
TW 1986
JP 1673
DE 1255
GB 741
CA 646
FR 553
MY 490
HK 350
IT 314
IL 268
FI 266
SE 258
CH 248
DK 242
AU 209
NL 194
SG 159
IN 155
RU 155
ES 135
  128
BR 123
BE 105
AT 102
NO 82
TH 55
PL 54
CZ 49
ZA 47
TR 44
NZ 44
IE 33
HU 24
MX 24
SI 24
SK 20
LV 18
PT 17
ID 15
BG 14
GR 11
LT 11
AR 9
VN 9
AE 8
VG 7
PH 7
JO 6
KY 6
HR 5
MT 4
TJ 4
LU 4
RO 3
RS 3
IR 3
CY 3
YU 3
EG 3
KZ 2
KP 2
IS 2
MD 2
KW 2
MA 2
EE 2
CO 2
LI 2
UA 2
GE 2
BO 1
MC 1
MU 1
CL 1
SZ 1
BY 1
BS 1
LB 1
MM 1
PE 1
QA 1
VU 1
VE 1
DZ 1
BN 1
VI 1
KM 1

Read More

shell脚本读取文件无法读入tab的解决方案


shell脚本读取文件无法读入tab的解决方案。主要表现是读取到的行,没有了tab。

即使用 read line无法读入tab。

解决方法:

#!/bin/bash
# A shell script to read file line by line
 
filename="/var/log/xyz.log"
 
while IFS= read -r line
do
    # $line variable contains current line read from the file
    # display $line text on the screen or do something with it.
 
    echo "$line"
done < $filename

方法2:

#!/bin/bash
IFS=$'\n'
for line in $(cat ./Survey.txt)
do
   echo $line
done

 


Read More

浪潮(Inspur)的MAC-OUI地址


根据IEEE提供的数据进行查询,浪潮(Inspur)共有6个MAC-OUI。

从注册的地址,大体能够看出时间变迁

1:山大路224号,

2:舜雅路1036号

3:浪潮路1036号

 

BC20BA     (base 16) Inspur (Shandong) Electronic Information Co., Ltd No.1036 Shunya Rd. Jinan  Shandong  250101 CN
5CB4E2     (base 16) Inspur Software Group Ltd. No. 1036, Langchao Road Jinan  Shandong  250101 CN
C0A66D     (base 16) Inspur Group Co., Ltd. No.1036 Langchao Rd. Jinan  Shandong  250101 CN
B4055D     (base 16) Inspur Electronic Information Industry Co.,Ltd. No 224 Shanda Road Jinan  Shandong  250013 CN
043110     (base 16) Inspur Group Co., Ltd. No.1036 Langchao Rd. Jinan  Shandong  250101 CN
6C92BF     (base 16) Inspur Electronic Information Industry Co.,Ltd. No 224 Shanda Road Jinan  Shandong  250013 CN

Read More

ubuntu下使用udhcpd搭建DHCP IPV4服务器 (不修改参数)


ubuntu下使用udhcpd搭建DHCP IPV4服务器(不修改参数) 

 

1:安装udhcpd软件,可以通过下面命令来安装:

apt-get install udhcpd

2:修改eth0的ip为192.168.0.2

因缺省的ip范围为 192.168.0.20-192.168.0.254

3:用网线将DHCP服务器与目标机器直连

4:运行udhcpd命令,开始分配ip

udhcpd -f /etc/udhcpd.conf

5:查看是否显示分配的ip地址


Read More


LSI 3008的IT与IR模式的区别


本文综合baidu与bing返回结果。

https://www.supermicro.org.cn/support/faqs/faq.cfm?faq=16169

Question:
For LSI Host Bus Adapter (HBA) firmware, what is the difference between IT mode and IR mode?
对于LSI主机总线适配器(HBA)固件,IT模式与IR模式有何区别?

Answer:
The two firmware types are Initiator Target (IT) and Integrated RAID (IR). IR is the typical hardware RAID firmware that the internal cards or boards ship with.
The IT firmware, on the other hand, is the Initiator Target firmware which is designed to allow a SAS HBA to connect to up to 256 devices using SAS Expanders. The IT firmware is typically shipped on external cards. The IT firmware does not have any RAID capabilities and simply acts as an HBA.

这两种固件类型是启动器目标(IT)和集成RAID(IR)。
IR是内部卡或板附带的典型硬件RAID固件。
IT固件允许SAS HBA使用SAS扩展器连接到多达256个设备。IT固件通常在外部卡上提供。IT固件没有任何RAID功能,只是充当HBA。

 

LSI SAS3008是常用的RAID卡种类。此RIAD卡有两种固件:IT和IR。
当固件是3008IT时,只能直连硬盘而不能配置RAID。
当固件是3008IR时,可以配置RAID。

Basicly the IT firmware is only just a HBA and the boot up time is quick. The IR firmware is the raid software firmware so boot up is a bit longer than having the IT firmware only. You can cross flash with the LSI firmware in IT mode only or IT and IR mode which is default in LSI. If you are going with pure software raid then the IT firmware is best. 

更多解释:

LSI-RAID卡命名后缀的含义(it-ir-imr-mr)(华为)

broadcom官方MR、iMR、IR和IT软件功能比较矩阵


Read More

RJ45网口两个LED灯的指示意义以及控制原理


一般RJ45网口会有两个LED灯,至少从外观上看是两个。一个是link灯,一个是ACT灯。

参考下图所示,缺口朝上,一般右边绿灯常亮,表示link上,左边黄色、橘色、或者绿色灯闪烁,表示有数据传输。

有些act灯实际可能有多个是个多色灯,比如黄色、绿色。当100M时闪绿灯,当千兆时闪黄灯,以做区分。

 

这些灯是有PHY进行控制的。PHY的硬件接口文档中会有说明,以及相关的寄存器设置。

在uboot中可以使用mii来修改寄存器,改变亮灯状态。

在linux系统下,可以使用内核、驱动或者mii-tools修改控制灯的状态。

这些如何操作需要参考具体的硬件手册,因硬件手册厂家一般是不公开的,但从网上也能够找到零星的资料。

以下能够查找到的网上公开资料,可供参考

RTL8211F在uboot下使用mii工具配置网口灯详解

RJ45 LED灯


Read More

#1295-D: Deprecated declaration xxxx- give arg types 解决方法


编译程序时出现“#1295-D: Deprecated declaration xxxx- give arg types”中文释义:给定函数的参数的类型过时,

解决办法: 在函数void xxxx()声明和定义的时候定义参数类型,无参函数定义为void,即可解决该问题。

示例:

void testfun()
{
  printf("this is a test function\r\n");
}

变为

void testfun(void)
{
  printf("this is a test function\r\n");
}

注意,无参函数定义为void,只需要在定义(h文件)和实现(c文件)中这样,实际函数调用时,不需要写参数。

void invoketest(int i)
{
  testfun();
  printf("this is a invoke test %d\r\n",i);
}

 

https://developer.arm.com/documentation/dui0067/d/c-and-c---compilers/command-syntax/controlling-warning-messages

这个是一个warning信息,使用arm编译器时会报这个错,这个信息可以使用编译开关-Wd忽略。

只所以报这个错,是ANSI C语言规定的,C++则不会。

-Wd
This option suppresses the warning message:

C2215W: Deprecated declaration foo() - give arg types

This warning is normally given when a declaration without argument types is encountered in ANSI C mode.

In ANSI C, declarations like this are deprecated. However, it is sometimes useful to suppress this warning when porting old code.

In C++, void foo(); means void foo(void); and no warning is generated.

 

 


Read More

uboot下的mii命令简介


uboot下有一个mii命令。命令帮助信息如下:

mii - MII utility commands                                                      
                                                                                
Usage:                                                                          
mii device                     - list available devices                         
mii device            - set current device                             
mii info                 - display MII PHY info                           
mii read            - read  MII PHY  register             
mii write     - write MII PHY  register             
mii dump            - pretty-print   (0-5 only)           
Addr and/or reg may be ranges, e.g. 2-7. 

 

mii device示例,会输出MDC/MDIO总线设备

uboot>mii device                                                           
MII devices: 'FSL_MDIO0' 'FM_TGEC_MDIO'
Current device: 'FSL_MDIO0'

 

mii info打印输出,PHY后面跟的就是addr

uboot> mii info
PHY 0x00: OUI = 0x5043, Model = 0x1D, Rev = 0x01, 1000baseT, FDX
PHY 0x01: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x02: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x03: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x04: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x05: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x06: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
PHY 0x07: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX

 

mii read          - read  MII PHY register            
mii write   - write MII PHY register  

上述两个命令,需要根据具体的芯片手册寄存器设置来进行配置。以下命令为示例

mii write 0 0 0x8000    向地址为0的phy芯片的0寄存器写入0x8000

mii  read 0 0     读取地址为0的phy芯片的寄存器0的值


Read More

PCI的vendor ID和Device ID是哪里分配的?


PCI的vender ID和Device ID是哪里分配的?

其中Device ID和Vendor ID是区分不同设备的关键,OS和UEFI在很多时候就是通过匹配他们来找到不同的设备驱动(Class Code有时也起一定作用)。为了保证其唯一性,Vendor ID应当向PCI特别兴趣小组(PCI SIG)申请而得到。

 vendor id , 生产厂商, intel是0x8086, 0xffff无效
device id, 具体设备, 这两个是由PCISIG 分配的。

周边元件互连特别兴趣Peripheral Component Interconnect Special Interest Group,缩写:PCI-SIG),

是一个负责订定PCI、PCI-X和PCIExpress(PCIe)电脑总线规格的电子工业联盟

https://pcisig.com

在官方网站的FAQ中有如下描述:

How do I get a vendor ID number?

Vendor ID assignments are given upon joining PCI-SIG.

分配Vendor ID是成为PCI-SIG注册会员的一项权利。

加入PCI-SIG成为会员的权利与加入方式


Read More

Error: L6200E: Symbol __stdin multiply defined by stdio_streams.o 分析与解决


Error: L6200E: Symbol __stdin multiply defined (by stdio_streams.o and retarget.o).
Error: L6200E: Symbol __stdout multiply defined (by stdio_streams.o and retarget.o).
Not enough information to list image symbols.
Not enough information to list the image map.
 

中文翻译

原因

retarget.c文件允许您使用简单的I/O函数,如printf或getline。当您的应用程序使用其他复杂函数(如fprintf、assert、fopen、fclose等)时,您将收到以下错误消息。

解决方案

删除这些函数调用(或用实时库(RL-ARM)中的组件替换它们。

 

refer:

https://www.keil.com/support/docs/3279.htm

https://developer.arm.com/documentation/100074/0611/linker-errors-and-warnings/list-of-the-armlink-error-and-warning-messages

 

 

PROBLEM

I use the RealView compiler to write my embedded application and added the retarget.c file to route the I/O routines to a physical UART interface.

But when I build the project, I get the following error:

Error: L6200E: Symbol __stdout multiply defined (by retarget.o and stdio.o).

What causes this error?

CAUSE

The retarget.c file allows you to use simple I/O functions such as printf or getline. When your application uses other complex functions such as fprintfassertfopenfclose, etc., you get this error message.

SOLUTION

Remove these function calls (or replace them with components from the Real-Time Library (RL-ARM).


Read More


© 2008-2020 CunYouLu存有录博客 村友录 存游录 鲁ICP备08005943号