FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

peddle your acorn wares here!
Forum rules
You're welcome to trade Acorn-related stuff with other forum members here - the rule of thumb to follow when trading, is that items or services offered should be of interest to our Acorn community. Do NOT use multiple accounts - please trade with your regular (and only) forum account. If you're giving items away, please make it clear if you would be unhappy with the recipient selling on some or all of the items. Similarly, please ensure that the giver is comfortable with you re-selling items you have accepted as a gift. We cannot be held responsible for what happens in these trading forums or for deals done via PM. This must be done at your own risk. If you aren't comfortable with this - make the trade via an alternative site which can apply safeguards of their own. Be sensible - if someone approaches you to trade via PM who is not posting in the public forums, this may be a sign that they are not entirely what they seem. Please report it to the moderators if you receive an unsolicited message from anyone suspicious, so that it can be investigated and hopefully stop anyone being taken advantage of. This forum is not for advertising items you have for sale on ebay or other third party marketplaces. You can refer to a Buy-It-Now item if you're also making it available direct to forum users.
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

Hi Ken,

Yes, that kicked it back into life.

I've been making progress. Perhaps. Maybe not...

I tried the insmod again and checked to make sure that something appeared in /dev:

Code: Select all

pi@econet-bridge:~ $ cd module
pi@econet-bridge:~/module $ sudo insmod ./econet-gpio.ko
pi@econet-bridge:~/module $ ls -l /dev/e*

crw-rw---- 1 root econet 238, 0 Jul 25 13:32 /dev/econet-gpio

