[Q] Repacking kernel... - General Topics

Hi guys, I'm here because I can't re-compile my MediaTek-based device kernel. The thing is that I decided to make the kernel with swap support from Source (it's the Alcatel One Touch Idol 6030a, so it's source is available). Kernel compiled successfully, only 2 warnings. The problem now, is that the packer doesn't seem to recognize something that I can't understand while trying to re-pack it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you can see in the above photo, the "boot.img" compiled successfully.
But then, after deletting original kernel from output folder and adding the one I made (zImage), setting it's old name (boot.img-kernel.img), the binary seems to crash with it.
As you can see, there's something that my OS (or the binary itself) can't understand.
[email protected]:~/Descargas/mtk-tools-master$ ./repack-MTK.pl -boot boot.img-kernel.img boot.img-ramdisk/ boot-new.img
MTK-Tools by Bruno Martins
MTK repack script (last update: 06-01-2015)
Repacking boot image...
Ramdisk size: 2013 bloques
Build information:
Base address and offsets:
Base address: 0x10000000
Kernel offset: 0x00008000
Ramdisk offset: 0x01000000
Second stage offset: 0x00f00000
Tags offset: 0x00000100
Other:
Page size (bytes): 2048
ASCIIZ product name: ''
Command line: '109f10eed3f021e3'
/home/facu/Descargas/mtk-tools-master/mkbootimg: 1: /home/facu/Descargas/mtk-tools-master/mkbootimg: ELF: not found
/home/facu/Descargas/mtk-tools-master/mkbootimg: 2: /home/facu/Descargas/mtk-tools-master/mkbootimg: Syntax error: "(" unexpected
Click to expand...
Click to collapse
My OS is spanish, as my native language, sorry xD
Can anyone help me please? :crying:

Related

[Cook]Porting Section XIP - Windows Mobile ® Standard - All Device

Hi All
I create new Thread - Porting Section XIP
to help understand the structure of porting the kernel
all questions, please ask in this topic
------------------------------------------------------
Step: 1
If you have extract xip (file - xip.bin)
Create two folders:
-Old_XIP
-New_XIP
*Copy files from Porting_Kernel_Tools.zip to: Old_XIP and New_XIP
*Copy xip.bin, from your device to Old_XIP
*Copy xip.bin, from another device to New_XIP
In both two folders using XiPPort.exe, extract the files xip.bin - create OUT Directory and Packages
Sample Location Directory:
Old_XIP:
Old_XIP/OUT/FILES/
Old_XIP/OUT/MODULES/
Old_XIP/Packages/FILES/MSXIPKernel
Old_XIP/Packages/FILES/MSXIPKernelLTK
Old_XIP/Packages/FILES/OEMXIPKERNEL
New_XIP:
New_XIP/OUT/FILES/
New_XIP/OUT/MODULES/
New_XIP/Packages/FILES/MSXIPKernel
New_XIP/Packages/FILES/MSXIPKernelLTK
New_XIP/Packages/FILES/OEMXIPKERNEL
*If you have, the more directories in Old_XIP, they must remain
Step: 2
Now you must replace files in New_XIP/OUT from Old_XIP/Packages:
PARTHDR.txt
ROMHDR.txt
FILES/OEMXIPKERNEL
MODULES/OEMXIPKERNEL
*If you have, the more directories in Old_XIP, you must to replace
*Remember - you must to replace the file imgfs.dll
Step: 3
Run program "XIPAddrTools.exe", click "Sel Work Folder" and select folder New_XIP
Now we have to change the following addresses, so that there was no red line, between modules
Step: 4
In the step, you must only packing new xip
Helpful link: http://forum.xda-developers.com/showthread.php?t=480847
Always get this error
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You must moved a file, not basic, preferably from OEMXIPKERNEL, to OEM(OS Image)
is it possible just to port 6.5 kernel to official 6.0 ?
possible

User manual for translation Android software into Your's native language

I'm posting this on behalf of member zerabot.
Hi all.
Immediately apologize for my English, writing for the first time in 7 years)
If the moderators to correct mistakes, I'm not offended.
Maybe what I'll write to you is not new, but maybe useful to someone.
This is user manual for translation Android software into Your's native language.
Heare original of this instruction on russian
Download and install
Check My computer->Properties->additional->environment variables->Path
Is way to java heare? If no, add it.
this and this download and unpack to c:\windows
run console
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
in command line
apktool d <way to *.apk> <way to dir>
download
http://artfulbits.com/Android/Localizer.aspx
open whith it <way to dir>
press + and add 2 letter code for you language
Translate all files from right spoiler
Delete not used files
When done in command line
apktool b <way to dir>
it create folders dist and build we need *.apk file in next steps from dist folder
in first time you need a key
to generate it in command line
keytool -genkey -alias <YourAliasName> -keyalg RSA -validity <NumberDays> -keystore <YourKeystoreFilename>
And finaly in command line
jarsigner <way to *.apk from dist filder> <YourAliasName>
Enter you password on keystore. And be happy.
This may be of some assistance to users, applies to any rom.
http://forum.xda-developers.com/showpost.php?p=8268893&postcount=3

Your proper currency – installed with tiwili - take it, work it, leave it

