Hi all,
I'm following the guide at CM wiki to build for samsung n7100:
**tp://wiki.cyanogenmod.org/w/Build_for_n7100 (sorry)
While executing device/samsung/n7100/extract-files.sh, I note that some files are missing from my device (running CM version 11-20140505-SNAPSHOT-M6-n7100):
Code:
/system/bin/bcm4334_semco.hcd
/system/bin/lpm
/system/lib/libaudiosa.so
/system/vendor/lib/liblvverx.so
/system/vendor/lib/liblvvetx.so
/system/vendor/lib/mediadrm/libwvdrmengine.so
The build fails with make complaining about no rules to make these files.
What makes me confused is that the stock system.img does not contain these files either. So why are they listed as dependencies, or why does the script try to extract them? How can I carry out a successful build?
Related
Hi all,
we are trying to build our own kernel for a Samsung Galaxy S (I9000XWJVB).
What we did so far:
- Download the correct sources from "opensource.samsung.com"
- Studied the README
- Installed cross-compiler toolchain
- Created ".config" as described in README
- Kernel compiled
Compilation worked fine -> zImage was available (but with only 2mb very)
OK, looks like initramfs is missing.
The first question is now, where to get / how to create a correct initramfs?
We copied the initramfs from Leshak and we extracted an ".cpio" from a working zImage.
Then we tried to use them in the ".config" (CONFIG_INITRAMFS_SOURCE) for kernel compilation.
Resultant zImage was larger (around 6mb) so it looks like something changed.
But once we installed the tared zImage on the phone (using Odin), the phone freezes during reboot.
Any advice how to progress here?
Is it possible to use Leshaks initramfs for all Galaxy S phones? Or is this only for a specific version? The CONFIG_INITRAMFS_SOURCE should point to the "initrd.arm.initramfs_list", correct? And not to the initramfs-folder?
And: Is there a way to get any type of kernel boot debugging message from the booting phone back to the PC (or the phone screen)?
Many thanks in advance!
Hi,
i'm trying to compile google sources version 4.0.4 with samsung sources from opensource samsung
From samsung sources i've only used the platform files. I've done all the steps that are in the platform readme:
How to build Mobule for Platform
- It is only for modules are needed to using Android build system.
- Please check its own install information under its folder for other module.
[Step to build]
1. Get android open source.
: version info - Android gingerbread 4.0.4
( Download site : source android)
2. Copy module that you want to build - to original android open source
If same module exist in android open source, you should replace it. (no overwrite)
# It is possible to build all modules at once.
3. Check module is in 'build\core\user_tags.mk'
If not, you should add your module name in it.
ex1) external\libjpega : Write "libjpega \" into "build\core\user_tags.mk"
ex2) external\libexifa : Write "libexifa \" into "build\core\user_tags.mk"
4. In case of 'external\bluetooth',
you should add following text in 'build\target\board\generic\BoardConfig.mk'
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
5. excute build command
./build.sh user
The command user was ./build.sh eng
Before running this command i've installer jdk 6 and follow the steps from android initializing
the ./build.sh eng run with success and after this i've run the make.
Some hours later i've got a new folder "OUT", inside there is a system folder but i've tryed to flash this folder with odin
and no success.
What am i doing wrong?
Thanks.
Trying to build the kernel + modules?
If i understand what your trying to do, Install new kernel and modules?
!!!!!Before you try this, do some research for your device and make sure this is the correct action!!!!!
you are looking for a file called: zImage
It should be in <build path>/arch/arm/boot/
To install the new kernel, you put your device into fastboot
Code: adb reboot-bootloader
Then you can install the new kernel:
Code: fastboot flash zimage /<path to your zImage file>/zImage
Then you can boot your device and manually copy over the modules.
Note: I didn't see in your steps where you mentioned configuring the kernel, are you doing this?
Thanks for your reply.
the kernel i've already compiled like you mentioned and it is ok i've flashed the zImage.
But there is another part that is the platform module that corresponds to the system.
When you have a Rom there are 3 things inside:
- boot.img that has the zImage (kernel)
- meta-inf
- system
i'm changing the code in one file that corresponds to the nfc part and them compile the samsung sources
and google sources to get that system.
after compile the is one folder out that has system.img but i can't flash this .img file the mobile phone gets like a stone :S
All Black!
Please describe the process you are using to flash the system.img.
Have you though about just copying over the modified files?
Also, if you could create a step by step list of your process, maybe we can figure out what's going wrong.
i've compiled the google+samsung sources and this created the system.img.
Then i used Heimdall to choose only system to flash and It didn't work.
i've tryed also to change only the nfc.apk file put it in the app folder tryed to flash the ROM (in this case from Cyanogenmod) and it didn't work.
Thanks.
pec0 said:
i've compiled the google+samsung sources and this created the system.img.
Then i used Heimdall to choose only system to flash and It didn't work.
i've tryed also to change only the nfc.apk file put it in the app folder tryed to flash the ROM (in this case from Cyanogenmod) and it didn't work.
Thanks.
Click to expand...
Click to collapse
have you tried to remove and install your nfc.apk using adb rather than trying to flash the entire rom? I would think all you need to do is mod the kernel, flash the kernel, then copy over any modules and replace the nfc.apk.
Hi,
I am a new beginner of android. I am trying to rebuild the kernel with profiling support for Samsung galaxy s2 (GT-i9100). After flashing my custom rom to my phone, my phone does not work.
This is how I do it:
1.Downloaded the image I9100XXLP6_I9100OXXLP3_OXX and flashed my galaxy s2 mobile using odin software. now my Galaxy s2 works fine with ICS build (kernel version - [email protected] #3, Ardroid version - 4.0.3).
2. Downloaded the samsung galaxy s2 source code GT-I9100_ICS_Opensource_Update8.zip from opensoure.samsung.com and cross compiler arm-eabi-4.4.3.
3. Use the initramfs from github (Since I am a new user of this forum, I can not post outside link here; I google with "arighi/initramfs-gt-i9100.git" and use the first link)
4. Through "make menuconfig" to enable the profiling support and configure the initramfs source path as specified at step 3.
5. After compiling, I can get the custom zImage of size about 8 MB
6. Then I use "tar -cvf mykernel.tar zImage" to generate my custom rom; and then flash it to my phone through odin.
7. Now my phone boots with a kernel panic upload mode screen and my phone doesn't work.
My question:
1. Does the initramfs cause the problem? If it is, where can I get the matched initramfs for the kernel source code?
2. Is there anything wrong in my above steps?
I would be very appreciated if someone could help me.
Thanks.
hi,
this is my attempt to bring Cyanogen 13 to the Samsung Galaxy SL ( i9003 ).
So far i got the kernel/device/vendor repos synced and edited.
I still haven't manage to pass the "brunch galaxysl" command
first error was:
hardware/ti/wlan/mac80211/wpa_supplicant_lib/Android.mk:19: external/wpa_supplicant_8_ti/wpa_supplicant/android.config: No such file or directory
fixed by editing BoardConfing.mk ( not sure it will allow the wi-fi to work after this )
last error is :
make: *** No rule to make target '/home/nots/cm13/out/target/product/galaxysl/utilities/flash_image', needed by '/home/nots/cm13/out/target/product/galaxysl/bootstrap.cpio.gz'. Stop.
If anyone want to help, you are more than welcome
thanks to dhiru1602 and rodero95 for there previous work on this phone
mkdir out/target/product/galaxysl/utilities
copy busybox erase_image flash_image make_ext4fs to the dir created
busybox erase_image flash_image make_ext4fs are from ROM pack
notsgnik said:
hi,
this is my attempt to bring Cyanogen 13 to the Samsung Galaxy SL ( i9003 ).
So far i got the kernel/device/vendor repos synced and edited.
I still haven't manage to pass the "brunch galaxysl" command
first error was:
hardware/ti/wlan/mac80211/wpa_supplicant_lib/Android.mk:19: external/wpa_supplicant_8_ti/wpa_supplicant/android.config: No such file or directory
fixed by editing BoardConfing.mk ( not sure it will allow the wi-fi to work after this )
last error is :
make: *** No rule to make target '/home/nots/cm13/out/target/product/galaxysl/utilities/flash_image', needed by '/home/nots/cm13/out/target/product/galaxysl/bootstrap.cpio.gz'. Stop.
If anyone want to help, you are more than welcome
thanks to dhiru1602 and rodero95 for there previous work on this phone
Click to expand...
Click to collapse
Yeah I've actually followed quite some hack arounds for the device...... You'll need patches for the following repos (Unfortunately no longer in Nameless Gerrit. I'll try to upload them):
device/samsung/galaxysl
kernel/samsung/latona
hardware/ti/omap3
hardware/samsung
frameworks/av
bionic
I guess that's all that I've patched. And one more word of advice: CyanogenMod dropped support for the S2 so it'll never compile for the SL. It's better to download NamelessROM's source (check repo's --reference flag to speed up the download) because it has some support.
Cheers!
Technohacker
Technohacker1995 said:
Yeah I've actually followed quite some hack arounds for the device...... You'll need patches for the following repos (Unfortunately no longer in Nameless Gerrit. I'll try to upload them):
device/samsung/galaxysl
kernel/samsung/latona
hardware/ti/omap3
hardware/samsung
frameworks/av
bionic
I guess that's all that I've patched. And one more word of advice: CyanogenMod dropped support for the S2 so it'll never compile for the SL. It's better to download NamelessROM's source (check repo's --reference flag to speed up the download) because it has some support.
Cheers!
Technohacker
Click to expand...
Click to collapse
plz give us link for download and install rom
mehran200067 said:
plz give us link for download and install rom
Click to expand...
Click to collapse
For which version? I've compiled 5.0 (here: http://forum.xda-developers.com/gal...ake-android-5-0-lollipop-i9003-t2928989/page6 I've posted some fixes in subsequent posts so read all of 'em), 5.1's not available (doesn't boot...... idk why) whereas we're trying to port 6
Cheers!
Technohacker
hello i was looking for a samsung G928G S6 (Edge plus) kernel that has a drivedroid support but i was unable to find one.
since i am familiar with linux system i decided to try and build my first kernel.
i downloaded a stock kernel source from
https://opensource.samsung.com/uploadSearch?searchValue=g928
and other custom lineage os kernel from github
https://github.com/universal7420/android_kernel_samsung_universal7420
following this guide
https://forum.xda-developers.com/galaxy-s6/general/guide-how-to-build-samsung-kernel-july-t3429355
and this guide.
https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297
this are the steps that i did
export CROSS_COMPILE=$(pwd)/bin/aarch64-linux-android-
export ARCH=arm64 && export SUBARCH=arm64
when i came to make clean step i was getting this error
aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
i noticed in my toolchain folder aarch64-linux-android-gcc was missing
so i downloaded some other toolchains until i found one that has gcc
moving to next steps
make clean
make mrproper
make exynos7420-zenlte_defconfig based on stock kernel and
make lineageos_zenlte_defconfig based on lineage os kernel
when i did the make -j$(nproc --all) i get this error
make: *** [Makefile:552: scripts] Error 2 and when i checked in Makefile line 552 i found this
$(Q)$(MAKE) $(build)=$(@)
i get this error everytime i try. i use Arch linux i tried in Ubuntu same thing
Cool How about Kali-linux mod did you check it?
We have Kali-Linux mod for S6 it has drive-droid build-in
Johannes89 said:
Cool How about Kali-linux mod did you check it?
We have Kali-Linux mod for S6 it has drive-droid build-in
Click to expand...
Click to collapse
i tried it yesterday but it hangs on creating image since my device is s6 edge+ not s6
Try to create img file from other source like windows or other program and move it to your phone
so i followed your advice and tried to build on windows 10 ubuntu from their store (though i hate using windows) and it was a success. i patched drivedroid stuff in the kernel
i build one from samsung official kernel and boom! drivedroid works , after a minute i experience some never ending bootloops , in 30 seconds i can use my phone after that it boots again, the loop never ends.
i clone another kernel the lineage one , after spending the whole day building , failing ,errors , bugs, electricity issue and stuff ,
I HAVE FINALLY HAVE A DEVICE THAT WORKS NO BOOTLOOPS AND DRIVEDROID IS WORKING. though the lineage os rom has some camera problems . But yeah it was a good day