SC130, Fuzix and Wiznet 5500 help required

56 views
Skip to first unread message

Steve Clarke

unread,
Jan 12, 2026, 8:55:19 AMJan 12
to RC2014-Z80
Good Afternoon all,

I thought I'd spend some time playing with Fuzix on my SC130, and had the plan to swap my ESP32 zimodem set up for a wiznet 5500 running from the SPI port. I have the machine booting off a compact flash so the SC130's only SPI port is clear. As per the rcbus-z180 wiznet documentation in Fuzix I adjusted all instances of spi_select_port() in wiznet.c to use port 1. I checked the contents of config.h and CONFIG_NET CONFIG_WIZNET and CONFIG_NET_W5500 are all defined.

I have wired the wiznet accordingly :
Wiznet SC130 SPI
GND ----- 0v
5v --------- 5v
MISO ----- MI
MOSI ----- MO
SCLK ----- CL
SCS ----- CS

Wiznet SC130 P11/P12
RST ----- /RESET

Powering up I see a power light and RJ45 link light from the wiznet. However the networking doesn't seem to working.

RomWBW HBIOS v3.5.0-dev.94, 2024-10-18

Small Computer SC130 [SCZ180_sc130_std] Z8S180-N @ 18.432MHz IO=0xC0
0 MEM W/S, 2 I/O W/S, INT MODE 2, Z180 MMU
512KB ROM, 512KB RAM, HEAP=0x1F4F
ROM VERIFY: 00 00 00 00 PASS

LCD: IO=0xAA NOT PRESENT
AY: MODE=RCZ180 IO=0x68 NOT PRESENT
ASCI0: IO=0xC0 ASCI W/BRG MODE=115200,8,N,1
ASCI1: IO=0xC1 ASCI W/BRG MODE=115200,8,N,1
DSRTC: MODE=STD IO=0x0C NOT PRESENT
INTRTC: Wed 2020-01-01 00:00:00
MD: UNITS=2 ROMDISK=384KB RAMDISK=256KB
FD: MODE=RCWDC IO=0x50 NOT PRESENT
IDE: IO=0x10 MODE=RC
IDE0: ATA 8-BIT LBA BLOCKS=0x0001E900 SIZE=61MB
IDE1: NO MEDIA
PPIDE: IO=0x20 PPI NOT PRESENT
SD: MODE=SC OPR=0x0C CNTR=0xCA TRDR=0xCB DEVICES=1
SD0: NO MEDIA
CH0: IO=0x3E NOT PRESENT
CH1: IO=0x3C NOT PRESENT
FP: IO=0x00 NOT PRESENT

Unit        Device      Type              Capacity/Mode
----------  ----------  ----------------  --------------------
Char 0      ASCI0:      RS-232            115200,8,N,1
Char 1      ASCI1:      RS-232            115200,8,N,1
Disk 0      MD0:        RAM Disk          256KB,LBA
Disk 1      MD1:        ROM Disk          384KB,LBA
Disk 2      IDE0:       Hard Disk         61MB,LBA
Disk 3      IDE1:       Hard Disk         --
Disk 4      SD0:        SD Card           --


Small Computer SC130 [SCZ180_sc130_std] Boot Loader

Boot [H=Help]: 2

Booting Disk Unit 2, Slice 0, Sector 0x00000000...

Volume "Fuzix 126 Loader" [0xF200-0xF400, entry @ 0xF200]...
FUZIX version 0.5
Copyright (c) 1988-2002 by H.F.Bower, D.Braun, S.Nitschke, H.Peraza
Copyright (c) 1997-2001 by Arcady Schekochikhin, Adriano C. R. da Cunha
Copyright (c) 2013-2015 Will Sowerbutts <wi...@sowerbutts.com>
Copyright (c) 2014-2025 Alan Cox <al...@etchedpixels.co.uk>
Devboot
512KiB total RAM, 448KiB available to processes (15 processes max)
Enabling interrupts ... ok.
0000 : TOSHIBA THNCF064MMA                      - OK
0001 :  - absent
hda: hda1 hda2 (swap)
Wiznet 5500 detected.
bootdev: hda1
Mounting root fs (root_dev=1, ro): OK
Starting /init
init version 0.9.1
Checking root file system.
Current date is Sun 2026-01-11
Enter new date: 2026-01-12
Current time is 22:54:10
Enter new time: 12:57:00

 ^ ^
 n n   Fuzix 0.5
 >@<
       Welcome to Fuzix
 m m

login: root

