Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull from Azure #3

Merged
merged 117 commits into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
918fdc6
[sflow]: Upgrade hsflowd to v2.0.26-3 (#4020)
padmanarayana Jan 14, 2020
ebb07d9
[docker-restapi]: Avoid building RestAPI docker by default (#4018)
sumukhatv Jan 15, 2020
237835f
Change MFT version to 14.13.3 (#4022)
noaOrMlnx Jan 15, 2020
9a089c2
[mellanox] Update FW to 13/29.2000.2714. (#3998)
nazariig Jan 15, 2020
6bd17d4
[initramfs] Updated required tools for initramfs (#3734)
antony-rheneus Jan 15, 2020
5229163
[Celestica/Seastone2] Add support Seastone2 device and platform (#3761)
pphuchar Jan 16, 2020
4c526d9
[device/celestica]: Implement Silverstone platform API [THERMAL/COMPO…
Jan 16, 2020
4c46178
[device/celestica]: Implement SFP API (#3869)
Jan 16, 2020
2eda2d8
[sonic-py-swsssdk] update submodule for sonic-py-swsssdk (#4031)
dzhangalibaba Jan 17, 2020
4e3bf84
[mgmt-framework] submodule update (#4030)
tahmed-dev Jan 17, 2020
d150721
modified down rules to pre-down rules to ensure that default route is…
kannankvs Jan 17, 2020
b45d2b4
[arista]: Add support for bald eagle phy (#3922)
byu343 Jan 17, 2020
64500e1
[Arista] Update drivers and boot script (#3959)
Staphylo Jan 17, 2020
05d61b5
[bgpcfgd]: Fix bgpcfgd. Don't notify before all deps are ready. (#4027)
pavel-shirshov Jan 17, 2020
f636ae9
[barefoot]: updated SDK to 9.1.0 released debian packages (#4032)
Jan 17, 2020
1886bdf
[Mellanox] fix gearbox ambient thermal name (#4005)
stephenxs Jan 17, 2020
aca1a86
[caclmgrd] Fix application of IPv6 service ACL rules (part 2) (#4036)
jleveque Jan 18, 2020
d0d1a55
[sonic-py-swsssdk] update submodule for sonic-py-swsssdk (#4040)
dzhangalibaba Jan 19, 2020
bcc4e55
[grub]: Allow ONiE oneshoot boot for FW update. (#3935)
nazariig Jan 21, 2020
44fa5ef
[startup] Fixes issue with /var/platform directory not created (#4000)
hpersh Jan 22, 2020
8320267
[sairedis] update submodule for sairedis (#3984)
dzhangalibaba Jan 22, 2020
7aa0baf
[MultiDB] (except ./src and ./dockers dirs): replace redis-cli with s…
dzhangalibaba Jan 22, 2020
5057ac3
[MultiDB] (./dockers dir) : replace redis-cli with sonic-db-cli and u…
dzhangalibaba Jan 22, 2020
db76686
[Monit] Change the full process name of syncd in the monit config fil…
yozhao101 Jan 23, 2020
b76e279
[submodule]: Update sonic-utilities submodule (#4050)
msosyak Jan 23, 2020
a664123
[devices]: DellEMC S6000 fancontrol support (#4048)
Jan 23, 2020
c6fee49
[docker-ptf]: Adding sflowtool to ptf docker to for sflow tests (#4045)
chitra-raghavan Jan 23, 2020
c2677a5
[devices]: DellEMC: Platform 2.0 Api(sfp,eeprom,chassis )for z9264f (…
rkdevi27 Jan 23, 2020
38b7d30
[device] as7326-56x: Fix the default low power mode on issue (#4047)
brandonchuang Jan 23, 2020
70e8c5e
[FRR]there is no need to checkout master branch after compiling frr. …
wangshengjun Jan 23, 2020
fd6df31
[Platform] ARM64 support for Marvell ARM platform (#4043)
antony-rheneus Jan 24, 2020
e3475b8
[baseimage]: removing space from shebang in procdockerstatsd (#4051)
pra-moh Jan 24, 2020
d2dadc9
DellEMC: Platform2.0 API enhancements in DellEMC S6000 and other API …
ArunSaravananBalachandran Jan 24, 2020
cb2edcf
[mellanox] Add fwutil platform components. (#3999)
nazariig Jan 24, 2020
3239d7f
[Mellanox]Implement plugins for PSU, fan and thermal (#4041)
stephenxs Jan 24, 2020
08f60f6
Update lldpd to latest stable version (#3905)
pavel-shirshov Jan 24, 2020
6ffa419
[marvell]: adopt SAI v1.5 on marvell-armhf (#3963)
banagiri Jan 24, 2020
6185880
[frr]: Update FRR to 7.2.1 (#4066)
pavel-shirshov Jan 26, 2020
c948379
[baseimage]: support building multi-asic component (#3856)
SuvarnaMeenakshi Jan 26, 2020
dc994b8
DellEMC: Dell platform bug fixes on s5248 and s6232 (#4071)
srideepDell Jan 28, 2020
d236298
[bfn] Added GENL3 dependency for SAI (#4069)
akokhan Jan 28, 2020
2e36b25
[utilities] Update utilities submodule (#4080)
daall Jan 28, 2020
7cb6300
mvrf_avoid_snmp_yml_config: made changes to pass SNMP config from con…
kannankvs Jan 29, 2020
9cf5730
[swss] update swss pointer (#4077)
stepanblyschak Jan 29, 2020
20d8b56
[Mellanox] Update SAI/SDK/FW versions (#4028)
Jan 29, 2020
33e918f
[Mellanox] platform api support firmware install (#3931)
stephenxs Jan 29, 2020
c095e51
DellEMC: Z9264-Platform2.0 Implementation [ipmihelper] (#4060)
ArunSaravananBalachandran Jan 29, 2020
1a7d822
[kdump]: kdump support for arm, as the dependency with uboot, working…
banagiri Jan 29, 2020
5383e2c
[sairedis] Advance pointer to fix rpc thrift (#4079)
kcudnik Jan 29, 2020
97165a0
Changes in sonic-buildimage to support the NAT feature (#3494)
kirankella Jan 30, 2020
c95d8e4
[teamd]: increase startsecs to 5 seconds for teamsyncd (#4083)
judyjoseph Jan 30, 2020
c39b188
Update build badge in the README.md (#4084)
rlhui Jan 30, 2020
a4d3e5a
[swss]: fix sonic-swss submodule due to history change
lguohan Jan 31, 2020
fc101b6
[mellanox]: Add new Mellanox-SN3800-D112C8 sku. (#4085)
nazariig Jan 31, 2020
fb535bb
[docker-sonic-mgmt]: set wheel version to 0.33.6 to fix sonic-mgmt bu…
lguohan Jan 31, 2020
142d45c
Revert "Disable SNMPv1 (#2156)" (#4088)
qiluo-msft Feb 1, 2020
211cff5
[kernel]: Increasing gc threshold values for kernel neighbors (#4100)
prsunny Feb 4, 2020
3c12b32
[docker-sonic-mgmt]: Add the snmp tool to the sonic-mgmt docker (#4110)
wangxin Feb 5, 2020
b5b68c7
teamd: fix possible race in master ifname callback (#4109)
pavel-shirshov Feb 5, 2020
2e0f9ca
[hsflowd]: remove linux kernel header dependency from hsflowd package…
lguohan Feb 6, 2020
74e28ad
[DellEMC] S6000 - Thermal support - Last Reboot Reason (#4097)
santhosh-kt Feb 6, 2020
f8e5305
[docker] remove leftover --net=host docker run options (#4119)
mykolaf Feb 7, 2020
4338fbe
[procdockerstats]: Update file permission for procdockerstatsd (#4126)
pra-moh Feb 7, 2020
9c73df9
[barefoot]: Update SDE to 9.2.0 pre-release debian package (#4124)
Feb 7, 2020
57d4c84
[DellEMC] Dell Platform Modules Debian Build Error Fix (#4108)
santhosh-kt Feb 7, 2020
c63b5fc
[frr]: Use tag for building frr (#4082)
pavel-shirshov Feb 7, 2020
a6efbae
[device]Add check exception case when read port present fail (#4107)
jostar-yang Feb 7, 2020
91e5fb5
[Service] Enable/disable container auto-restart based on configuratio…
yozhao101 Feb 7, 2020
974e6e9
[daemon_base]fix error: syslog is not a member of DaemonBase (#4039)
stephenxs Feb 7, 2020
3bb61ab
[init_cfg.json] Maintain a separate init_cfg.json.j2 template file (#…
yozhao101 Feb 7, 2020
5bf66af
Update submodule: swss, swss-common (#4130)
qiluo-msft Feb 9, 2020
ae491a9
[docker-lldp] Fix lldpcli issue when description has special characte…
zhenggen-xu Feb 10, 2020
ab1a945
[procdockerstatsd] Fix incorrect case issue in service file (#4134)
pra-moh Feb 10, 2020
1f4325e
[Inventec][D6356] Update Inventec 6356 (#3839)
david-xk Feb 10, 2020
51fa5e4
[sonic-buildimage] Fix build issue for docker-dhcp-relay-dbg.gz. Issu…
abdosi Feb 11, 2020
e069e44
Add Innovium 201911 build support (#4113)
tonytitus Feb 11, 2020
af44856
[process-reboot-cause]Clean up the process-reboot-cause as reqired in…
stephenxs Feb 11, 2020
fb59e9d
[mellanox] enable ISSU on SPC2 systems (#4087)
stepanblyschak Feb 11, 2020
41958aa
[init_cfg.json] Add new FEATURE and CONTAINER_FEATURE tables (#4137)
yozhao101 Feb 11, 2020
ae52223
[arista]: Add fancontrol for arista 7050cx3 (#4121)
byu343 Feb 11, 2020
729f343
[Services] Restart database service upon unexpected critical process …
yozhao101 Feb 11, 2020
169cfe7
[devices]: DellEMC:S5232 fix transceiver change event (#3924)
aravindmani-1 Feb 11, 2020
fb32533
[arista]: Fix convertfs condition for booting from EOS (#4139)
byu343 Feb 12, 2020
a9f3619
Start RestAPI container when sonic boots (#4140)
sumukhatv Feb 13, 2020
6a0dcb1
[kernel]: security kernel update to 4.9.189 (#3913)
olivier-singla Feb 13, 2020
427ed1f
[platform]:Fix as7726 read thermal sensor issue (#4135)
jostar-yang Feb 13, 2020
031e69d
[sfputil]fix an syntax error (#4141)
stephenxs Feb 13, 2020
1a0ce98
Update arp_update to refresh neighbor entries from APP_DB (#4125)
prsunny Feb 13, 2020
2cfdb28
[mgmt-framework]: Removing explicit libyang plugin path settings (#4144)
dutta-partha Feb 13, 2020
1e40c59
[arista] Update drivers submodules (#4147)
Staphylo Feb 14, 2020
4b42a48
Update frr to latest 7.2.1 (#4145)
pavel-shirshov Feb 14, 2020
31fb631
Fix service and container name to be same (#4151)
prsunny Feb 14, 2020
8126916
[interfaces-config.sh] Do not bring 'lo' interface down and up (#4150)
jleveque Feb 14, 2020
15eaf36
DellEMC: Z9264-Platform2.0 Implementation [PSU] (#4104)
ArunSaravananBalachandran Feb 14, 2020
4afb56d
Update SDK to 4.3.3052 (#4153)
keboliu Feb 16, 2020
936749c
[Device]: Add new CIG device CS6436-54P and CS5435-54P, also update c…
michealylj1 Feb 17, 2020
2626565
[DellEMC] S6100 Last Reboot Reason Thermal Support (#3767)
santhosh-kt Feb 18, 2020
2360131
[frr] Update FRR build to include version tags (#4172)
daall Feb 20, 2020
7ffa2cc
Sleep done before mismatch handler (#4165)
prsunny Feb 20, 2020
6005f4c
Revert "Update frr to latest 7.2.1 (#4145)" (#4170)
daall Feb 20, 2020
ab78ee0
[mgmt-framework] start after syncd (#4174)
stepanblyschak Feb 20, 2020
30ef111
DellEMC: Z9264-Platform2.0 Implementation [Thermal] (#4175)
ArunSaravananBalachandran Feb 20, 2020
fbc24b4
[orchagent] Use mac address from config_db instead of from eth0 (#4166)
prsunny Feb 21, 2020
f5ab24d
Made Change to have Configurable option to enable/disable docker imag…
abdosi Feb 21, 2020
52e3947
Updated the file permission mode to include +x (#4183)
abdosi Feb 22, 2020
b856154
[Mellanox]Fix issue that syncd rpc docker unable to start (#4181)
stephenxs Feb 23, 2020
df623b7
[sonic-py-swsssdk] update submodule for sonic-py-swsssdk (#4179)
dzhangalibaba Feb 24, 2020
70657cb
[Mellanox] update hw-mgmt patch for SimX (#4180)
mykolaf Feb 25, 2020
7aae61a
[broadcom]: Updated BRCM SAI Debian package revision number to 3.7.3.…
abdosi Feb 25, 2020
7518170
[arista] Update drivers submodule (#4164)
Staphylo Feb 25, 2020
71592fc
[Platform] Marvell Makefile updates/cleanup (#4168)
antony-rheneus Feb 25, 2020
1ef7403
[docker_image_ctl.j2] Share UTS namespace with host OS (#4169)
stepanblyschak Feb 26, 2020
7912b1d
[image]: Add SSD maintenance utility - hdparm. (#4177)
nazariig Feb 26, 2020
7b1f0a6
[gitignore] Ignore all auto-generated Dockerfiles (#4195)
daall Feb 27, 2020
d5c69bc
[Mellanox] Update MFT version to 4.13.5 (#4199)
noaOrMlnx Feb 28, 2020
d19bba0
[sonic-cfggen] Load JSON files before minigraph file (#4202)
jleveque Feb 28, 2020
41ae7a2
[snmp] remove hostname change as it share uts namespace with host (#4…
stepanblyschak Feb 28, 2020
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
  •  
  •  
  •  
27 changes: 3 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,30 +109,9 @@ src/thrift/*
!src/thrift/Makefile

# Autogenerated Dockerfiles
sonic-slave/Dockerfile
sonic-slave-stretch/Dockerfile
sonic-slave-jessie/Dockerfile
dockers/docker-base/Dockerfile
dockers/docker-base-stretch/Dockerfile
dockers/docker-config-engine/Dockerfile
dockers/docker-config-engine-stretch/Dockerfile
dockers/docker-database/Dockerfile
dockers/docker-dhcp-relay/Dockerfile
dockers/docker-fpm-frr/Dockerfile
dockers/docker-fpm-gobgp/Dockerfile
dockers/docker-fpm-quagga/Dockerfile
dockers/docker-lldp-sv2/Dockerfile
dockers/docker-orchagent/Dockerfile
dockers/docker-platform-monitor/Dockerfile
dockers/docker-router-advertiser/Dockerfile
dockers/docker-snmp-sv2/Dockerfile
dockers/docker-teamd/Dockerfile
dockers/docker-sonic-mgmt/Dockerfile
dockers/docker-sonic-telemetry/Dockerfile
platform/*/docker-saiserver-*/Dockerfile
platform/*/docker-syncd-*/Dockerfile
platform/*/docker-syncd-*-rpc/Dockerfile
platform/vs/docker-sonic-vs/Dockerfile
sonic-slave*/Dockerfile
dockers/*/Dockerfile
platform/*/docker-*/Dockerfile

# Installer-related files and directories
installer/x86_64/platforms/
Expand Down
17 changes: 11 additions & 6 deletions Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,16 @@ ifneq (,$(filter $(CONFIGURED_ARCH), armhf arm64))
DOCKER_SERVICE_SAFE_KILLER := (MARCH_PID=`ps -eo pid,cmd | grep "[0-9] dockerd.*march" | awk '{print $$1}'`; echo "Killing march docker $$MARCH_PID"; [ -z "$$MARCH_PID" ] || sudo kill -9 "$$MARCH_PID";)
DOCKER_SERVICE_MULTIARCH_CHECK := ($(DOCKER_SERVICE_SAFE_KILLER); sudo rm -fr /var/run/march/; (echo "Starting docker march service..."; sudo $(SONIC_NATIVE_DOCKERD_FOR_MUTLIARCH) &) &>/dev/null ; sleep 2; sudo $(SONIC_USERFACL_DOCKERD_FOR_MUTLIARCH);)

# Docker service to load the compiled dockers-*.gz
SONIC_NATIVE_DOCKERD_FOR_DOCKERFS := rm -fr $(PWD)/dockerfs/; mkdir -p $(PWD)/dockerfs/; sudo dockerd --storage-driver=overlay2 --iptables=false \
--data-root $(PWD)/dockerfs/var/lib/docker/ --exec-root=$(PWD)/dockerfs/var/run/docker/ \
-H unix://$(PWD)/dockerfs/var/run/docker.sock -p $(PWD)/dockerfs/var/run/docker.pid &
SONIC_USERFACL_DOCKERD_FOR_DOCKERFS := setfacl -m user:$(USER):rw $(PWD)/dockerfs/var/run/docker.sock
DOCKER_SERVICE_DOCKERFS_CHECK := (sudo docker -H unix://$(PWD)/dockerfs/var/run/docker.sock info &> /dev/null && sudo kill -9 `sudo cat $(PWD)/dockerfs/var/run/docker.pid` && false) || (echo "Starting docker build service..."; (sudo $(SONIC_NATIVE_DOCKERD_FOR_DOCKERFS) ) &>/dev/null ; sleep 1; sudo $(SONIC_USERFACL_DOCKERD_FOR_DOCKERFS);)
# Docker service to load the compiled dockers-*.gz
# docker 19.0 version above has path/length restriction, so replaced it with soft link in /tmp/
# Also dockerd does mkdir on the provided softlink, so used two level path "d/d"
D_ROOT=/tmp/d/d
SONIC_NATIVE_DOCKERD_FOR_DOCKERFS := rm -fr $(PWD)/dockerfs; mkdir -p $(PWD)/dockerfs; sudo rm -fr /tmp/d; mkdir -p /tmp/d; ln -s -f $(PWD)/dockerfs $(D_ROOT); \
sudo dockerd --storage-driver=overlay2 --iptables=false \
--data-root $(D_ROOT)/var/lib/docker/ --exec-root=$(D_ROOT)/var/run/docker/ \
-H unix://$(D_ROOT)/var/run/docker.sock -p $(D_ROOT)/var/run/docker.pid &
SONIC_USERFACL_DOCKERD_FOR_DOCKERFS := setfacl -m user:$(USER):rw $(D_ROOT)/var/run/docker.sock
DOCKER_SERVICE_DOCKERFS_CHECK := (sudo docker -H unix://$(D_ROOT)/var/run/docker.sock info &> /dev/null && sudo kill -9 `sudo cat $(D_ROOT)/var/run/docker.pid` && false) || (echo "Starting docker build service..."; (sudo $(SONIC_NATIVE_DOCKERD_FOR_DOCKERFS) ) &> /tmp/dockerfs.log ; sleep 1; sudo $(SONIC_USERFACL_DOCKERD_FOR_DOCKERFS);)

endif

Expand Down Expand Up @@ -177,6 +181,7 @@ SONIC_BUILD_INSTRUCTION := make \
HTTP_PROXY=$(http_proxy) \
HTTPS_PROXY=$(https_proxy) \
SONIC_ENABLE_SYSTEM_TELEMETRY=$(ENABLE_SYSTEM_TELEMETRY) \
SONIC_ENABLE_RESTAPI=$(ENABLE_RESTAPI) \
EXTRA_JESSIE_TARGETS=$(EXTRA_JESSIE_TARGETS) \
$(SONIC_OVERRIDE_BUILD_VARS)

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Nephos: [![Nephos](https://sonic-jenkins.westus2.cloudapp.azure.com/job/nephos/j
P4: [![P4](https://sonic-jenkins.westus2.cloudapp.azure.com/job/p4/job/buildimage-p4-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/p4/job/buildimage-p4-all)
VS: [![VS](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-all/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-all)

*201904*:
Broadcom: [![Broadcom](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201904/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201904/)
Mellanox: [![Mellanox](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201904/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201904/)
*201911*:
Innovium: [![Innovium](https://sonic-jenkins.westus2.cloudapp.azure.com/job/innovium/job/buildimage-invm-201911/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/innovium/job/buildimage-invm-201911/)
Broadcom: [![Broadcom](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201911/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/broadcom/job/buildimage-brcm-201911/)
Mellanox: [![Mellanox](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201911/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/mellanox/job/buildimage-mlnx-201911/)
VS: [![VS](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-201911/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/buildimage-vs-201911)

*201811*:
Innovium: [![Innovium](https://sonic-jenkins.westus2.cloudapp.azure.com/job/innovium/job/buildimage-invm-201811/badge/icon)](https://sonic-jenkins.westus2.cloudapp.azure.com/job/innovium/job/buildimage-invm-201811/)
Expand Down
37 changes: 34 additions & 3 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
else
DOCKER_VERSION=5:18.09.8~3-0~debian-stretch
fi
LINUX_KERNEL_VERSION=4.9.0-9-2
LINUX_KERNEL_VERSION=4.9.0-11-2

## Working directory to prepare the file system
FILESYSTEM_ROOT=./fsroot
Expand Down Expand Up @@ -139,7 +139,9 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/initramfs-tools_*.deb || \
sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/linux-image-${LINUX_KERNEL_VERSION}-*_${CONFIGURED_ARCH}.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install acl
[[ $CONFIGURED_ARCH == amd64 ]] && sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install dmidecode
if [[ $CONFIGURED_ARCH == amd64 ]]; then
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install dmidecode hdparm
fi

## Update initramfs for booting with squashfs+overlay
cat files/initramfs-tools/modules | sudo tee -a $FILESYSTEM_ROOT/etc/initramfs-tools/modules > /dev/null
Expand Down Expand Up @@ -176,6 +178,11 @@ sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/scripts/init-bottom/varlog
sudo cp files/initramfs-tools/union-fsck $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/union-fsck
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/union-fsck
pushd $FILESYSTEM_ROOT/usr/share/initramfs-tools/scripts/init-bottom && sudo patch -p1 < $OLDPWD/files/initramfs-tools/udev.patch; popd
if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
sudo cp files/initramfs-tools/uboot-utils $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/uboot-utils
sudo chmod +x $FILESYSTEM_ROOT/etc/initramfs-tools/hooks/uboot-utils
cat files/initramfs-tools/modules.arm | sudo tee -a $FILESYSTEM_ROOT/etc/initramfs-tools/modules > /dev/null
fi

if [[ $CONFIGURED_ARCH == amd64 ]]; then
## Install latest intel ixgbe driver
Expand Down Expand Up @@ -272,7 +279,8 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
cgroup-tools \
ipmitool \
ndisc6 \
makedumpfile
makedumpfile \
conntrack


if [[ $CONFIGURED_ARCH == amd64 ]]; then
Expand Down Expand Up @@ -374,6 +382,12 @@ set /files/etc/sysctl.conf/net.ipv4.conf.all.arp_ignore 2

set /files/etc/sysctl.conf/net.ipv4.neigh.default.base_reachable_time_ms 1800000
set /files/etc/sysctl.conf/net.ipv6.neigh.default.base_reachable_time_ms 1800000
set /files/etc/sysctl.conf/net.ipv4.neigh.default.gc_thresh1 1024
set /files/etc/sysctl.conf/net.ipv6.neigh.default.gc_thresh1 1024
set /files/etc/sysctl.conf/net.ipv4.neigh.default.gc_thresh2 2048
set /files/etc/sysctl.conf/net.ipv6.neigh.default.gc_thresh2 2048
set /files/etc/sysctl.conf/net.ipv4.neigh.default.gc_thresh3 4096
set /files/etc/sysctl.conf/net.ipv6.neigh.default.gc_thresh3 4096

set /files/etc/sysctl.conf/net.ipv6.conf.default.forwarding 1
set /files/etc/sysctl.conf/net.ipv6.conf.all.forwarding 1
Expand Down Expand Up @@ -494,8 +508,25 @@ fi
## Remove gcc and python dev pkgs
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y remove gcc libpython2.7-dev

## Add mtd and uboot firmware tools package
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install u-boot-tools mtd-utils device-tree-compiler
sudo LANG=C chroot $FILESYSTEM_ROOT apt-mark manual u-boot-tools mtd-utils device-tree-compiler

## Update initramfs
sudo chroot $FILESYSTEM_ROOT update-initramfs -u
## Convert initrd image to u-boot format
if [[ $CONFIGURED_ARCH == armhf || $CONFIGURED_ARCH == arm64 ]]; then
INITRD_FILE=initrd.img-${LINUX_KERNEL_VERSION}-${CONFIGURED_ARCH}
if [[ $CONFIGURED_ARCH == armhf ]]; then
INITRD_FILE=initrd.img-${LINUX_KERNEL_VERSION}-armmp
sudo LANG=C chroot $FILESYSTEM_ROOT mkimage -A arm -O linux -T ramdisk -C gzip -d /boot/$INITRD_FILE /boot/u${INITRD_FILE}
## Overwriting the initrd image with uInitrd
sudo LANG=C chroot $FILESYSTEM_ROOT mv /boot/u${INITRD_FILE} /boot/$INITRD_FILE
elif [[ $CONFIGURED_ARCH == arm64 ]]; then
sudo cp -v $PLATFORM_DIR/${sonic_asic_platform}-${CONFIGURED_ARCH}/sonic_fit.its $FILESYSTEM_ROOT/boot/
sudo LANG=C chroot $FILESYSTEM_ROOT mkimage -f /boot/sonic_fit.its /boot/sonic_${CONFIGURED_ARCH}.fit
fi
fi

## Clean up apt
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y autoremove
Expand Down
2 changes: 1 addition & 1 deletion build_debug_docker_j2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ debs/{{ deb }}{{' '}}
{% if $3 is defined %}
{% if $3|length %}

RUN apt-get install -f -y \
RUN apt-get update && apt-get install -f -y \
{% for dbg in $3.split(' ') -%}
{{ dbg }}{{' '}}
{%- endfor %}
Expand Down
11 changes: 5 additions & 6 deletions device/accton/x86_64-accton_as4630_54pe-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,15 @@ def get_presence(self, port_num):
present_path = self.BASE_CPLD_PATH + "module_present_" + str(port_num)
self.__port_to_is_present = present_path

content="0"
try:
val_file = open(self.__port_to_is_present)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
print "Error: unable to access file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand Down
22 changes: 10 additions & 12 deletions device/accton/x86_64-accton_as5712_54x-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,15 @@ def get_presence(self, port_num):
present_path = present_path + "module_present_" + str(port_num)
self.__port_to_is_present = present_path

content="0"
try:
val_file = open(self.__port_to_is_present)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
print "Error: unable to access file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand All @@ -175,16 +174,15 @@ def get_low_power_mode_cpld(self, port_num):
q = self.qsfp_sb_remap(port_num)
lp_mode_path = lp_mode_path + str(q)

content="0"
try:
val_file = open(lp_mode_path)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
print "Error: unable to access file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand Down
20 changes: 9 additions & 11 deletions device/accton/x86_64-accton_as5812_54t-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,15 @@ def get_presence(self, port_num):
present_path = present_path + "module_present_" + str(port_num)
self.__port_to_is_present = present_path

content="0"
try:
val_file = open(self.__port_to_is_present)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
print "Error: unable to access file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand All @@ -129,16 +128,15 @@ def get_low_power_mode_cpld(self, port_num):
lp_mode_path = lp_mode_path + "module_lp_mode_"
lp_mode_path = lp_mode_path + str(port_num)

content="0"
try:
val_file = open(lp_mode_path)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand Down
20 changes: 9 additions & 11 deletions device/accton/x86_64-accton_as5812_54x-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,15 @@ def get_presence(self, port_num):
present_path = present_path + "module_present_" + str(port_num)
self.__port_to_is_present = present_path

content="0"
try:
val_file = open(self.__port_to_is_present)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
print "Error: unable to access file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand All @@ -189,16 +188,15 @@ def get_low_power_mode_cpld(self, port_num):
q = self.qsfp_sb_remap(port_num)
lp_mode_path = lp_mode_path + str(q)

content = "0"
try:
val_file = open(lp_mode_path)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand Down
14 changes: 6 additions & 8 deletions device/accton/x86_64-accton_as5835_54t-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,15 @@ def get_presence(self, port_num):
path = "/sys/bus/i2c/devices/3-0062/module_present_{0}"
port_ps = path.format(cage_num)

content="0"
try:
val_file = open(port_ps)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
print "Error: unable to access file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand All @@ -131,8 +130,7 @@ def get_low_power_mode_cpld(self, port_num):

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand Down
14 changes: 6 additions & 8 deletions device/accton/x86_64-accton_as5835_54x-r0/plugins/sfputil.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,15 @@ def get_presence(self, port_num):
path = "/sys/bus/i2c/devices/{0}/module_present_{1}"
port_ps = path.format(cpld_ps, cage_num)

content = "0"
try:
val_file = open(port_ps)
content = val_file.readline().rstrip()
val_file.close()
except IOError as e:
print "Error: unable to open file: %s" % str(e)
print "Error: unable to access file: %s" % str(e)
return False

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand All @@ -201,8 +200,7 @@ def get_low_power_mode_cpld(self, port_num):

content = val_file.readline().rstrip()
val_file.close()

# content is a string, either "0" or "1"

if content == "1":
return True

Expand Down
Loading