Repacking kernel bzImage possible ? - Upgrading, Modifying and Unlocking

Hi all,
I have a kernel running on a android 8.1.0 device.
the kernel binary(x86_64 V4.9 ) is an self extracting lz4 binary image.
If i change bytes in the LZ4 compressed data, kernel still boots. (some compressed text was recognizable..and changing it was seeable in kernel log output)
I can lookup the LZ4 header, and from there extract the compressed vmlinux.
i would like to byte-patch this vmlinux binary..and put it back in the kernel file.
If i edit it, and recompress i get a smaller file.
if i paste that into the original kernel binary (filling the missing space)..there is no boot at all., no kernel msg whatsoever.
i found a compressed size in the header (found from source /arch/x86/boot), but updating that doesn't do the trick.
any idea's ? or know tools for this ?
Thanks!!

Related

Iris Browser MOD to use ramdisk

Dear,
I upload modify version of Iris 1.1.9
This exe will create cache in \Ramdisk\c instead of \Application Data\Iris Browser\Iris.FileCache
Step:
1. Install ramdisk successfully
2. Install Iris 1.1.9 successfully
3. copy disk IrisBrowser.exe replace existing one.
So if you interested in, let's try and please kindly comment the result back.
ramdisk :
http://forum.xda-developers.com/showthread.php?t=382944
Iris:
http://forum.ppcgeeks.com/attachment.php?attachmentid=43319&d=1253988233

[dumped ROM support] WP7 Rom Tools [UPDATED 29.02.12]

