Brick Zyxel GS1900-8 - all few seconds boot without lan

Despite following the instructions exactly, I now have boot loop.

Steps I have done.

  • Both partitions have been updated to the latest original zyxel firmware 2.70.
  • I made sure that the 1st partition is active and flashed the openwrt 21.02.3 initramfs-kernel.bin to active.
    After press for boot I have no lan access (used port1 vlan 100) and therefore can not access it with ssh to flash squashfs-sysupgrade.bin.

How can I do it via serial? I don't really have a clue about serial :wink:

Should have all the device specific information necessary.

1 Like

Thank you for the link.

After I had a serial connection I could read the following.

RTL838x# printenv
baudrate=115200
boardmodel=ZyXEL_GS1900_8
boardversion=V1.00(AAHH.0)
bootcmd=cst fcTest; boota
bootdelay=1
ethact=rtl8380#0
ethaddr=xx:xx:xx:xx:xx:xx
ipaddr=192.168.1.1
netmask=255.255.255.0
serverip=192.168.1.111
stderr=serial
stdin=serial
stdout=serial

Environment size: 282/1020 bytes
RTL838x# printsys
boardid=1
bootpartition=0
resetdefault=0
dualfname0=initramfs-kernel.bin
mac_end=xx:xx:xx:xx:xx:xx
mac_start=xx:xx:xx:xx:xx:xx
sn=xxxxxxxxxxxxx
dualfname1=GS1900-8_Firmware_V2.70(AAHH.1).bix
System information size: 191/4096 bytes
RTL838x# 

For me, as far as I understand it, it actually looks good. As I said, I am still of the opinion that I have flashed the right. However, it did not go...

Also I have now the with serial and tftp flashed again. After that I was just as far as before. After boot command only loop. I have then since you could see that on the 2nd partition is still the original firmware with setsys bootpartition this partition activated. After that I could boot normally with original firmware. And on the 1st partition I have then to come back to the initial state also again made the original firmware on it.
Why it may not work with openwrt I do not know.

Any improvement if you try a 22.03 image? The management VLAN has been dropped there already.

The serial header should be easily accessible and it's the only way to find out what exactly is going wrong during boot. An USB TTL adapter like this should be sufficient (don't connect the VCC pin).

Edit: looks like you got serial going, so share your boot log please. E.g. minicom can be told to log easily with -C $file.

1 Like

This information I find extremely important had already seen this here

but thank you!

With the boot log and the next try to flash must unfortunately wait for the probably next weekend.
We have no replacement here and the people around me were not so enthusiastic about my attempts that for hours the internet did not work :wink:

But what I mean to have remembered that I saw in the boot log uboot version ~1.0 date 2013. If I compare that with the info here

U-Boot Version: 2.0.0.59413 (Jul 08 2015 - 09:57:29)

that would indicate an older version on my switch. Is it maybe related to that?

U-Boot 2011.12.39239-svn41394 (Jul 24 2013 - 09:38:34)
happened to be on mine (and work).

2 Likes

Thanks for the information.

As so often, the problem seems to sit once again directly in front of the screen :wink: I would just like to understand what I'm doing wrong. It is not the 1st device that I have successfully flashed. I have never had problems. At least I think I'm following the instructions thoroughly. I don't know why it's going wrong this time. Let's hope for a quicker coming weekend than expected :wink:

I don't know if you noticed, but there is a very similar history with a Netgear GS308Tv1 here:

Makes me wonder if we've seriously messed up something. The u-boot environment you posted looked good. And so do the installation procedures described in both these threads. The GS30Tv1 story indicates that networking could be failing completely: "If I plug it into a different managed switch the port is shown as having link status of down". Which is quite unexpected. You should always at least have link on any port after a clean install.

Did you verify the link status in the other end? Not much hope playing with different configurations if the ports are dead silent...

Your boot log will hopefully help pinpoint the problem.

Wouldn't that have become apparent when people flashed master builds onto their switches? My GS1900-8HP e.g. isn't doing anything weird besides the PoE daemon being wonky. Been testing master builds on that one a few times lately. A quick glance at the 22.03 branch doesn't show much in master that wasn't backported to 22.03 either.

