{"id":393,"date":"2016-06-23T22:48:32","date_gmt":"2016-06-23T20:48:32","guid":{"rendered":"https:\/\/einstein.amsterdam\/blog\/?page_id=393"},"modified":"2017-11-09T18:36:02","modified_gmt":"2017-11-09T16:36:02","slug":"dmr-md-380-firmware-archive","status":"publish","type":"page","link":"https:\/\/einstein.amsterdam\/?page_id=393","title":{"rendered":"MD380\/MD390 Userdatabase Patch"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1630 aligncenter\" src=\"https:\/\/einstein.amsterdam\/wp-content\/uploads\/redcross.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/einstein.amsterdam\/wp-content\/uploads\/redcross.png 300w, https:\/\/einstein.amsterdam\/wp-content\/uploads\/redcross-150x150.png 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h3><strong><span style=\"color: #ff0000;\">It is not legal to have all the info on your MD380\/390 in some country&#8217;s.<\/span><\/strong><\/h3>\n<p>The DMR MARC user&#8217;s database required a 16 MByte SPI Flash memory chip. In some VHF Radios is only an 1 MByte SPI Flash installed.<\/p>\n<p>USE these scripts at your own risk \ud83d\ude42<\/p>\n<h3><strong><span style=\"color: #ff0000;\">It is not legal to have all the info on your MD380\/390 in some country&#8217;s.<\/span><\/strong><\/h3>\n<p>Option 1 : Download file from <a href=\"https:\/\/github.com\/PD1LOI\/MD380tools\/raw\/master\/user.bin\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/PD1LOI\/MD380tools\/<\/a> and flash it into your HT.<\/p>\n<p>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.<\/p>\n<p>Debian script:<\/p>\n<pre>echo \"Removing old files\"\r\nrm user.bin\r\nrm user-patched.bin\r\ncd db\r\nmake clean\r\necho \"Getting the database\"\r\nwget https:\/\/github.com\/PD1LOI\/MD380tools\/raw\/master\/user.bin -O custom.csv\r\nsed -i 1,2d custom.csv\r\ncd ..\r\necho \"Make new user.bin incl database\"\r\nmake user.bin\r\necho \"Sorting data for displaying\"\r\nsed \"s@\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\)@\\1,\\2,\\3,\\6,\\4,\\5,\\7@g\" user.bin &gt; user-patched.bin\r\necho \"Flashing to handset\"\r\n.\/md380-tool spiflashwrite user-patched.bin 0x100000\r\n<\/pre>\n<p>link to .sh script <a href=\"https:\/\/einstein.amsterdam\/wp-content\/uploads\/patchdb-debian.zip\">here<\/a><\/p>\n<p>Rasberry Pi script:<\/p>\n<pre>echo \u201cRemoving old files\u201d\r\nrm user.bin\r\nrm user-patched.bin\r\ncd db\r\nmake clean\r\necho \u201cGetting the database\u201d\r\nwget https:\/\/github.com\/PD1LOI\/MD380tools\/raw\/master\/user.bin -O custom.csv\r\nsed -i 1,2d custom.csv\r\ncd ..\r\necho \u201cMake new user.bin incl database\u201d\r\nmake user.bin\r\necho \u201cSorting data for displaying\u201d\r\nsed 's@\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\)@\\1,\\2,\\3,\\6,\\4,\\5,\\7@g' user.bin &gt; user-patched.bin\r\necho \u201cFlashing to handset\u201d\r\n.\/md380-tool spiflashwrite user-patched.bin 0x100000\r\n<\/pre>\n<p>link to .sh script <a href=\"https:\/\/einstein.amsterdam\/wp-content\/uploads\/patchdb-pi.zip\">here<\/a><\/p>\n<p>Mac OS script:<\/p>\n<pre>echo \u201cRemoving old files\u201d\r\nrm user.bin\r\nrm user-patched.bin\r\ncd db\r\nmake clean\r\necho \u201cGetting the database\u201d\r\nwget https:\/\/github.com\/PD1LOI\/MD380tools\/raw\/master\/user.bin -O custom.csv\r\nsed -i .bak 1,2d custom.csv\r\ncd ..\r\necho \u201cMake new user.bin incl database\u201d\r\nmake user.bin\r\necho \u201cSorting data for displaying\u201d\r\nsed 's@\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\),\\(.*\\)@\\1,\\2,\\3,\\6,\\4,\\5,\\7@g' user.bin &gt; user-patched.bin\r\necho \u201cFlashing to handset\u201d\r\n.\/md380-tool spiflashwrite user-patched.bin 0x100000\r\n<\/pre>\n<p>link to .sh script <a href=\"https:\/\/einstein.amsterdam\/wp-content\/uploads\/patchdb-mac.zip\">here<\/a><\/p>\n<p>thanx for the database <a href=\"https:\/\/github.com\/PD1LOI\/\" target=\"_blank\" rel=\"noopener\">PD1LOI<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>It is not legal to have all the info on your MD380\/390 in some country&#8217;s. The DMR MARC user&#8217;s database required a 16 MByte SPI <a class=\"mh-excerpt-more\" href=\"https:\/\/einstein.amsterdam\/?page_id=393\" title=\"MD380\/MD390 Userdatabase Patch\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/pages\/393"}],"collection":[{"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=393"}],"version-history":[{"count":70,"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/pages\/393\/revisions"}],"predecessor-version":[{"id":1657,"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=\/wp\/v2\/pages\/393\/revisions\/1657"}],"wp:attachment":[{"href":"https:\/\/einstein.amsterdam\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}