Linux - Foundations

From wiki.openedev
Jump to: navigation, search

Install Ubuntu

Install CentOS

Tips

Bash

  • /bin/sh: Syntax error: "(" unexpected
 My default /bin/sh symlink was pointing to dash (/bin/sh -> dash) Got it resolved by changing it to /bin/bash as below,
 bash> ls -l /bin/sh
 lrwxrwxrwx 1 root root 4 Aug 17 10:29 /bin/sh -> dash
 bash> sudo mv /bin/sh /bin/sh.bak
 bash> ls -l /bin/sh.bak
 lrwxrwxrwx 1 root root 4 Aug 17 10:29 /bin/sh.bak -> dash
 bash> sudo ln -s /bin/bash /bin/sh
 bash> ls -l /bin/sh
 lrwxrwxrwx 1 root root 9 Oct 6 13:50 /bin/sh -> /bin/bash

Set Linux terminal console column width

 bash> stty cols 80

Mellanox 10GbE Adapters w/ PCI Express 3.0 firmware upgrade

  • Check the current firmware version of the card
 bash> ethtool -i ens1
 driver: mlx4_en
 version: 2.2-1 (Feb 2014)
 firmware-version: 2.33.5100
 bus-info: 0000:04:00.0
 supports-statistics: yes
 supports-test: yes
 supports-eeprom-access: no
 supports-register-dump: no
 supports-priv-flags: yes
  • Download MFT package from[1] and install
  • Get the PSID
 bash>  flint -d /dev/mst/mt4099_pciconf0 query
 Image type:      FS2
 FW Version:      2.33.5100
 FW Release Date: 25.1.2015
 Rom Info:        type=PXE version=3.4.460 devid=4099
 Device ID:       4099
 Description:     Node             Port1            Port2            Sys image
 GUIDs:           ffffffffffffffff ffffffffffffffff ffffffffffffffff
 ffffffffffffffff
 MACs:                                 f452140bcc30     f452140bcc31
 VSD:
 PSID:            MT_1080120023
  • Once PSID identified go this link[2] and download suitable firmware image
  • Now, burn the firmware
 bash> flint -d /dev/mst/mt4099_pci_cr0 -i ~/Download/fw-ConnectX3-rel-2_35_5100-MCX312A-XCB_A2-A6-FlexBoot-3.4.648.bin burn
 
    Current FW version on flash:  2.33.5100
    New FW version:               2.35.5100
 Burning FS2 FW image without signatures - OK
 Restoring signature                     - OK
  • Reboot the system
  • Find the new firmware on card
 bash> flint -d /dev/mst/mt4099_pci_cr0 query
 Image type:      FS2
 FW Version:      2.35.5100
 FW Release Date: 6.9.2015
 Product Version: 02.35.51.00
 Rom Info:        type=PXE version=3.4.648 devid=4099
 Device ID:       4099
 Description:     Node             Port1            Port2            Sys image
 GUIDs:           ffffffffffffffff ffffffffffffffff ffffffffffffffff
 ffffffffffffffff
 MACs:                                 f452140bcc30     f452140bcc31
 VSD:
 PSID:            MT_1080120023

Windows

  • Open Disk management in Windows
 Run> diskmgmt.msc
  • Open Device manager in Windows
 Run> devmgmt.msc
 
  • Format a disk with 64K block size in Windows
 Disk-format-64k-windows.png

[2] http://www.mellanox.com/page/firmware_table_ConnectX3EN [1] http://www.mellanox.com/page/management_tools