MD380/MD390 Userdatabase Patch

It is not legal to have all the info on your MD380/390 in some country’s.

The DMR MARC user’s database required a 16 MByte SPI Flash memory chip. In some VHF Radios is only an 1 MByte SPI Flash installed.

USE these scripts at your own risk 🙂

It is not legal to have all the info on your MD380/390 in some country’s.

Option 1 : Download file from https://github.com/PD1LOI/MD380tools/ and flash it into your HT.

Option 2 : To patch the user.bin file with all known user data, and update latest user with basic info, you have to make a script.

Debian script:

echo "Removing old files"
rm user.bin
rm user-patched.bin
cd db
make clean
echo "Getting the database"
wget https://github.com/PD1LOI/MD380tools/raw/master/user.bin -O custom.csv
sed -i 1,2d custom.csv
cd ..
echo "Make new user.bin incl database"
make user.bin
echo "Sorting data for displaying"
sed "s@\(.*\),\(.*\),\(.*\),\(.*\),\(.*\),\(.*\),\(.*\)@\1,\2,\3,\6,\4,\5,\7@g" user.bin > user-patched.bin
echo "Flashing to handset"
./md380-tool spiflashwrite user-patched.bin 0x100000

link to .sh script here

Rasberry Pi script:

echo “Removing old files”
rm user.bin
rm user-patched.bin
cd db
make clean
echo “Getting the database”
wget https://github.com/PD1LOI/MD380tools/raw/master/user.bin -O custom.csv
sed -i 1,2d custom.csv
cd ..
echo “Make new user.bin incl database”
make user.bin
echo “Sorting data for displaying”
sed 's@\(.*\),\(.*\),\(.*\),\(.*\),\(.*\),\(.*\),\(.*\)@\1,\2,\3,\6,\4,\5,\7@g' user.bin > user-patched.bin
echo “Flashing to handset”
./md380-tool spiflashwrite user-patched.bin 0x100000

link to .sh script here

Mac OS script:

echo “Removing old files”
rm user.bin
rm user-patched.bin
cd db
make clean
echo “Getting the database”
wget https://github.com/PD1LOI/MD380tools/raw/master/user.bin -O custom.csv
sed -i .bak 1,2d custom.csv
cd ..
echo “Make new user.bin incl database”
make user.bin
echo “Sorting data for displaying”
sed 's@\(.*\),\(.*\),\(.*\),\(.*\),\(.*\),\(.*\),\(.*\)@\1,\2,\3,\6,\4,\5,\7@g' user.bin > user-patched.bin
echo “Flashing to handset”
./md380-tool spiflashwrite user-patched.bin 0x100000

link to .sh script here

thanx for the database PD1LOI