Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrapping S013.020 #181

Closed
4 of 5 tasks
travisgoodspeed opened this issue Jul 17, 2016 · 32 comments
Closed
4 of 5 tasks

Bootstrapping S013.020 #181

travisgoodspeed opened this issue Jul 17, 2016 · 32 comments

Comments

@travisgoodspeed
Copy link
Owner

travisgoodspeed commented Jul 17, 2016

This issue is to track bootstrapping S013.020 firmware with at least the following features. Wherever possible, they should be implemented as C function hooks with an absolute minimum of assembly patching. After S013.020 is targeted in this manner, we'll try adapting other releases.

Close this issue when the firmware boots with the following features:

  • USB communications.
  • Startup demo.
  • Promiscuous modes.
  • Menu items.
  • Caller ID. (users.csv)

Update 20160907, df8av

All symbols, patches and hooks adapted -- but not checked yet

travisgoodspeed added a commit that referenced this issue Jul 17, 2016
travisgoodspeed added a commit that referenced this issue Jul 19, 2016
…o we can disable their symbol requirements when porting to a new target. #181
@travisgoodspeed
Copy link
Owner Author

We will maintain support for old and new vocoder hardware as well as both GPS and non-GPS devices.

S013.020 was chosen for this issue because it is the most different from 2.032, and by targeting it we will hopefully be able to link against all firmware revisions and targeting all hardware revisions.

@aeickho
Copy link
Collaborator

aeickho commented Aug 22, 2016

the header of the "S" Type radios is changed ...

 ../md380-fw --unwrap bin/S013.020.bin x
DEBUG: reading "bin/S013.020.bin"
WARNING: Funky header:
4f 75 74 53 65 63 75 72 69 74 79 42 69 6e 00 00

the "xor" is the same as the "D" Version

temporary --unwrap and then --wrap makes different version of the encrypted file.

@aeickho
Copy link
Collaborator

aeickho commented Aug 22, 2016

I think ... this is not a problem ... @cr can you confirm that?

@aeickho
Copy link
Collaborator

aeickho commented Aug 23, 2016

I have an report ... from a md390, old vocoder, with gps user
... my patched S013.020 (only alpu check disabeld) works with unmodified ../md380-fw
I'll push this patch this nearly.

@aeickho
Copy link
Collaborator

aeickho commented Aug 23, 2016

I start to generate symbols_s13.020 with d13.020 as gold -> lot of matchs

@aeickho
Copy link
Collaborator

aeickho commented Aug 24, 2016

  • bypass vocoder copy protection: added with 755d6e7

@aeickho aeickho mentioned this issue Aug 28, 2016
15 tasks
@HB9TQJ
Copy link

HB9TQJ commented Aug 28, 2016

I noticed one bug: If I assign 1750 Hz Tone to one button the secondary function (long or short press) does not work.

@aeickho
Copy link
Collaborator

aeickho commented Sep 3, 2016

I think that I'm finish with the port on s13.020 in some days.

@aeickho
Copy link
Collaborator

aeickho commented Sep 3, 2016

@HB9TQJ ... Please open a new issue. ... Than I I'll label it with "bug on original s13.020 fw "

@aeickho
Copy link
Collaborator

aeickho commented Sep 6, 2016

---- first test version now ... 4fdd675

  • usb hooks
  • nicer font
  • welcome message (set intro screen to Char String)

flash please with make flash_s13.020

@ all: please report ... i have no gps type radio to test

@aeickho
Copy link
Collaborator

aeickho commented Sep 7, 2016

UPDATE: S13.020 port is finished now. but not tested yet.

It works hopefully on the flowing radios:

  • md380-gps-oldvocoder
  • md390-gps-oldvocoder
  • md380-gps-newvocoder
  • md390-gps-newvocoder

@PD3LTX
Copy link

PD3LTX commented Sep 8, 2016

make flash_S13.020 works for my md390 with old vocoder with GPS (original firmware s003.012)
GPS world icon visible on display. GPS menu item visible. GPS function not tested. Still with Welcome logo.

@Astralix
Copy link

Astralix commented Sep 8, 2016

Just a short rough test, but s13.020 seems to run fine on my MD-380G.
Thank you for the piece of fine work!

@ghost
Copy link

ghost commented Sep 8, 2016

CAN CONFIRM: Tested here, seems to work as it should! Great work!

