You know there is no recovery partition for A/B devices, don't you? recovery ramdisk is in boot.img. there exist also no TWRP for this device (yet) so why don't you upload whatever you're trying to unpack so @osm0sis can have a look into why it "fails"
Yeah, this predates M1 Macs existing. Not sure how to support them where I don't have one to test on and I'd need MacPorts prebuilts for all the things I don't build myself. That said, I'll look into it wherever I finally have a working development environment again.I'm getting a "Unrecognized format" error on my MacBook with M1 Pro when trying to extract Galaxy A52s img files. Is there an issue on my side or are the missing aarch64 binaries a possible reason for this error to appear?
uname -s: DarwinYeah, this predates M1 Macs existing. Not sure how to support them where I don't have one to test on and I'd need MacPorts prebuilts for all the things I don't build myself. That said, I'll look into it wherever I finally have a working development environment again.
Can you give me the output of `uname -s` and `uname -m` ?
There's no error there.i am getting this error
boot.img packed by mkbootimg
the same boot.img unpacked by unpackbootimg is causing this error.
is this tool working fine, is v3.8 the latest version??
Looks correct to me. Why didn't you use the AIK scripts?
./repackimg.sh --help
ok
Not sure what you mean. Both of those images have ANDROID! magic in the header and the recovery image you attached unpacked perfectly:The Rockchip boot.img I'm using to port TWRP is not recognized by Android image kitchen or android image factory. I looked at the boot.img through a hex editor and it's missing the usual "Android" magic hex. Instead it starts with hex code spelling Kernel.
When trying to use Aik-Mobile, I receive Not recognized format error. Is there a patch to support Rockchip 31xx series images?
Android Image Kitchen - UnpackImg Script
by osm0sis @ xda-developers
Supplied image: rk3128_recovery.img
Setting up work folders...
Image type: AOSP
Splitting image to "split_img/"...
ANDROID! magic found at: 0
BOARD_KERNEL_CMDLINE
BOARD_KERNEL_BASE 0x60400000
BOARD_NAME
BOARD_PAGE_SIZE 16384
BOARD_HASH_TYPE sha1
BOARD_KERNEL_OFFSET 0x00008000
BOARD_RAMDISK_OFFSET 0x01c00000
BOARD_SECOND_OFFSET 0x00b00000
BOARD_TAGS_OFFSET 0xffc88000
BOARD_HEADER_VERSION 0
Unpacking ramdisk to "ramdisk/"...
Compression used: gzip
8951 blocks
Done!
Android Image Kitchen - UnpackImg Script
by osm0sis @ xda-developers
Supplied image: rk3128_boot.img
Setting up work folders...
Image type: AOSP
Splitting image to "split_img/"...
ANDROID! magic found at: 0
BOARD_KERNEL_CMDLINE �fef�Iٞ����l3-m�U-1+-+3+����s���O��}��}������,�yϻ��l�@v ;�2�fT�oB����?�K�.��.��c>L�:�fJE��(i�+g�M��PU7���@s:x;�铻�K:���.A�'�M���Μ������f�G��'̮��T]3�ZQ ����>����\QqI����+2��xȰ>�C ��Y�j+&ͮ�葎� UU���4c֤靪fM�PW9kf�
G�l�1�G�1-��Q�tk8�8�o/OWd��|�����7��7
�<[��h�e�7E{!�eGl�y�K;+y
zYC:S�!���Y��#�-q~��->�U-9Fe�ڕ+����߭��J�t�!�A�~Keu�q榝'c(�}���I��I�0J����Cc��8�v���1(���c�r�RFr���E�t�k�^���V�P75=\Gm�F�#��
h?�A�gi8d����V6�+���e�\�l%:�X�j�ӫ�:v�����ؤ*�����f�fY�2^��W�Fz��դS��&ݿ����mA}Xd�#pW��_�d#u2�9M�o����F���G��ҍt�[�hT�/!�Ï%���o>���Eǖe���Î�4��WQF5��d��<v�֝'o%�?I������ʨMȠ���9y;O���Q��J!���65�D�����*���?�kEO<�*C��':L;*뾩�ճ(��.�j�1�tP��敭n��x�ZQ���S�����
BOARD_KERNEL_BASE 0xffff8000
BOARD_NAME ��K.������Y��{�fef�Iٞ����l3-m�U-1+-+3+����s���O��}��}������,�yϻ��l�@v ;�2�fT�oB����?�K�.��.��c>L�:�fJE��(i�+g�M��PU7���@s:x;�铻�K:���.A�'�M���Μ������f�G��'̮��T]3�ZQ ����>����\QqI����+2��xȰ>�C ��Y�j+&ͮ�葎� UU���4c֤靪fM�PW9kf�
BOARD_PAGE_SIZE 817922608
BOARD_HASH_TYPE sha256
BOARD_KERNEL_OFFSET 0x00008000
BOARD_RAMDISK_OFFSET 0xd554d809
BOARD_SECOND_OFFSET 0x30c3bb9d
BOARD_TAGS_OFFSET 0x0e38f733
BOARD_DT_SIZE -905304054
Warning: No ramdisk found to be unpacked!
Done!
Ty for your quick reply. I must be doing something wrong with the installation of Aik-Mobile...Not sure what you mean. Both of those images have ANDROID! magic in the header and the recovery image you attached unpacked perfectly:
Code:Android Image Kitchen - UnpackImg Script by osm0sis @ xda-developers Supplied image: rk3128_recovery.img Setting up work folders... Image type: AOSP Splitting image to "split_img/"... ANDROID! magic found at: 0 BOARD_KERNEL_CMDLINE BOARD_KERNEL_BASE 0x60400000 BOARD_NAME BOARD_PAGE_SIZE 16384 BOARD_HASH_TYPE sha1 BOARD_KERNEL_OFFSET 0x00008000 BOARD_RAMDISK_OFFSET 0x01c00000 BOARD_SECOND_OFFSET 0x00b00000 BOARD_TAGS_OFFSET 0xffc88000 BOARD_HEADER_VERSION 0 Unpacking ramdisk to "ramdisk/"... Compression used: gzip 8951 blocks Done!
There is something really weird about your boot.img though:
Code:Android Image Kitchen - UnpackImg Script by osm0sis @ xda-developers Supplied image: rk3128_boot.img Setting up work folders... Image type: AOSP Splitting image to "split_img/"... ANDROID! magic found at: 0 BOARD_KERNEL_CMDLINE �fef�Iٞ����l3-m�U-1+-+3+����s���O��}��}������,�yϻ��l�@v ;�2�fT�oB����?�K�.��.��c>L�:�fJE��(i�+g�M��PU7���@s:x;�铻�K:���.A�'�M���Μ������f�G��'̮��T]3�ZQ ����>����\QqI����+2��xȰ>�C ��Y�j+&ͮ�葎� UU���4c֤靪fM�PW9kf� G�l�1�G�1-��Q�tk8�8�o/OWd��|�����7��7 �<[��h�e�7E{!�eGlΡ�y�K;+y zYC:S�!���Y��#�-q~��->�U-9Fe�ڕ+����߭��J�t�!�A�~Keu�q榝'c(�}���I��I�0J����Cc��8�v���1(���c�r�RFr���E�t�k�^���V�P75=\Gm�F�#�� h?�A�gi8d����V6�+���e�\�l%:�X�j�ӫ�:v�����ؤ*�����f�fY�2^��W�Fz��դS��&ݿ����mA}Xd�#pW��_�d#u2�9M�o����F���G��ҍt�[�hT�/!�Ï%���o>���Eǖe���Î�4��WQF5��d��<v�֝'o%�?I������ʨMȠ���9y;O���Q��J!���65�D�����*���?�kEO<�*C��':L;*뾩�ճ(��.�j�1�tP��敭n��x�ZQ���S����� BOARD_KERNEL_BASE 0xffff8000 BOARD_NAME ��K.������Y��{�fef�Iٞ����l3-m�U-1+-+3+����s���O��}��}������,�yϻ��l�@v ;�2�fT�oB����?�K�.��.��c>L�:�fJE��(i�+g�M��PU7���@s:x;�铻�K:���.A�'�M���Μ������f�G��'̮��T]3�ZQ ����>����\QqI����+2��xȰ>�C ��Y�j+&ͮ�葎� UU���4c֤靪fM�PW9kf� BOARD_PAGE_SIZE 817922608 BOARD_HASH_TYPE sha256 BOARD_KERNEL_OFFSET 0x00008000 BOARD_RAMDISK_OFFSET 0xd554d809 BOARD_SECOND_OFFSET 0x30c3bb9d BOARD_TAGS_OFFSET 0x0e38f733 BOARD_DT_SIZE -905304054 Warning: No ramdisk found to be unpacked! Done!
The header is full of garbage; it's like it was zipped or something and you just used a hex editor to chop off the zip magic and header until you reached the Android magic, when you should have decompressed it.![]()
Yes. Maybe he means signing.... Idk.Maybe he means "signing" when he says "aligning"
Please note the "Nibiru V05-A" Rockchip RK device listed as Not Supported in the OPs and follow the link, very likely that your device falls in this category.
You can find the closed-source imgrepackerrk tool by reading through the relevant thread posts I linked as well, but I have no plans to include it in AIK while it remains closed source and there's no documentation of what the different chipset variants require or how anything's calculated and patched.
Edit: I see you've posted on the imgrepackerrk thread, so I'm not sure why you're here acting like you've never heard of it...
What device are you using? I'll add it to the unsupported list.
Yes. Maybe he means signing.... Idk.Maybe he means "signing" when he says "aligning"
Please note the "Nibiru V05-A" Rockchip RK device listed as Not Supported in the OPs and follow the link, very likely that your device falls in this category.
You can find the closed-source imgrepackerrk tool by reading through the relevant thread posts I linked as well, but I have no plans to include it in AIK while it remains closed source and there's no documentation of what the different chipset variants require or how anything's calculated and patched.
Edit: I see you've posted on the imgrepackerrk thread, so I'm not sure why you're here acting like you've never heard of it...
What device are you using? I'll add it to the unsupported list.
Here are the Rockchip images that I unpack and repack without changing anything (with AIK mobile) and the boot hangs for some reason.Thanks again.Interesting. I'll take a look when I have some time and see if I can figure out what alignment refers to... In the middle of setting my laptop up again after RMAing for the faulty SSD, and lost all of my dev setup, so will likely be awhile.