Add platform_asic file to each platform folder in sonic-device-data based package ()

#### Why I did it
Add platform_asic file to each platform folder in sonic-device-data package. The file content will be used as the ground truth of mapping from PLATFORM_STRING to switch ASIC family.

One use case of the mapping is to prevent installing a wrong image, which targets for other ASIC platforms. For example, currently we have several ONIE images naming as sonic-*.bin, it's easy to mistakenly install the wrong image. With this mapping built into image, we could fetch the ONIE platform string, and figure out which ASIC it is using, and check we are installing the correct image.

After this PR merged, each platform vendor has to add one mandatory text file  `device/PLATFORM_VENDOR/PLATFORM_STRING/platform_asic`, with the content of the platform's switch ASIC family.

I will update https://github.com/Azure/SONiC/wiki/Porting-Guide after this PR is merged.

You can get a list of the ASIC platforms by `ls -b platform | cat`. Currently the options are
```
barefoot
broadcom
cavium
centec
centec-arm64
generic
innovium
marvell
marvell-arm64
marvell-armhf
mellanox
nephos
p4
vs
```

Also support
```
broadcom-dnx
```

#### How I did it

#### How to verify it
Test one image on DUT. And check the folders under `/usr/share/sonic/device`
This commit is contained in:
Qi Luo 2021-10-08 19:27:48 -07:00 committed by GitHub
parent 0780aea966
commit add9b651b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
151 changed files with 216 additions and 0 deletions
device
accton
x86_64-accton_as4630_54pe-r0
x86_64-accton_as4630_54te-r0
x86_64-accton_as5712_54x-r0
x86_64-accton_as5812_54t-r0
x86_64-accton_as5812_54x-r0
x86_64-accton_as5835_54t-r0
x86_64-accton_as5835_54x-r0
x86_64-accton_as6712_32x-r0
x86_64-accton_as7116_54x-r0
x86_64-accton_as7212_54x-r0
x86_64-accton_as7312_54x-r0
x86_64-accton_as7312_54xs-r0
x86_64-accton_as7315_27xb-r0
x86_64-accton_as7326_56x-r0
x86_64-accton_as7512_32x-r0
x86_64-accton_as7712_32x-r0
x86_64-accton_as7716_32x-r0
x86_64-accton_as7716_32xb-r0
x86_64-accton_as7726_32x-r0
x86_64-accton_as7816_64x-r0
x86_64-accton_as9716_32d-r0
x86_64-accton_as9726_32d-r0
x86_64-accton_minipack-r0
alphanetworks
x86_64-alphanetworks_snh60a0_320fv2-r0
x86_64-alphanetworks_snh60b0_640f-r0
arista
x86_64-arista_7050_qx32
x86_64-arista_7050_qx32s
x86_64-arista_7050cx3_32s
x86_64-arista_7050sx3_48c8
x86_64-arista_7050sx3_48yc8
x86_64-arista_7060_cx32s
x86_64-arista_7060cx2_32s
x86_64-arista_7060dx4_32
x86_64-arista_7060px4_32
x86_64-arista_7170_32c
x86_64-arista_7170_32cd
x86_64-arista_7170_64c
x86_64-arista_7260cx3_64
x86_64-arista_7280cr3_32d4
x86_64-arista_7280cr3_32p4
x86_64-arista_7280cr3mk_32d4
x86_64-arista_7280cr3mk_32p4
x86_64-arista_7800_sup
x86_64-arista_7800r3_48cq2_lc
x86_64-arista_7800r3_48cqm2_lc
x86_64-arista_common
barefoot
x86_64-accton_as9516_32d-r0
x86_64-accton_wedge100bf_32x-r0
x86_64-accton_wedge100bf_65x-r0
broadcom
x86_64-bcm_xlr-r0
x86_64-broadcom_common
celestica
x86_64-cel_e1031-r0
x86_64-cel_midstone-r0
x86_64-cel_seastone-r0
x86_64-cel_seastone_2-r0
x86_64-cel_silverstone-r0
centec
arm64-centec_e530_24x2c-r0
arm64-centec_e530_24x2q-r0
arm64-centec_e530_48s4x-r0
arm64-centec_e530_48t4x_p-r0
x86_64-centec_e582_48x2q4z-r0
x86_64-centec_e582_48x6q-r0
x86_64-ew_es6220_x48q2h4-r0
cig
x86_64-cig_cs5435_54p-r0
x86_64-cig_cs6436_54p-r0
x86_64-cig_cs6436_56p-r0
dell
x86_64-dell_s6000_s1220-r0
x86_64-dell_s6100_c2538-r0
x86_64-dell_z9100_c2538-r0
x86_64-dellemc_n3248pxe_c3338-r0
x86_64-dellemc_n3248te_c3338-r0
x86_64-dellemc_s5224f_c3538-r0
x86_64-dellemc_s5232f_c3538-r0
x86_64-dellemc_s5248f_c3538-r0
x86_64-dellemc_s5296f_c3538-r0
x86_64-dellemc_z9264f_c3538-r0
x86_64-dellemc_z9332f_d1508-r0
delta
x86_64-delta_ag5648-r0
x86_64-delta_ag9032v1-r0
x86_64-delta_ag9032v2a-r0
x86_64-delta_ag9064-r0
x86_64-delta_agc032-r0
x86_64-delta_et-6248brb-r0
x86_64-delta_et-c032if-r0
facebook/x86_64-facebook_wedge100-r0
ingrasys
x86_64-ingrasys_s8810_32q-r0
x86_64-ingrasys_s8900_54xc-r0
x86_64-ingrasys_s8900_64xc-r0
x86_64-ingrasys_s9100-r0
x86_64-ingrasys_s9130_32x-r0
x86_64-ingrasys_s9180_32x-r0
x86_64-ingrasys_s9200_64x-r0
x86_64-ingrasys_s9230_64x-r0
x86_64-ingrasys_s9280_64x-r0
inventec
x86_64-inventec_d6254qs-r0
x86_64-inventec_d6332-r0
x86_64-inventec_d6356-r0
x86_64-inventec_d6556-r0
x86_64-inventec_d7032q28b-r0
x86_64-inventec_d7054q28b-r0

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
nephos

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
cavium

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
barefoot

View File

@ -0,0 +1 @@
barefoot

View File

@ -0,0 +1 @@
barefoot

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom-dnx

View File

@ -0,0 +1 @@
broadcom-dnx

View File

@ -0,0 +1 @@
broadcom-dnx

View File

@ -0,0 +1 @@
broadcom-dnx

View File

@ -0,0 +1 @@
broadcom-dnx

View File

@ -0,0 +1 @@
broadcom-dnx

View File

@ -0,0 +1 @@
broadcom-dnx

View File

@ -0,0 +1,2 @@
broadcom
broadcom-dnx

View File

@ -0,0 +1 @@
barefoot

View File

@ -0,0 +1 @@
barefoot

View File

@ -0,0 +1 @@
barefoot

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
innovium

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
centec

View File

@ -0,0 +1 @@
centec

View File

@ -0,0 +1 @@
centec

View File

@ -0,0 +1 @@
centec

View File

@ -0,0 +1 @@
centec

View File

@ -0,0 +1 @@
centec

View File

@ -0,0 +1 @@
centec

View File

@ -0,0 +1 @@
nephos

View File

@ -0,0 +1 @@
nephos

View File

@ -0,0 +1 @@
nephos

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
innovium

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
nephos

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
nephos

View File

@ -0,0 +1 @@
barefoot

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

View File

@ -0,0 +1 @@
broadcom

Some files were not shown because too many files have changed in this diff Show More