Need help in compiling custom firmware

MMDVM_HS Hat hardware
Post Reply
IZ4FXT
Posts: 9
Joined: Tue Jun 19, 2018 11:11 am

Need help in compiling custom firmware

Post by IZ4FXT »

Hi all, I'm trying to compile a new firmware for my HS_Hat_Dual board, based on 1.4.6 in order to give High receive gain instead of default, with this new variable in this version in config.h to change. I'm a newbie in firmware, and also in Microcontrollers, Arduino and so on unfortunately.

The process stops at the end, when i gave the last command MAKE in order to upload the firmware already compiled; the answer is:

make: *** No rule to make target 'MMDVM_HS_Dual_Hat'. Stop.


The whole process i followed was:

sudo pistar-expand
sudo reboot

rpi-rw


Install the necessary software tools:

sudo apt-get update
sudo apt-get install gcc-arm-none-eabi gdb-arm-none-eabi libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi

cd ~
git clone https://git.code.sf.net/p/stm32flash/code stm32flash
cd stm32flash
make
sudo make install


HERE THE ONLY ONE ERROR I SAW following BOTH THESE "MAKE":

cc -Wall -g -c -o dev_table.o dev_table.c
cc -Wall -g -c -o i2c.o i2c.c
In file included from i2c.c:58:0:
/usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’
struct i2c_msg {
^
In file included from i2c.c:57:0:
/usr/include/linux/i2c.h:68:8: note: originally defined here
struct i2c_msg {
^
In file included from i2c.c:58:0:
/usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’
union i2c_smbus_data {
^
In file included from i2c.c:57:0:
/usr/include/linux/i2c.h:128:7: note: originally defined here
union i2c_smbus_data {
^
<builtin>: recipe for target 'i2c.o' failed
make: *** [i2c.o] Error 1 <<<<<<<<<<<<<<<<<<<<



But then i went forward despite of it:

Download the firmware sources:

cd ~
git clone https://github.com/juribeparada/MMDVM_HS
cd MMDVM_HS/
git submodule init
git submodule update




cp /configs/MMDVM_HS_Dual_Hat.h Config.h

nano Config.h (modifyng for HIGH gain)


Build the firmware:

make


If you are using Pi-Star, stop services: (i'm using Pistar .16 )

sudo pistar-watchdog.service stop
sudo systemctl stop mmdvmhost.timer
sudo systemctl stop mmdvmhost.service


Till here all ok!!!!! But now:


Upload the firmware to MMDVM_HS_Dual_Hat board:

sudo make MMDVM_HS_Dual_Hat

Answer as I sad:

make: *** No rule to make target 'MMDVM_HS_Dual_Hat'. Stop.


Where I made a mistake??? Please help me!!!
User avatar
VK7HSE
Posts: 229
Joined: Sun Apr 15, 2018 6:35 pm
Contact:

Re: Need help in compiling custom firmware

Post by VK7HSE »

I assume that you followed this process

https://github.com/juribeparada/MMDVM_H ... r/BUILD.md

If you have trouble compiling the stm32flash (think it's version 0.5) pi-star comes with stm32flash 0.4 and that will do the trick just fine. You'll need to follow the process for the mmdvm_hs.

Sent from my Pixel 2 XL using Tapatalk

IZ4FXT
Posts: 9
Joined: Tue Jun 19, 2018 11:11 am

Re: Need help in compiling custom firmware

Post by IZ4FXT »

Thank You vk7hse,
And thank You juribeparada also for sure, modifyng firmware for gain option.

Made the custom firmware, the last right command have to be:

sudo make mmdvm_hs_dual_hat

Unfortunately, giving high gain option haven't brought any upgrade in sensitivity and coverage.

I'll try vith auto agc and high linearity option.

But i would ask: does this agc variable works with the LNA gain or agc works with another gain around?

Thank you
Stefano IZ4FXT
User avatar
VK7HSE
Posts: 229
Joined: Sun Apr 15, 2018 6:35 pm
Contact:

Re: Need help in compiling custom firmware

Post by VK7HSE »

IZ4FXT wrote:Thank You vk7hse,
And thank You juribeparada also for sure, modifyng firmware for gain option.

Made the custom firmware, the last right command have to be:

sudo make mmdvm_hs_dual_hat

Unfortunately, giving high gain option haven't brought any upgrade in sensitivity and coverage.

I'll try vith auto agc and high linearity option.

But i would ask: does this agc variable works with the LNA gain or agc works with another gain around?

Thank you
Stefano IZ4FXT
Alternatively you could try to seperate the TX/RX antenna (if feasible) I'm going through similar experiments with mine, I've found that modes like dstar, p25 & ysf seem to be more reliable in triggering the repeater, but dmr does not.

I'm happy with the device, but due to lacking any sort of filtration for the receiver it suffers from the transmit side.

Oh I've gone for high linearity over gain due to the above mentioned!

Sent from my Pixel 2 XL using Tapatalk

IZ4FXT
Posts: 9
Joined: Tue Jun 19, 2018 11:11 am

Re: Need help in compiling custom firmware

Post by IZ4FXT »

Hi vk7hse!
I'm working with a 6cell duplexer and 7,6mhz of shift....
But the range, in term of meters, is limited from poor receving of the hat much before than the 20mw of transmitter unfortunately. Very close to the "garden of the house" range, tryng to do the village, not pretendig more... Knowing that dvmega hat or sharkrf openspot with hig gain settings, could arrive to about 1km range with roof antenna. Here we are a lot less than that.
Hope to read each other soon... with goid news!!!
DH1EM
Posts: 1
Joined: Wed Aug 08, 2018 1:58 pm

Re: Need help in compiling custom firmware

Post by DH1EM »

Hello,

I also noticed that all four Jumbo Spots (single, on Pi Zero W) I've built up are really deaf.
The ADF7021 datasheet indicates a RX sensitivity around -110dBm

Tested with D-Star only I got first Bit Errors with a level of -62dBm @ 430.100 MHz.
Rx and Tx offset compensated in Pi-Star settings.

My first thought was that maybe the frontend is not that well designed and antenna matching and filtering is out of line.
A closer view with a VNWA and playing around with some component values showed no significant mismatch.
Matching improved from 6dB to 14dB @ 430.100 MHz but still insensitive! (BER >1% @ -65dBm).

I would be very grateful if you could share your experiences in customizing and flashing the ADF register settings such as LNA-Gain, AGC or Filter settings....

Many thanks!
Chris
Post Reply