Comments (10)
I included it in the message, but here it is again, in case somebody else is looking for it: http://theminixforum.com:9009/firmwares/X35-i-Android_11-V003-ROOT-20220706.7z
It's the official firmware with which Minix Neo X35-i comes loaded, taken from their site.
from amlogickitchen.
link me your firmware
Found
from amlogickitchen.
I have updated rktools for linux. Try with that.
from amlogickitchen.
On Linux (Ubuntu), I manage to re-pack it back to level 2, but when I attempt to further re-pack it back to level 1, I'm prompted by a list of supported models which ends at rk3399, while my image is for rk3566 (see these specs). I entered rk35
and the CLI's execution continued, but I don't see any ".img" file being produced in the out folder. I think now the problem is the final level1 re-pack, where rk3566 is not supported, unfortunately. How could I bypass this limitation? Is there a version of img_maker tool that handles rk35
images as well?
Here's the complete Linux log:
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ./rkunpack.sh
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
1
.....................
Rockchip Kitchen
.....................
Files in input dir (*.img)
1 - x35
.....................
Enter a file name :
x35
rom version: b.0.0
build time: 2022-07-06 18:49:03
chip: 33353638
checking md5sum....OK
Check file...OK
------- UNPACK -------
package-file 0x00000800 0x00000286
Image/MiniLoaderAll.bin 0x00001000 0x000719C0
Image/parameter.txt 0x00073000 0x000002A6
Image/uboot.img 0x00073800 0x00400000
Image/misc.img 0x00474000 0x0000C000
Image/boot.img 0x00480800 0x01DE2800
Image/dtbo.img 0x02263800 0x0000026F
Image/vbmeta.img 0x02264000 0x00001000
Image/recovery.img 0x02265800 0x043EF800
Image/super.img 0x06655800 0x8E783DB0
RESERVED 0x00000000 0x00000000
UnPack OK!
Done.
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
2
.....Extraction from system.img to system
.....Done! All extraction in system
.....Extraction from system_ext.img to system_ext
.....Done! All extraction in system_ext
.....Extraction from vendor.img to vendor
.....Done! All extraction in vendor
.....Extraction from product.img to product
.....Done! All extraction in product
.....Extraction from odm.img to odm
.....Done! All extraction in odm
Done.
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
q
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ./rkpack.sh
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
2
Creating system image
loaded 4058 fs_config entries
Creating filesystem with parameters:
Size: 1896288256
Block size: 4096
Blocks per group: 32768
Inodes per group: 7728
Inode size: 256
Journal blocks: 0
Label: system
Blocks: 462961
Block groups: 15
Reserved block group size: 119
Created filesystem with 4066/115920 inodes and 436659/462961 blocks
./rkpack.sh: 95: bin/linux/ext4/resize2fs: not found
Done.
Creating system_ext image
loaded 78 fs_config entries
Creating filesystem with parameters:
Size: 133079040
Block size: 4096
Blocks per group: 32768
Inodes per group: 8128
Inode size: 256
Journal blocks: 0
Label: system_ext
Blocks: 32490
Block groups: 1
Reserved block group size: 7
Created filesystem with 87/8128 inodes and 30604/32490 blocks
./rkpack.sh: 95: bin/linux/ext4/resize2fs: not found
Done.
Creating vendor image
loaded 1488 fs_config entries
Creating filesystem with parameters:
Size: 339943424
Block size: 4096
Blocks per group: 32768
Inodes per group: 6928
Inode size: 256
Journal blocks: 0
Label: vendor
Blocks: 82994
Block groups: 3
Reserved block group size: 23
Created filesystem with 1496/20784 inodes and 78200/82994 blocks
./rkpack.sh: 95: bin/linux/ext4/resize2fs: not found
Done.
Creating product image
loaded 461 fs_config entries
Creating filesystem with parameters:
Size: 229978112
Block size: 4096
Blocks per group: 32768
Inodes per group: 7024
Inode size: 256
Journal blocks: 0
Label: product
Blocks: 56147
Block groups: 2
Reserved block group size: 15
Created filesystem with 470/14048 inodes and 52905/56147 blocks
./rkpack.sh: 95: bin/linux/ext4/resize2fs: not found
Done.
Creating odm image
loaded 16 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
Blocks: 256
Block groups: 1
Reserved block group size: 7
Created filesystem with 24/64 inodes and 159/256 blocks
./rkpack.sh: 95: bin/linux/ext4/resize2fs: not found
Done.
lpmake I 12-02 02:21:46 8404 8404 builder.cpp:1031] [liblp]Partition system_ext will resize from 0 bytes to 133079040 bytes
lpmake I 12-02 02:21:46 8404 8404 builder.cpp:1031] [liblp]Partition system will resize from 0 bytes to 1896288256 bytes
lpmake I 12-02 02:21:46 8404 8404 builder.cpp:1031] [liblp]Partition odm will resize from 0 bytes to 1048576 bytes
lpmake I 12-02 02:21:46 8404 8404 builder.cpp:1031] [liblp]Partition product will resize from 0 bytes to 229978112 bytes
lpmake I 12-02 02:21:46 8404 8404 builder.cpp:1031] [liblp]Partition vendor will resize from 0 bytes to 339943424 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
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
1
Can't find out folder
Created out folder
Supported models:
px30 rk29
px3se rk29
rk1808 rk29
rk3036 rk30
rk3128h rk31
rk3128 rk31
rk312x rk31
rk3229 rk32
rk3288 rk32
rk3308 rk33
rk3326 rk33
rk3328 rk33
rk3399 rk33
rv1126_rv1109 rk29
Enter your chip model, Eg: rk32:
rk35
------ PACKAGE ------
Add file: level1/package-file
Add file: level1/Image/MiniLoaderAll.bin
Add file: level1/Image/parameter.txt
Add file: level1/Image/trust.img
Add file: level1/Image/uboot.img
Add file: level1/Image/misc.img
Add file: level1/Image/boot.img
Add file: level1/Image/dtbo.img
Add file: level1/Image/vbmeta.img
Add file: level1/Image/recovery.img
Add file: level1/Image/super.img
Add file: level1/RESERVED
Add CRC...
------ OK ------
Pack OK!
usage: img_maker [chiptype] <loader> <old image> <out image>
chiptype:
-rk29
-rk30
-rk31
-rk32
-rk33
If chiptype is missing, it is default to -rk32.
Done.
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
q
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$
from amlogickitchen.
Updated tool for newer devices. Use RK3568 for rk356* devices (Linux only)
from amlogickitchen.
So this time it worked all the way, producing the ".img" file in the out folder. But when I tried to flash it to the device, the RK DevTool v2.84 prompts me with this error: "Match device type failed,stop running!". Could it be because the device is RK3566, while the version I used for the CLI is RK3568?
Here's the complete log:
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l in/
total 2439476
-rw-r--r-- 1 cdarau cdarau 2498015818 Jul 8 00:09 x35.img
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l level1/
ls: cannot access 'level1/': No such file or directory
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l level2/
ls: cannot access 'level2/': No such file or directory
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l out/
ls: cannot access 'out/': No such file or directory
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ./rkunpack.sh
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
1
.....................
Rockchip Kitchen
.....................
Files in input dir (*.img)
1 - x35
.....................
Enter a file name :
x35
********rkImageMaker ver 2.0********
Unpacking image, please wait...
Exporting boot.bin
Exporting firmware.img
Unpacking image success.
Android Firmware Package Tool v2.0
Check file... OK
------- UNPACK ------
package-file offset=0x800 size=0x286
Image/MiniLoaderAll.bin offset=0x1000 size=0x719C0
Image/parameter.txt offset=0x73000 size=0x29A
Image/uboot.img offset=0x73800 size=0x400000
Image/misc.img offset=0x474000 size=0xC000
Image/boot.img offset=0x480800 size=0x1DE2800
Image/dtbo.img offset=0x2263800 size=0x26F
Image/vbmeta.img offset=0x2264000 size=0x1000
Image/recovery.img offset=0x2265800 size=0x43EF800
Image/super.img offset=0x6655800 size=0x8E783DB0
Unpack firmware OK!
------ OK ------
Done.
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
2
.....Extraction from system.img to system
.....Done! All extraction in system
.....Extraction from system_ext.img to system_ext
.....Done! All extraction in system_ext
.....Extraction from vendor.img to vendor
.....Done! All extraction in vendor
.....Extraction from product.img to product
.....Done! All extraction in product
.....Extraction from odm.img to odm
.....Done! All extraction in odm
Done.
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
q
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l in/
total 2439476
-rw-r--r-- 1 cdarau cdarau 2498015818 Jul 8 00:09 x35.img
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l level1/
total 12
drwxr-xr-x 2 root root 4096 Dec 2 19:50 Image
-rw-r--r-- 1 root root 646 Dec 2 19:50 package-file
-rw-r--r-- 1 root root 4 Dec 2 19:49 projectname.txt
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l level2/
total 2347164
drwxr-xr-x 2 root root 4096 Dec 2 19:53 config
drwxr-xr-x 4 root root 4096 Dec 2 19:53 odm
-rw-r--r-- 1 root root 626688 Dec 2 19:51 odm.img
drwxr-xr-x 9 root root 4096 Dec 2 19:53 product
-rw-r--r-- 1 root root 213229568 Dec 2 19:51 product.img
drwxr-xr-x 24 root root 4096 Dec 2 19:52 system
-rw-r--r-- 1 root root 1758720000 Dec 2 19:52 system.img
drwxr-xr-x 8 root root 4096 Dec 2 19:52 system_ext
-rw-r--r-- 1 root root 123662336 Dec 2 19:51 system_ext.img
drwxr-xr-x 11 root root 4096 Dec 2 19:53 vendor
-rw-r--r-- 1 root root 314527744 Dec 2 19:51 vendor.img
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l out/
ls: cannot access 'out/': No such file or directory
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ./rkpack.sh
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
2
Creating system image
loaded 4058 fs_config entries
Creating filesystem with parameters:
Size: 1896288256
Block size: 4096
Blocks per group: 32768
Inodes per group: 7728
Inode size: 256
Journal blocks: 0
Label: system
Blocks: 462961
Block groups: 15
Reserved block group size: 119
Created filesystem with 4066/115920 inodes and 436659/462961 blocks
./rkpack.sh: 100: bin/linux/ext4/resize2fs: not found
Done.
Creating system_ext image
loaded 78 fs_config entries
Creating filesystem with parameters:
Size: 133079040
Block size: 4096
Blocks per group: 32768
Inodes per group: 8128
Inode size: 256
Journal blocks: 0
Label: system_ext
Blocks: 32490
Block groups: 1
Reserved block group size: 7
Created filesystem with 87/8128 inodes and 30604/32490 blocks
./rkpack.sh: 100: bin/linux/ext4/resize2fs: not found
Done.
Creating vendor image
loaded 1488 fs_config entries
Creating filesystem with parameters:
Size: 339943424
Block size: 4096
Blocks per group: 32768
Inodes per group: 6928
Inode size: 256
Journal blocks: 0
Label: vendor
Blocks: 82994
Block groups: 3
Reserved block group size: 23
Created filesystem with 1496/20784 inodes and 78200/82994 blocks
./rkpack.sh: 100: bin/linux/ext4/resize2fs: not found
Done.
Creating product image
loaded 461 fs_config entries
Creating filesystem with parameters:
Size: 229978112
Block size: 4096
Blocks per group: 32768
Inodes per group: 7024
Inode size: 256
Journal blocks: 0
Label: product
Blocks: 56147
Block groups: 2
Reserved block group size: 15
Created filesystem with 470/14048 inodes and 52905/56147 blocks
./rkpack.sh: 100: bin/linux/ext4/resize2fs: not found
Done.
Creating odm image
loaded 16 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
Blocks: 256
Block groups: 1
Reserved block group size: 7
Created filesystem with 24/64 inodes and 159/256 blocks
./rkpack.sh: 100: bin/linux/ext4/resize2fs: not found
Done.
lpmake I 12-02 19:54:58 229 229 builder.cpp:1031] [liblp]Partition system_ext will resize from 0 bytes to 133079040 bytes
lpmake I 12-02 19:54:58 229 229 builder.cpp:1031] [liblp]Partition system will resize from 0 bytes to 1896288256 bytes
lpmake I 12-02 19:54:58 229 229 builder.cpp:1031] [liblp]Partition odm will resize from 0 bytes to 1048576 bytes
lpmake I 12-02 19:54:58 229 229 builder.cpp:1031] [liblp]Partition product will resize from 0 bytes to 229978112 bytes
lpmake I 12-02 19:54:58 229 229 builder.cpp:1031] [liblp]Partition vendor will resize from 0 bytes to 339943424 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
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
1
Can't find out folder
Created out folder
Supported models:
px30 RKPX30
px3se RK312A
rk1808 RK180A
rk3036 RK303A
rk3128h RK312X
rk312* RK312A
rk322* RK322A
rk3229 RK3229
rk3288 RK320A
rk3308 RK3308
rk3326 RK3326
rk3328 RK322H
rk3368 RK330A
rk3399* RK330C
rk356* RK3568
rv1126_rv1109 RK1126
If your model starts with rk312* then its RK312A
Enter your chip model, Eg: RK312X:
RK3568
Android Firmware Package Tool v2.0
------ PACKAGE ------
Add file: level1/package-file
package-file,Add file: level1/package-file done,offset=0x800,size=0x286,userspace=0x1
Add file: level1/Image/MiniLoaderAll.bin
bootloader,Add file: level1/Image/MiniLoaderAll.bin done,offset=0x1000,size=0x719c0,userspace=0xe4
Add file: level1/Image/parameter.txt
parameter,Add file: level1/Image/parameter.txt done,offset=0x73000,size=0x2a6,userspace=0x1
Add file: level1/Image/trust.img
trust,Add file: level1/Image/trust.img done,offset=0x73800,size=0x0,userspace=0x0
Add file: level1/Image/uboot.img
uboot,Add file: level1/Image/uboot.img done,offset=0x73800,size=0x400000,userspace=0x800
Add file: level1/Image/misc.img
misc,Add file: level1/Image/misc.img done,offset=0x473800,size=0xc000,userspace=0x18
Add file: level1/Image/boot.img
boot,Add file: level1/Image/boot.img done,offset=0x47f800,size=0x1de2800,userspace=0x3bc5
Add file: level1/Image/dtbo.img
dtbo,Add file: level1/Image/dtbo.img done,offset=0x2262000,size=0x26f,userspace=0x1
Add file: level1/Image/vbmeta.img
vbmeta,Add file: level1/Image/vbmeta.img done,offset=0x2262800,size=0x1000,userspace=0x2
Add file: level1/Image/recovery.img
recovery,Add file: level1/Image/recovery.img done,offset=0x2263800,size=0x43ef800,userspace=0x87df
Add file: level1/Image/super.img
super,Add file: level1/Image/super.img done,offset=0x6653000,size=0x8e81d50c,userspace=0x11d03b
Add CRC...
Make firmware OK!
------ OK ------
********rkImageMaker ver 2.0********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!
Done.
.....................
Rockchip Kitchen
.....................
.....................
Select level 1,2,3 or q/Q to exit:
q
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l in/
total 2439476
-rw-r--r-- 1 cdarau cdarau 2498015818 Jul 8 00:09 x35.img
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l level1/
total 12
drwxr-xr-x 2 root root 4096 Dec 2 19:57 Image
-rw-r--r-- 1 root root 646 Dec 2 19:50 package-file
-rw-r--r-- 1 root root 4 Dec 2 19:49 projectname.txt
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l level2/
total 2359340
drwxr-xr-x 2 root root 4096 Dec 2 19:53 config
drwxr-xr-x 4 root root 4096 Dec 2 19:53 odm
-rw-r--r-- 1 root root 1048576 Dec 2 19:54 odm.img
drwxr-xr-x 9 root root 4096 Dec 2 19:53 product
-rw-r--r-- 1 root root 229978112 Dec 2 19:54 product.img
drwxr-xr-x 24 root root 4096 Dec 2 19:52 system
-rw-r--r-- 1 root root 1896288256 Dec 2 19:54 system.img
drwxr-xr-x 8 root root 4096 Dec 2 19:52 system_ext
-rw-r--r-- 1 root root 133079040 Dec 2 19:54 system_ext.img
drwxr-xr-x 11 root root 4096 Dec 2 19:53 vendor
-rw-r--r-- 1 root root 339943424 Dec 2 19:54 vendor.img
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$ ls -l out/
total 2440080
-rw-r--r-- 1 root root 2498634314 Dec 2 20:00 x35.img
cdarau@DESKTOP-VT529K8:~/GitHub/AmlogicKitchen$
from amlogickitchen.
Check if RK3566 works
from amlogickitchen.
Same error prompt, although the tool now shows RK3566 in the Chip Info field. I'll try to flash this last ".img" file (the one I produced in my last attempt, when I entered RK3566 as you suggested) with a few more tools, taken from here. Maybe it's a tool thing now, because I'm getting the same error prompt when I try to flash the original ".img" file to the device, the one I'm unpacking & re-packing up. So it doesn't seem to have to do with the image itself, rather with the tool.
Will come back with test results after I have them
from amlogickitchen.
None of the other tools even loaded the image file... I tried:
- Amlogic_Flash_Tool_v6.0.0
- Amlogic_USB_Burning_Tool_v3.2.0
- Android_ROM_Tool_v2.0.3
- RockChip_Batch_Tool_v1.8
- RockChip_FactoryTool_v5.3
Now I'm looking for a newer Rockchip-AndroidTool_Release_v2.84, if possible... It's strange that the OFFICIAL firmware doesn't work with the OFFICIAL tools.
from amlogickitchen.
It's working, @althafvly !
I had to first enter recovery mode on the device, that's why the RKDevTool was not working properly. After I pressed RECOVERY button & POWER button at the same time for a couple of seconds and then release both buttons, the status bar of the tool read "Found One LOADER Device" instead of "Found One ADB Device".
From there onwards, I was able to both load & flash the original ".img" file & the one that I produced with your CLI when I entered RK3568. However, when I tried the other ".img" file I produced (for which I entered RK3566), although the load went well, the actual flashing produced the error in red ("Check Chip Fail").
from amlogickitchen.
Related Issues (20)
- 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
- 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
- Windows repack makes read only partition. HOT 10
- Windows pack block size is 0 during repack and not 4k HOT 7
- 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
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.