[GUIDE] Unpacking System and Vendor partitions in Amlogic Image

Post your great articles here :)
ltpvietnam
Posts: 3
Joined: Mon Sep 14, 2020 6:39 am
Answers: 0
Has thanked: 1 time

#21

Nayam wrote: Fri Jul 12, 2019 5:42 am
gaconanthit wrote: Tue Jul 02, 2019 6:00 am Can you guide me repack vendor.Partion? Thank you
I made these tools for you guys, you can use them and unpack/repack Amlogic Images :)
i can't repack by Amlogic Unpacker by Nayam.zip. pl help me
antonio6o6
Expert Member
Posts: 121
Joined: Sat Feb 09, 2019 11:49 am
Answers: 0
Has thanked: 52 times
Been thanked: 14 times

#22

Can somebody help I unpack firmware using custom tool. When I put level 1 on unpacker is giving me an error.Unpacker by Nayam
antonio6o6
Expert Member
Posts: 121
Joined: Sat Feb 09, 2019 11:49 am
Answers: 0
Has thanked: 52 times
Been thanked: 14 times

#23

I keep getting error can somebody help me please I'm trying to mod a firmware pie 9
antonio6o6
Expert Member
Posts: 121
Joined: Sat Feb 09, 2019 11:49 am
Answers: 0
Has thanked: 52 times
Been thanked: 14 times

#24

Can someone give me a hand with this I keep getting an error
User avatar
em3ka
Moderator
Posts: 1835
Joined: Sun Jul 15, 2018 11:43 am
Answers: 0
Has thanked: 108 times
Been thanked: 370 times

#25

Follow instructions (READ ME.txt)... :point_down:
SPOILER
SPOILER_SHOW
Here's a tool that unpacks *ONLY* Oreo images of Amlogic, for all the Windows Fanboys.

Read the instructions because I don't trust you unless you're Bill Gates.

1. Paste your amlogic IMG in this folder (where you have the tool files)

2. Double click 1_unpack_level1.bat file. It will unpack your Image to level 1.

2_unpack_level2 will unpack to level 2 (System and Vendor only)

3_repack will repack the files (Obviously lol)

clean_up will delete the unpacked files and folders. Use this when starting a new project.

Thank you for using the tool btw, Gives me satisfaction when I'm not the only guy using this crap.

- NAYAM AMARSHE
ltpvietnam
Posts: 3
Joined: Mon Sep 14, 2020 6:39 am
Answers: 0
Has thanked: 1 time

#26

Image
Can't be packed
You do not have the required permissions to view the files attached to this post.
antonio6o6
Expert Member
Posts: 121
Joined: Sat Feb 09, 2019 11:49 am
Answers: 0
Has thanked: 52 times
Been thanked: 14 times

#27

I managed to unpack level 1and level 2
But repacking I am getting a error what can it be
antonio6o6
Expert Member
Posts: 121
Joined: Sat Feb 09, 2019 11:49 am
Answers: 0
Has thanked: 52 times
Been thanked: 14 times

#28

this is the error i am getting