Welcome to FUZIX.
# ifconfig eth0 ip 192.168.10.35 gw 192.168.10.1
# ifconfig eth0
eth0    : up broadcast running  mtu 1500
ether: C0:FF:EE:C0:FF:EE  (Ethernet)
inet 192.168.10.35  netmask 255.255.255.0  broadcast 192.168.10.255  gateway 19
# ping 192.168.10.35
socket: Protocol not supported
# ping 192.168.10.1
socket: Protocol not supported
# telnet 192.168.10.1
connect: Connection refused
# ifconfig eth0 down
# ifconfig eth0
eth0    : broadcast running  mtu 1500
ether: C0:FF:EE:C0:FF:EE  (Ethernet)
inet 192.168.10.35  netmask 255.255.255.0  broadcast 192.168.10.255  gateway 19
# telnet 192.168.10.1
Use Cntl-A ? for help.
���� ��#��'��$#
# ifconfig eth0 up
eth0    : up broadcast running  mtu 1500
ether: C0:FF:EE:C0:FF:EE  (Ethernet)
inet 192.168.10.35  netmask 255.255.255.0  broadcast 192.168.10.255  gateway 192.168.10.1
# telnet 192.168.10.1
Use Cntl-A ? for help.
���� ��#��'��$#
# httpd
httpd server
#
# httpd
bind: Address already in use
#

As the above session log shows I can set an IP address and ifconfig seems to work as expected. I can ping this address from another machine on the network but from within fuzix I can ping nothing, not even it's own address. Various other network applications behave similarly but not identically, with telnet being an interesting example. 

It connects to my linux box but returns garbage, however the telnet application is still working and I can exit with crtl-A and q. Whilst it's connected if I run ss -4 on my linux machine I can see the following -
tcp   ESTAB 0      0           192.168.10.1:telnet 192.168.10.35:commplex-main

So, it connects but the data is being corrupted I guess? I'm assuming as issue with the SD card support? Even though I'm running from a CF adapter is there something still expecting the SD card to be present? 

Any suggestions would be greatly appreciated.

Alan Cox

unread,
Jan 12, 2026, 9:02:22 AMJan 12
to rc201...@googlegroups.com


Wiznet 5500 detected.

So the Wiznet chip is working. It's talking to it fine.
 
bootdev: hda1
Mounting root fs (root_dev=1, ro): OK
Starting /init
init version 0.9.1
Checking root file system.
Current date is Sun 2026-01-11
Enter new date: 2026-01-12
Current time is 22:54:10
Enter new time: 12:57:00

 ^ ^
 n n   Fuzix 0.5
 >@<
       Welcome to Fuzix
 m m

login: root

Welcome to FUZIX.
# ifconfig eth0 ip 192.168.10.35 gw 192.168.10.1
# ifconfig eth0
eth0    : up broadcast running  mtu 1500
ether: C0:FF:EE:C0:FF:EE  (Ethernet)
inet 192.168.10.35  netmask 255.255.255.0  broadcast 192.168.10.255

and the message passing looks happy because it's configured it

 
 gateway 19
# ping 192.168.10.35
socket: Protocol not supported

The wiznet is a "smart" controller and therefore doesn't supply SOCK_RAW so ping doesn't work.
 
# ping 192.168.10.1
socket: Protocol not supported
# telnet 192.168.10.1
connect: Connection refused
# ifconfig eth0 down
# ifconfig eth0
eth0    : broadcast running  mtu 1500
ether: C0:FF:EE:C0:FF:EE  (Ethernet)
inet 192.168.10.35  netmask 255.255.255.0  broadcast 192.168.10.255  gateway 19
# telnet 192.168.10.1
Use Cntl-A ? for help.
���� ��#��'��$#
# ifconfig eth0 up
eth0    : up broadcast running  mtu 1500
ether: C0:FF:EE:C0:FF:EE  (Ethernet)
inet 192.168.10.35  netmask 255.255.255.0  broadcast 192.168.10.255  gateway 192.168.10.1
# telnet 192.168.10.1
Use Cntl-A ? for help.
���� ��#��'��$#
# httpd
httpd server

That's really just a test tool for bind at this point
 
Given the telnet seems to be working at the protocol level it sounds more like there's a bug sneaked into the code during all the changes since 0.4 and it's perhaps a bug in the userspace copy direct from the W5500.

Right now I'm in the middle of buying a house and some other stuff but if you can file a bug on codeberg.org/EtchedPixels that would be useful.

Also what are you telnetting to - the telnet is trivial line mode client designed really for playing MUDs so you might be a bunch of junk just from the telnet negotiation protocol stuff ?

 

Steve Clarke

unread,
Jan 12, 2026, 9:23:55 AMJan 12
to RC2014-Z80
Wow, thanks Alan that was quick.

I'm afraid this is a case of user expectations being well out of whack with reality. Telnet line mode hadn't occurred to me. A quick netcat listener on the linux box and fuzix connects and text flows perfectly.

Interestingly, after the netcat connection is successful, htget now works as does tinyirc. 

I guess there's only one issue remaining... PEBCAK.
 
Good luck with your move and other stuff. 

Thanks,

S.
Reply all
Reply to author
Forward
0 new messages