UPDATED 29.02.12
htcrie v.0.8.1.85
+ added an updated extract function[gui][com]
+ dumped ROM support (*.D000FF file format)
+ support partitions with unlimited data sector count
download
UPDATED 02.12.11
Some good news.
It is possible to convert all not direct map partitions to partition with FLASH_PARTITION_FLAG_DIRECT_MAP flag.
This gives us increased speed and reduced boot time.
Two days ago, we have successfully tested it with Barin.
How to use:
1. Download htcrie 0.8.1.82
2. Extract partitions:
Code:
htcrie extract /P your_folder\OS.nb
for HD2 users it will be part04.bin
3. In the outputfolder will be created parttbl.cfg text file.
Open parttbl.cfg file in the notepad.
All partitions have DIRECT_MAP value.
It can be 0 or 1 (fo direct map).
4. Change this value for IMGFS, User, or USP partitions.
DIRECT_MAP=1
Save parttbl.cfg file
5. Drag and drop parttbl.cfg file on htcRIE
Will create a new OS.nb file.
UPDATED 27.11.11
htcrie v.0.8.1.82
+ added d000ff to bin extract function [com]
+ support images which was updated via ms update tool [gui][com]
(f.e. all dft freedom roms)
Now we can create your own partition layout for os and set any size of partitions.
We don't need os.nb anymore.
download
How to use:
1. To extract all partitions from a D000FF image file (OS.nb):
Code:
htcrie extract /P <inputfile> [<outputfolder>]
All partitions and parttbl.cfg will be in the output folder.
You can extract IMGFS partition, which was updated via ms update tool (f.e. dft freedom roms).
2. To build a D000FF image file:
Code:
htcrie <parttbl.cfg> (for Drag and Drop)
htcrie build /D <inputfolder> [<outputfile>]
All partitions (logo.bin, ... user.bin) and a parttable.cfg text file must be in the input folder. As option, you can use a parttbl.bin file (first block of the original os.nb) too.
To set a new size of any partition - simply change the BlockCount and Reserved values in the parttbl.cfg file.
THIS TOOL ALLOWS TO BUILD d000ff FILE LIKE ORIGINAL OS
GUI MODE
3. To view and extract contetnt of IMGFS/BLDR/SLDR/NK/LOGO:
Files:
Code:
Select IMGFS -> Select All Items (Click One Item -> Ctrl+A) -> Save selected files
Partition:
Code:
Select IMGFS -> Save selected files
Packages:
Code:
Select IMGFS -> Select SYS/OEM/Packege(s) -> Save selected files
Now You can extract IMGFS content, which was updated via ms update tool (f.e. dft freedom roms).
htcrie v.0.8.1.69
Unlocked Replace function. Support any size of IMGFS. Full version.
How to use:
Code:
htcrie replace /I <imgfs.bin> <os.nb>
download
Thanks a lot to ted973, Football, MagLight for helping me to test this feature, because I do not have any wp7 device.
1. To extract contetnt of IMGFS/BLDR/SLDR/NK/LOGO use htcRIE
Files:
Code:
Select IMGFS -> Select All Items (Click One Item -> Ctrl+A) -> Save selected files
Partition:
Code:
Select IMGFS -> Save selected files
Packages:
Code:
Select IMGFS -> Select SYS/OEM/Packege(s) -> Save selected files
2. To edit default.hv and user.hv use HVEdit_v.2.0.112
You can use drag-and-drop. Create shortcut first.
3. To rebuild IMGFS use imgfsfromdump (or other tool), but don`t forget a new cecompr_nt.dll (with XPH compression type support).
You can use cecompr7_nt.dll from htcRIE.zip, but rename to cecompr_nt.dll first.
4. To replace IMGFS:
Code:
htcrie replace /I <imgfs.bin> <os.nb>
First WP7 Custom ROMs:
HTC Leo - Project "moon light" [WP7] [RUS]
HTC Leo - Project WыньPhone7 [WP7], HTC HD2 / HTC T8585
Release history:
---------------------
V. 0.8.1.82
+ added d000ff to bin extract function [com]
+ new extract function with support images which was updated via ms update tool [gui][com]
(f.e. all dft freedom roms)
V. 0.8.1.79
+ added bin to d000ff builder [com]
V. 0.8.1.69
+ unlocked Replace function [com]
Support any size of IMGFS. Full version.
V. 0.7.0 46
+ added the ability to increase the size of IMGFS partition
(MaxDataSize: 244 Mb)
+ user Partition not present in ROM more
(640 Kb+ )
+ custom Logo
V. 0.7.0.35
+ added IMGFS partition write support (WP7)
V. 0.7.0.19
+ support Samsung OMNIA 7 (.nb0 file format)
+ support htc OS.nb rom part (only WP7)
V. 0.7.0.15
+ extract LOGO partition from OS
+ extract .bmp(s) from LOGO partition
V. 0.7.0.14
+ extract SLDR1 (SLDR2) partitions from OS
+ extract files and packages from SLDR1 (SLDR2)
V. 0.7.0.11 (Test) Only Read and extract functions
+ Initial WP7 Support
II. WinCE Registry Editor (mRegEdit), v.0.5.5
An application to work with registry files with MDI graphic interface.
- supported files: .hv, .rgu
- not supported yet: .reg, .provxml, .fdf
Release history:
---------------------
V. 0.5.5
+ Support .rgu files
V. 0.5.4
+ Added search function
V. 0.4.0 (Beta)
AnDim
your the man , cool cool
AnDim said:
New version with WP7 Support.
htc ROM Image Editor V. 0.7.0.11 (Test) Only Read and extract functions.
+ Support WP7
AnDim
Click to expand...
Click to collapse
I test this tool, for me working good, thanks Bro
WOW , 50 views and only 2 thanks
Here is my thanks!!!
This type of programs really helps we (advanced users) to get more from the stock ROMs.
ceesheim said:
WOW , 50 views and only 2 thanks
Click to expand...
Click to collapse
I was afraid of this happening when it was introduced (people complaining about being thanked).
Thanks hope we can make roms
Sent from my GT-I9000 using Tapatalk
thx andim
Small Info:
-> Not working/support for old/first image system WP7.... (Mondarian/Spark, maybe this os only is test)
do you think writing will be possible?
indiekiduk said:
do you think writing will be possible?
Click to expand...
Click to collapse
Yes, if only I get source code from this program, and mod. any options
indiekiduk said:
do you think writing will be possible?
Click to expand...
Click to collapse
Done, but not tested ...
AnDim
thx i'm waiting for the tools for HD2,a fans of WP7
Great! Thank you!
Great, just what we need. More proprietary (closed source) Russian crap.
WithinRafael said:
Great, just what we need. More proprietary (closed source) Russian crap.
Click to expand...
Click to collapse
isn't that a little bit rude to say to someone that just made a tool to dump parts of a rom ?
but what do you think of making one your self and make the source open ?
ok I wait for your tool then and the source code, when you are on it you could also make use a tool to recmod modules from a wp7 dump (ofcourse open source)
WithinRafael said:
Great, just what we need. More proprietary (closed source) Russian crap.
Click to expand...
Click to collapse
Complaining about closed source, marginally reasonable. Complaining about Russian-ness, not cool. Keep it friendly and good.
Thanks
These are the steps we need to get the chefs in action.
Updated.
v.0.7.0.14
+ Added functions to the Os editor:
extract SLDR1 (SLDR2) partitions from OS;
extract files and packages from SLDR1 (SLDR2);
AnDim
Good work bro
Keep it up dude, to all those who are complaining, better do it yourself, this bro is taking his time and helping us, and he deserve respect. thx brother.

[KERNEL] DevCK 1.0

DevC Kernel 1.0
Tested and cooked for I9000(Int). Not tested on others!
DNT WORK ON I9000B
Main Features
Based on lastest source from Samsung
Take control of tweaks by script
Load K modules by script
Sound tweaks
300HZ
JHash3
Startup script support
Support adb remount
Compiled with O3
In progress...
CWM 3 or, maybe, 4
EXT4
Custom bootanimation...
How to install
- burn image with Odin
- copy "ldr_exec.sh" script to "/system/etc/init.d"
For rooting copy "su" to "/system/xbin" and "Superuser.apk" to "/data/app" or "/system/app" from "Superuser.rar".
If you like to custom more, edit "ldr_exec.sh" and add more tweaks, or create new scripts with prefix "dvc_".
This is my new little toy
the approach is the kernel does not contain any unused features, eg SU and APKs.These two little programs be must pulled to the phone by "adb". Why put "su" and "Superuser.apk" to the initramfs? Only one copy needed! The basic focus is "i can have control over init!" and the magic is "ldr_exec.sh" and "adb remount"
In the same manner, all tweaks reside on a single script. The user can edit and change, add or remove any of these...
If u choice to use "CIFS", for example, u can add this module to "system/lib" or any other location and add a single line to the script "insmod /system/lib/cifs.ko" and enjoy!
all progress over the init resides on "/data/dvcinit.log".
The only one detail is: the ko has contains "vermagic" string with "2.6.35.7 preempt mod_unload ARMv7".
To root u try:
- unrar "Superuser.rar" on any location;
- on computer type "adb remount";
- push "su" to /system/xbin;
- push "Superuser.apk" to "/data/app" or "/system/app".
and nice!
This is not perfect, but it is an approach. I dnt like for cooked kernels that contains closed tweaks..
[20110724]
- At this time i beginning working in a version of CWM for my kernel
Actually recovery inside is a 3e...
Attaching a version to burn over CWM (thanks siky_dude!!) (not tested for me)
[20110725]
Sources from Samsung Open Source
Patch for devs attached (devck.patch.rar)
Another Kernel
Lets have a look!
A Base for playing/adding/tweaking with...right? ;D
You have to ROOT it yourself?? This is BASIC man! xD
Sent from my GT-I9000 using XDA App
I wish you wealth.
Sent from my GT-I9000 using XDA Premium App

General files and there meaning:info

RAR
Rar is a data compressor algorithm. By using this we can decrease size of our files. It is bit slow then other file compressor softwares.
ZIPLT
ZipIt is commonly used software for file compressor. Normally zip is used on window based machines. It compresses files up to 8%.
GZIPLT
GzipIt is also used for file compression. It is used when huge files are compressed. It is very beneficial when we need more space and save time. It compresses files using very low space.ZlibIt is software library to compress data. It is abstracted from deflate compression. It is used for maximum number of data. Errors can be eliminated.
DEFLATElt
DEFLATEIt is a lossless data compression algorithm. It uses LZ77 algorithm and Huffman coding to compress data. Deflate streaming consist of blocks. Compression is carried out in two steps.TarIt is also a compression tool for data and file compression. Gzip compression tool relies on tar for compression.
Rar vs Zip vs Gzip vs Zlib vs Deflate vs TarAbove mentioned all the file and data compression algorithms are mainly seems to be same to each other. But there is a little difference between all of them. The difference between Rar and zip is, Rar compression is bit slower then zip file compression. Rar is mainly used in window based machines and zip is used for UNIX based machines. Rar is old and mow a day zip is mostly used. The difference between zip and Gzip is, Gzip is used for large number of files to be compressed. Low space and time and time saving is another difference of Gzip from Rar and zip. Difference between deflate and Zlib is, Zlib is an abstraction of deflate and it is used for compression of huge files. Deflate is supported by Zlib and it is very good compression tool for variety of data within minimal resources of system.
IF ANYONE ELSE HAS INFO OR ANY INPUT PLEASE POST AS I LOVE TO LEARN AMD LOVE TO SHARE. ALSO IF ANY OF THIS INFO CAN BE EXPLAINED BETTER OR WITH MOR DETAILS THATS NICE TOO.
"JDEVIL" A nickname gave to me years ago by coworkers . I don't worship or associate with Satan.

Build the linagesos 17.1 for oneplus can not boot the device

Hi
I get the source codes following https://thinkpadder1.github.io/lineage_wiki/devices/guacamole/build.
and then i exe the ./extract-files.sh to pull the files frome the rooted oneplus 7pro device(some files is lost ,so i modify some config to make sure the building can be success). and then building the souce code to get the zip file named lineage-17.1-20200610-UNOFFICIAL-guacamole.zip(size about 540M).
I try to download the zip file inot the device, but the device can not to boot-up,it always on the page as "The boot loader is unlocked and software integrity cannot be guaranteed.....",but i try to download the official zip named lineage-17.1-20200422-nightly-guacamole-signed.zip(file size about 740M),then it boots up and works well.
I compare the files (official zip and self-build zip),the differences between them :
1.file size (official 740M, self-build 540M)
2.vendor_manifest.xml file ,the official zip contais the config but self-build not:
<hal format="hidl">
<name>android.hardware.gnss</name>
<transport>hwbinder</transport>
<fqname>@1.1::IGnss/default</fqname>
<fqname>@2.0::IGnss/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.gnss</name>
<transport>hwbinder</transport>
<fqname>@1.0::IGnss/gnss_vendor</fqname>
</hal>
<hal format="hidl">
<name>vendor.qti.gnss</name>
<transport>hwbinder</transport>
<fqname>@1.2::ILocHidlGnss/gnss_vendor</fqname>
<fqname>@2.1::ILocHidlGnss/gnss_vendor</fqname>
<fqname>@3.0::ILocHidlGnss/gnss_vendor</fqname>
</hal>
I donot know where is the error for my building, anyone could help me? thanks very much.

Categories

Resources