RadioBerry Gateware not Loading

348 views
Skip to first unread message

charu...@gmail.com

unread,
Jun 26, 2021, 6:03:00 AM6/26/21
to radio...@googlegroups.com

Hello guys

I am struggling but my Gateware is simply not loading.

 

I am using the latest RPi OS distro and I am installing the Development branch of the RadioBerry install script.

On Pin #53 I am getting the clock output i.e. 38.40Mhhz

 

I am using v5 Board.

 

I attach some images during install and post install

 

 

 

 

I am also not getting any waterfall in PiHPSDR, totally dead screen.

 

Please help.

 

De VU2UPX Charudatt

 

image007.jpg
image008.jpg
image009.jpg

Radioberry

unread,
Jun 27, 2021, 5:16:42 AM6/27/21
to Radioberry
Hi   Charudatt

Please look into the kern.log in /var/log


kern.jpg


Please check if the gateware loading is in error state?


If this is the case the following things to check:

- the radioberry card  is not mounted
- the wrong gateware is selected during installation
- the ground pane is not soldered well; reflow.

You are not installing other modules wich do control the gpio pins?


please let us know...

73 Johan
PA3GSB





Op zaterdag 26 juni 2021 om 12:03:00 UTC+2 schreef charu...@gmail.com:

charu...@gmail.com

unread,
Jun 27, 2021, 12:01:55 PM6/27/21
to Radioberry

OK, shall check and revert back.

 

Final doubt, do I need to enable the SPI Interface in the Raspi-Config ?

 

Your instruction on Github says no but confused.

 

Charudatt – VU2UPX

 

From: Radioberry <radio...@googlegroups.com>
Sent: 27 June 2021 14:47
To: Radioberry <radio...@googlegroups.com>
Subject: Re: RadioBerry Gateware not Loading

 

Hi   Charudatt

 

Please look into the kern.log in /var/log

 

 

--
You received this message because you are subscribed to the Google Groups "Radioberry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to radioberry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/radioberry/7b29aade-b68a-4120-8d1e-c70d06b5ab5bn%40googlegroups.com.

image001.jpg

charu...@gmail.com

unread,
Jun 28, 2021, 7:06:58 AM6/28/21
to Radioberry

Hi Johan,

 

Further to checking the log I find similarity except for the file size of  the Gateware and IRQ difference.

 

This is a working Board with proper grounding

 

I share my log entries for your consideration

 

Please advice

 

Jun 28 11:48:12 raspberrypi kernel: [    2.732113] NET: Registered protocol family 10

Jun 28 11:48:12 raspberrypi kernel: [    2.733555] Segment Routing with IPv6

Jun 28 11:48:12 raspberrypi kernel: [    3.636585] random: systemd: uninitialized urandom read (16 bytes read)

Jun 28 11:48:12 raspberrypi kernel: [    3.650779] random: systemd: uninitialized urandom read (16 bytes read)

Jun 28 11:48:12 raspberrypi kernel: [    3.651773] random: systemd: uninitialized urandom read (16 bytes read)

Jun 28 11:48:12 raspberrypi kernel: [    3.758641] i2c /dev entries driver

Jun 28 11:48:12 raspberrypi kernel: [    4.301624] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

Jun 28 11:48:12 raspberrypi kernel: [    5.055671] radioberry: loading out-of-tree module taints kernel.

Jun 28 11:48:12 raspberrypi kernel: [    5.057209] inside radioberry_init function

Jun 28 11:48:12 raspberrypi kernel: [    5.057229] radioberry loading...

Jun 28 11:48:12 raspberrypi kernel: [    5.057846] inside radioberry_probe function

Jun 28 11:48:12 raspberrypi kernel: [    5.059288] platform driver registered 0

Jun 28 11:48:12 raspberrypi kernel: [    5.059316] Radioberry: registered correctly with major number 241

Jun 28 11:48:12 raspberrypi kernel: [    5.059365] Radioberry: device class registered correctly

Jun 28 11:48:12 raspberrypi kernel: [    5.059578] Radioberry char: device class created correctly

Jun 28 11:48:12 raspberrypi kernel: [    5.059821] Radioberry: The rx sample state is currently: 0

Jun 28 11:48:12 raspberrypi kernel: [    5.059840] Radioberry: The rx samples pin is mapped to IRQ: 65

Jun 28 11:48:12 raspberrypi kernel: [    5.059927] Radioberry: The interrupt request result is: 0

Jun 28 11:48:12 raspberrypi kernel: [    5.059960] GPIO ready for use

Jun 28 11:48:12 raspberrypi kernel: [    5.059978] inside loading_radioberry_gateware function