pi@econet-bridge:~/module $ sudo systemctl status econetfs.service
● econetfs.service - Econet filestore
     Loaded: loaded (/etc/systemd/system/econetfs.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-07-25 13:32:22 BST; 46min ago
   Main PID: 918 (econet-bridge)
      Tasks: 1 (limit: 1598)
        CPU: 74ms
     CGroup: /system.slice/econetfs.service
             └─918 /usr/local/sbin/econet-bridge -f

Jul 25 13:32:22 econet-bridge systemd[1]: econetfs.service: Scheduled restart job, restart counter is at 85.
Jul 25 13:32:22 econet-bridge systemd[1]: Stopped Econet filestore.
Jul 25 13:32:22 econet-bridge systemd[1]: Started Econet filestore.
pi@econet-bridge:~/module $
So I think it's looking good at this point. I then reboot (simply as I want to make sure it all works) and the device disappears!

Code: Select all

pi@econet-bridge:~ $ cd module
pi@econet-bridge:~/module $ ls -l /dev/e*
ls: cannot access '/dev/e*': No such file or directory
pi@econet-bridge:~/module $ sudo systemctl status econetfs.service
● econetfs.service - Econet filestore
     Loaded: loaded (/etc/systemd/system/econetfs.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2022-07-25 14:23:39 BST; 3s ago
    Process: 711 ExecStart=/usr/local/sbin/econet-bridge -f (code=exited, status=1/FAILURE)
   Main PID: 711 (code=exited, status=1/FAILURE)
        CPU: 84ms
pi@econet-bridge:~/module $

pi@econet-bridge:~/module $ ls -l /usr/local/sbin/e*
-r-xr-xr-x 1 root root 436636 Jul 24 19:12 /usr/local/sbin/econet-bridge
-r-xr-xr-x 1 root root   8424 Jul 24 19:12 /usr/local/sbin/econet-clock
-r-xr-xr-x 1 root root 461996 Jul 24 19:12 /usr/local/sbin/econet-hpbridge
-r-xr-xr-x 1 root root   8492 Jul 24 19:12 /usr/local/sbin/econet-ledtest
-r-xr-xr-x 1 root root  12896 Jul 24 19:12 /usr/local/sbin/econet-monitor
-r-xr-xr-x 1 root root   8492 Jul 24 19:12 /usr/local/sbin/econet-test
pi@econet-bridge:~/module $
I've tried this a couple of time now with the same result each time. I have also tried a make reload but that crashes the Pi!
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

Yes, the device will disappear on reboot, because the EEPROM is no longer being read on boot. We'll need to figure out why reading the EEPROM is causing the Pi to hang. We might need to reflash the EEPROM. But let's make sure we can get everything else running manually first...
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

I tried to move ahead and see what happens when I had a Beeb connected and the bridge in "test" mode with ./econet-bridge -bds.

The Beeb detects the clock as present, but an *I AM SYST eventually came back with "Not listening" and the bridge hung. Tried this a couple of times.

I have now started from a fresh install of 32Bit Lite and get the same symptoms as before - hangs when I issue the insmod. The details are below (sorry they're a bit long but wanted to capture it all).

Attempt 2
Create base SD with 32bit

Log in via console
- set username "pi" and password

Run raspi-config
- expand FS
- enable SSH
- set hostname (econet-bridge)

Reboot

Make new directory and WINscp over the build

Code: Select all

pi@econet-bridge:~ $ mkdir PiEconetBridge
pi@econet-bridge:~ $ cd PiEconetBridge/
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $ ls -l
total 148
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 config
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 docs
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 dts
-rw-r--r-- 1 pi pi 94327 Jul 17 18:39 hardware.pdf
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 include
-rw-r--r-- 1 pi pi  3080 Jul 17 18:39 Makefile
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 module
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 pictures
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 printers
-rw-r--r-- 1 pi pi    61 Jul 17 18:39 README
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 systemd
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 udev
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 utilities
drwxr-xr-x 2 pi pi  4096 Jul 25 19:37 v2eeprom
pi@econet-bridge:~/PiEconetBridge $
Run update...

Code: Select all

pi@econet-bridge:~ $ sudo apt-get update
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian bullseye InRelease [23.7 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [295 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/non-free armhf Packages [106 kB]
Fetched 13.7 MB in 10s (1,321 kB/s)
Reading package lists... Done
pi@econet-bridge:~ $

Then the full upgrade and reboot!

Start following the GitHub page

Code: Select all

pi@econet-bridge:~/PiEconetBridge $ sudo apt install raspberrypi-kernel-headers
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  raspberrypi-kernel-headers
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.6 MB of archives.
After this operation, 182 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-kernel-headers armhf 1:1.20220331-1 [28.6 MB]
Fetched 28.6 MB in 3s (9,557 kB/s)
Selecting previously unselected package raspberrypi-kernel-headers.
(Reading database ... 41506 files and directories currently installed.)
Preparing to unpack .../raspberrypi-kernel-headers_1%3a1.20220331-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1:1.20220331-1) ...
Setting up raspberrypi-kernel-headers (1:1.20220331-1) ...
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $ sudo apt install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,583 kB of archives.
After this operation, 33.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://raspbian.mirror.uk.sargasso.net/raspbian bullseye/main armhf liberror-perl all 0.17029-1 [31.0 kB]
Get:2 http://raspbian.mirror.uk.sargasso.net/raspbian bullseye/main armhf git-man all 1:2.30.2-1 [1,827 kB]
Get:3 http://raspbian.mirror.uk.sargasso.net/raspbian bullseye/main armhf git armhf 1:2.30.2-1 [4,724 kB]
Fetched 6,583 kB in 2s (3,923 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 92919 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.30.2-1_all.deb ...
Unpacking git-man (1:2.30.2-1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.30.2-1_armhf.deb ...
Unpacking git (1:2.30.2-1) ...
Setting up liberror-perl (0.17029-1) ...
Setting up git-man (1:2.30.2-1) ...
Setting up git (1:2.30.2-1) ...
Processing triggers for man-db (2.9.4-2) ...
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $ sudo apt upgrade
Reboot!!!

Continue guide...

Code: Select all

pi@econet-bridge:~/PiEconetBridge $ git clone https://github.com/cr12925/PiEconetBridge
Cloning into 'PiEconetBridge'...
remote: Enumerating objects: 1174, done.
remote: Counting objects: 100% (485/485), done.
remote: Compressing objects: 100% (204/204), done.
remote: Total 1174 (delta 306), reused 398 (delta 273), pack-reused 689
Receiving objects: 100% (1174/1174), 9.31 MiB | 1.29 MiB/s, done.
Resolving deltas: 100% (772/772), done.
pi@econet-bridge:~/PiEconetBridge $ ls
config  dts           include   module    PiEconetBridge  README   udev       v2eeprom
docs    hardware.pdf  Makefile  pictures  printers        systemd  utilities



pi@econet-bridge:~/PiEconetBridge $ make install
cd module ; make
make[1]: Entering directory '/home/pi/PiEconetBridge/module'
make -I../include -C /lib/modules/`uname -r`/build M=/home/pi/PiEconetBridge/module modules
make[2]: Entering directory '/usr/src/linux-headers-5.15.32-v7+'
  CC [M]  /home/pi/PiEconetBridge/module/econet-gpio-module.o
/home/pi/PiEconetBridge/module/econet-gpio-module.c:1949:31: warning: ‘econet_driver’ defined but not used [-Wunused-variable]
 1949 | static struct platform_driver econet_driver = {
      |                               ^~~~~~~~~~~~~
  LD [M]  /home/pi/PiEconetBridge/module/econet-gpio.o
  MODPOST /home/pi/PiEconetBridge/module/Module.symvers
  CC [M]  /home/pi/PiEconetBridge/module/econet-gpio.mod.o
  LD [M]  /home/pi/PiEconetBridge/module/econet-gpio.ko
make[2]: Leaving directory '/usr/src/linux-headers-5.15.32-v7+'
make[1]: Leaving directory '/home/pi/PiEconetBridge/module'
cd utilities ; make
make[1]: Entering directory '/home/pi/PiEconetBridge/utilities'
cc -g -c econet-bridge.c -Wall
cc -g -c fs.c -Wall -Wno-pointer-sign
cc -c sockets.c -Wall
cc   econet-bridge.o fs.o sockets.o /usr/lib/arm-linux-gnueabihf/libpthread.so   -o econet-bridge
cc    -c -o econet-monitor.o econet-monitor.c
cc   econet-monitor.o   -o econet-monitor
cc    -c -o econet-imm.o econet-imm.c
cc   econet-imm.o   -o econet-imm
cc    -c -o econet-test.o econet-test.c
cc   econet-test.o   -o econet-test
cc    -c -o pipe-eg.o pipe-eg.c
cc    -c -o econet-pipe.o econet-pipe.c
cc   pipe-eg.o econet-pipe.o   -o pipe-eg
cc    -c -o econet-notify.o econet-notify.c
cc   econet-notify.o econet-pipe.o   -o econet-notify
cc    -c -o econet-ipgw.o econet-ipgw.c
cc   econet-ipgw.o econet-pipe.o   -o econet-ipgw
cc    -c -o econet-remote.o econet-remote.c
cc   econet-remote.o econet-pipe.o   -o econet-remote
cc -g -c econet-hpbridge.c -Wall
cc -g -D BRIDGE_V2 -c fs.c -o fsv2.o -Wall -Wno-pointer-sign
cc -g -o econet-hpbridge econet-hpbridge.o fsv2.o -lpthread
chgrp econet econet-hpbridge
chgrp: invalid group: ‘econet’
make[1]: [Makefile:5: econet-hpbridge] Error 1 (ignored)
sudo setcap cap_net_admin=pe econet-hpbridge
cc    -c -o econet-fslist.o econet-fslist.c
cc   econet-fslist.o econet-pipe.o   -o econet-fslist
cc    -c -o econet-ledtest.o econet-ledtest.c
cc   econet-ledtest.o   -o econet-ledtest
cc    -c -o econet-clock.o econet-clock.c
cc   econet-clock.o   -o econet-clock
cc    -c -o econet-trace.o econet-trace.c
cc   econet-trace.o econet-pipe.o   -o econet-trace
make[1]: Leaving directory '/home/pi/PiEconetBridge/utilities'
[ -d /etc/econet-gpio ] || sudo mkdir -p /etc/econet-gpio
[ -d /etc/econet-gpio/printers ] || sudo cp -r printers /etc/econet-gpio
[ -d /home/`whoami`/econetfs ] || mkdir -p /home/`whoami`/econetfs/0PIBRIDGE-00 || mkdir -p /home/`whoami`/econetfs/1STORAGE
[ -f /etc/econet-gpio/pserv.sh ] || sudo cp config/pserv.sh /etc/econet-gpio
[ -f /etc/udev/rules.d/90-econet.rules ] || sudo cp udev/90-econet.rules /etc/udev/rules.d/90-seconet.rules
sudo groupadd econet
sudo usermod -a -G econet `whoami`
sudo chgrp econet utilities/econet-hpbridge utilities/econet-bridge utilities/econet-imm utilities/econet-monitor utilities/econet-test utilities/econet-clock utilities/econet-ledtest
sudo chmod u=rx,g=rxs utilities/econet-bridge utilities/econet-hpbridge utilities/econet-imm utilities/econet-monitor utilities/econet-test utilities/econet-clock utilities/econet-ledtest
sudo cp utilities/econet-bridge utilities/econet-hpbridge utilities/econet-monitor utilities/econet-test utilities/econet-clock utilities/econet-ledtest /usr/local/sbin
sudo cp utilities/econet-imm utilities/econet-ipgw utilities/econet-notify utilities/econet-remote utilities/econet-fslist utilities/econet-trace /usr/local/bin
sudo cp utilities/remove_xattr utilities/xattr_to_dotfile /usr/local/bin
sudo cp module/econet-gpio.ko /lib/modules/`uname -r`/kernel/drivers/net
sudo /usr/sbin/depmod
sudo systemctl stop econethpb
Failed to stop econethpb.service: Unit econethpb.service not loaded.
make: [Makefile:36: install] Error 5 (ignored)
sudo systemctl disable econethpb
Failed to disable unit: Unit file econethpb.service does not exist.
make: [Makefile:37: install] Error 1 (ignored)
[ -f /etc/econet-gpio/econet.cfg ] || sudo cp config/econet.cfg /etc/econet-gpio/econet.cfg
[ -f /etc/systemd/system/ecoentfs.service ] || (sudo cp systemd/econetfs.service /etc/systemd/system && sudo systemctl daemon-reload && sudo systemctl enable econetfs)
Created symlink /etc/systemd/system/multi-user.target.wants/econetfs.service → /etc/systemd/system/econetfs.service.
Install routine finished. Please ensure you have 'arm_freq=1000' (or your chosen frequency) and 'force_turbo=1' in /boot/config.txt (see README). Then please reboot. Note that Econet library utilities for use on your server are NOT included, but they may be found distributed with BeebEm for Windows, and copied using the CopyFiles utility onto your network.
pi@econet-bridge:~/PiEconetBridge $
pi@econet-bridge:~/PiEconetBridge $




pi@econet-bridge:~/PiEconetBridge/module $ sudo insmod ./econet-gpio.ko

Clearly I am doing something very wrong, but no idea what.
cr12925
Posts: 687
Joined: Sat Mar 09, 2019 9:31 pm
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by cr12925 »

I can’t immediately see what’s wrong with that process.

What if anything shows up in your dmesg output when you load the module?

Secondly, try unplugging that hat & loading the module. Does the machine crash? (The module is presently not too fussy about testing the hardware presence so it may create the device anyway…)

@KenLowe: wonder if this is something to do with the pwm clock output?

Best

Chris
2 x Master 128, BBC B, Viglen floppy drives, A3000, RISC PC StrongArm Mk3, 2 x Econets, 3 x Econet-AUN bridges, organist, former purveyor of BBS software...
User avatar
sweh
Posts: 2884
Joined: Sat Mar 10, 2012 12:05 pm
Location: New York, New York
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by sweh »

cr12925 wrote:
Mon Jul 25, 2022 11:43 pm
What if anything shows up in your dmesg output when you load the module?
Since the machine seems to freeze, in another window have the command "dmesg -w" running. That will display new dmesg output as it happens.
Rgds
Stephen
cr12925
Posts: 687
Joined: Sat Mar 09, 2019 9:31 pm
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by cr12925 »

Which model of Pi are you running this on?
2 x Master 128, BBC B, Viglen floppy drives, A3000, RISC PC StrongArm Mk3, 2 x Econets, 3 x Econet-AUN bridges, organist, former purveyor of BBS software...
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

Thanks for helping em with this. Here are some answer (I hope). Pi is a 3B v1.2.

Started from scratch to make sure this is repeatable...

Attempt 3

Build all the way up to make install without HAT attached.
Had "dmesg -w" running during make install - no updates shown.
Powered off and added HAT.
Boot process hangs (as before) after "Started Rule-based Manager for Device Events and Files".
CPU get very hot.

Powered off.
Removed HAT and booted successfully
Attempted the sudo insmod ./econet-gpio.ko
dmesg -w shows:

Code: Select all

[  301.743480] econet_gpio: loading out-of-tree module taints kernel.
[  301.745933] ECONET-GPIO: This appears to be a Pi3B
[  301.745952] ECONET-GPIO: Peripheral base address set to 0x3F000000
[  301.746623] ECONET-GPIO: Loaded. Major number 238
[  301.865234] ECONET-GPIO: Performing ADLC chip reset
[  301.985129] ECONET-GPIO: Module reset. AUN mode off. ADLC re-initialized.
[  301.985156] ECONET-GPIO: Hardware present - version 2 - how exciting!. ADLC initialized.
[  301.985175] ECONET-GPIO: Clock detected (SR1 = 0x00, SR2 = 0x00)
[  304.184775] ECONET-GPIO: Performing ADLC chip reset
[  304.295079] ECONET-GPIO: Module reset. AUN mode off. ADLC re-initialized.
[  304.295129] ECONET-GPIO: Station set updated - Switching on AUN mode
[  304.295863] ECONET-GPIO: Station set updated - Switching on AUN mode
NOTE: Above is with no HAT plugged in! Also "clock detected" line is in red.

Powered off.
Added force_eeprom_read=0 to config.txt and attached HAT.
Booted successfully.

Attempted the sudo insmod ./econet-gpio.ko
dmesg -w shows:

Code: Select all

[   67.494351] econet_gpio: loading out-of-tree module taints kernel.
[   67.496256] ECONET-GPIO: This appears to be a Pi3B
[   67.496268] ECONET-GPIO: Peripheral base address set to 0x3F000000
[   67.497157] ECONET-GPIO: Loaded. Major number 238
[   67.614068] ECONET-GPIO: Performing ADLC chip reset
[   67.733877] ECONET-GPIO: Module reset. AUN mode off. ADLC re-initialized.
[   67.733909] ECONET-GPIO: Hardware present - version 2 - how exciting!. ADLC initialized.
[   67.733930] ECONET-GPIO: Clock detected (SR1 = 0x12, SR2 = 0x04)
[   67.733945] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.733961] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.733972] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.733984] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.733995] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734008] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734020] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734032] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734062] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734073] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734086] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734098] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734110] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734121] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734133] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734146] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734157] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734169] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734181] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
[   67.734191] ECONET-GPIO: IRQ handler called but ADLC not flagging an IRQ. What?
Given the 20000 line buffer on puTTY, I'd estimate about 5000-6000 of these IRQ lines then hangs.
cr12925
Posts: 687
Joined: Sat Mar 09, 2019 9:31 pm
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by cr12925 »

