Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| inbox:toh:cisco:vedge_1000 [2024/06/02 21:13] – [Installing OpenWrt] bluecmd | inbox:toh:cisco:vedge_1000 [2024/08/11 12:20] – [Installing OpenWrt] bluecmd | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| + | USB per-port power switching (PPPS) is available for both USB 3 front ports. | ||
| /*** if info available: uncomment and fill in | /*** if info available: uncomment and fill in | ||
| Line 54: | Line 55: | ||
| ==== Installing OpenWrt ==== | ==== Installing OpenWrt ==== | ||
| + | === Alternative 1: Boot installation from unlocked u-boot via TFTP === | ||
| - | === Alternative | + | * Download the '' |
| + | * Example TFTP server command to serve the files in the current directory: '' | ||
| + | * Calculate the CRC32 of your boot file using the following command: < | ||
| + | |||
| + | * If you are not in the u-boot prompt, reboot the device and press **Ctrl-x** to enter u-boot | ||
| + | * If this does not work, see the " | ||
| + | * Connect the vEdge 1000 via the management Ethernet port to a network with DHCP available | ||
| + | * Run the following commands, replace the IP with your TFTP server: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * If the previous crc32 command does not complain, continue with the boot | ||
| + | * '' | ||
| + | * Continue with the **Prepare the disk** step | ||
| + | |||
| + | === Alternative | ||
| **Note:** OEM OS only supports mounting vfat partitions automatically | **Note:** OEM OS only supports mounting vfat partitions automatically | ||
| - | * Copy ./ | + | * Copy '' |
| * '' | * '' | ||
| * Reboot vEdge | * Reboot vEdge | ||
| Line 67: | Line 84: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * Skip to the **Prepare the disk step** | + | * Continue with the **Prepare the disk** |
| - | + | ||
| - | === Alternative 2: Boot installation from unlocked u-boot via TFTP === | + | |
| - | + | ||
| - | * If you are not in the u-boot prompt, reboot the device and press **Ctrl-x** to enter u-boot | + | |
| - | * If this does not work, see the " | + | |
| - | * Connect the vEdge 1000 via the management Ethernet port to a network with DHCP available | + | |
| - | * Run the following commands, replace the IP with your TFTP server: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | Example tftp server command: '' | + | |
| === Prepare the disk === | === Prepare the disk === | ||
| Line 89: | Line 94: | ||
| * Generate a new disk ID by running the following commands: | * Generate a new disk ID by running the following commands: | ||
| * < | * < | ||
| - | udhcpc -i br-lan | ||
| - | echo ' | ||
| - | opkg update | ||
| - | opkg install sfdisk | ||
| source / | source / | ||
| sfdisk --disk-id " | sfdisk --disk-id " | ||
| Line 102: | Line 103: | ||
| You need to make the file '' | You need to make the file '' | ||
| - | == USB drive == | + | **Example using OpenSSH:** |
| < | < | ||
| - | mount /dev/sdb1 /mnt | + | udhcpc -i br-lan |
| - | sysupgrade -n /mnt/ | + | # On another machine: scp -O openwrt-octeon-generic-cisco_vedge1000-squashfs-sysupgrade.tar root@10.x.x.x: |
| + | sysupgrade -n /tmp/ | ||
| </ | </ | ||
| - | == OpenSSH SCP == | + | **Example using a USB drive:** |
| < | < | ||
| - | udhcpc -i br-lan | + | mount /dev/sdb1 /mnt |
| - | # On another machine: scp -O openwrt-octeon-generic-cisco_vedge1000-squashfs-sysupgrade.tar root@10.x.x.x: | + | sysupgrade -n /mnt/ |
| - | sysupgrade -n /tmp/ | + | |
| </ | </ | ||
| Done! It is recommended to power-cycle the device to ensure that e.g. the LED and USB controllers are reset to a known state. | Done! It is recommended to power-cycle the device to ensure that e.g. the LED and USB controllers are reset to a known state. | ||
| + | === Sync and reset fallback partitions === | ||
| + | |||
| + | The vEdge 1000 has support for two U-Boot bootloaders. It is recommended to sync and force a switch to the primary partition. | ||
| + | |||
| + | In U-Boot, execute the following: | ||
| + | |||
| + | < | ||
| + | # optional: ensure USB3 ports are enabled | ||
| + | setenv ext_usb_setup "i2c dev 1; i2c smbwrite 6e 01 01 ff; cpld_wr 0x4 0x00" | ||
| + | |||
| + | cpld_wr 0xa 0x2 | ||
| + | saveenv | ||
| + | cpld_wr 0xa 0x0 | ||
| + | saveenv | ||
| + | reset | ||
| + | </ | ||
| ==== Reverting back to OEM ==== | ==== Reverting back to OEM ==== | ||
| Line 952: | Line 969: | ||
| ===== Notes ===== | ===== Notes ===== | ||
| + | ==== USB power switching ==== | ||
| + | |||
| + | To power down the top port you can do: | ||
| + | |||
| + | < | ||
| + | echo 1 > / | ||
| + | echo 1 > / | ||
| + | </ | ||
| + | |||
| + | For the bottom port use '' | ||
| + | |||
| + | The software uhubctl can be used, but as of this writing there are some issues regarding endianness and devices hanging around in the kernel even when being powered down. | ||
| ==== Gotchas ==== | ==== Gotchas ==== | ||