Closed mamatt closed 3 years ago
Found 0x3C-0x4F :
this is an SHA1 hash of the ext4.xz file !
0x04 => filesize
0x0C => not sur but seems to be a string table
0x24 => this is strange but is seems to be the adresse of the second byte of sha1 hash !
I can confirm this is good for 2.2 too ! even if ext4 partition is not compressed !
To summarize :
Headers and footers are quite the same between different image except for those bits :
HEADER 0x04 => int32 MPC-Update filesize 0x0C => 4 bytes Address of what seems to be a strings table 0x24 => 4 bytes this is strange but is seems to be the address of the second byte of sha1 hash ! 0x4C => date image (hour_t) 32bit 0xB8 => 8 bytes string image version 0xFC => Int32 image(payload) filesize FOOTER (Addr relative to Footer address) 0x3C-0x4F => SHA1 hash of the payload (ext4 or compressed ext4)
With those infos we should be able to construct a valid MPX-2.X-update.img file and use if with InMusic/AkaiPro stuff to push modified image ;)
In fact the whole image is a dtb !
you can decompress it with : dtc -I dtb -O dts -o MPX-2.X-update.dts MPX-2.X-update.img
Nice ! I used an hex editor to save the compressed ext4 partiton. It is xy compressed since 2.6. Bien joué Matthieu :-) !
For previous versions of MPC Live/x , it's here : https://www.akaipro.com/amfile/file/download/file/956/product/6/
/dts-v1/;
/
{
timestamp = <0x5de0e899>;
description = "MPC upgrade image";
compatible = "inmusic,acv5", "inmusic,acv8";
inmusic,devices = <0x9e8403a 0x9e8403b>;
inmusic,version = "2.7.0.43";
images {
rootfs {
description = "Root filesystem";
data = < (binary data) >;
partition = "rootfs";
compression = "xz";
hash {
value = <0xba31c00 0x56e3a8f0 0x9a55019c 0x1e8f64c2 0xb173019b>;
algo = "sha1";
};
};
};
};.
That’s nice, using those tools I could create an usb-installable image with ssh enabled :)
I’ve made that inefficient ugly script to ease extraction of the partition and recreation of the image: https://gist.github.com/plule/67e1c542e2f16d92ddda0ac479010c39
Sure you can ! I will have a look. This could allow us to use the official Akai updater.
Not sure about the computer installer, but the MPC itself accepts it without complaining (not using fastboot or the internal debug port)
OK ! So it should work with the win/mac client tool. I will test later. I added you script to the repo with your credit and original url. "Pierre" , are you french ? (I'am)
Le mer. 27 mai 2020 à 16:23, Pierre Lulé notifications@github.com a écrit :
Not sure about the computer installer, but the MPC itself accepts it without complaining (not using fastboot or the internal debug port)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TheKikGen/MPC-LiveXplore/issues/5#issuecomment-634694884, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQMVK6RCGNRQI3WT6MR6S3RTUO6HANCNFSM4KAEQPBQ .
Oui !
Ok ! J'ai amendé le script pour générer des images Force. J'ai testé avec la procédure de mise à jour depuis l'USB et cela fonctionne très bien.
Le sam. 30 mai 2020 à 16:02, Pierre Lulé notifications@github.com a écrit :
Oui !
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TheKikGen/MPC-LiveXplore/issues/5#issuecomment-636335199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQMVK5RJCNVR6BNRWBK6RDRUEGV7ANCNFSM4KAEQPBQ .
Hello,
pourrais-tu utiliser mon pseudo à la place de mon nom complet dans le script stp ;)
BTW, je ne suis pas sur que diffuser les firmware live/force patchées soit bien vu par Akai :S
Merci
OK. pas de souci pour ton pseudo. Pour les images, on verra si Akai réagit. Si c'est le cas, on arrêtera la diffusion. Linux est open source.
Le dim. 31 mai 2020 à 19:38, Matthieu Le Corre notifications@github.com a écrit :
Hello,
pourrais-tu utiliser mon pseudo à la place de mon nom complet dans le script stp ;)
BTW, je ne suis pas sur que diffuser les firmware live/force patchées soit bien vu par Akai :S
Merci
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TheKikGen/MPC-LiveXplore/issues/5#issuecomment-636503330, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQMVK265QXBLBUXLZ3I7ITRUKI2TANCNFSM4KAEQPBQ .
Based on some of your work and https://niklasnisbeth.gitlab.io/mpc-internals/#the-audiomidi-control-board work, here is a beginning of the analysis of the update image for the MPC Live.
HEADER and FOOTER are the same between 2.7 and 2.6 except for the bytes below :
I didn't manage to unpack using https://github.com/neo-technologies/rockchip-mkbootimg/ , I'll keep trying !
By the way I am unable to get MPC firmware < 2.6, did you have a copy of the old updates ?