Is this in fact a Pi3B or has it sensed the model wrong somehow?
2 x Master 128, BBC B, Viglen floppy drives, A3000, RISC PC StrongArm Mk3, 2 x Econets, 3 x Econet-AUN bridges, organist, former purveyor of BBS software...
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

Definitely a 3B v1.2. Printed on the board so I am pretty sure about that!
cr12925
Posts: 687
Joined: Sat Mar 09, 2019 9:31 pm
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by cr12925 »

Looks like its irq line is stuck low or is reading as such. Let me ponder…
2 x Master 128, BBC B, Viglen floppy drives, A3000, RISC PC StrongArm Mk3, 2 x Econets, 3 x Econet-AUN bridges, organist, former purveyor of BBS software...
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

What's curious is the the dmesg shows "hardware present" in both cases. Odd as the HAT was only attached for the second insmod.
cr12925
Posts: 687
Joined: Sat Mar 09, 2019 9:31 pm
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by cr12925 »

dhoggan wrote:
Tue Jul 26, 2022 6:50 pm
What's curious is the the dmesg shows "hardware present" in both cases. Odd as the HAT was only attached for the second insmod.
That's not curious - that's because "hardware detection" is not a forte of the kernel module. Yet.

That's what might be (generously) described as a "known feature". I raised the question in another thread somewhere - the challenge is that the ADLC was a chip designed to work in old hardware where certain conditions were likely to be true when you wanted to test for the presence of the chip. Specifically, the Beeb's NFS/ANFS testing for the chip worked because, if the chip wasn't there, then certain data lines floated high and were a dead giveaway that the chip was absent. In contrast, the GPIOs are fairly predictable. I am still pondering how to solve that problem.

