Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:zyxel:xgs1250-12 [2022/02/26 22:17] – Info box layout borrominitoh:zyxel:xgs1250-12 [2022/11/28 15:48] – [Tags] added torev
Line 1: Line 1:
 ====== ZyXEL XGS1250-12 ====== ====== ZyXEL XGS1250-12 ======
  
-<WRAP center round important 60%> +<WRAP center round important 50%> 
-Support for the RTL930x subtarget is still very fresh. As of 2022-02-25, network\\ +\\ Support for the RTL930x subtarget is still very fresh. SFP+ does not work yet.
-functionality is broken. ''ip'' shows 1 GbE links as up, but no connectivity. 10 GbE\\ +
-ports do work, however. SFP+ does not work yet.+
 </WRAP> </WRAP>
  
Line 103: Line 101:
   * Reboot, scp the sysupgrade image to /tmp, verify the checksum and flash it: <code># sysupgrade /tmp/openwrt-realtek-rtl930x-zyxel_xgs1250-12-squashfs-sysupgrade.bin</code>   * Reboot, scp the sysupgrade image to /tmp, verify the checksum and flash it: <code># sysupgrade /tmp/openwrt-realtek-rtl930x-zyxel_xgs1250-12-squashfs-sysupgrade.bin</code>
   * Upon reboot, you have a functional OpenWrt installation. Leave the bootcmd value as is - without ''rtk network on'' the switch will fail to initialise the network.   * Upon reboot, you have a functional OpenWrt installation. Leave the bootcmd value as is - without ''rtk network on'' the switch will fail to initialise the network.
-==== OEM installation using the TFTP method ====+==== Booting OpenWrt from RAM ====
  
 ->  [[docs:guide-user:installation:generic.flashing.tftp]] ->  [[docs:guide-user:installation:generic.flashing.tftp]]
  
-=== Specific values needed for tftp ===+The XGS1250-12 can boot from the network, but for that you'd need to manipulate the boot command. ZyXEL password protected the U-boot environment. However, if you change the bootcmd to a bogus value from within OpenWrt, you'll get dropped to a shell and be able to tftp load a ramdisk image. The instructions below assume a functional TFTP server. This is an 'invasive' procedure in the sense that you //will// need to install OpenWrt once to change the bootcmd. Once that's done you can reinstall the OEM firmware if you'd like. Keep in mind <color #ed1c24>**you will need serial access for every single boot**</color> as long as your bootcmd is bogus. Once you switch back to the default ''boota'' command, the switch will boot through, but you will not be able to access U-boot anymore until you change the bootcmd again. This is excellent for testing purposes, but unsuited for production use.
  
-<WRAP BOX> 
  
-FIXME Enter values for "FILL-IN" below 
  
-^ Bootloader tftp server IPv4 address  | FILL-IN   | +=== Specific values needed for TFTP ===
-^ Bootloader MAC address (special)     | FILL-IN   | +
-^ Firmware tftp image                  | [[:downloads|Latest OpenWrt release]] (**''NOTE:''** Name must contain //"tftp"//) | +
-TFTP transfer window                 | FILL-IN seconds                                | +
-^ TFTP window start                    | approximately FILL-IN seconds after power on   | +
-^ TFTP client required IP address      | FILL-IN                                        |+
  
-</WRAP>+^ Bootloader TFTP server IPv4 address  | 192.168.1.111   | 
 +^ Firmware TFTP image                  | [[:downloads|Latest OpenWrt release]] (**''NOTE:''** Name must contain //"initramfs"//) | 
 + 
 +=== Instructions === 
 + 
 +  * Connect serial as per the [[toh:zyxel:xgs#serial|serial settings]]. 
 +  * Navigate to 'Management' in the OEM web interface and click on 'Firmware upgrade' to the left. 
 +  * Upload the OpenWrt initramfs image, and wait till the switch reboots. 
 +  * Connect to the device through serial and change the boot command to a bogus command, so U-boot will drop you to a shell next time you boot: <code># fw_setenv bootcmd 'rtk network on; bootu'</code> 
 +  * Reboot 
 +  * Load the ramdisk in the U-boot shell: <code># tftpboot 0x84f00000 10.0.0.10:openwrt-realtek-rtl930x-zyxel_xgs1250-12-initramfs-kernel.bin</code>
  
 ===== Upgrading OpenWrt ===== ===== Upgrading OpenWrt =====
Line 721: Line 722:
 ===== Notes ===== ===== Notes =====
   * SFP+ cage does not work yet on OpenWrt.   * SFP+ cage does not work yet on OpenWrt.
-  * 10GbE RJ-45 interfaces are said to work, but I have not been able to get them going on OpenWrt. Worked fine on OEM firmware with short CAT5E cables and X550-AT2 at the other end. 
   * The network needs to be initialised by the bootloader through the ''rtk network on'' command. Otherwise the network won't work.   * The network needs to be initialised by the bootloader through the ''rtk network on'' command. Otherwise the network won't work.
 ===== Tags ===== ===== Tags =====
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
  
-{{tag>Aquantia Realtek 16flash 128ram GigabitEthernet 10Gbit SFP_plus}}+{{tag>Aquantia Realtek 16flash 128ram GigabitEthernet 10Gbit SFP_plus 1button serial U-boot 12v_powered}}
  • Last modified: 2024/12/10 16:41
  • by hmartin