Jun 28 11:48:12 raspberrypi kernel: [    5.095070] inside firmware_load function

Jun 28 11:48:12 raspberrypi kernel: [    5.095396] Radioberry gateware file size: 332738

Jun 28 11:48:12 raspberrypi kernel: [    5.095415] GPIO ready for uploading gateware...

Jun 28 11:48:12 raspberrypi kernel: [    5.095429] Info: prepare FPGA for loading image

Jun 28 11:48:12 raspberrypi kernel: [    5.109100] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000

Jun 28 11:48:12 raspberrypi kernel: [    5.109672] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000

Jun 28 11:48:12 raspberrypi kernel: [    5.110192] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000

Jun 28 11:48:12 raspberrypi kernel: [    5.110699] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000

Jun 28 11:48:12 raspberrypi kernel: [    5.195279] mc: Linux media interface: v0.10

 

 

de VU2UPX - Charudatt

 

 

 

From: Radioberry <radio...@googlegroups.com>
Sent: 27 June 2021 14:47
To: Radioberry <radio...@googlegroups.com>
Subject: Re: RadioBerry Gateware not Loading

 

Hi   Charudatt

 

Please look into the kern.log in /var/log

 

 

--

image001.jpg

Radioberry

unread,
Jun 28, 2021, 12:49:39 PM6/28/21
to Radioberry
Charudatt

Your log is not complete. Please provide the log of a radioberry which fails....

73 Johan
PA3GSB



Op maandag 28 juni 2021 om 13:06:58 UTC+2 schreef charu...@gmail.com:

charu...@gmail.com

unread,
Jun 29, 2021, 1:53:33 AM6/29/21
to Radioberry

Hi Johan

 

I see no log entry which says Radioberry fail.

 

Anyway I send you more details of the log this time.

 

Once again I don’t see any log entry of any error.

 

Please help

 

Jun 28 12:16:12 raspberrypi kernel: [    4.600687] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000

Jun 28 12:16:12 raspberrypi kernel: [    4.601340] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000

Jun 28 12:16:12 raspberrypi kernel: [    4.713971] mc: Linux media interface: v0.10

Jun 28 12:16:12 raspberrypi kernel: [    4.773190] videodev: Linux video capture interface: v2.00

Jun 28 12:16:12 raspberrypi kernel: [    4.812181] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.814673] bcm2835_vc_sm_cma_probe: Videocore shared memory driver

Jun 28 12:16:12 raspberrypi kernel: [    4.814698] [vc_sm_connected_init]: start

Jun 28 12:16:12 raspberrypi kernel: [    4.818271] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.840026] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.845154] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.861978] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.863344] [vc_sm_connected_init]: installed successfully

Jun 28 12:16:12 raspberrypi kernel: [    4.874785] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.877591] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.881960] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.887006] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.890336] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.

Jun 28 12:16:12 raspberrypi kernel: [    4.891475] bcm2835_audio bcm2835_audio: card created with 4 channels

Jun 28 12:16:12 raspberrypi kernel: [    4.962055] bcm2835_audio bcm2835_audio: card created with 4 channels

Jun 28 12:16:12 raspberrypi kernel: [    4.962552] bcm2835-codec bcm2835-codec: Device registered as /dev/video10

Jun 28 12:16:12 raspberrypi kernel: [    4.962598] bcm2835-codec bcm2835-codec: Loaded V4L2 decode

Jun 28 12:16:12 raspberrypi kernel: [    4.973553] bcm2835-codec bcm2835-codec: Device registered as /dev/video11

Jun 28 12:16:12 raspberrypi kernel: [    4.973600] bcm2835-codec bcm2835-codec: Loaded V4L2 encode

Jun 28 12:16:12 raspberrypi kernel: [    4.978566] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13

Jun 28 12:16:12 raspberrypi kernel: [    4.979161] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14

Jun 28 12:16:12 raspberrypi kernel: [    4.979590] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15

Jun 28 12:16:12 raspberrypi kernel: [    4.979914] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16

Jun 28 12:16:12 raspberrypi kernel: [    4.979945] bcm2835-isp bcm2835-isp: Register output node 0 with media controller

Jun 28 12:16:12 raspberrypi kernel: [    4.979970] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller

Jun 28 12:16:12 raspberrypi kernel: [    4.979993] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller

Jun 28 12:16:12 raspberrypi kernel: [    4.980015] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller

Jun 28 12:16:12 raspberrypi kernel: [    4.980222] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp

Jun 28 12:16:12 raspberrypi kernel: [    5.001489] bcm2835-codec bcm2835-codec: Device registered as /dev/video12