C.
2 x Master 128, BBC B, Viglen floppy drives, A3000, RISC PC StrongArm Mk3, 2 x Econets, 3 x Econet-AUN bridges, organist, former purveyor of BBS software...
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

dhoggan wrote:
Tue Jul 26, 2022 5:04 pm
Thanks for helping em with this. Here are some answer (I hope). Pi is a 3B v1.2.

Started from scratch to make sure this is repeatable...
Sorry, I've been a bit absent these past few days. I've had a few non beeb related matters to deal with!

I assume you're no further forward?

I'm really not sure what could be going wrong here. Do you have another Pi to test with?

If not, I'd be more than happy for you to post the bridge & Pi back to myself, so I can test further. Would that be an option for you?
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

Not sure I have another Pi 3 - plenty of Pi 2 but I suspect that they're not up to the job (as Pi 3 only just recently became an option). I'll have a check. If not I can certainly send what I have over.
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

I managed to find another Pi 3 and get similar results. Similar in that it didn't hang immediately on the "insmod" command the first time I tried but shortly afterwords. On the second attempt, it hung during the insmod. dmesg -w showed the same as before.
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

dhoggan wrote:
Thu Jul 28, 2022 6:50 pm
I managed to find another Pi 3 and get similar results. Similar in that it didn't hang immediately on the "insmod" command the first time I tried but shortly afterwords. On the second attempt, it hung during the insmod. dmesg -w showed the same as before.
Ok. It sounds like there might be something wrong with your bridge, then. I've just tried a clean install on my Pi3B v1.2 and it works fine. For absolute clarity, these are the steps I went through:

Formatted 64GB MicroSD card to FAT32
Installed Raspberry Pi OS Lite (32-bit) using the Raspberry Pi Imager utility
Note that I clicked on the little 'Advanced Options' cog so that I could configure SSH and WiFi without having to connect a monitor to the Pi.
Added the following two entries to the config.txt file on the root of the SD card:

Code: Select all

arm_freq=900
force_turbo=1
Inserted MicroSD card into Pi, attached bridge board to Pi and powered up the Pi.
Connected to the Pi via SSH (using PuTTY) and ran the following commands:

Code: Select all

sudo apt update
sudo apt upgrade
sudo apt install raspberrypi-kernel-headers
sudo apt install libexplain51 libexplain-dev libexplain-doc
sudo apt install git
sudo reboot now
Re-connected to the Pi via SSH and ran the following commands:

Code: Select all

git clone https://github.com/cr12925/PiEconetBridge
cd PiEconetBridge
make install
sudo reboot now
Re-connected to the Pi via SSH and ran the following command to check that the bridge was running:

Code: Select all

sudo systemctl status econetfs.service
Connected a beeb to the bridge and powered it up.
Verified that Econet clock was running, by making sure the 'No Clock' message wasn't being reported when selecting NFS as the file system.
Logged onto the PiFS from my beeb with the following command:

Code: Select all

*I AM SYST
Edit: Updated to include installation of libexplain (required by the latest bridge software)
Last edited by KenLowe on Wed Aug 10, 2022 10:28 pm, edited 1 time in total.
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

I've just tried the process you followed and all went well until the reboot after the make install. At this point the Pi hangs during the boot process. This time I use a different SD card, just in case the other one had an issue.
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

dhoggan wrote:
Thu Jul 28, 2022 11:32 pm
I've just tried the process you followed and all went well until the reboot after the make install. At this point the Pi hangs during the boot process. This time I use a different SD card, just in case the other one had an issue.
Ok, it sounds like there's a fault with your bridge board. I'll post down a replacement to you.
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

I've updated the first post with some details on the DIP switch. Copied below for info.

DIP Switch Settings
The board comes with a 6 way DIP switch to enable or disable various functions on the boards. The individual DIP switches are considered to be ON if the switch is pushed towards the DIN5 connector, and considered to be OFF is the switch is pushed away from the DIN5 connector:

Switches 1 & 2 - Data Termination
Switch both these ON if you want to activate the onboard Data line termination. OFF if you want to disable it. These are on by default. Switch these off if you are using external Data termination.

Switch 3 - Clock Enable
Switch this ON if you want the onboard clock to drive the Econet network. OFF will disable the onboard clock. This is on by default. Switch this off if you are using an external clock.