Only thing that I could think of would be the welcome logo. The M. Rogerbeep is slightly higher pitched, I can see if I can do a demo video here. I will check for bugs and report back.

@ghost
Copy link

ghost commented Sep 8, 2016

https://youtu.be/yVnGagVu3W8
Video demo of the MD390 firmwares S013.020 and D002.032 M.RogerBeep.

1st is D002.032 > S013.020
2nd is S013.020 > D002.032

The S013.020 firmware sounds slightly higher pitched, also on D002.032 the M.RogerBeep setting also affects other sounds which, in my opinion, sounds better.

@aeickho
Copy link
Collaborator

aeickho commented Sep 14, 2016

Can we say: that the "S" Version is supported yet?

Doku moved to #292

@ghost
Copy link

ghost commented Sep 14, 2016

I would definitely say that the S013.020 build is stable enough to pass, I have not bumped into any problems.

I got two MD390 GPS both running this firmware without problems. The GPS seems to work as it should too, tested both GPS Info and ViewGPS (from other radio)!

@travisgoodspeed
Copy link
Owner Author

@bendikz Since you have a GPS radio handy, could you please check the features listed at the top of this issue? I think that only the startup demo is still broken, but I'd like to know for sure.

@ghost
Copy link

ghost commented Sep 14, 2016

I have conducted some more tests and you are right @travisgoodspeed. I have attempted to look into the boot logo as well however they have done something different with the newer versions..

It seems like that USB Comms does not work 100% yet. I attempted to interpret the call log with md380-tool but nothing showed up (the radio interfaced with PC, showed up "Hooking calls!". Other features such as flashing firmware and csv and dmesg worked. This test was done on a 64 bit computer running Ubuntu 16.04 (latest LTS).

  • USB communications. (call log bug?)
  • Startup demo.
  • Promiscuous modes.
  • Menu items.
  • Caller ID. (users.csv)

@travisgoodspeed
Copy link
Owner Author

That's probably a bug in the call logging, rather than in the USB comms. Perhaps @aeickho knows?

The startup demo is also broken in D13.020. That issue is being tracked at #221.

@ghost
Copy link

ghost commented Sep 14, 2016

That is likely it. I got a timeout error when I attempted to hook the call log, see http://pastebin.com/pnLET9Xb. This appeared after CTRL-C interrupting.

@aeickho
Copy link
Collaborator

aeickho commented Sep 22, 2016

my md 380 g (with gps) has arrived. so i can test it.

@sijskes there are important things that I should transfer from "merge_d13.020" to merge_s13.020?

I do not think so...

@sijskes
Copy link
Collaborator

sijskes commented Sep 22, 2016

@aeickho if you can:

  • hook all calls gfx_blockfill en gfx_drawbmp (so we have a central point to do draw intercepts)
  • change eye symbol blockfill coordinate
  • remove all specialized hooks on gfx_blockfill gfx_drawbmp and modify into specialized intercepts on the generalized hook functions.
  • find the menu intercept (have to lookup this one)

@aeickho
Copy link
Collaborator

aeickho commented Sep 24, 2016

Dmesgtail stops the menu task.

Menu, channel switch and power off is not working.

I have a ram dump to the spi flash with inactive USB hooks and Our USB transfer ram ... I think is it unused ..

I dump ram to flash 5 sec after power on

Tomorrow .. I'll create an now issue for this problem
#295

@sijskes
Copy link
Collaborator

sijskes commented Sep 24, 2016

@aeickho i've merged two labels in flash.r for the S13.020 fw.

@sijskes
Copy link
Collaborator

sijskes commented Sep 25, 2016

@travisgoodspeed can we include the s13.020 build in the ci-builds?

@sijskes
Copy link
Collaborator

sijskes commented Sep 25, 2016

@aeickho dmesgtail slows down D13 as well.

@aeickho
Copy link
Collaborator

aeickho commented Sep 25, 2016

I can do that ... Ci-builds also with s13.020

@ispkorte
Copy link

ispkorte commented Sep 25, 2016

confirmed S13 RT8GPS

@aeickho
Copy link
Collaborator

aeickho commented Sep 25, 2016

@sijskes s13.020 is now include into the ci-builds #388

@aeickho
Copy link
Collaborator

aeickho commented Dec 9, 2016

I'll close it now... gps radios are working

@aeickho aeickho closed this as completed Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants
@travisgoodspeed @aeickho @sijskes @Astralix @HB9TQJ @PD3LTX @ispkorte and others