Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
0d75b2a
Deleting stretch-branch pointer from .gitmodules (#2003)
rodnymolina Aug 30, 2018
674b58e
[snmpagent]: Update sonic-snmpagent submodule (#2001)
Aug 30, 2018
26850b3
refactor bcm attribute checker (#1974)
lguohan Aug 31, 2018
14a0b8c
[devices]: Add Delta Platform et-6248brb (#1640)
jackyjs Sep 1, 2018
fd5a3cf
[console speed] Inherit console speed from install environment (#1987)
keboliu Sep 1, 2018
2cce4ae
[device] Update ag9032v1 and ag9064 modules. (#1690)
StanleyCi Sep 1, 2018
4715dbb
[SNMP] fix issue #1874, ERR snmpd[34]: Error allocating more space fo…
jeromesun14 Sep 4, 2018
35d93f0
[build] Remove sudo calls from build process (#2015)
jleveque Sep 5, 2018
30c254f
[arista] Update swi building recipe (#2014)
Staphylo Sep 5, 2018
dc22ed0
[platform-common]: update sonic-platform-common (#2018)
lguohan Sep 5, 2018
d3c1423
[platform/dx010] Fix issing qsfp_reset sysfs file (#2007)
pphuchar Sep 5, 2018
be9f3ad
[build]: use vfs storage driver to build dockers (#2016)
lguohan Sep 5, 2018
48f3b6c
[sonic-swss]: Update sonic-swss. vxlan enhancements (#2021)
pavel-shirshov Sep 6, 2018
6af462a
Dell platform modules for S6100/Z9100 is added with systemd support (…
Sep 7, 2018
588da73
[kernel]: update sonic linux kernel submodule (#2027)
lguohan Sep 7, 2018
3f049d3
Warm reboot: Don't load json conifg like copp, ininip, ports and swit…
jipanyang Sep 7, 2018
22edc33
[broadcom]: upgrade SAI to 3.1.3.5-8 (#2028)
lguohan Sep 7, 2018
c4154eb
[devices]: Add GPIO interrupt enable for Z9100/S6100 and transceiver-…
padmanarayana Sep 9, 2018
2d43385
[baseimage] set default locale en_US.UTF-8 (#1988)
richard28530 Sep 11, 2018
a06d28e
[common]: Update sonic-swss-common submodule (#2033)
Sep 11, 2018
860de85
[rsyslog]: use # to separate container name and program name in syslo…
lguohan Sep 11, 2018
5c6948a
[minigraph]: Add PORTCHANNEL_MEMBER configurations (#2034)
Sep 12, 2018
47c9542
Don't reuse init_cfg.json from old image during upgrade (#2036)
taoyl-ms Sep 12, 2018
5d23a43
[make file] add document for KEEP_SLAVE_ON with stretch builds (#2035)
yxieca Sep 12, 2018
ac7e06d
[devices]: add stubs for new API in SfpUtilBase for all devices (#2038)
keboliu Sep 12, 2018
0c2472a
[device]: xcvrd support for Dell S6100 (#2041)
Sep 14, 2018
6f496bd
[device][platform] Update Inventec platform porting to support stretc…
klhaung Sep 14, 2018
ea28f3a
[sonic-cfggen] Add support to generate sample t1 config (#2039)
taoyl-ms Sep 16, 2018
51a8d8e
[docker-orchagent]: Upgrade iproute2 to v4.9 (#2052)
marian-pritsak Sep 17, 2018
f702442
[minigraph]: Add min_links attribute to PORTCHANNEL configuration tab…
Sep 18, 2018
ef4ee9f
[sonic-py-swsssdk] Update submodule (#2054)
jleveque Sep 18, 2018
514b38f
[mellanox]: Integrate CRIU tool to SYNCD docker container (#2061)
Sep 19, 2018
5e08213
[arista] update arista drivers submodule (#2059)
Staphylo Sep 19, 2018
8a5e6ac
[docker-orchagent]: Add vrfmgrd to supervisorctl (#2055)
marian-pritsak Sep 20, 2018
7ece396
Add SWI_DEFAULT support in boot0 (#2056)
Staphylo Sep 20, 2018
c8a7997
[submodules]: update swss, swss-common, sairedis (#2062)
lguohan Sep 21, 2018
0e85986
Add Tag info to docker label meta data (#2058)
jipanyang Sep 21, 2018
792e2df
[broadcom]: Update SAI to 3.1.3.5-10 (#2068)
Sep 22, 2018
51fec6e
[Quanta/device] Correct IX1B platform name to fit ONIE rule (#2065)
jonathantsai-qci Sep 22, 2018
018b589
[updategraph] add support to use preset config instead of default min…
taoyl-ms Sep 22, 2018
715806c
[mellanox]: Add support for Mellanox MSN2010 (#2069)
kevinwangsk Sep 22, 2018
cfe01f1
Separate syncd service from swss service (#2051)
yxieca Sep 24, 2018
9b2a594
[devices]: Add new hwsku Arista-7050-Q31S4 (#2075)
zzhiyuan Sep 25, 2018
542b433
[hwsku-init] Introduce mechanism to run HWSKU specific initialization…
yxieca Sep 24, 2018
22f631a
[mellanox] SAI pointer update (#2079)
stepanblyschak Sep 25, 2018
0ed2ac3
[utilities] Update sonic-utilities submodule (#2082)
Staphylo Sep 25, 2018
763982b
[devices]: Dell-S6100/Z9100 depmod fixes (#2071)
Sep 26, 2018
d629f75
[kernel]: update sonic linux kernel submodule (#2084)
kevinwangsk Sep 27, 2018
cfcaee9
[swss]: Update sonic-swss-common submodule (#2087)
Sep 27, 2018
794885e
Update submodule: sonic-py-swsssdk (#2088)
qiluo-msft Sep 27, 2018
66e0d6b
[sonic-device-data] Fix config symlinks dereference (#2085)
stepanblyschak Sep 27, 2018
11ac4fe
[7050] Rename HWSKU Arista-7050-Q31S4 to Arista-7050QX-32S-S4Q31 (#2090)
yxieca Sep 27, 2018
1c7d507
Update submodule: sonic-snmpagent (#2093)
qiluo-msft Sep 27, 2018
f57dae0
Update dbsyncd submodule (#2094)
taoyl-ms Sep 28, 2018
bd96e09
[7050] device specific hwsku-init file needs execution privilege (#2101)
yxieca Sep 28, 2018
e72d63c
[arista] Update Arista drivers submodule (#2097)
Staphylo Sep 29, 2018
034f472
[minigraph parser] add basic support for MGMT_PORT (#2103)
taoyl-ms Sep 29, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[submodule "sonic-linux-kernel"]
path = src/sonic-linux-kernel
url = https://github.com/Azure/sonic-linux-kernel
branch = stretch
[submodule "sonic-sairedis"]
path = src/sonic-sairedis
url = https://github.com/Azure/sonic-sairedis
Expand Down
19 changes: 15 additions & 4 deletions Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@
# * SONIC_ENABLE_SYNCD_RPC: Enables rpc-based syncd builds.
# * USERNAME: Desired username -- default at rules/config
# * PASSWORD: Desired password -- default at rules/config
# * KEEP_SLAVE_ON: Keeps slave container up after building-process concludes.
# * KEEP_SLAVE_ON: Keeps slave container up and active after building process concludes.
# * Note that rm=true is still set, so once user quits from the docker
# * session, the docker will be removed.
# * Please note that with current Stretch build structure,
# * user of KEEP_SLAVE_ON feature will have to be conscious
# * about which docker to stay inside after build is done.
# * - If user desires to stay inside Stretch docker, please issue
# * make KEEP_SLAVE_ON=yes stretch
# * - If user desires to stay inside Jessie docker, please issue
# * (a successful "make stretch" may be needed before the following command)
# * make NOSTRETCH=1 KEEP_SLAVE_ON=yes <any jessie target>
# * SOURCE_FOLDER: host path to be mount as /var/$(USER)/src, only effective when KEEP_SLAVE_ON=yes
# * SONIC_BUILD_JOBS: Specifying number of concurrent build job(s) to run
# * KERNEL_PROCURE_METHOD: Specifying method of obtaining kernel Debian package: download or build
Expand Down Expand Up @@ -48,7 +58,8 @@ SLAVE_IMAGE = sonic-slave-$(USER)
SLAVE_DIR = sonic-slave
endif

INSMOD_OVERLAY := sudo modprobe overlay
OVERLAY_MODULE_CHECK := lsmod | grep "^overlay " > /dev/null 2>&1 || (echo "ERROR: Module 'overlay' not loaded. Try running 'sudo modprobe overlay'."; exit 1)

DOCKER_RUN := docker run --rm=true --privileged \
-v $(PWD):/sonic \
-w /sonic \
Expand Down Expand Up @@ -94,13 +105,13 @@ SONIC_BUILD_INSTRUCTION := make \
.DEFAULT_GOAL := all

%::
@$(OVERLAY_MODULE_CHECK)
@docker inspect --type image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) &> /dev/null || \
{ echo Image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) not found. Building... ; \
$(DOCKER_BASE_BUILD) ; }
@docker inspect --type image $(SLAVE_IMAGE):$(SLAVE_TAG) &> /dev/null || \
{ echo Image $(SLAVE_IMAGE):$(SLAVE_TAG) not found. Building... ; \
$(DOCKER_BUILD) ; }
@$(INSMOD_OVERLAY)
ifeq "$(KEEP_SLAVE_ON)" "yes"
ifdef SOURCE_FOLDER
@$(DOCKER_RUN) -v $(SOURCE_FOLDER):/var/$(USER)/src $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_BUILD_INSTRUCTION) $@; /bin/bash"
Expand All @@ -116,13 +127,13 @@ sonic-slave-build :
$(DOCKER_BUILD)

sonic-slave-bash :
@$(OVERLAY_MODULE_CHECK)
@docker inspect --type image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) &> /dev/null || \
{ echo Image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) not found. Building... ; \
$(DOCKER_BASE_BUILD) ; }
@docker inspect --type image $(SLAVE_IMAGE):$(SLAVE_TAG) &> /dev/null || \
{ echo Image $(SLAVE_IMAGE):$(SLAVE_TAG) not found. Building... ; \
$(DOCKER_BUILD) ; }
@$(INSMOD_OVERLAY)
@$(DOCKER_RUN) -t $(SLAVE_IMAGE):$(SLAVE_TAG) bash

showtag:
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,25 @@ To clone the code repository recursively, assuming git version 1.9 or newer:

To build SONiC installer image and docker images, run the following commands:

# Ensure the 'overlay' module is loaded on your development system
sudo modprobe overlay

# Enter the source directory
cd sonic-buildimage

# (Optional) Checkout a specific branch. By default, it uses master branch
git checkout [branch_name]

# Execute make init once after cloning the repo, or fetched remote repo with submodule updates
# Execute make init once after cloning the repo, or after fetching remote repo with submodule updates
make init

# Execute make configure once to configure ASIC
make configure PLATFORM=[ASIC_VENDOR]

# build debian stretch required targets (optional)
# Build Debian Stretch required targets (Manual execution optional; will also be executed as part of the build)
BLDENV=stretch make stretch

# build SONiC image
# Build SONiC image
make all

**NOTE**:
Expand Down
9 changes: 8 additions & 1 deletion build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,14 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
hping3 \
python-scapy \
tcptraceroute \
mtr-tiny
mtr-tiny \
locales

#Adds a locale to a debian system in non-interactive mode
sudo sed -i '/^#.* en_US.* /s/^#//' $FILESYSTEM_ROOT/etc/locale.gen && \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT locale-gen "en_US.UTF-8"
sudo LANG=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT update-locale "LANG=en_US.UTF-8"
sudo LANG=C chroot $FILESYSTEM_ROOT bash -c "find /usr/share/i18n/locales/ ! -name 'en_US' -type f -exec rm -f {} +"

# Install certain fundamental packages from stretch-backports in order to get
# more up-to-date (but potentially less stable) versions
Expand Down
2 changes: 1 addition & 1 deletion build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ elif [ "$IMAGE_TYPE" = "aboot" ]; then
zip -g $ABOOT_BOOT_IMAGE .imagehash
rm .imagehash
echo "SWI_VERSION=42.0.0" > version
echo "SWI_MAX_HWEPOCH=1" >> version
echo "SWI_MAX_HWEPOCH=2" >> version
echo "SWI_VARIANT=US" >> version
zip -g $OUTPUT_ABOOT_IMAGE version
zip -g $ABOOT_BOOT_IMAGE version
Expand Down
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as5712_54x-r0/default_sku
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Accton-AS5712-54X t1
Loading