Code: Select all

    /\             | |           (_)      | |  | |                      | |
   /  \   _ __ ___ | | ___   __ _ _  ___  | |  | |_ __  _ __   __ _  ___| | _____ _ __
  / /\ \ | '_ ` _ \| |/ _ \ / _` | |/ __| | |  | | '_ \| '_ \ / _` |/ __| |/ / _ \ '__|
 / ____ \| | | | | | | (_) | (_| | | (__  | |__| | | | | |_) | (_| | (__|   <  __/ |
/_/    \_\_| |_| |_|_|\___/ \__, |_|\___|  \____/|_| |_| .__/ \__,_|\___|_|\_\___|_|
                             __/ |                     | |
                            |___/                      |_|
                                                        An Amlogic Image Unpacking/Repacking Tool by Nayam Amarshe


You done? Let's repack everything.

Enter the name of the new file:

LOG OUTPUT:
+++++++++++++++++++++++++
Repack System
+++++++++++++++++++++++++
Deleted file - C:\Users\luisa\Desktop\Amlogic Unpacker by Nayam\unpacked\level1\system.PARTITION
Creating filesystem with parameters:
    Size: 2147483648
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 8192
    Label: system
    Blocks: 524288
    Block groups: 16
    Reserved block group size: 127
error: build_directory_structure: cannot lookup security context for /system/acct

+++++++++++++++++++++++++
Repack Vendor
+++++++++++++++++++++++++
Deleted file - C:\Users\luisa\Desktop\Amlogic Unpacker by Nayam\unpacked\level1\vendor.PARTITION
Creating filesystem with parameters:
    Size: 799997952
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8144
    Inode size: 256
    Journal blocks: 3051
    Label: vendor
    Blocks: 195312
    Block groups: 6
    Reserved block group size: 47
error: build_directory_structure: cannot lookup security context for /vendor/app

+++++++++++++++++++++++++
Repack Image
+++++++++++++++++++++++++
[Msg]Pack Item[USB         ,              DDR] from (unpacked\level1\DDR.USB),sz[0x1c7370]B,ft[normal]
[Msg]Pack Item[USB         ,            UBOOT] from (unpacked\level1\DDR.USB),Duplicated for DDR.USB

[Msg]Pack Item[PARTITION   ,         _aml_dtb] from (unpacked\level1\_aml_dtb.PARTITION),sz[0x1706b]B,ft[normal]

[Msg]Pack Item[VERIFY      ,         _aml_dtb] from (unpacked\level1\_aml_dtb.PARTITION),vry[sha1sum 1ebb6d2dd53982274ddd9865358ff559a53ce001]
[Msg]Pack Item[UBOOT       ,     aml_sdc_burn] from (unpacked\level1\aml_sdc_burn.UBOOT),sz[0x1c7570]B,ft[normal]

[Msg]Pack Item[ini         ,     aml_sdc_burn] from (unpacked\level1\aml_sdc_burn.ini),sz[0x25a]B,
[Msg]Pack Item[PARTITION   ,             boot] from (unpacked\level1\boot.PARTITION),sz[0x98a800]B,ft[normal]
[Msg]Pack Item[VERIFY      ,             boot] from (unpacked\level1\boot.PARTITION),vry[sha1sum 6367a99ad05da6fcc0c5f64f4cfa4da96b18eba4]
[Msg]Pack Item[PARTITION   ,       bootloader] from (unpacked\level1\DDR.USB),Duplicated for DDR.USB

[Msg]Pack Item[VERIFY      ,       bootloader] from (unpacked\level1\DDR.USB),vry[sha1sum 16329186caa443d38053271d64d875c540b99aec]
[Msg]Pack Item[PARTITION   ,             dtbo] from (unpacked\level1\dtbo.PARTITION),sz[0x1b6]B,
[Msg]Pack Item[VERIFY      ,             dtbo] from (unpacked\level1\dtbo.PARTITION),vry[sha1sum 7e63f51086267cbfc7ea71d55d89d967a9d2916a]
[Msg]Pack Item[PARTITION   ,             logo] from (unpacked\level1\logo.PARTITION),sz[0xe1150]B,ft[normal]
[Msg]Pack Item[VERIFY      ,             logo] from (unpacked\level1\logo.PARTITION),vry[sha1sum f44e92aaf7e4bb7b430a671b753ba6cc7f2b6794]
[Msg]Pack Item[dtb         ,           meson1] from (unpacked\level1\_aml_dtb.PARTITION),Duplicated for _aml_dtb.PARTITION

[Msg]Pack Item[PARTITION   ,              odm] from (unpacked\level1\odm.PARTITION),sz[0x8204c]B,ft[sparse]
[Msg]Pack Item[VERIFY      ,              odm] from (unpacked\level1\odm.PARTITION),vry[sha1sum e26b9359104b2b1427de6e2d5c3e34cce004e0b1]
[Msg]Pack Item[conf        ,         platform] from (unpacked\level1\platform.conf),sz[0x9b]B,
[Msg]Pack Item[PARTITION   ,          product] from (unpacked\level1\product.PARTITION),sz[0xdef04c]B,ft[sparse]

[Msg]Pack Item[VERIFY      ,          product] from (unpacked\level1\product.PARTITION),vry[sha1sum 6c17c6dfed712793f825efbcdb95273be75740a2]
[Msg]Pack Item[PARTITION   ,         recovery] from (unpacked\level1\recovery.PARTITION),sz[0xfdb800]B,ft[normal]

[Msg]Pack Item[VERIFY      ,         recovery] from (unpacked\level1\recovery.PARTITION),vry[sha1sum e611c6e44b77074f9c0c1eeca27e320d92e850b4]
[Msg]Pack Item[PARTITION   ,           system] from (unpacked\level1\system.PARTITION),[ERR]f(AmlImagePack.cpp)L1332:failed to open source file : unpacked\level1\system.PARTITION
Image pack FAILED

he new IMG is in repacked folder. Fingers Crossed
antonio6o6
Expert Member
Posts: 121
Joined: Sat Feb 09, 2019 11:49 am
Answers: 0
Has thanked: 52 times
Been thanked: 14 times

#29

Can someone tell me what I'm doing wrong or where I have to do to fix this error
antonio6o6
Expert Member
Posts: 121
Joined: Sat Feb 09, 2019 11:49 am
Answers: 0
Has thanked: 52 times
Been thanked: 14 times

#30

Okay guys finally got it with no error I edit level 2 bat. That I saw in a forums finally got it :upside_down_face:
Post Reply