[LINUX][TOOL] Android 9.0 partition repack tool!

Post your great articles here :)
cchumi
Posts: 6
Joined: Wed Jan 06, 2021 6:06 am
Answers: 0

#31

bumerc wrote: Fri Jan 15, 2021 12:39 pm
cchumi wrote: Fri Jan 15, 2021 11:33 am Hi just try to unpack and got an error which I don't understand can someone help me ?

Code: Select all

cchumi@ubuntu20lts:~/afck$ make mod-unpack
make: *** No rule to make target 'ingredients/aml_upgrade_package.img', needed by 'out/amlogic/device/1-2g/img-unpack/.stamp.unpack'.  Stop.
Before you run make mod-unpack, you have to copy aml_upgrade_package.img to afck/ingredients

I copy a new time and it is working thanks a lot :)
Advadotes_1
Posts: 1
Joined: Mon Nov 25, 2019 5:04 am
Answers: 0

#32

how to clean old work, for unpacking new IMG??
bumerc
Administrator & Developer
Posts: 1551
Joined: Tue Oct 02, 2018 6:19 pm
Answers: 0
Has thanked: 211 times
Been thanked: 334 times

#33

Advadotes_1 wrote: Wed Jan 20, 2021 7:03 pm how to clean old work, for unpacking new IMG??
make clean
kalehrl
Verified Member
Posts: 11
Joined: Thu Jan 06, 2022 12:22 pm
Answers: 0

#34

Hi. Is there any way I can use this tool to make aml upgrade image from the full ota update zip or from the partition images I made using dd?
kalehrl
Verified Member
Posts: 11
Joined: Thu Jan 06, 2022 12:22 pm
Answers: 0

#35

My vendor image building fails with this message:

Code: Select all

create a sparse img...
##################
loaded 1266 fs_config entries
failed to find [/vendor/etc/init/hw/[p] ap6330] in canned fs_config
make: *** [build/mod.mak:62: bc-tool/stamp/.stamp.mod-vendor] Error 1
Does anyone have any idea how it can be fixed?
bumerc
Administrator & Developer
Posts: 1551
Joined: Tue Oct 02, 2018 6:19 pm
Answers: 0
Has thanked: 211 times
Been thanked: 334 times

#36

kalehrl wrote: Sat Jan 08, 2022 9:37 pm My vendor image building fails with this message:

Code: Select all

create a sparse img...
##################
loaded 1266 fs_config entries
failed to find [/vendor/etc/init/hw/[p] ap6330] in canned fs_config
make: *** [build/mod.mak:62: bc-tool/stamp/.stamp.mod-vendor] Error 1
Does anyone have any idea how it can be fixed?
There is no ap6330 folder/file in vendor/etc/init/hw..
WiFi files are placed in vendor/etc/wifi
Just delete ap6330 from the ../hw directory
bumerc
Administrator & Developer
Posts: 1551
Joined: Tue Oct 02, 2018 6:19 pm
Answers: 0
Has thanked: 211 times
Been thanked: 334 times

#37

bumerc wrote: Thu Jan 13, 2022 1:50 pm Hi. Is there any way I can use this tool to make aml upgrade image from the full ota update zip or from the partition images I made using dd?
You can manually convert partitions from the OTA update to sparse format and copy them to the afck out folder. However, 4 bootloader files are required for the full aml_upgrade_package. OTA contains only bootloader.PARTITION. So you have to compile the bootloader files yourself
kalehrl
Verified Member
Posts: 11
Joined: Thu Jan 06, 2022 12:22 pm
Answers: 0

#38

bumerc wrote: Thu Jan 13, 2022 1:50 pm
kalehrl wrote: Sat Jan 08, 2022 9:37 pm My vendor image building fails with this message:

Code: Select all

create a sparse img...
##################
loaded 1266 fs_config entries
failed to find [/vendor/etc/init/hw/[p] ap6330] in canned fs_config
make: *** [build/mod.mak:62: bc-tool/stamp/.stamp.mod-vendor] Error 1
Does anyone have any idea how it can be fixed?
There is no ap6330 folder/file in vendor/etc/init/hw..
WiFi files are placed in vendor/etc/wifi
Just delete ap6330 from the ../hw directory
There are those folders in Aidan's rom for s905x. I deleted all folders with a space in folder name and the image compiled but it doesn't work. I modified slimbox image for s905x and added my wifi drivers and the image works fine. :relaxed:
kalehrl
Verified Member
Posts: 11
Joined: Thu Jan 06, 2022 12:22 pm
Answers: 0

#39

bumerc wrote: Thu Jan 13, 2022 1:59 pm
bumerc wrote: Thu Jan 13, 2022 1:50 pm Hi. Is there any way I can use this tool to make aml upgrade image from the full ota update zip or from the partition images I made using dd?
You can manually convert partitions from the OTA update to sparse format and copy them to the afck out folder. However, 4 bootloader files are required for the full aml_upgrade_package. OTA contains only bootloader.PARTITION. So you have to compile the bootloader files yourself
Some files are encrypted. I tried to extract dts from dtb but it failed. Probably that file is encrypted too. :(
image.png
You do not have the required permissions to view the files attached to this post.
kalehrl
Verified Member
Posts: 11
Joined: Thu Jan 06, 2022 12:22 pm
Answers: 0

#40

I've tried modifying slimbox for both S905X3 and S905X boxes and what I've noticed is that everything works fine except root. In the log I see some errors regarding sepolicy and su binary. Is this a known issue or not? I was asked to recompile sepolicy which I did during ROM compilation.
Post Reply