How do I modify my kernel max freq via the boot.img-kernel?
I'm using ubuntu with perl 5.14
Thanks
You can't modify zImage
How do I modify my kernel max freq via the boot.img-kernel?
I'm using ubuntu with perl 5.14
Thanks
this is confusinghere is the guide
http://xdaforums.com/showpost.php?p=24747881&postcount=4
thakz irfanbagus for the guide
this guide is only for samsung or for all android deviceshere is the guide
http://xdaforums.com/showpost.php?p=24747881&postcount=4
thakz irfanbagus for the guide
root@bt:~/sgy/kernel/common# make
make: /home/root/sgy/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: /home/root/sgy/arm-2009q3/bin/arm-none-eabi-gcc: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
Sir help! I am getting this error while using backtrack 5 R3.
Code:root@bt:~/sgy/kernel/common# make make: /home/root/sgy/arm-2009q3/bin/arm-none-eabi-gcc: Command not found CHK include/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CC kernel/bounds.s /bin/sh: /home/root/sgy/arm-2009q3/bin/arm-none-eabi-gcc: No such file or directory make[1]: *** [kernel/bounds.s] Error 1 make: *** [prepare0] Error 2
This error is popping up even though I have a proper toolchain for arm 6 (or none) GCC.
Screenshot of arm libs -
it's not working. sgy stock kernel do not have /proc/config.gz and gcc version in arm-2011.03 not compatible with other precompiled module.
this is work for me
requirement :
1. linux box 32 bit with working gcc. you can use real linux machine or virtual machine
2. Sourcery G++ Lite 2009q3-68 toolchain for ARM EABI from http://www.codesourcery.com/ (Linux version without installer arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2)
3. mkbootimg with md5support. got it from http://xdaforums.com/showpost.php?p=22224170&postcount=241 . credit to harish2704
4. split_bootimg.pl (google it)
5. kernel source from http://opensource.samsung.com . i use GT-S5360_GB_Opensource_Update2.zip
6. stock boot.img (or from your custom kernel).
step :
1. make folder "sgy" in your home. the result is folder "/home/<yourname>/sgy". <yourname> is your linux user name, and from now replace <yourname> with your user name. put all file you already download there
2. extract "GT-S5360_Kernel.tar.gz" from "GT-S5360_GB_Opensource_Update2.zip". put also in "sgy" folder
3. open terminal emulator and go to your working path with command
Code:cd ~/sgy
4. extract your compiler with
Code:tar -xvf arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
5. create folder "kernel" and extract kernel source there
Code:mkdir kernel cd kernel tar -xvf ../GT-S5360_Kernel.tar.gz
you got 2 folder, "common" and "modules"
6. open folder "common", there is file "Makefile". open with text editor and find line with content "/opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-". replace with "/home/<yourname>/sgy/arm-2009q3/bin/arm-none-eabi-", don't forget replace <yourname>.
7. in terminal goto folder "common" and load default config for sgy
Code:cd ~/sgy/kernel/common make bcm21553_totoro_05_defconfig
8. if you want change you config run
Code:make menuconfig
9. if you ready to build then run
Code:make
or if you have dual core cpu and want to make it faster
Code:make -j3
10. when complete and no error appear, copy your kernel to "sgy" folder
Code:cp arch/arm/boot/zImage ~/sgy
11. extract ramdisk from your boot.img
Code:cd ~/sgy/ perl split_bootimg.pl boot.img
you got "boot.img-kernel" and "boot.img-ramdisk.gz". move "boot.img" and "boot.img-kernel" to other place.
12. repack your new kernel and ramdisk. but first get md5sum of your new kernel
Code:md5sum zImage
you got something like
Code:1fd319aa60abc2abae2e5932bcb9fc77 zImage
you need that "1fd319aa60abc2abae2e5932bcb9fc77" write it or copy to text editor. you need run it every time compile new kernel
13. repack
Code:chmod +x mkbootimg ./mkbootimg --kernel zImage --ramdisk boot.img-ramdisk.gz --base 0x81600000 --kernelMD5 <your md5sum result> -o boot.img
14. make odin flash-able
Code:tar -cf boot-sgy.tar boot.img
No. Galaxy Y chipset and Galaxy Mini (not the i variant) have different chipset.Main question is : Can I use this downloaded kernel source from http://opensource.samsung.com/ to create kernel for other model (e.g Galaxy Mini GT-S5570 code name TASS) if ihave :
- GT-S5360_GB_Opensource_Update3.zip
- And because i saw "bcm21553_tassve_defconfig" in folder /Kernel_GTS5360/common/arch/arm/configs
No. Galaxy Y chipset and Galaxy Mini (not the i variant) have different chipset.
So, 497 Mb unpacked kernel source is just for 4 or 5 Mb boot.img , Wow...such a huge shrink. Thanks.
Sorry ... I don't mean to OFF TOPIC just try to understand what all those extracted file's purpose and to start learning kernel development. I'm new on this thing. And i have most comfortable ROM for my galaxy Y, but this ROM is perfect with stock kernel and stock kernel lack on init.d support, swap support. This is why i want to start to build my own kernel.
Sorry ... I don't mean to OFF TOPIC just try to understand what all those extracted file's purpose and to start learning kernel development. I'm new on this thing. And i have most comfortable ROM for my galaxy Y, but this ROM is perfect with stock kernel and stock kernel lack on init.d support, swap support. This is why i want to start to build my own kernel.
tabenf said:Hi have u fixed this?if not can you show me the path u put in make file,
it's not working. sgy stock kernel do not have /proc/config.gz and gcc version in arm-2011.03 not compatible with other precompiled module.
this is work for me
requirement :
1. linux box 32 bit with working gcc. you can use real linux machine or virtual machine
2. Sourcery G++ Lite 2009q3-68 toolchain for ARM EABI from http://www.codesourcery.com/ (Linux version without installer arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2)
3. mkbootimg with md5support. got it from http://xdaforums.com/showpost.php?p=22224170&postcount=241 . credit to harish2704
4. split_bootimg.pl (google it)
5. kernel source from http://opensource.samsung.com . i use GT-S5360_GB_Opensource_Update2.zip
6. stock boot.img (or from your custom kernel).
step :
1. make folder "sgy" in your home. the result is folder "/home/<yourname>/sgy". <yourname> is your linux user name, and from now replace <yourname> with your user name. put all file you already download there
2. extract "GT-S5360_Kernel.tar.gz" from "GT-S5360_GB_Opensource_Update2.zip". put also in "sgy" folder
3. open terminal emulator and go to your working path with command
Code:cd ~/sgy
4. extract your compiler with
Code:tar -xvf arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
5. create folder "kernel" and extract kernel source there
Code:mkdir kernel cd kernel tar -xvf ../GT-S5360_Kernel.tar.gz
you got 2 folder, "common" and "modules"
6. open folder "common", there is file "Makefile". open with text editor and find line with content "/opt/toolchains/arm-eabi-4.4.3/bin/arm-eabi-". replace with "/home/<yourname>/sgy/arm-2009q3/bin/arm-none-eabi-", don't forget replace <yourname>.
7. in terminal goto folder "common" and load default config for sgy
Code:cd ~/sgy/kernel/common make bcm21553_totoro_05_defconfig
8. if you want change you config run
Code:make menuconfig
9. if you ready to build then run
Code:make
or if you have dual core cpu and want to make it faster
Code:make -j3
10. when complete and no error appear, copy your kernel to "sgy" folder
Code:cp arch/arm/boot/zImage ~/sgy
11. extract ramdisk from your boot.img
Code:cd ~/sgy/ perl split_bootimg.pl boot.img
you got "boot.img-kernel" and "boot.img-ramdisk.gz". move "boot.img" and "boot.img-kernel" to other place.
12. repack your new kernel and ramdisk. but first get md5sum of your new kernel
Code:md5sum zImage
you got something like
Code:1fd319aa60abc2abae2e5932bcb9fc77 zImage
you need that "1fd319aa60abc2abae2e5932bcb9fc77" write it or copy to text editor. you need run it every time compile new kernel
13. repack
Code:chmod +x mkbootimg ./mkbootimg --kernel zImage --ramdisk boot.img-ramdisk.gz --base 0x81600000 --kernelMD5 <your md5sum result> -o boot.img
14. make odin flash-able
Code:tar -cf boot-sgy.tar boot.img
cd ~/sgy
tar -xvf arm-2009q3-68-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
mkdir kernel
cd kernel
tar -xvf ../GT-S5360_Kernel.tar.gz
cd ~/sgy/kernel/common
make bcm21553_totoro_05_defconfig
make menuconfig
make
make -j3
cp arch/arm/boot/zImage ~/sgy
cd ~/sgy/
perl split_bootimg.pl boot.img
md5sum zImage
1fd319aa60abc2abae2e5932bcb9fc77 zImage
chmod +x mkbootimg
./mkbootimg --kernel zImage --ramdisk boot.img-ramdisk.gz --base 0x81600000 --kernelMD5 <your md5sum result> -o boot.img
tar -cf boot-sgy.tar boot.img
I used google.
The most powerful tool.
Sent from my GT-S5360 using xda app-developers app
To both.
zImage compiled using a good source and correct method as stated by samsung is always good to go.
The only thing you need is a working ramdisk to combine that image with.
make xx_xx_xx_defconfig
make -j4
This is the easiest way to compile (only make commands are given above)
i don't call it fake. it's just too general and missing some detail (but critical) for our device. and in the 'spirit of operation iron fist', i think it's better to put hereI thought you have to put your post into a new thread irfan...this one is a fake guide.
with my internet connection, it will take weeks just to download the source. and i think cm, like android source, use repo. so you can't just download it. you clone it from their source repository, that mean no download accelerator.Irfan must create a guide.yes yes..I also think Irfan sahab must compile a CM7.2 from sources.