Comments (8)
I've reproduced this bug, and the entire codeplug is definitely being obliterated during installation. This was not caused by an incoming packet or frame collision.
iMac% md380-dfu read codeplug.one
...................................................Done.
Read complete
iMac% hexdump codeplug.one
0000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
002f000 ff ff ff 01 ff ff ff ff ff ff ff ff ff ff ff ff
002f010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
*
0040000
iMac%
Looking a deeper, it seems that the VHF codeplug is much smaller, only 1MB instead of 16MB. Thus there is no room for the DMR MARC database, and we ought to avoid flashing the database, as the erasure will take out the original image.
iMac% md380-tool spiflashdump vhf.whole
Dumping SPI Flash to 'vhf.whole'.
iMac% md380-tool spiflashdump uhf.whole
Dumping SPI Flash to 'uhf.whole'.
iMac% rabin2 -zzz vhf.whole | grep Marine\ 20A
0x0001fda0 Marine 20A Simp
0x0011fda0 Marine 20A Simp
0x0021fda0 Marine 20A Simp
0x0031fda0 Marine 20A Simp
0x0041fda0 Marine 20A Simp
0x0051fda0 Marine 20A Simp
0x0061fda0 Marine 20A Simp
0x0071fda0 Marine 20A Simp
0x0081fda0 Marine 20A Simp
0x0091fda0 Marine 20A Simp
0x00a1fda0 Marine 20A Simp
0x00b1fda0 Marine 20A Simp
0x00c1fda0 Marine 20A Simp
0x00d1fda0 Marine 20A Simp
0x00e1fda0 Marine 20A Simp
0x00f1fda0 Marine 20A Simp
iMac% rabin2 -zzz uhf.whole | grep Pizza
0x000149e0 Pizza Rat
iMac%
from md380tools.
sorry, check_spi_flash_type() is not included on TDFU_SPIFLASHERASE64K: cmd 3...
from md380tools.
fixed on b84e1d9
please repeat the spi write test and report the message of check_spi_flash_type()
"no W25Q128FV %x %x %x..."
from md380tools.
That seems to have fixed it.
Running the update for a little while, then abandoning it gives me this message.
iMac% md380-tool dmesg
22:11:37
Channel 1 selected.
Starting main()
aes_cipher(0x200125e4);
IN : 06 f0 56 0e 22 00 2f 00 0e 51 35 30 36 38 33 36
OUT : d6 dc 8d 98 c2 30 09 46 9f 4e 96 bc 13 4d 28 fb
aes_cipher(0x200125e4);
IN : 06 f0 56 0e 22 00 2f 00 0e 51 35 30 36 38 33 36
OUT : 14 b3 0e 5e 14 e7 2d f2 4d 59 3c 57 3a 70 fa f5
no W25Q128FV ef 40 14
no W25Q128FV ef 40 14
no W25Q128FV ef 40 14
no W25Q128FV ef 40 14
no W25Q128FV ef 40 14
no W25Q128FV ef 40 14
no W25Q128FV ef 40 14
no W25Q128FV ef 40 14
no W25Q128FV ef 40 14
iMac%
We should add a USB command to query the SPI Flash's extra parameters over USB, as silently failing is a bit awkward to the user.
from md380tools.
ef 40 14:
2.5V 8M-BIT
SERIAL FLASH MEMORY WITH
DUAL AND QUAD SPI
https://www.winbond.com/resource-files/da00-w25q80blf1.pdf
only 1MByte not 16MByte
from md380tools.
Given that this issue has been duplicated at #69, #78, #117, #128, and #131, it's probably time that we did something to properly close it.
I suggest that we either find a gap in the codeplug's lower 256K which is unused, or we compromise by putting the menu settings at 0xEBFC, where 72 bytes are available overlapping the very last two contacts.
Close this issue when menu settings are stored somewhere on VHF devices.
from md380tools.
@travisgoodspeed please make this. I have no vhf radio actually.
from md380tools.
No problem. I'll patch it this week and close the issue.
from md380tools.
Related Issues (20)
- Trouble Installing on MD-390 (Dual Band, GPS) HOT 3
- Fail to make flash on Arch Linux multiple definition HOT 4
- make flash successfully but there is no "PoC||GTFO" welcome screen HOT 1
- md380-emu crashes on all recent arm platfrom OS versions HOT 3
- Radio Stops listening after 5 seconds of inactivity HOT 2
- encryption HOT 1
- Why can't I patch boot "Welcome" screen exactely? HOT 1
- Feature request: Light on (configurated timer based) on TG Inc. (or more)
- RAS support HOT 2
- What Forts said. HOT 1
- IDK if this will help you make moto BP work with Tytera EP, but here are some of the outputs from Moto BP keys. Maybe you can see if you can match this to a Tytera: HOT 1
- Please update dependencies for compiling
- Tx into wrong contact
- Using Vocoder part code of md380 as a separate code
- Issue with using hands-free in analog mode
- `default.nix` no longer works due to PyUSB incompatibilty
- keys problem in D2 firmware
- possibility to ignore crc? RAS support?
- Problem with function c5000_spi0_writereg
- Updatedb no longer works
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md380tools.