Switches 4 & 5 - Clock Termination
Switch both these ON if you want to activate the onboard Clock line termination. OFF if you want to disable it. These are on by default. Switch these off if you are using external Clock termination.

Switch 6 - LEDs Enable
Switch this ON if you want the onboard power indication LEDs to be lit. OFF will disable the onboard power indication LEDs. This is on by default.

If I do a further run of these specific boards, it will have the following printed on the rear of the board:
DIP Switch Settings
DIP Switch Settings
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

Just an update. The replacement board arrived today and following the build instructions above I had a working bridge and file server inside of 25 minutes!

The older separate clock, hub and bridge - which was never a bulky solution to start - has been replaced by a positively svelte single box solution and only using a single power connection.

With Chris' code and Ken's hardware, I just cannot think of a simpler, easier way to get an econet up-and-running. Combine this with one of Ken's six-port hubs and that'll likely cover most needs. I know you've both heard it before, but truly excellent work!

Dave
cr12925
Posts: 687
Joined: Sat Mar 09, 2019 9:31 pm
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by cr12925 »

dhoggan wrote:
Sat Jul 30, 2022 4:33 pm
Just an update. The replacement board arrived today and following the build instructions above I had a working bridge and file server inside of 25 minutes!

The older separate clock, hub and bridge - which was never a bulky solution to start - has been replaced by a positively svelte single box solution and only using a single power connection.

With Chris' code and Ken's hardware, I just cannot think of a simpler, easier way to get an econet up-and-running. Combine this with one of Ken's six-port hubs and that'll likely cover most needs. I know you've both heard it before, but truly excellent work!

Dave
Hi Dave

Really glad it's working for you now - and thank you for your kind words.

With best wishes

Chris.
2 x Master 128, BBC B, Viglen floppy drives, A3000, RISC PC StrongArm Mk3, 2 x Econets, 3 x Econet-AUN bridges, organist, former purveyor of BBS software...
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

dhoggan wrote:
Sat Jul 30, 2022 4:33 pm
Just an update. The replacement board arrived today and following the build instructions above I had a working bridge and file server inside of 25 minutes!

The older separate clock, hub and bridge - which was never a bulky solution to start - has been replaced by a positively svelte single box solution and only using a single power connection.

With Chris' code and Ken's hardware, I just cannot think of a simpler, easier way to get an econet up-and-running. Combine this with one of Ken's six-port hubs and that'll likely cover most needs. I know you've both heard it before, but truly excellent work!

Dave
Thank you for the feedback. I'll be dissecting the faulty board when I get it back to understand what has failed!
dhoggan wrote:
Sat Jul 30, 2022 4:33 pm
Combine this with one of Ken's six-port hubs and that'll likely cover most needs.
A newer design of the 6 port hub will follow shortly to coincide with the next bridge board release. The new bridge will have some additional hardware to provide power to the 6 port hub, so that remote termination can be added to the Econet network without the need for an external power source. The existing 6 port hub will require a slight 'power pass thru' modification to accept power from the new bridge. At the same time I may add switchable terminators onto the hub board.

