here is a tutorial by Mr. Rager on using your own rom in dual boot rom. Just substitute "squished" with your rom.
Okay, first you need to download the CM-AOSP-GB-shell.zip.
1. Open up both of the zips (I'm using Ubuntu 10.10, I think Windows uses 7zip). Now two windows should be displayed, respectively.
2. Drag-n-drop the /sdcard folder from the CM-AOSP-GB-shell.zip (the shell) straight into the other window. It should add it without issues. So, now the squished.zip has the following folders: META-INF, system, boot.img, and sdcard.
3. Now copy the boot.img from the shell into the other .zip. It should over-write the boot.img in the squished.zip.
4. In the shell, go into dualrom/app and copy the DRSettingsv1.apk file to system/app in the squished.zip.
5. In the shell, go into dualrom/bin and copy the symlink.sh file to system/bin in the squished.zip.
6. In the shell, go into dualrom/etc and copy the reboot AND the vold.fstab files to system/etc in the squished.zip
7. In the shell, go into dualrom/lib/modules and copy the bcm4329.ko file to system/lib/modules in the squished.zip.
8.1 Now, in the squished.zip, go to META-INF/com/google/android/ and open up the updater-script. In the resulting window, look for the line:
Code:
getprop("ro.product.board") == "inc");
It's the second line, but below it type:
Code:
run_program("/sbin/mount", "/dev/block/mmcblk0p3", "/system");
This tells the phone to mount the emmc. Just in case you didn't know. ;-)
8.2 Now, look for the lines:
Code:
format("yaffs2", "MTD", "system");
mount("yaffs2", "MTD", "system", "/system");
Delete those two lines, and add:
Code:
package_extract_dir("sdcard", "/sdcard");
8.3 In the same window, look for:
Code:
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
It's towards the bottom, and add below it type:
Code:
set_perm(0, 0, 0777, "/system/etc/reboot");
Now the DR app works. Save and close. It should update the squished.zip, but to make sure open the updater-script back up, and check to see if those two lines are there. (Yeah, no more problems for me with SR4 and Salvage as far as the DR app ^-^, thanks to you treken. I can now go back and forth to my hearts content, no pun intended.)
9. Now you can close the zip back up and follow the 1,2,3 flash steps, except replace 3 with your squished.zip. I tested it and it works, for me at least. If you are in Ubuntu, and it asks you to update after you close the text editor, update it.
Related
Hi,
Iam trying to start a fullwipe.sh during the updater-script prozess. It works on the Optimus Speed, but it doesn't work on the DEFY. I know that the file is copied in the right folder because I tried it also with an SDCard, but it doesn't get executed.
Code:
ui_print("Mounte Partitionen...");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/dbdata");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/sdcard");
# Fullwipe
delete_recursive("/tmp/vorkKernel");
package_extract_dir("tmp", "/tmp");
set_perm(0, 0, 0777, "/tmp/vorkKernel/busybox");
set_perm(0, 0, 0777, "/tmp/vorkKernel/fullwipe.sh");
run_program("/tmp/vorkKernel/fullwipe.sh");
As I said it works flawless on the Optimus Speed and maybe somebody know why it doesn't work on the Defy. Are there maybe different mounts or different names for some codes.
It works until it should run_program and it doesn't have to do something with the fullwipe script because I tried it even without any code only giving out some ui_print and it didn't work.
Hopefully somebody can help, because I am getting tired of trying. The fullwipe.sh is added to this post
Are you sure the script has right partitions because the updater script itself looks good as long as the binary matches it
TweetyPeety said:
Hi,
Iam trying to start a fullwipe.sh during the updater-script prozess. It works on the Optimus Speed, but it doesn't work on the DEFY. I know that the file is copied in the right folder because I tried it also with an SDCard, but it doesn't get executed.
Code:
ui_print("Mounte Partitionen...");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/dbdata");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/sdcard");
# Fullwipe
delete_recursive("/tmp/vorkKernel");
package_extract_dir("tmp", "/tmp");
set_perm(0, 0, 0777, "/tmp/vorkKernel/busybox");
set_perm(0, 0, 0777, "/tmp/vorkKernel/fullwipe.sh");
run_program("/tmp/vorkKernel/fullwipe.sh");
As I said it works flawless on the Optimus Speed and maybe somebody know why it doesn't work on the Defy. Are there maybe different mounts or different names for some codes.
It works until it should run_program and it doesn't have to do something with the fullwipe script because I tried it even without any code only giving out some ui_print and it didn't work.
Hopefully somebody can help, because I am getting tired of trying. The fullwipe.sh is added to this post
Click to expand...
Click to collapse
Sent from my MB520 using XDA App
You mean the run_program mount scripts? But they worked usually everytime and the tmp folder and the script should even start but it even doesn't start. I will try tonight something different and mount it with old stuff. What's strange ist that it says run_program and than sbin/busybox but I looked on the defy after it and on my Speed, but there is no busybox file in the sbin???? How this can work or isn't needed.
Sent from my Optimus 2X using Tapatalk
I think it has to be xbin instead of sbin
thanks for the help, but I tried it also with xbin and nothing. I tried nearly everything and wanted to test if a normal shell script even works.
Code:
#!/system/bin/sh
mount /system
rm /system/app/Email.apk
unmount /system
or something like this
Code:
#!/system/bin/sh
mount -o rw /system
rm /system/app/Email.apk
unmount /system
nothing, if I execute this Shell Script at the boot with the normal firstboot in the ini.t folder it does nothing. This is a desaster, is something different with MIUI and Shell Scripts or why any Shell Scripts doesn't work in the bloody phone.
Do I have to mount differently, to I have to use another sh Folder. I checkt every bin and xbin folder and tried different folders, nothing.
ANY IDEA:???
Try a different binary and edify script... there are like 4 different kinds, all with different mount codes
Sent from my MB520 using XDA App
rdannar said:
Try a different binary and edify script... there are like 4 different kinds, all with different mount codes
Sent from my MB520 using XDA App
Click to expand...
Click to collapse
Can you tell me them?
Sent from my Optimus 2X using Tapatalk
Do a search for updater zips on xda... there are several good tutorials each binary has to have matching mounts to that particular binary
TweetyPeety said:
Can you tell me them?
Sent from my Optimus 2X using Tapatalk
Click to expand...
Click to collapse
Sent from my MB520 using XDA App
just in case which someone else had this issue
in update binary
Code:
assert(run_program("/tmp/install.sh") == 0);
and this is the content of the install.sh
Code:
#!/sbin/sh
dd if=/tmp/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot || exit 1
exit 0
Hello
I use dungphp's RUNNYMEDE 1.05.401.4 R2 - Sense 3.5[v1.9][HierOS 1.8.5 noBTfix-2wcr] ROM and was not able to change gps.conf with ES Explorer (missing root) respectively searched a way to do with out the need of a ROOT-Explorer.
I will share what i've done to solve this problem for me:
1. Downloading Fix Flash player with video streaming from here
2. extracting the ZIP file
3. delete folders: sd-ext and system
4. create folders: system/etc and etc
5. create your own gps.conf.
Mine is:
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
GPS1_CLEANUP_ENABLED=0
Click to expand...
Click to collapse
6. copy gps.conf to the folders: etc and system/etc
7. edit the file: META-INF\com\google\android\updater-script
Should look like this:
ui_print("------------------------------------------------");
ui_print(" UPDATE anythings to the builds ");
ui_print(" From DUNGPHP ");
ui_print("------------------------------------------------");
show_progress(0.500000, 0);
mount("MTD", "system", "/system");
mount("MTD", "etc", "/etc");
delete("/system/etc/gps.conf");
delete("/etc/gps.conf");
package_extract_dir("system","/system");
package_extract_dir("etc","/etc");
set_perm(1000, 1000, 0644, "/system/etc/gps.conf");
set_perm(1000, 1000, 0644, "/etc/gps.conf");
show_progress(0.000000, 0);
unmount("/system");
unmount("/etc");
ui_print("All done !");
Click to expand...
Click to collapse
8. Pack the folders META-INF, etc and system to a zip file (Fix_gps_conf.zip)
9. Copy this zip-file to your sd-card
10. Shut down your device and start CWM
11. Choose Install zip file from SD card and choose your zip
12. When done, reboot
Hey guys, made an tutorial on how to make an CWM installable .zip
Requirements
Notepad++
An CWM/Feamod installable .zip for your device
Instructions:
1. Get yourself an CWM installable .zip for your device.
2. Extract the .zip
3. Go into the META-INF folder, delete CERT.RSA, CERT.SF and MANIFEST.MF.
4. go to META-INF/com/google/android
5. Right-Click on updater-script and select Notepad++
6. You see an script. Edit it. If you want to extract the folder (zip)/system/media/audio/ui use this script:
Code:
package_extract_dir("system/media/audio/ui", "/system/media/audio/ui");
ui_print("text"); means the text shown when you install the .zip in CWM.
run_program("text"); means that CWM runs a program
delete("/system"); means that you delete /system
package_extract_dir("framework", "/system/etc"); means that the files in /system/framework are extracted in /system/etc (on the device)
Make the script. My script for my iPhone Sounds is
ui_print("iPhone-Sounds by FlorisNL");
Code:
show_progress(1.000000, 0);
mount("ext4", "/dev/block/mmcblk0p15", "/system");
set_progress(0.400000);
package_extract_dir("system/media/audio/ui", "/system/media/audio/ui");
set_progress(0.800000);
unmount("/system");
set_progress(0.900000);
ui_print("Installed Iphone-Sounds. Enjoy.");
set_progress(1.000000);
When your done, create an .zip with 7z. and test it. If you still got problems, feel free to post it in this topic.
(Sorry for my poor english sometimes ;p)
Floris
No need to make CWM flashable mod for audio files.
Put ogg/m4a/mp3 files in
sdcard/Alarms
sdcard/Notifications
sdcard/Ringtones
Reboot and media scanner will make them available in Settings > Sounds.
sdcard/Ringtones/.nomedia <- (0 size file)
Reboot and media scanner skip the folder sdcard/Ringtones
But I want to know. And im not porting ringtones only but also lock sounds, camera shutter sound, etc.
Sent from my GT-I9001 using xda premium
Then you must promise not to include aiPhaun sounds... :*
I don't want to be held responsible for distributing that to Android platform :\
O-T said:
Then you must promise not to include aiPhaun sounds... :*
I don't want to be held responsible for distributing that to Android platform :\
Click to expand...
Click to collapse
Lol ok, it was just an idea. I just like the shutter sound and the lock sounds of the iphone but I prefer Android.
Just take a normal zip for your device, extract it, look at the file in META-INF\com\google\android --> updater-script (edit only with notepad++ under windows os, otherwise with normal notepad or other software the line endings might get converted from UNIX style to windows style which will not work!)
Files to be copied will most likely be in a folder structure like \system\YourFile.
Be sure to remove in \META-INF files CERT.RSA, CERT.SF and MANIFEST.MF.
Those are the files that gurantee the file is correct and integer ("signed zip") will become invalid after repacking.
Then pack everything with 7zip (with format .zip and lightest compression) and make sure that when you open up your zip META-INF is in the zip root.
More information on updater-scripts can be found on XDA or google with search for edify script.
What do you exactly mean with a zip for your device? Another mod?
Sent from my GT-I9001 using xda premium
Yes. For example, this is the start of crybert's AIO package script for 9001.
Code:
ui_print(" AIO - Package v1 by crybert ");
ui_print("**********************************");
ui_print(" root ");
ui_print(" busybox ");
ui_print(" init.d ");
ui_print(" custom bootanimation ");
ui_print(" FeaModRecovery 1.4 ");
ui_print("**********************************");
ui_print(" Credits: ");
ui_print(" manveru0 - FeaModRecovery ");
ui_print(" KeksKlip - Root ");
ui_print(" ");
ui_print("**********************************");
show_progress(1.000000, 0);
ui_print("Preparing device");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
package_extract_dir("system", "/system");
set_progress(0.200000);
ui_print("Activating SuperUser");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_progress(0.400000);
wintel_mac said:
Yes. For example, this is the start of crybert's AIO package script for 9001.
Code:
ui_print(" AIO - Package v1 by crybert ");
ui_print("**********************************");
ui_print(" root ");
ui_print(" busybox ");
ui_print(" init.d ");
ui_print(" custom bootanimation ");
ui_print(" FeaModRecovery 1.4 ");
ui_print("**********************************");
ui_print(" Credits: ");
ui_print(" manveru0 - FeaModRecovery ");
ui_print(" KeksKlip - Root ");
ui_print(" ");
ui_print("**********************************");
show_progress(1.000000, 0);
ui_print("Preparing device");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
package_extract_dir("system", "/system");
set_progress(0.200000);
ui_print("Activating SuperUser");
set_perm(0, 0, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
set_progress(0.400000);
Click to expand...
Click to collapse
This is my script how it's now. It is installing but its not replacing the Lock.ogg - Unlock.ogg - TW_Unlock.ogg files... Can you help me?
Code:
ui_print("iPhone-Sounds by FlorisNL");
show_progress(1.000000, 0);
mount("MTD", "/system/media/audio/ui", "/system/media/audio/ui");
set_progress(0.400000);
package_extract_dir("system/media/audio/ui", "/system/media/audio/ui");
set_progress(0.800000);
unmount("/system/media/audio/ui");
set_progress(0.900000);
ui_print("Installed Iphone-Sounds. Enjoy.");
set_progress(1.000000);
My Folder:
Code:
system/media/audio/ui/Lock.ogg TW_Unlock.ogg Unlock.ogg
Code:
META-INF/com/google/android/updater-binary and updater-script
Mount command seems wrong.
Sent from my GT-I9001 using XDA App
FlorisNL said:
This is my script how it's now. It is installing but its not replacing the Lock.ogg - Unlock.ogg - TW_Unlock.ogg files... Can you help me?
Code:
ui_print("iPhone-Sounds by FlorisNL");
show_progress(1.000000, 0);
mount("MTD", "/system/media/audio/ui", "/system/media/audio/ui");
set_progress(0.400000);
package_extract_dir("system/media/audio/ui", "/system/media/audio/ui");
set_progress(0.800000);
unmount("/system/media/audio/ui");
set_progress(0.900000);
ui_print("Installed Iphone-Sounds. Enjoy.");
set_progress(1.000000);
My Folder:
Code:
system/media/audio/ui/Lock.ogg TW_Unlock.ogg Unlock.ogg
Code:
META-INF/com/google/android/updater-binary and updater-script
Click to expand...
Click to collapse
Folders are ok.
script:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
package_extract_dir("system", "/system");
All the rest is unneeded ui stuff. Nice to look at, not necessary...
Thank you so much! I did it http://forum.xda-developers.com/showthread.php?t=1502660 here is the result so far
Sent from my GT-I9001
Hi Floris,
Thanks for changing this into a tut, good job!
Regards,
Nika.
And be sure if you extracted the zip to a directory, when you zip back, zip what's INSIDE the folder and not the folder... yeah, I did that...
The updater-script must also be in UNIX format (definitely, but that mistake I didn't make... )
With CWM 6.0.4.4 you can zip with the "Ultra" compression in 7-zip and CWM will manage to open it.
Hi, can anyone help me with this
trying to create own package which CWM still fails to install
gives error E: failed to open update.zip (bad)
Aborted
Q1: Am I require to use 7zip and lightest compression?
Q2: what actually does the mount("ext4", "...) command do and is it required to use?
Q3: if I want to put custom apk file into /system/app/ and set rw-r-r permissions for it, which command do I use?
bflmpsvz said:
Hi, can anyone help me with this
trying to create own package which CWM still fails to install
gives error E: failed to open update.zip (bad)
Aborted
Q1: Am I require to use 7zip and lightest compression?
Q2: what actually does the mount("ext4", "...) command do and is it required to use?
Q3: if I want to put custom apk file into /system/app/ and set rw-r-r permissions for it, which command do I use?
Click to expand...
Click to collapse
A1: I always just zipped it, never looked at the compression quality. Just make sure to make a ZIP and not RAR or 7Z
A2: It mounts your system so you can write to it. Make sure to use an example mount command from a working ZIP of someone else for your specific device. The mount command is different in every device. On some recoveries with rooted ROMs you can use:
Code:
run_program("/sbin/busybox", "mount", "/system");
A3: For instance something like this:
Code:
show_progress(1.000000, 0);
ui_print(" Mounting SYSTEM...");
run_program("/sbin/busybox", "mount", "/system");
set_progress(0.100000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.400000);
ui_print(" Setting /system/app/NAME.apk permission to 644...");
set_perm(0, 0, 644, "/system/app/NAME.apk");
set_progress(0.600000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.900000);
ui_print("Install complete...");
set_progress(1.000000);
Why not use ADB for something like this (from your PC)?
Code:
adb remount
adb push NAME.apk_here /system/app/
adb shell chmod 644 /system/app/NAME.apk
adb reboot
Regards,
Nika.
Nice. I've found the error source - some files names had international accents. Now install passes to the end.
But another problem I have is that my files aren't mirrored into system.
Is package_extract_dir("system", "/system") recursive or do I have process every nested folder in it for extraction?
system\fonts
system\media\audio\alarms
system\media\audio\notifications
system\media\audio\ringtones
system\etc
system\bin
system\app
My script
Code:
ui_print("Integrating own fonts, sounds and customizations into system");
show_progress(1.000000, 0);
set_progress(0.000000);
package_extract_dir("system", "/system");
set_progress(1.000000);
ui_print("Installed custom files. Enjoy.");
Finishes successfully but when I boot into OS, the files aren't in place, and I install this zip as last package.
Looks to me like you're not mounting system. It therefore cannot add the files. Yes, with package_extract_dir it recursively extracts all files...
Verstuurd vanaf mijn E380 met Tapatalk
---------- Post added at 07:56 PM ---------- Previous post was at 07:52 PM ----------
BTW, in most cwm you can also mount system from the menu. Try that first and then run your script. Again, mounting system is required when you want to copy file to it. Figure out what command to use for your specific rom... Possibly also checkout how they do it for gapps and other generic installable zips...
Verstuurd vanaf mijn E380 met Tapatalk
[Solved][Q] Problem creating "update.zip" to flash .ttf & fallback_fonts.xml file
The whole question is irrelevant. It was my mistake in creating the zip file. I included the folder(parent to META-INF and SYSTEM) in the zip but I only had to include the META-INF and the SYSTEM folder. Solved it. Thank you.. How dumb i feel:laugh::laugh:
Believe me, I have been through several guides before writing this question about creating update.zip.
I have tried to modify existing .zip files, create new ones etc. etc. but I am failing every time.
My purpose is to flash a modified "fallback_fonts.xml" file to /system/etc/ and a new .ttf file to /system/fonts
I have modified the fallback_fonts.xml file and put it in the system/etc/ folder and the .ttf file in the /system/fonts/ folder.
The updater-script looks like this
Code:
ui_print("Installing Gujarati Fonts for CM10.1 based ROMs..");
ui_print(" ");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 7);
ui_print("Copying files...");
package_extract_dir("system","/system");
ui_print("Setting Permissions....");
set_perm(0, 0, 644, "/system/etc/fallback_fonts.xml");
set_perm(0, 0, 644, "/system/fonts/Lohit-Gujarati.ttf");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
I have put an extra line also at the end as mentioned by some tutorials and guides about creating update.zip. Yet, it always fails to flash and I have to do these changes manually which is frustrating every time I flash a new build.
I have taken the update-binary file from an addon file which BaNkS uses to update thin roboto fonts. I have also tried using his same updater-script as it only says just to extract_dir of system but still it fails.
Any help would be deeply appreciated.....
bioinfoboy said:
Believe me, I have been through several guides before writing this question about creating update.zip.
I have tried to modify existing .zip files, create new ones etc. etc. but I am failing every time.
My purpose is to flash a modified "fallback_fonts.xml" file to /system/etc/ and a new .ttf file to /system/fonts
I have modified the fallback_fonts.xml file and put it in the system/etc/ folder and the .ttf file in the /system/fonts/ folder.
The updater-script looks like this
Code:
ui_print("Installing Gujarati Fonts for CM10.1 based ROMs..");
ui_print(" ");
ui_print("Mounting system...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 7);
ui_print("Copying files...");
package_extract_dir("system","/system");
ui_print("Setting Permissions....");
set_perm(0, 0, 644, "/system/etc/fallback_fonts.xml");
set_perm(0, 0, 644, "/system/fonts/Lohit-Gujarati.ttf");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
I have put an extra line also at the end as mentioned by some tutorials and guides about creating update.zip. Yet, it always fails to flash and I have to do these changes manually which is frustrating every time I flash a new build.
I have taken the update-binary file from an addon file which BaNkS uses to update thin roboto fonts. I have also tried using his same updater-script as it only says just to extract_dir of system but still it fails.
Any help would be deeply appreciated.....
Click to expand...
Click to collapse
you can try my ubuntu font zip from my medfiafirefolder, it works fine
i kept the updater script very simple, it only exchanges fonts, no xml ...
Code:
ui_print("Applying Ubuntu fonts");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fonts", "/system/fonts");
run_program("/sbin/busybox", "umount", "/system");
I can't believe how dumb I am. What a stupid thing to do when creating a .zip file from the main folder. The zip contained the main folder and then the files inside them which obviously resulted in errors. And I thought I am doing something wrong in the syntax. Sorry guys for the trouble and thanks to them who took the time to read it. I believe I have wasted their time.
bioinfoboy said:
I can't believe how dumb I am. What a stupid thing to do when creating a .zip file from the main folder. The zip contained the main folder and then the files inside them which obviously resulted in errors. And I thought I am doing something wrong in the syntax. Sorry guys for the trouble and thanks to them who took the time to read it. I believe I have wasted their time.
Click to expand...
Click to collapse
no problem, you´re welcome
@dorimanx @daniel.stuart14 @REV3NT3CH @savoca @RenderBroken
Hi devs i would to learn how to build rom and kernel for d802 variant for myself.
I have build cm12 with success and it works flawlessly.
Now i want to build kernel compatible with cm 12.
I downloaded kernel from this source: https://github.com/CyanogenMod/android_kernel_lge_msm8974/tree/cm-12.0
I have used linaro toolchain 4.9.2 for a15 cpu, during the build i had a few of errors but i have fixed it, after that i have my zImage and dtb files prepared...
So i have used boot.img from previously cm 12 build(i take it from zip file to flash) to get ramdisk and zImage.
Then i have switch the original zImage with my zImage-dtb from my build and i modified files from ramdisk.
I have flashed this kernel through loki_tool but i'm stuck on lg logo...
So my question is i have to use zImage or zImage-dtb from my build?
What about creating dt.img, its obligatory?
Can i use this offset to build my kernel or i have to change it?
Code:
base=0x00000000
pagesize=2048
ramdisk_offset=0x05000000
tags_offset=0x04800000
Sorry for disturb but im curious and i want to do it by myself, so i hope you can help me!
Thanks in advance
Use this script to compile and create your image. (put in root folder of kernel)
You'll need edit it, and change:
build path. (in my script is: build=/home/daniel/android-dev/kernel_test)
Cross compile path
You'll need change the defconfig path, too.
Change the config="xxx_defconfig", to the defconfig's name of all the g2 variants in "arch/arm/configs".
And put it in your kernel root directory, too. (It's the open_bump, so you don't need loki it again, you can use my installation script + lcd.sh, in ozip folder.)
And, if for some reason you haven't installed the mkbootimg yet, download it, extract. Then, go to the folder that you've extracted, and do that:
Code:
sudo cp mkbootimg /bin/mkbootimg
sudo chmod 755 /bin/mkbootimg
sudo cp dtbToolCM /bin/dtbToolCM
sudo chmod 755 /bin/dtbToolCM
sudo cp mkbootfs /bin/mkbootfs
sudo chmod 755 /bin/mkbootfs
sudo cp mkboot /bin/mkboot
sudo chmod 755 /bin/mkboot
You'll need extract the ramdisk in ramdisk folder on root kernel folder, so you can use "mkboot" for it.
It'll say to you the ramdisk_offset, tags_offset and cmdline. So, change this in export.sh if there's a difference between.
After this. go to your kernel folder, and then: ./export.sh
OBS: In the first time you execute the script, it create the zimage, if everything goes right, execute the script again, and it'll create a zip with boot.img inside.
Hi thanks for your reply i will try this !
Which configs i have to use those one cyanogenmod_d802_config or open_g2 and so on?
I think is the cyanogenmod_d802_config.
@daniel.stuart14
i have updater-script like this:
ui_print("ebreo kernel for lg g2 d802 variant");
ui_print("Installing modules...");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
delete_recursive("/system/lib/modules");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
unmount("/system");
package_extract_file("lcd.sh", "/tmp/lcd.sh");
package_extract_file("boot.img", "/tmp/boot.img");
ui_print("Installing boot.img...");
show_progress(0.500000, 10);
set_perm(0, 0, 0755, "/tmp/lcd.sh");
assert(run_program("/tmp/lcd.sh") == 0);
delete("/tmp/lcd.sh");
ui_print("Done!");
show_progress(1.000000, 10);
Click to expand...
Click to collapse
But i have an error when i flash this by twrp...are there an errors?
Ok i have resolve problem with updater-script, device boot but after a cyanogenmod lho my phone reboot again....how can i debug it?
ebreo said:
Ok i have resolve problem with updater-script, device boot but after a cyanogenmod lho my phone reboot again....how can i debug it?
Click to expand...
Click to collapse
Okay, you should use logcat.
But first, try compile without the changes in kernel that you did.
daniel.stuart14 said:
Okay, you should use logcat.
But first, try compile without the changes in kernel that you did.
Click to expand...
Click to collapse
I didn't any changes its clean kernel from source....i will post logs from build.sh script.
How can i use logcat?
Thanks very much daniel!
Result from build.sh script:
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
CAT arch/arm/boot/zImage-dtb
Kernel: arch/arm/boot/zImage-dtb is ready
[email protected]:~/android/kernel/cm_msm8974$ ./build.sh
TEST Build
Pick variant...
1) d800
2) d801
3) d802
4) ls980
5) vs980
#? 3
Checking for build...
Extracting files...
Modules found.
Making dt.img...
DTB combiner:
Input directory: 'arch/arm/boot/'
Output file: 'out/dt.img'
Found file: msm8974-v2-g2-open_com.dtb ... chipset: 126, rev: 131072, platform: 118, subtype: 0
Found file: msm8974-g2-open_com.dtb ... chipset: 126, rev: 0, platform: 118, subtype: 0
Found file: msm8974-v2-2-g2-open_com.dtb ... chipset: 126, rev: 131074, platform: 118, subtype: 0
=> Found 3 unique DTB(s)
Generating master DTB... completed
dt.img created
Making ramdisk...
Making boot.img...
Bumping...
bumped image: ozip/boot_bumped.img
Zipping...
adding: boot.img (deflated 7%)
adding: system/ (stored 0%)
adding: system/lib/ (stored 0%)
adding: system/lib/modules/ (stored 0%)
adding: system/lib/modules/scsi_wait_scan.ko (deflated 57%)
mv: „../ebreo_Kernel-1.0_d802_signed.zip” i „/home/marcio/android/kernel/cm_msm8974/ebreo_Kernel-1.0_d802_signed.zip” to ten sam plik
Done...
Output zip: /home/marcio/android/kernel/cm_msm8974/ebreo_Kernel-.zip
[email protected]:~/android/kernel/cm_msm8974$
Click to expand...
Click to collapse
So all is gone good
oh, okay.
You can boot, and after some minutes it reboot? Or are you in bootloop?
You can only use logcat if the rom starts.
For it, you must enable ADB, and install adb interface in your linux. (can be in windows too.)
After it, connect the device on PC, open the terminal, and put:
adb logcat
You'll need allow it in your device. So, it will start to show a lot of mensages in terminal.
For save it, do a ctrl + c. (to stop the messages), and put it:
adb logcat -c
It'll be saved on you current folder.
daniel.stuart14 said:
oh, okay.
You can boot, and after some minutes it reboot? Or are you in bootloop?
You can only use logcat if the rom starts.
For it, you must enable ADB, and install adb interface in your linux. (can be in windows too.)
After it, connect the device on PC, open the terminal, and put:
adb logcat
You'll need allow it in your device. So, it will start to show a lot of mensages in terminal.
For save it, do a ctrl + c. (to stop the messages), and put it:
adb logcat -c
It'll be saved on you current folder.
Click to expand...
Click to collapse
My problem is that im in bootloop....