1
General Development / Re: Magic Lantern USB Installation Tool
« on: July 23, 2022, 12:40:50 PM »
Why not 1.0.0?
Etiquette, expectations, entitlement...
@autoexec_bin | #magiclantern | Discord | Reddit | Server issues
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I have managed to get a 217K dump so farHaven't you used the dumper which dumps the 0xffff000-ffffffff area? That is only 64 kB.
Think I may have found the problem! AGC on my mic port. Now to find out if I can turn it off!http://superuser.com/questions/362343/how-do-i-disable-microphone-volume-auto-adjusting
Can you show me your setup so i can do the same with my canon 80D! PleaseYou need not only the photodiode connected to a serial port but a signed fw for your 80D...
I'm looking for a 7D2 user able and willing to measure the current from his camera while running this FIR. It can be done easily with an external power adapter and a multimeter, but you may need to sacrifice the cable.So what should I see on the multimeter with this firmware?
The FIR simply jumps to 0xFE0A0000 on both cores (which I thought it should boot Canon firmware), but gives black screen according to atonal. Firmware version doesn't matter for this test.Code: [Select]00800120: e51ff004 ldr pc, [pc, #-4] ; 00800124 <_start+0x4>
00800124: fe0a0000 .word 0xfe0a0000
I'm looking at this option for two reasons:
- I want to find out whether the camera locks up or shuts down
- if I manage to lock up the camera without starting the main firmware (which was quite hard on the original 7D, as there was a watchdog shutting it down if the other digic was not initialized), I'm thinking to execute two code sequences that result in different power consumption (such as entering powersaving mode vs a busy waiting loop). This will let me dump the ROM bit by bit (probably slow). That's because I know neither the LED address, nor how to drive any other device that could give some sort of output, nor how to start Canon firmware.
What I need: in arm-mcr.h, we have B_INSTR and BL_INSTR for encoding the two ARM instructions. I need the same macros for Thumb-2 instructions B.W and BLX.W.I don't know what is .W at the end of B and BLX but uncoditional B is 0b11100ooooooooooo where oo..oo is the offset/2 (+-2KB,-2048 to +2046)
#define B_THUMB(pc,dest) \
( 0xE000 \
| ((( ((uint16_t)dest) - ((uint16_t)pc) - 4 ) >> 1) & 0x7FF) \
)
#define BLX_THUMB(pc,dest) \
( 0xF000E800 \
| (((( ((uint32_t)dest) - ((uint32_t)pc) - 4 ) >> 12) & 0x7FF) << 16) \
| ((( ((uint32_t)dest) - ((uint32_t)pc) - 4 ) >> 1) & 0x7FF) \
)
unit Main;
{$mode objfpc}{$H+}
interface
uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, WiringPi;
type
{ TfMain }
TfMain = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
fMain: TfMain;
implementation
{$R *.lfm}
{ TfMain }
procedure TfMain.Button1Click(Sender: TObject);
begin
// wiringPiSetup;
end;
end.
unit wiringPi;
{$link /home/pi/wiringPi/wiringPi/wiringPi.o}
{$linklib c}
interface
Function wiringPiSetup:longint;cdecl;external;
end.
you could also implement that function on your own.I found some source for these __aeabi functions but what could I do with them? I tried to change the wiringPi makefile and put these sources in it but nothing happened.
iirc when googling, you could find some reference implementation of them.
SRC = wiringPi.c \
wiringSerial.c wiringShift.c \
piHiPri.c piThread.c \
wiringPiSPI.c wiringPiI2C.c \
softPwm.c softTone.c \
mcp23008.c mcp23016.c mcp23017.c \
mcp23s08.c mcp23s17.c \
sr595.c \
pcf8574.c pcf8591.c \
mcp3002.c mcp3004.c mcp4802.c mcp3422.c \
max31855.c max5322.c \
sn3218.c \
drcSerial.c \
wpiExtensions.c
In my humble opinion, it looks like your wrapper is not properly configured.What do you mean? How can I properly configure my wrapper? I thought the wrapper doesn't do anything but point to a function in an object file.
OT-OT:Thanks, I have a wifi module (ESP-03) with that chip, but as far as I know that is not in the same ballpark as the RasPi.
i can recommend NodeMCU (http://en.wikipedia.org/wiki/NodeMCU)
the processor is the same chip as the wifi chip, so you have a small footprint.
Last night, g3gg0 and I took a quick loook at the firmware update, and here are our first notes:Thank you! I hope you and g3gg0 can make a dumper for it.
- instruction set is Thumb-2.So the Digic6 has an ARMv7-M architecture, isn't it?