- Jul 13, 2016
-
-
Adam Wujek authored
Rename fields in the struct wrsPortStatusTable_s to reflect SNMP objects' names. link_up -> wrsPortStatusLink port_mode -> wrsPortStatusConfiguredMode port_locked -> wrsPortStatusLocked sfp_vn[16] -> wrsPortStatusSfpVN[16] sfp_pn[16] -> wrsPortStatusSfpPN[16] sfp_vs[16] -> wrsPortStatusSfpVS[16] sfp_in_db -> wrsPortStatusSfpInDB sfp_GbE -> wrsPortStatusSfpGbE sfp_error -> wrsPortStatusSfpError ptp_tx_count -> wrsPortStatusPtpTxFrames ptp_rx_count -> wrsPortStatusPtpRxFrames Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
/etc/init.d/dot-config can save information e.g. that it failed to get dot-config form the given URL. However, apply_dot-config called from /etc/init.d/dot-config overwrites this information by the result of checking the dot-config. The checking of the dot-config has to be done also in apply_dot-config, because the webinterface writes down changed dot-config and executes only apply_dot-config. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jul 07, 2016
-
-
Adam Wujek authored
Postpone the printout of the fibers alpha. Alpha is known after fiber match, not after SFP match as it was before. Also print RX/TX wave lengths of SFPs. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Zero also sfp->rx_wl (not only sfp->tx_wl) when wl_txrx not found for specific SFP entry. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add the following SNMP objects: --wrsSpllBuildBy --wrsPtpServoUpdateTime --wrsFwUpdateStatus Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Inform if last firmware update was successful. Uses previous commit: rootfs: check md5sum of firmware before update Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Check md5sums of files in the wrs-firmware.tar with stored in file checksums.md5. When checksum does not match abort the update. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Try to source in the subshell downloaded dot-config. This test can detect problems like unterminated quoted string: /bin/sh: /tmp/dot-config: line 59: syntax error: unterminated quoted string Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
In some rare cases it can happen that locally stored dot-config is not valid. For example, when firmware on the switch was updated, but the old dot-config is still used. However, such scenario is unlikely because new firmware should contain new dot-config. --check whether sourcing was successful --Replace "." with "source" when sourcing dot-config. --Redirect errors to the stderr. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Perform uplift of the buildroot to the 2016.02. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When switch's firmware with buildroot older than 2016.02 was updated via copying wrs-firmware.tar with buildroot at least 2016.02 to the /update partition, then hwinfo in the flash was overwriten. Such behaviour was caused by crashing during execution of /wr/bin/sdb-read. Crashing sdb-read caused the following if's condition from the file /etc/init.d/hwinfo to be false. if /wr/bin/sdb-read /dev/mtd5ro > /dev/null; then This triggered later overwrite of hwinfo partition. /wr/bin/sdb-read was crashing because during update the binary /wr/bin/sdb-read was called from just extracted firmware. Problem pops up when libraries required by sdb-read are in the different versions in the old and the new firmware. Unfortunatelly, this problem cannot be easily solved, since we cannot change the update procedure in already installed firmware (the one that is performing update). Implemented solution does the following: --change the name of /wr/etc/sdb-for-dataflash to /wr/etc/sdb-for-dataflash.bin by this /etc/init.d/hwinfo script exits with an error without modification to the hwinfo partition. --rename link /etc/rcS/S90hwinfo to /etc/rcS/S10hwinfo, which will trigger update of hwinfo partition earlier during the boot. --restart switch after update of hwinfo in the flash --remove calls of /etc/init.d/hwinfo during the update Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
The problem is that the "reboot" command sends the signal to the init. However, it looks like init queues all incoming signals. They're handled after all "sysinit" commands from the inittab are finished. reboot -f skip sending the signal and triggers the reboot immediately. This problem pop up after update of a buildroot to version 2016.02. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When Barebox's menu is displayed, it erases all messages from the screen. Put some extra newlines to move out printed messages from the screen. These messages could be seen now in the terminal's history. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
move lighttpd configuration from /var/www/lighttpd.config to /etc/lighttpd/lighttpd.conf. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Don't install lighttpd configs for WRS, we have our own. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
We don't want to enable IPv6 support in the busybox, since we don't support IPv6 on the switch. Add patch taken from the buildroots repo: 7a5be2a0 busybox: tweak IPv6/largefile handling Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
We don't use ifplugd since Feb 2014. See the commit: 162fb24e userspace: run dhcpc in background forever, not through auto means Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
There is no need to create cpio, tar and bzip2 images, since we don't use them anyway. We assemble images on our own in build/scripts/wrs_build_wraprootfs. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Change done due to uplift of the buildroot to the 2016.02 Please note that some of the options just changed their position. Some changes: remove: --DOS2UNIX --UNIX2DOS --FDFORMAT (we don't have floppy) --EJECT (we don't have CD/DVD) --HDPARM (we don't have ATA drives) --ETHER_WAKE (to send wake-on-lan magic packet) --DNSD (we don't need DNS server) --NAMEIF (we don't want to change names of interfaces) remove the following, since they're provided by prosps_ng: --pidof --top --uptime --free --kill* --ps --sysctl --watch add: --LFS (large file support) --MD5_SMALL=0 (We don't care so much about the size, more about the performance. Use the fastest. Difference in the size is very small anyway.) --SHA3_SMALL=0 (like above) --CONFIG_GZIP_FAST=2 (like above, use the fastest) --FEATURE_LESS_WINCH and FEATURE_LESS_ASK_TERMINAL allow to display i.e. "less" command via serial terminal with non standard terminal sizes. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
In case there are errors it will print process name instead of pid. for example: /wr/bin/wrs_checkcfg: Error: Configuration "XXX" not found instead of: <pid-123>: Error: Configuration "PORT00_PARAMS" not found Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Buildroot forces procps-ng to install binaries in the /bin insted of /usr/bin. As a side effect libprocps.pc was installed at /lib/pkgconfig instead of /usr/lib/pkgconfig. Which directory is not included into final image. Added patch taken from buildroot's repo: 0e07a5ede package/procps-ng: install libprocps.pc in staging/usr/lib/pkgconfig/ Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Fix the warning (for perl < 5.21.x) whihch becomes an error (for perl >= 5.21.x): defined(@array) is deprecated at kernel/timeconst.pl line 373. (Maybe you should just omit the defined()?) This error pops up on newer systems. It is not related with the change of the buildroot, but with the host version of perl. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Instead of keeping the list of archives in build/download-info which should be downloaded for buildroot, we use "make source" to do the same job. However, the task of building buildroot had to split into 3 tasks: --init (unpack and configure buildroot) --download (download the source of used buildroot packages) --build (compile buildroot packages, etc.) The reason for this change is to avoid updating the download-info file when buildroot package is updated. Additionally ltrace is not downloaded as an archive, but it is cloned git repo. After the clone it is packed into archive. In the current state our framework cannot do the same. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove binaries/usr/lib/libbfd-2.21.1.so and /usr/bin/nm from the repo. Instead use the compiled versions in buildroot. Patch the installation rule to install only "nm", when PACKAGE_BINUTILS_TARGET is not used(!). libbfd-2.21.1.so is installed by default by the installation rule of PACKAGE_BINUTILS. Binary nm was added in the commit: d2a486cc rootfs_override: add /usr/bin/nm and its libbfd Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
There is a conflict in struct scm_timestamping between wrs-socket.c and linux kernel code from the buildroot (4.4). update PPSI due to similar issue Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--Remove file THIS_IS_NOT_YOUR_ROOT_FILESYSTEM. We wrap rootfs ourself, we know what we're doing. --remove symlink /etc/dropbear, before creating such directory Creating the symlink was added in the buildroot's commit: e7d04dd2 package/dropbear: fix generating keys on RO file systems --overwrite symlink for var/run->../tmp Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
make 3.82 splits the work differently. When using buildroot with the make > 3.81 buildroot uses BR2_JLEVEL= (preferably 0 for automatic number of jobs setting). For make =< 3.81 BR2_JLEVEL= is ignored and build is done using only one job. Passing -j allows to build with many jobs, but many warning messages are printed: make[2]: warning: -jN forced in submake: disabling jobserver mode. Use BR_JLEVEL=0, this allows buildroot to pick automatically number of jobs. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
get rid of warning: WARNING: "wr_nic_pstats_callback" [/home/awujek/wrs/wr-switch-sw/kernel/wr_pstats/wr_pstats.ko] undefined! Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Change the names of interfaces from wr0..wr17 (wrX) to wri1..wri18 (wriX). Such change was done to avoid confusion that ports on the front panel are numbered from 1 to 18, while in software they were numbered from 0 to 17. Inconsistency started to show up especially in messages produced by software causing confusion. Be aware that even after these changes some software internally uses indexing or ports from 0 to 17. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
README file was outdated. Additionally, part of this information is included in the wrs-user-manual. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
from wrX to wriX+1 Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-