yes I have seen this thread already. As I understood it, the flashed openwrt has booted there and he has "only" no lan access. Mine boots every few seconds after flashing and therefore has no lan. And as i said I flashed it 2 times. 1. try via GUI, 2. try serial tftp.

I could observe this with direct connection between pc and switch and also with another switch in between. No lan after flashing on the zyxel.

I hope weekend we all know more :wink:

After several unsuccessful attempts the result is frustrating.

Procedure was the following starting point.

Both partitions zyxel 2.70, switch reset.

For safety's sake new browser profile FF used.

  1. try GUI

reset both to zyxel 2.70

  1. try serial tftp

  1. partition zyxel 2.60 2. partition 2.70

again 2 tries, GUI / serial tftp


and then i also tried a snapshot 22.03 with zyxel 2.60/2.70 - GUI /tftp

In short i seem to be either too stupid for this or it is simply not possible with the combination of firmware :wink:


When exporting the log file I unfortunately made a mistake. I have copied them by copy and paste from a linux machine to windoof. result --> danger of eye cancer. Sorry about that!

LOG

II: Copied Preloader data from 0x9fc00000(15064B) to 0x9f000000.II: Cleared Preloader BSS section at 0x9f003ad8(0B).II: PLL... II: PLL is set by SW... OKSetting DTRINFO: Applying ZQ result directly by plat_memctl_ZQ_force_config()II: DRAM is set by software calibration... Start claibation test...PASSEDMCR (0xb8001000):0x100421e0, 0x20320000, 0x54422830, 0x0404030fDTR2 (0xb8001010):0x0630d000DIDER(0xb8001050):0x80000000DCDR (0xb8001060):0x9b540000ZQPCR(0xb8001090):0x1f000000, 0x00000000, 0x00000000PHY Registers(0xb8001500):0xb8001500:0x80000010, 0x0000007f, 0x00000000, 0x000000000xb8001510:0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f000xb8001520:0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f000xb8001530:0x1e000000, 0x1e000000, 0x1e000000, 0x1e0000000xb8001540:0x1e000000, 0x1e000000, 0x1e000000, 0x1e0000000xb8001550:0x001e0f00, 0x001e0f00, 0x001e0f00, 0x001e0f000xb8001560:0x001e0f00, 0x001e0f00, 0x001e0f00, 0x001e0f000xb8001570:0x00000000, 0x00000000, 0x00000000, 0x000000000xb8001580:0x00000000, 0x00000000, 0x00000000, 0x000000000xb8001590:0x08000000, 0x66996699, 0x00000000, 0xaa55aa550xb80015a0:0x00000000, 0x00000000, 0x00000000, 0x00000000II: Selected DRAM model #0.II: Copying U-Boot from 0x9fc03ad8(235484B) to 0x83f00000... OKII: NOR SPI Flash... searching flash parameters... supported flash ID: [c22018][c22019][c22019]... detected flash ID: [c22018]... OKU-Boot 2011.12.39239-svn41394 (Jul 24 2013 - 09:38:34)Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHzDRAM: 128 MBSPI-F: 1x16 MBLoading 1024B env. variables from offset 0x40000Switch Model: ZyXEL_GS1900_8 (Port Count: 8)Switch Chip: RTL8382M**************************************************#### RTL8218B config - MAC ID = 8 ####Now Internal PHY-AREG32(0xbb00a17c) is 0PHY[0]: disable EEE on port [0x0000ff00]Net: Net Initialization Skippedrtl8380#0Hit any key to stop autoboot: 1 0 ## Booting image from partition ... 0## Booting kernel from Legacy Image at b4260000 ... Image Name: MIPS OpenWrt Linux-5.4.188 Created: 2022-04-16 12:59:34 UTC Image Type: MIPS Linux Kernel Image (gzip compressed) Data Size: 6073104 Bytes = 5.8 MB Load Address: 80000000 Entry Point: 80000400 Verifying Checksum ... OK Uncompressing Kernel Image ... OKStarting kernel ...[ 0.000000] Linux version 5.4.188 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 Sat Apr 16 12:59:34 2022[ 0.000000] RTL838X model is 83806800[ 0.000000] SoC Type: RTL8380[ 0.000000] Kernel command line: [ 0.000000] printk: bootconsole [early0] enabled[ 0.000000] CPU0 revision is: 00019070 (MIPS 4KEc)[ 0.000000] MIPS: machine is ZyXEL GS1900-8 Switch[ 0.000000] Registering _machine_restart[ 0.000000] Initrd not found or empty - disabling initrd[ 0.000000] Using appended Device Tree.[ 0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.[ 0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes[ 0.000000] Zone ranges:[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Movable zone start for each node[ 0.000000] Early memory node ranges[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] On node 0 totalpages: 32768[ 0.000000] Normal zone: 288 pages used for memmap[ 0.000000] Normal zone: 0 pages reserved[ 0.000000] Normal zone: 32768 pages, LIFO batch:7[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768[ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480[ 0.000000] Kernel command line: console=ttyS0,115200[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)[ 0.000000] Inode-cache hash tries: 8192 (order: 3, 32768 bytes, linear)[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off[ 0.000000] Memory: 114512K/131072K available (5099K kernel code, 168K rwdata, 636K rodata, 9128K init, 207K bss, 16560K reserved, 0K cma-reserved)[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1[ 0.000000] NR_IRQS: 32[ 0.000000] random: get_random_bytes called from 0x805c6a28 with crng_init=0[ 0.000000] tbe: no matching timers found[ 0.000000] CPU frequency from device tree: 500MHz[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns[ 0.000016] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns[ 0.008696] Calibrating delay loop... 497.66 BogoMIPS (lpj=995328)[ 0.047580] pid_max: default: 32768 minimum: 301[ 0.053062] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.061193] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.080099] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns[ 0.090920] futex hash table entries: 256 (order: -1, 3072 bytes, linear)[ 0.098673] pinctrl core: initialized pinctrl subsystem[ 0.108034] NET: Registered protocol family 16[ 0.195208] clocksource: Switched to clocksource MIPS[ 0.203765] NET: Registered protocol family 2[ 0.209054] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)[ 0.218694] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)[ 0.228057] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.236582] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.244421] TCP: Hash tables configured (established 1024 bind 1024)[ 0.252004] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)[ 0.259334] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)[ 0.267677] NET: Registered protocol family 1[ 0.848516] workingset: timestamp_bits=14 max_order=15 bucket_order=1[ 0.873428] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 0.879915] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.[ 0.945374] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)[ 0.960038] pinctrl-single bb001000.pinmux: 32 pins, size 4[ 0.966939] Probing RTL8231 GPIOs[ 0.970661] rtl8231_init called, MDIO bus ID: 0II: Copied Preloader data from 0x9fc00000(15064B) to 0x9f000000.II: Cleared Preloader BSS section at 0x9f003ad8(0B).II: PLL... II: PLL is set by SW... OKSetting DTRINFO: Applying ZQ result directly by plat_memctl_ZQ_force_config()II: DRAM is set by software calibration... Start claibation test...PASSEDMCR (0xb8001000):0x100421e0, 0x20320000, 0x54422830, 0x0404030fDTR2 (0xb8001010):0x0630d000DIDER(0xb8001050):0x80000000DCDR (0xb8001060):0x9b540000ZQPCR(0xb8001090):0x1f000000, 0x00000000, 0x00000000PHY Registers(0xb8001500):0xb8001500:0x80000010, 0x0000007f, 0x00000000, 0x000000000xb8001510:0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f000xb8001520:0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f000xb8001530:0x1e000000, 0x1e000000, 0x1e000000, 0x1e0000000xb8001540:0x1e000000, 0x1e000000, 0x1e000000, 0x1e0000000xb8001550:0x001e0f00, 0x001e0f00, 0x001e0f00, 0x001e0f000xb8001560:0x001e0f00, 0x001e0f00, 0x001e0f00, 0x001e0f000xb8001570:0x00000000, 0x00000000, 0x00000000, 0x000000000xb8001580:0x00000000, 0x00000000, 0x00000000, 0x000000000xb8001590:0x08000000, 0x66996699, 0x00000000, 0xaa55aa550xb80015a0:0x00000000, 0x00000000, 0x00000000, 0x00000000II: Selected DRAM model #0.II: Copying U-Boot from 0x9fc03ad8(235484B) to 0x83f00000... OKII: NOR SPI Flash... searching flash parameters... supported flash ID: [c22018][c22019][c22019]... detected flash ID: [c22018]... OKU-Boot 2011.12.39239-svn41394 (Jul 24 2013 - 09:38:34)Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHzDRAM: 128 MBSPI-F: 1x16 MBLoading 1024B env. variables from offset 0x40000Switch Model: ZyXEL_GS1900_8 (Port Count: 8)Switch Chip: RTL8382M**************************************************#### RTL8218B config - MAC ID = 8 ####Now Internal PHY-AREG32(0xbb00a17c) is 0PHY[0]: disable EEE on port [0x0000ff00]Net: Net Initialization Skippedrtl8380#0Hit any key to stop autoboot: 1 0 ## Booting image from partition ... 0## Booting kernel from Legacy Image at b4260000 ... Image Name: MIPS OpenWrt Linux-5.4.188 Created: 2022-04-16 12:59:34 UTC Image Type: MIPS Linux Kernel Image (gzip compressed) Data Size: 6073104 Bytes = 5.8 MB Load Address: 80000000 Entry Point: 80000400 Verifying Checksum ... OK Uncompressing Kernel Image ... OKStarting kernel ...[ 0.000000] Linux version 5.4.188 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 Sat Apr 16 12:59:34 2022[ 0.000000] RTL838X model is 83806800[ 0.000000] SoC Type: RTL8380[ 0.000000] Kernel command line: [ 0.000000] printk: bootconsole [early0] enabled[ 0.000000] CPU0 revision is: 00019070 (MIPS 4KEc)[ 0.000000] MIPS: machine is ZyXEL GS1900-8 Switch[ 0.000000] Registering _machine_restart[ 0.000000] Initrd not found or empty - disabling initrd[ 0.000000] Using appended Device Tree.[ 0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.[ 0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes[ 0.000000] Zone ranges:[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Movable zone start for each node[ 0.000000] Early memory node ranges[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] On node 0 totalpages: 32768[ 0.000000] Normal zone: 288 pages used for memmap[ 0.000000] Normal zone: 0 pages reserved[ 0.000000] Normal zone: 32768 pages, LIFO batch:7[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768[ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480[ 0.000000] Kernel command line: console=ttyS0,115200[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off[ 0.000000] Memory: 114512K/131072K available (5099K kernel code, 168K rwdata, 636K rodata, 9128K init, 207K bss, 16560K reserved, 0K cma-reserved)[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1[ 0.000000] NR_IRQS: 32[ 0.000000] random: get_random_bytes called from 0x805c6a28 with crng_init=0[ 0.000000] timer_probe: no matching timers found[ 0.000000] CPU frequency from device tree: 500MHz[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns[ 0.000016] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns[ 0.008696] Calibrating delay loop... 497.66 BogoMIPS (lpj=995328)[ 0.047580] pid_max: default: 32768 minimum: 301[ 0.053060] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.061193] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.080098] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns[ 0.090921] futex hash table entries: 256 (order: -1, 3072 bytes, linear)[ 0.098681] pinctrl core: initialized pinctrl subsystem[ 0.108040] NET: Registered protocol family 16[ 0.195213] clocksource: Switched to clocksource MIPS[ 0.203772] NET: Registered protocol family 2[ 0.209061] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)[ 0.218695] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)[ 0.228057] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.236582] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.244421] TCP: Hash tables configured (established 1024 bind 1024)[ 0.252005] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)[ 0.259335] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)[ 0.267677] NET: Registered protocol family 1[ 0.848130] workingset: timestamp_bits=14 max_order=15 bucket_order=1[ 0.873038] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 0.879522] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.[ 0.944381] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)[ 0.958866] pinctrl-single bb001000.pinmux: 32 pins, size 4[ 0.965789] Probing RTL8231 GPIOs[ 0.969509] rtl8231_init called, MDIO bus ID: 0II: Copied Preloader data from 0x9fc00000(15064B) to 0x9f000000.II: Cleared Preloader BSS section at 0x9f003ad8(0B).II: PLL... II: PLL is set by SW... OKSetting DTRINFO: Applying ZQ result directly by plat_memctl_ZQ_force_config()II: DRAM is sePASSEDMCR (0xb8001000):0x100421e0, 0x20320000, 0x54422830, 0x0404030fDTR2 (0xb8001010):0x0630d000DIDER(0xb8001050):0x80000000DCDR (0xb8001060):0x9b540000ZQPCR(0xb8001090):0x1f000000, 0x00000000, 0x00000000PHY Registers(0xb8001500):0xb8001500:0x80000010, 0x0000007f, 0x00000000, 0x000000000xb8001510:0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f000xb8001520:0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f000xb8001530:0x1e000000, 0x1e000000, 0x1e000000, 0x1e0000000xb8001540:0x1e000000, 0x1e000000, 0x1e000000, 0x1e0000000xb8001550:0x001e0f00, 0x001e0f00, 0x001e0f00, 0x001e0f000xb8001560:0x001e0f00, 0x001e0f00, 0x001e0f00, 0x001e0f000xb8001570:0x00000000, 0x00000000, 0x00000000, 0x000000000xb8001580:0x00000000, 0x00000000, 0x00000000, 0x000000000xb8001590:0x08000000, 0x66996699, 0x00000000, 0xaa55aa550xb80015a0:0x00000000, 0x00000000, 0x00000000, 0x00000000II: Selected DRAM model #0.II: Copying U-Boot from 0x9fc03ad8(235484B) to 0x83f00000... OKII: NOR SPI Flash... searching flash parameters... supported flash ID: [c22018][c22019][c22019]... detected flash ID: [c22018]... OKU-Boot 2011.12.39239-svn41394 (Jul 24 2013 - 09:38:34)Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHzDRAM: 128 MBSPI-F: 1x16 MBLoading 1024B env. variables from offset 0x40000Switch Model: ZyXEL_GS1900_8 (Port Count: 8)Switch Chip: RTL8382M**************************************************#### RTL8218B config - MAC ID = 8 ####Now Internal PHY-AREG32(0xbb00a17c) is 0PHY[0]: disable EEE on port [0x0000ff00]Net: Net Initialization Skippedrtl8380#0Hit any key to stop autoboot: 1 0 ## Booting image from partition ... 0## Booting kernel from Legacy Image at b4260000 ... Image Name: MIPS OpenWrt Linux-5.4.188 Created: 2022-04-16 12:59:34 UTC Image Type: MIPS Linux Kernel Image (gzip compressed) Data Size: 6073104 Bytes = 5.8 MB Load Address: 80000000 Entry Point: 80000400 Verifying Checksum ... OK Uncompressing Kernel Image ... OKStarting kernel ...[ 0.000000] Linux version 5.4.188 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 Sat Apr 16 12:59:34 2022[ 0.000000] RTL838X model is 83806800[ 0.000000] SoC Type: RTL8380[ 0.000000] Kernel command line: [ 0.000000] printk: bootconsole [early0] enabled[ 0.000000] CPU0 revision is: 00019070 (MIPS 4KEc)[ 0.000000] MIPS: machine is ZyXEL GS1900-8 Switch[ 0.000000] Registering _machine_restart[ 0.000000] Initrd not found or empty - disabling initrd[ 0.000000] Using appended Device Tree.[ 0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.[ 0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes[ 0.000000] Zone ranges:[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Movable zone start for each node[ 0.000000] Early memory node ranges[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff][ 0.000000] On node 0 totalpages: 32768[ 0.000000] Normal zone: 288 pages used for memmap[ 0.000000] Normal zone: 0 pages reserved[ 0.000000] Normal zone: 32768 pages, LIFO batch:7[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768[ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480[ 0.000000] Kernel command line: console=ttyS0,115200[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off[ 0.000000] Memory: 114512K/131072K available (5099K kernel code, 168K rwdata, 636K rodata, 9128K init, 207K bss, 16560K reserved, 0K cma-reserved)[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1[ 0.000000] NR_IRQS: 32[ 0.000000] random: get_random_bytes called from 0x805c6a28 with crng_init=0[ 0.000000] timer_probe: no matching timers found[ 0.000000] CPU frequency from device tree: 500MHz[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns[ 0.000016] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns[ 0.008694] Calibrating delay loop... 497.66 BogoMIPS (lpj=995328)[ 0.047579] pid_max: default: 32768 minimum: 301[ 0.053058] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.061192] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.080039] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns[ 0.090858] futex hash table entries: 256 (order: -1, 3072 bytes, linear)[ 0.098609] pinctrl core: initialized pinctrl subsystem[ 0.107951] NET: Registered protocol family 16[ 0.195317] clocksource: Switched to clocksource MIPS[ 0.203863] NET: Registered protocol family 2[ 0.209136] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)[ 0.218735] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)[ 0.228099] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.236625] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)[ 0.244464] TCP: Hash tables configured (established 1024 bind 1024)[ 0.252044] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)[ 0.259399] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)[ 0.267736] NET: Registered protocol family 1[ 0.844319] workingset: timestamp_bits=14 max_order=15 bucket_order=1[ 0.869090] squashfs: version 4.0 (2009/01/31) Phillip Lougher[ 0.875571] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.[ 0.939513] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)[ 0.953933] pinctrl-single bb001000.pinmux: 32 pins, size 4[ 0.960829] Probing RTL8231 GPIOs[ 0.964545] rtl8231_init called, MDIO bus ID: 0II: Copied Preloader data from 0x9fc00000(15064B) to 0x9f000000.II: Cleared Preloader BSS section at 0x9f003ad8(0B).II: PLL... II: PLL is set by SW... OKSetting DTRINFO: Applying ZQ result directly by plat_memctl_ZQ_force_config()II: DRAM is set by software calibration... Start claibation test...PASSEDMCR (0xb8001000):0x100421e0, 0x20320000, 0x54422830, 0x0404030fDTR2 (0xb8001010):0x0630d000DIDER(0xb8001050):0x80000000DCDR (0xb8001060):0x9b540000ZQPCR(0xb8001090):0x1f000000, 0x00000000, 0x00000000PHY Registers(0xb8001500):0xb8001500:0x80000010, 0x0000007f, 0x00000000, 0x000000000xb8001510:0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f00, 0x0a1e0f000xb8001520:0x0a1e0f00, 0x0000000, 0x1e000000, 0x1e000000, 0x1e0000000xb8001540:0x1e000000, 0x1e000000, 0x1e000000, 0x1e0000000xb8001550:0x001e0f00, 0x001e0f00, 0x001e0f00, 0x001e0f000xb8001560:0x001e0f00, 0x001e0f00, 0x001e0f00, 0x001e0f000xb8001570:0x00000000, 0x00000000, 0x00000000, 0x000000000xb8001580:0x00000000, 0x00000000, 0x00000000, 0x000000000xb8001590:0x08000000, 0x66996699, 0x00000000, 0xaa55aa550xb80015a0:0x00000000, 0x00000000, 0x00000000, 0x00000000II: Selected DRAM model #0.II: Copying U-Boot from 0x9fc03ad8(235484B) to 0x83f00000... OKII: NOR SPI Flash... searching flash parameters... supported flash ID: [c22018][c22019][c22019]... detected flash ID: [c22018]... OKU-Boot 2011.12.39239-svn41394 (Jul 24 2013 - 09:38:34)Board: RTL838x CPU:500MHz LXB:200MHz MEM:300MHzDRAM: 128 MBSPI-F: 1x16 MBLoading 1024B env. variables from offset 0x40000Switch Model: ZyXEL_GS1900_8 (Port Count: 8)Switch Chip: RTL8382M**************************************************#### RTL8218B config - MAC ID = 8 ####Now Internal PHY-AREG32(0xbb00a17c) is 0PHY[0]: disable EEE on port [0x0000ff00]Net: Net Initialization Skippedrtl8380#0Hit any key to stop autoboot: 1 0 RTL838x#

Ouch, that's hard to read...

But it looks like it's constantly rebooting at this point:

Without any sign of anything crashing. Almost looks like the gpio driver is pulling on a reset line while initializing... But if so, then I don't understand how that could be. I assume this code is running fine on other devices

Maybe @svanheule has an idea?

The RTL8231 driver should configure all pins as inputs, so it's strange that would trigger the hard reset. According to the info on the wiki, that would be connected to GPIO 5 on the RTL8231. The current driver does change the pins to GPIO before changing them to an input, maybe that's triggering something...

A custom build disabling gpio1 in the DTS should leave the GPIO chip alone. Maybe that's a good thing to test first.