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/24 17:05] – [OpenWrt bootlog] Added OpenWrt boot log 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 50%>
 +\\ Support for the RTL930x subtarget is still very fresh. SFP+ does not work yet.
 +</WRAP>
  
 The ZyXEL XGS1250-12 is a web managed 11 + 1-port Multi-Gigabit L3 switch. Connectivity: The ZyXEL XGS1250-12 is a web managed 11 + 1-port Multi-Gigabit L3 switch. Connectivity:
Line 7: Line 11:
  
 {{media:zyxel:xgs1250-12:zyxel_xgs1250-12.png?500|Frontal view}} {{media:zyxel:xgs1250-12:zyxel_xgs1250-12.png?500|Frontal view}}
 +
 ===== Supported Versions ===== ===== Supported Versions =====
  
Line 74: Line 79:
  
 ==== Flash Layout ==== ==== Flash Layout ====
-<WRAP BOX> +The XGS1250-12 has a 16 MiB Macronix MX25L12833F NOR flash chipThe realtek target uses a dynamic kernel/rootfs splitso actual sizes of the ''kernel''''rootfs'' and ''rootfs_data'' partitions may vary.
-FIXME //[[:docs:techref:flash.layout#discovery_how_to_find_out|Find out flash layout]]then add the flash layout table here (copypaste, modify the [[docs:techref:flash.layout#partitioning_of_the_flash|example]]).//+
  
-Please check out the article [[docs:techref:flash.layout|Flash layout]]. It contains examples and explanations that describe how to document the flash layout. +^   XGS1250-12  Flash Layout (OpenWrt)     ^^^^^^^^^^ 
-</WRAP>+^ Layer0  |  raw NOR flash memory chip ([[wp>Serial Peripheral Interface Bus|spi]]0.0: mx25l12805d) 16384 KiB  ||||||||| 
 +^ Layer1  |  mtd0 **//u-boot//** 896 KiB  |  mtd1 **//u-boot-env//** 64 KiB  |  mtd2 **//u-boot-env2//** 64 KiB  |  mtd3 **//jffs//** 1024 KiB  |  mtd4 **//jffs2//** 1024 KiB  |  mtd5  **//runtime//** 13184 KiB  |||  mtd9 **//log//** 128 KiB | 
 +^ Layer2  | |||||  mtd6 **//kernel//** 2752 KiB  |  mtd7 **//rootfs//** 10432 KiB  ||   | 
 +^ <color magenta>mountpoint</color>  |  ||||||  <color magenta>''/''</color>  ||      | 
 +^ filesystem    ||||||  [[docs:techref:filesystems#overlayfs|OverlayFS]]  ||       | 
 +^ Layer3        ||||||  |  mtd8 **//rootfs_data//** 7232 KiB  |      | 
 +^ Size in KiB  |  896 KiB  |  64 KiB  |  64 KiB  |  1024 KiB  |  1024 KiB  |  2752 KiB  |  3200 KiB  |  7232 KiB  |  128 KiB  | 
 +^ Name          **//u-boot//**  |  **//u-boot-env//**  |  **//u-boot-env2//**  |  **//jffs//**  |  **//jffs2//**  |  **//kernel//**  |  |  **//rootfs_data//**  |  | 
 +^ <color magenta>mountpoint</color  |  //none//  |  //none//  |  //none//  |  //none//  |  //none//  |  //none//    <color magenta>''/rom''</color>  |  <color magenta>''/overlay''</color>    //none// 
 +^ filesystem    //none//  |  //none//  |  //none//  |  //none//  |  //none//  |  //none//  |  [[docs:techref:filesystems#SquashFS]]  |  [[docs:techref:filesystems#JFFS2]]  |  //none//  |
  
 ==== OEM easy installation ==== ==== OEM easy installation ====
  
-<WRAP BOX> +  * Connect serial as per the [[toh:zyxel:xgs1250-12#serial|layout]]. 
-FIXME //The instructions below are for Broadcom devices and only serve as an example.//\\ +  * Navigate to 'Management' in the OEM web interface and click on 'Firmware upgrade' to the left
-**//Remove modify them if they do not apply to this particular device!//**+  Upload the OpenWrt initramfs image, and wait till the switch reboots into OpenWrt. 
 +  Connect to the device through serial and change the U-boot boot command: <code># fw_setenv bootcmd 'rtk network on; boota'</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. 
 +==== Booting OpenWrt from RAM ====
  
-This section deals with +->  [[docs:guide-user:installation:generic.flashing.tftp]]
-  * How you install OpenWrt from a device freshly opened +
-  * The steps required such as reset to factory defaults if the device has already been configured+
  
-**Note:** Reset router to factory defaults if it has been previously configured. +The XGS1250-12 can boot from the network, but for that you'd need to manipulate the boot commandZyXEL 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 bootcmdOnce 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**</coloras 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.
-  * Browse to ''<nowiki>http://192.168.1.1/Upgrade.asp</nowiki>'' +
-  * Upload .bin file to router +
-  * Wait for it to reboot +
-  * Telnet to 192.168.1.1 and set a root password, or browse to ''<nowiki>http://192.168.1.1</nowiki>'' if LuCI is installed. +
-</WRAP>+
  
-==== OEM installation using the TFTP method ==== 
  
-->  [[docs:guide-user:installation:generic.flashing.tftp]] 
  
-=== Specific values needed for tftp ===+=== Specific values needed for TFTP ===
  
-<WRAP BOX>+^ Bootloader TFTP server IPv4 address  | 192.168.1.111   | 
 +^ Firmware TFTP image                  | [[:downloads|Latest OpenWrt release]] (**''NOTE:''** Name must contain //"initramfs"//) |
  
-FIXME Enter values for "FILL-IN" below+=== Instructions ===
  
-^ Bootloader tftp server IPv4 address  | FILL-IN   +  * Connect serial as per the [[toh:zyxel:xgs#serial|serial settings]]
-^ Bootloader MAC address (special)     | FILL-IN   | +  Navigate to 'Managementin the OEM web interface and click on 'Firmware upgradeto the left. 
-^ Firmware tftp image                  | [[:downloads|Latest OpenWrt release]] (**''NOTE:''** Name must contain //"tftp"//) | +  Upload the OpenWrt initramfs image, and wait till the switch reboots. 
-^ TFTP transfer window                 | FILL-IN seconds                                | +  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> 
-^ TFTP window start                    | approximately FILL-IN seconds after power on   | +  * Reboot 
-^ TFTP client required IP address      | FILL-IN                                        | +  * 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>
- +
-</WRAP>+
  
 ===== Upgrading OpenWrt ===== ===== Upgrading OpenWrt =====
Line 176: Line 183:
  
 <WRAP BOX> <WRAP BOX>
-FIXME Please fill in real values for this device, then remove the EXAMPLEs 
  
 ==== Network interfaces ==== ==== Network interfaces ====
 The default network configuration is: The default network configuration is:
 ^ Interface Name   ^ Description                  ^ Default configuration    ^ ^ Interface Name   ^ Description                  ^ Default configuration    ^
-| br-lan           EXAMPLE LAN & WiFi           EXAMPLE 192.168.1.1/24   +| br-lan           | LAN            | 192.168.1.1/24   |
-| vlan0 (eth0.0)   | EXAMPLE LAN ports (1 to 4)   | EXAMPLE None             | +
-| vlan1 (eth0.1)   | EXAMPLE WAN port             | EXAMPLE DHCP             | +
-| wl0              | EXAMPLE WiFi                 | EXAMPLE Disabled         |+
  
 </WRAP> </WRAP>
Line 274: Line 277:
 Layout is exactly the same as for the ZyXEL GS1900-10HP (casing color being black): Layout is exactly the same as for the ZyXEL GS1900-10HP (casing color being black):
  
-{{:media:zyxel:gs1900-10hp:zyxel-serial-pins.jpg?direct&400|}}+{{:media:zyxel:xgs1250-12:zyxel_xgs1250-12_uart.jpg?direct&400|}}
  
 ^ Serial connection parameters for ZyXEL XGS1250-12 | 115200, 8N1 | ^ Serial connection parameters for ZyXEL XGS1250-12 | 115200, 8N1 |
Line 719: 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 OpenWrtWorked 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'' commandOtherwise 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