Comments (7)
Can you explain in bit more details?. which script, platform and firmware are you using ?
from amlogickitchen.
Apologies breaking up the comments.
- Linux unpack has errors with the python.
On windows with batch file packing shows an abstract like this which is different than linux, which shows (4k) blocks long.
Windows snippet//////////
Resizing the filesystem on level2\odm_a.img to 193 (4k) blocks.
The filesystem on level2\odm_a.img is now 193 (0k) blocks long.
/////////////////////////////////////////////
Log below for complete log and issue of sparse / magic seen as well.
.....................
Amlogic Kitchen
.....................
Select level 1,2 or 3: 2
Packing odm_ext_a
loaded 58 fs_config entries
Creating filesystem with parameters:
Size: 16777216
Block size: 4096
Blocks per group: 32768
Inodes per group: 1024
Inode size: 256
Journal blocks: 0
Label: odm_ext_a
Blocks: 4096
Block groups: 1
Reserved block group size: 7
Created filesystem with 37/1024 inodes and 1721/4096 blocks
Packing system_a
loaded 2880 fs_config entries
Creating filesystem with parameters:
Size: 1150390272
Block size: 4096
Blocks per group: 32768
Inodes per group: 7808
Inode size: 256
Journal blocks: 0
Label: system_a
Blocks: 280857
Block groups: 9
Reserved block group size: 71
Created filesystem with 2888/70272 inodes and 264604/280857 blocks
resize2fs 1.42.12 (29-Aug-2014)
Resizing the filesystem on level2\system_a.img to 264636 (4k) blocks.
The filesystem on level2\system_a.img is now 264636 (0k) blocks long.
Packing system_ext_a
loaded 82 fs_config entries
Creating filesystem with parameters:
Size: 123547648
Block size: 4096
Blocks per group: 32768
Inodes per group: 7552
Inode size: 256
Journal blocks: 0
Label: system_ext_a
Blocks: 30163
Block groups: 1
Reserved block group size: 7
Created filesystem with 90/7552 inodes and 28429/30163 blocks
resize2fs 1.42.12 (29-Aug-2014)
Resizing the filesystem on level2\system_ext_a.img to 28432 (4k) blocks.
The filesystem on level2\system_ext_a.img is now 28432 (0k) blocks long.
Packing vendor_a
loaded 1034 fs_config entries
Creating filesystem with parameters:
Size: 296427520
Block size: 4096
Blocks per group: 32768
Inodes per group: 6032
Inode size: 256
Journal blocks: 0
Label: vendor_a
Blocks: 72370
Block groups: 3
Reserved block group size: 23
Created filesystem with 1033/18096 inodes and 68003/72370 blocks
resize2fs 1.42.12 (29-Aug-2014)
Resizing the filesystem on level2\vendor_a.img to 68011 (4k) blocks.
The filesystem on level2\vendor_a.img is now 68011 (0k) blocks long.
Packing product_a
loaded 129 fs_config entries
Creating filesystem with parameters:
Size: 145985536
Block size: 4096
Blocks per group: 32768
Inodes per group: 4464
Inode size: 256
Journal blocks: 0
Label: product_a
Blocks: 35641
Block groups: 2
Reserved block group size: 15
Created filesystem with 137/8928 inodes and 33633/35641 blocks
resize2fs 1.42.12 (29-Aug-2014)
Resizing the filesystem on level2\product_a.img to 33637 (4k) blocks.
The filesystem on level2\product_a.img is now 33637 (0k) blocks long.
Packing odm_a
loaded 21 fs_config entries
Creating filesystem with parameters:
Size: 1048576
Block size: 4096
Blocks per group: 32768
Inodes per group: 64
Inode size: 256
Journal blocks: 0
Label: odm_a
Blocks: 256
Block groups: 1
Reserved block group size: 7
Created filesystem with 29/64 inodes and 193/256 blocks
resize2fs 1.42.12 (29-Aug-2014)
Resizing the filesystem on level2\odm_a.img to 193 (4k) blocks.
The filesystem on level2\odm_a.img is now 193 (0k) blocks long.
Packing super
lpmake I 05-23 14:46:51 371 17192 builder.cpp:1093] [liblp]Partition system_a will resize from 0 bytes to 1083949056 bytes
lpmake I 05-23 14:46:51 371 17192 builder.cpp:1093] [liblp]Partition system_ext_a will resize from 0 bytes to 116457472 bytes
lpmake I 05-23 14:46:51 371 17192 builder.cpp:1093] [liblp]Partition vendor_a will resize from 0 bytes to 278573056 bytes
lpmake I 05-23 14:46:51 371 17192 builder.cpp:1093] [liblp]Partition product_a will resize from 0 bytes to 137777152 bytes
lpmake I 05-23 14:46:51 371 17192 builder.cpp:1093] [liblp]Partition odm_a will resize from 0 bytes to 790528 bytes
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
from amlogickitchen.
Can you tell what's wrong in this?. It's packing super image. Super image contains odm,system,system_ext and vendor partition. There's no error in this, these are warnings you can ignore
from amlogickitchen.
Yes please note before it packs super there is resizing of the individual partition. These partitions are to be 4K. After resizing it makes them 0k. As an example
Resizing the filesystem on level2\odm_a.img to 193 (4k) blocks.
The filesystem on level2\odm_a.img is now 193 (0k) blocks long.
If this was done on A linux machine 0k would be seen as 4k
from amlogickitchen.
This is done in both linux and windows version of this script. warning was hidden in windows.
from amlogickitchen.
The warning in Linux says it repacked with 4K block and the above log shows warning it repacked in 0k block. There would be a discrepancy between Linux fs and windows fs.
from amlogickitchen.
That warning is present in both linux and windows. I just reverted it old state to avoid anymore confusion. You can use the latest changes and check
from amlogickitchen.
Related Issues (20)
- Windows repack makes read only partition. HOT 10
- Latest Commit e3d9e93f99a0239106e69ac60cf2a9963ee15073 error unpacking level 3 HOT 3
- error when unpacking level 2 using python HOT 6
- amlogic android 9.0 image can not pack HOT 3
- FATAL ERROR: Blob has incorrect magic number | ERROR: level1\_aml_dtb.PARTITION HOT 2
- repack super.img bug HOT 3
- Thank you for the tool you provided,Don't you support Android 11? HOT 2
- pack_zip_to_aml "DDR.USB is missing, copy DDR.USB to level1 dir" And create workflow xml file failed HOT 3
- [ERR]f(AmlImagePack.cpp)L1332:failed HOT 1
- Unpacking level 1 error HOT 3
- Packing back level 2 prompts error: "Unable to create super image, recreated images are too big." HOT 10
- MagicError: "Invalid magic value in superblock: 0xF2EE (expected 0xEF53)", when unpacking level 2 of Android 7 image file for RK3399 HOT 1
- about the dump.bat pattern bug HOT 1
- Level2 Packing Unable To Create Super Image HOT 1
- rkpack level 1 error HOT 3
- windows pack.bat number precision limit 32 bit HOT 1
- SyntaxWarning: invalid escape sequence HOT 1
- amlogic-kitchen-master-mac-os HOT 1
- Using of password.bin for dumping device
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amlogickitchen.