Note that remote termination is only required for Econet networks with long cable runs. It shouldn't be required for most home networks, and the built in termination on the latest bridge boards should be sufficient. The existing hubs will also work fine with the next release of bridge boards. You just won't be able to take advantage of the new 'power pass thru' feature should you require it to power up any remote termination.

Note also that if you're running an external BeebMaster style clock, it uses a different method of getting power from the BeebMaster clock to the remote termination (sometimes referred to as 'phantom power'), so this newer hub is not required if you're using a BeebMaster clock. In this case you will need to use the special terminators that are designed for use with the BeebMaster clock. These are typically the terminators that are built into a DIN5 plug.
User avatar
sweh
Posts: 2884
Joined: Sat Mar 10, 2012 12:05 pm
Location: New York, New York
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by sweh »

FWIW, I received my v2 board and was able to replace the v1 board + ADF-10 + Beebmaster clock (inc wallwart, so also one less power socket needed) + terminators with this new board.

I'm still using a Pi 4B because I can't work out how to get my 3B to netboot (so I'm not dependent on SD cards which can go bad). When I work that out then I should be able to free up the 4B for "bigger" things :-)
Rgds
Stephen
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

KenLowe wrote:
Sat Jul 30, 2022 6:00 pm
I'll be dissecting the faulty board when I get it back to understand what has failed!
The faulty board arrived back today. Well, I'm not sure it was ever going to work like that...
Missing solder joint
Missing solder joint
It's the D7 pin that's not been soldered, so a fairly important signal! It was tested before I shipped it, so I can only assume I was getting an intermittent connection. No smart comments about the 'QC' sticker, please! I've not tried fixing it yet, but fairly confident that'll be the issue. I'm actually glad it was something as simple as that!

Edit: Yup. That's fixed it. Apologies for missing that.
User avatar
dhoggan
Posts: 283
Joined: Tue Jul 10, 2018 11:45 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by dhoggan »

What's baffling me is how I missed that! It was sitting on the desk next to me for days.

Now I know I need new glasses!
PacificState
Posts: 20
Joined: Tue Jul 26, 2022 6:12 am
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by PacificState »

Ken - I can't seem to PM, but I'd love a board if available.
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

PacificState wrote:
Mon Aug 08, 2022 3:20 pm
Ken - I can't seem to PM, but I'd love a board if available.
Added you to the wait list
User avatar
Ukwebb
Posts: 136
Joined: Sat Apr 10, 2021 12:38 pm
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by Ukwebb »

i'll post here Ken too just to make sure I'm not missed :)
hopefully I'm already on your list :)
User avatar
KenLowe
Posts: 3099
Joined: Mon Oct 18, 2004 5:35 pm
Location: UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by KenLowe »

Ukwebb wrote:
Mon Aug 08, 2022 6:27 pm
i'll post here Ken too just to make sure I'm not missed :)
hopefully I'm already on your list :)
Yup, you're already on the list.

There's only one unallocated out of this next batch that I've ordered, so if anyone else is interested, shout up now!

I expect this next batch to arrive in about 3 weeks time, so please be patient.
User avatar
Mince
Posts: 307
Joined: Thu Sep 05, 2019 11:25 pm
Location: Cambridge, UK
Contact:

Re: FS: Latest Econet Bridge with Integrated Econet Module, Econet Clock & Termination

Post by Mince »

KenLowe wrote:
Mon Aug 08, 2022 6:40 pm
There's only one unallocated out of this next batch that I've ordered, so if anyone else is interested, shout up now!
Oooh! Yes please - me me me!
BBC Master— PiTube 3A+ PiVDU and PicoTube, Pi1MHz SCSI, MMFSv1, ANFS, RGBtoHDMI, MultiOS
BBC B — Integra ß, PiTube Zero 2W, Pi1MHz SCSI, MMFSv1, ANFS, RGBtoHDMI
Electron — ElkSD 64 or Plus 1 w/ AP6 2V2, ATI/ABR w/ PiTube 3A+, ElkSD Plus 1, PRES AP3+4
Post Reply

Return to “for sale / freebies”