Jun 28 12:16:12 raspberrypi kernel: [    5.001538] bcm2835-codec bcm2835-codec: Loaded V4L2 isp

Jun 28 12:16:12 raspberrypi kernel: [    5.292496] cfg80211: Loading compiled-in X.509 certificates for regulatory database

Jun 28 12:16:12 raspberrypi kernel: [    5.374359] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0

Jun 28 12:16:12 raspberrypi kernel: [    5.394347] vc4-drm gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])

Jun 28 12:16:12 raspberrypi kernel: [    5.394375] checking generic (3e876000 384000) vs hw (0 ffffffffffffffff)

Jun 28 12:16:12 raspberrypi kernel: [    5.394392] fb0: switching to vc4drmfb from simple

Jun 28 12:16:12 raspberrypi kernel: [    5.395109] Console: switching to colour dummy device 80x30

Jun 28 12:16:12 raspberrypi kernel: [    5.402096] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1

Jun 28 12:16:12 raspberrypi kernel: [    5.408711] vc4-drm gpu: [drm] HDMI-A-1: EDID is invalid:

Jun 28 12:16:12 raspberrypi kernel: [    5.408736]      [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Jun 28 12:16:12 raspberrypi kernel: [    5.408752]      [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Jun 28 12:16:12 raspberrypi kernel: [    5.408774]      [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Jun 28 12:16:12 raspberrypi kernel: [    5.408794]      [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Jun 28 12:16:12 raspberrypi kernel: [    5.408809]      [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Jun 28 12:16:12 raspberrypi kernel: [    5.408825]      [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Jun 28 12:16:12 raspberrypi kernel: [    5.408840]      [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Jun 28 12:16:12 raspberrypi kernel: [    5.408861]      [00] ZERO 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Jun 28 12:16:12 raspberrypi kernel: [    5.430472] Console: switching to colour frame buffer device 160x45

Jun 28 12:16:12 raspberrypi kernel: [    5.430526] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device

Jun 28 12:16:12 raspberrypi kernel: [    5.455452] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'

Jun 28 12:16:12 raspberrypi kernel: [    5.595778] brcmfmac: F1 signature read @0x18000000=0x15264345

Jun 28 12:16:12 raspberrypi kernel: [    5.618241] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6

Jun 28 12:16:12 raspberrypi kernel: [    5.619098] usbcore: registered new interface driver brcmfmac

Jun 28 12:16:12 raspberrypi kernel: [    5.644291] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2

Jun 28 12:16:12 raspberrypi kernel: [    5.887195] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6

Jun 28 12:16:12 raspberrypi kernel: [    5.897403] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan  4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e

Jun 28 12:16:12 raspberrypi kernel: [    7.256593] uart-pl011 fe201000.serial: no DMA platform data

Jun 28 12:16:12 raspberrypi kernel: [    7.340572] random: crng init done

Jun 28 12:16:12 raspberrypi kernel: [    7.340597] random: 7 urandom warning(s) missed due to ratelimiting

Jun 28 12:16:12 raspberrypi kernel: [    7.659375] 8021q: 802.1Q VLAN Support v1.8

Jun 28 12:16:12 raspberrypi kernel: [    7.753557] Error: prepareLoading failed

Jun 28 12:16:12 raspberrypi kernel: [    7.865321] Error: programming failed; nstatus is low

Jun 28 12:16:12 raspberrypi kernel: [    7.899058] GPIO ready for rx and tx streaming...

Jun 28 12:16:12 raspberrypi kernel: [    8.083618] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS

Jun 28 12:16:12 raspberrypi kernel: [    8.152064] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled

Jun 28 12:16:12 raspberrypi kernel: [    8.233420] inside radioberry_open function

Jun 28 12:16:13 raspberrypi kernel: [    8.389580] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)

Jun 28 12:16:13 raspberrypi kernel: [    8.389861] bcmgenet fd580000.ethernet eth0: Link is Down

Jun 28 12:16:14 raspberrypi kernel: [   10.014785] broken atomic modeset userspace detected, disabling atomic

Jun 28 12:16:17 raspberrypi kernel: [   12.527000] fuse: init (API version 7.32)

Jun 28 12:16:17 raspberrypi kernel: [   12.553627] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

Jun 28 12:16:17 raspberrypi kernel: [   12.553659] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Jun 28 12:16:19 raspberrypi kernel: [   14.491759] Bluetooth: Core ver 2.22

Jun 28 12:16:19 raspberrypi kernel: [   14.491835] NET: Registered protocol family 31

Jun 28 12:16:19 raspberrypi kernel: [   14.491842] Bluetooth: HCI device and connection manager initialized

Jun 28 12:16:19 raspberrypi kernel: [   14.492270] Bluetooth: HCI socket layer initialized

Jun 28 12:16:19 raspberrypi kernel: [   14.492282] Bluetooth: L2CAP socket layer initialized

Jun 28 12:16:19 raspberrypi kernel: [   14.492303] Bluetooth: SCO socket layer initialized

Jun 28 12:16:19 raspberrypi kernel: [   14.507526] Bluetooth: HCI UART driver ver 2.3

Jun 28 12:16:19 raspberrypi kernel: [   14.507538] Bluetooth: HCI UART protocol H4 registered

Jun 28 12:16:19 raspberrypi kernel: [   14.507599] Bluetooth: HCI UART protocol Three-wire (H5) registered

Jun 28 12:16:19 raspberrypi kernel: [   14.507759] Bluetooth: HCI UART protocol Broadcom registered

Jun 28 12:16:19 raspberrypi kernel: [   14.711534] Bluetooth: BNEP (Ethernet Emulation) ver 1.3

Jun 28 12:16:19 raspberrypi kernel: [   14.711545] Bluetooth: BNEP filters: protocol multicast

Jun 28 12:16:19 raspberrypi kernel: [   14.711560] Bluetooth: BNEP socket layer initialized

Jun 28 12:16:19 raspberrypi kernel: [   14.759206] Bluetooth: RFCOMM TTY layer initialized

Jun 28 12:16:19 raspberrypi kernel: [   14.759223] Bluetooth: RFCOMM socket layer initialized

Jun 28 12:16:19 raspberrypi kernel: [   14.759244] Bluetooth: RFCOMM ver 1.11

Jun 28 12:16:20 raspberrypi kernel: [   15.948438] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead

Jun 28 12:16:22 raspberrypi kernel: [   17.372139] IPv6: MLD: clamping QRV from 1 to 2!

Jun 29 06:43:23 raspberrypi kernel: [   37.381970] IPv6: MLD: clamping QRV from 1 to 2!

Jun 29 06:43:43 raspberrypi kernel: [   57.391905] IPv6: MLD: clamping QRV from 1 to 2!

Jun 29 06:44:03 raspberrypi kernel: [   77.403835] IPv6: MLD: clamping QRV from 1 to 2!

Jun 29 06:44:23 raspberrypi kernel: [   97.415388] IPv6: MLD: clamping QRV from 1 to 2!

 

De VU2UPX Charudatt

Radioberry

unread,
Jun 29, 2021, 2:31:49 AM6/29/21
to Radioberry

Hi Charudatt

I found the error (it is in your log):

Jun 28 12:16:12 raspberrypi kernel: [    7.753557] Error: prepareLoading failed

Jun 28 12:16:12 raspberrypi kernel: [    7.865321] Error: programming failed; nstatus is low


You are speaking about a board that is working and one not... i assume you are running the same rpi ; and that the FPGA on both boards are identical (CL025)?


I do not see the rbf file loading indicated; is the radioberry.rbf in the /lib/firmware folder present?


73 Johan

PA3GSb


Op dinsdag 29 juni 2021 om 07:53:33 UTC+2 schreef charu...@gmail.com:

pa3gsb

unread,
Jun 29, 2021, 3:12:28 AM6/29/21
to Radioberry

I have seen the following log:


opstarten.JPG

The call is not mentioned... but seems reporduciable to get 255.255 .... iam curious what happended here....

73 Johan
PA3GSB


Op dinsdag 29 juni 2021 om 08:31:49 UTC+2 schreef Radioberry:

charu...@gmail.com

unread,
Jun 29, 2021, 4:38:11 AM6/29/21
to Radioberry

Hi Johan,

 

The one I am trying is a working HAT (RadioBerry) and a working image , Only the RPi  is different. It is a 4GB RPi4

 

Yes, radioberry.rbf is present in /lib/firmware

 

Charudatt – vu2upx

Radioberry

unread,
Jun 29, 2021, 4:41:56 AM6/29/21
to Radioberry

Seem that you have to reflow the ground pane of the FPGA and maybe also the AD9866.

73 Johan
PA3GSB

Op dinsdag 29 juni 2021 om 10:38:11 UTC+2 schreef charu...@gmail.com:

charu...@gmail.com

unread,
Jun 29, 2021, 5:15:17 AM6/29/21
to Radioberry

Yes, retouching worked

 

Thank you for the tip

 

Regards

Reply all
Reply to author
Forward
0 new messages