ipq806X的猜想

clip_image002

ipq401x没有nss模块。但是也需要nss_gmac和nss_drv。驱动之间有依赖关系。

edma与ess-switch不是一回事儿

目录/proc/device-tree/soc

clip_image004

ess-switch 的寄存器范围是0xC000000 长度是80000.

edma寄存器的地址的开始正好是ess-switch的结束。

4018的ess-switch 应该是一个AR8327(芯片是VER_DESS不是8327。使用的驱动是8327的驱动。)。这个switch可以集成在QCA953X等MIPS芯片中,也可能集成在IPQ401X等ARM的芯片中。两种集成方式可能与CPU的连接方式会有不同之处。

a>debug reg get 0 4

[Data]:0x1401 //芯片ID。DEVICE_ID

operation done.

4018(ARM)的ssdk的基本信息

dev0@qca>debug ssdk config

1.SSDK CONFIGURATION:

[build verison]:2.0.0.2 [build date]:2018-01-17-17:44:27

[chip type]:dess [arch]: [os]:linux unknown

[fal]:true [kernel mode]:true [uk if]:true

[cpu mode]:cpu_1 [reg access]:header [ioctl minor]:254

[inf defined]:mdio_set(y) mdio_get(y) header_reg_set(y) header_reg_get(y)

2.DEMO SHELL CONFIGURATION:

[build verison]:2.0.0 [build date]:2018-01-17-04:17:24

[chip type]: [arch]:mips [os]:linux version 2.6

[fal]:true [kernel mode]:true [uk if]:true

[cpu mode]:cpu_1 [reg access]:mdio [ioctl minor]:254

[inf defined]:mdio_set(n) mdio_get(n) header_reg_set(n) header_reg_get(n)

3.SSDK FEATURES LIST:

acl fdb igmp leaky led mib mirror misc portcontrol portvlan qos rate stp vlan cosmap ip nat sec trunk

operation done.

dev0@qca>

qca953x芯片的信息。

dev0@qca>debug ssdk config

1.SSDK CONFIGURATION:

[build verison]:1.3.0.2 [build date]:2018-11-10-08:40:58

[chip type]:shiva [arch]:mips [os]:linux unknown

[fal]:true [kernel mode]:true [uk if]:true

[cpu mode]:cpu_1 [reg access]:mdio [ioctl minor]:254

[inf defined]:mdio_set(y) mdio_get(y) header_reg_set(y) header_reg_get(y)

2.DEMO SHELL CONFIGURATION:

[build verison]:1.4.0 [build date]:2018-11-09-22:58:39

[chip type]:shiva [arch]:mips [os]:linux version 2.4 #DEMO SHELL的信息不太正确。

[fal]:true [kernel mode]:true [uk if]:true

[cpu mode]:cpu_1 [reg access]:mdio [ioctl minor]:254

[inf defined]:mdio_set(n) mdio_get(n) header_reg_set(n) header_reg_get(n)

3.SSDK FEATURES LIST:

acl fdb igmp leaky led mib mirror misc portcontrol portvlan qos rate stp vlan cosmap ip nat sec trunk

operate done.

上下层通信的方式:是misc_dev的方式。

cat /proc/misc

229 fuse

254 switch_ssdk

59 ubi_ctrl

60 memory_bandwidth

61 network_throughput

62 network_latency

63 cpu_dma_latency

130 watchdog

183 hw_random

/usr/sbin/ssdk_sh是一个static的程序,不使用动态库。

Hardware Shield Layer (HSL)

硬件屏蔽层

HAL 硬件抽象层。

posted @ 2018-01-29 13:16  刘末  阅读(1146)  评论(0编辑  收藏  举报