Hi,
this is what you will get by zip-file but you are able to customize for your own:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Further informations of installation method:http://forum.xda-developers.com/showthread.php?t=1232479
Script updates HTC_IME.apk and changes alternative symbol on "f" (currency symbol).
You can change it to every symbol you like to have. Updatefiles put "€" -symbol on keyboard.
What is to do?
Download & extract zip-file
If you´d like to have "€"-Symbol on keyboard and your language settings have no proper files (or you are german):
Goto 5.
If you´d like to have "€"-Symbol on keyboard and your language settings have proper files:
Zip-file contains proper qwerty_COUNTRYCODE.xml and land_qwerty_COUNTRYCODE.xml in CountryFiles folder. Search your ones and change this line in both files:
Code:
<key codes="0x0066" label="f" topLabel="[COLOR="Red"][B]€[/B][/COLOR]" popupCharacters="@string/alternates_for_f_lower" accentType="3" alignIndex="0" xt9idx="13" />
copy files to \UpdateKeyboard\res\xml-hdpi\*.*
Goto 5
If you´d like to have "MySymbol"-Symbol on keyboard change \values\strings.xml in folder UpdateKeyboard\res\values and change
Code:
<string name="alternates_for_f_lower">[COLOR="Red"][B]MySymbol[/B][/COLOR]</string>
Do the same with above specified line in land_qwerty.xml and qwerty.xml in \UpdateKeyboard\res\xml-hdpi\*.* Or edit proper settings files like in 3.
run tiwili_ws.bat
Strings.xml is for "what happens while pressing".
Files in xml-hdpi are for the right look.
As always: I´m not responsible for any damage etc. If you want to go back run recovery.bat.

[DEV][LINUX] CM9 Build Script

Hey all,
First I would like to say this is not my work this is based off Nicandris's CM from scratch script (forum here).
This bash/sh script builds CM9 from source and is only to be used once the build environment and sources have been downloaded correctly. So far I have only tested this with my Galaxy Nexus on Mint 12 but it should work with other devices and on other distros.
Instructions:
1. Download the provided zip and extract it, then place "build.sh" in the "~/bin" directory (/home/user/bin).
2. Then open up "build.sh" using a text editor like gedit and edit the variables to suit your environment, EXAMPLE :
Code:
#Variables Start
#Enter Device Vendor Here eg "moto" or "samsung"
vendor="samsung"
#Enter Device Name Here eg "maguro" or "toro"
device="maguro"
#Enter Build Source Here (Usually "/home/user/android)"
source="/home/kstarz/android"
#Enter Folder Where You Want Builds To Be Stored eg "/home/user/Desktop/Builds"
build_location="/home/kstarz/Desktop/Builds"
#Enter Source For AndroidSDK eg "/home/user/androidsdk"
sdk_source="/home/kstarz/Programs/androidsdk"
#Enter Location Where The Build Will Be Sent To On Your Device
push_to_phone="/sdcard/Download"
#Enter Your Name/Nickname (For Modversion)
nick="kstars"
#Variables End
3. Then open up a terminal and give the file permission to be executed as a program:
Code:
chmod a+x ~/bin/build.sh
4. Close that terminal and open up a new one then enter the code below to start the script.
Code:
build.sh
The rest is up to you
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have tried to make this as simple as possible for users out there but if you have any issues I will try and respond.[/SIZE]
Full credits go to:
*Cyanogenmod* & *teamdouche* - For creating CM
*Nicandris* For creating the base for this script.
Remember if I helped you in anyway please press the thanks button!
Changelog
14.05.2012 - v1.0
- Initial Release
17.05.2012 - v1.1
- Minor Bugfix

[DEV] Boot Control

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Boot Control is an Android app that toggles the active boot slot.
Notes
It uses the same HIDL interface as bootctl to read the data and make the change.
Credits
@badabing2003 for the idea and for testing the many builds of both the app and bootctl
Latest Update
2023-06-22 v1.0.0-alpha02
capntrips said:
(...)
Latest Update
2023-06-22 v1.0.0-alpha02
Click to expand...
Click to collapse
BootControl-main.zip = 120 KB
BootControl-v1.0.0-alpha02.apk = 38.8 MB
Why such a drastic difference between SC and APK?
ze7zez said:
Why such a drastic difference between SC and APK?
Click to expand...
Click to collapse
The size of the source code has basically zero bearing on the size of the APK. As for why the APK is so large, I can sum that up with a link to one line in the app's build.gradle file.
The longer explanation is R8 breaks HIDL for some reason. I tried a variety of ProGuard rules with no luck. If I build it with Soong instead of Gradle it works fine, but it can't be installed on older devices. I may have been able to find a workaround for the latter issue, but it's much more convenient to build it with Gradle. Beyond that, the Soong build had issues with the Java HIDL interface, so I had to make a C++ library for HIDL and use JNI to interface with that, making the whole thing a bit more complex.
The broken minified Gradle build is ~8mb and the limited Soong build is ~14mb.
@capntrips
On p6, you need to disable verity (but not verification) in vbmeta on both slots to get Boot Control to switch slots without getting a corruption message.
Can the tool be modified to perform this task?

Categories

Resources