Hi all, Does someone success in building new kernel (with modules) and burn it to device successfully and can share with us the main stages of doing *IT *(with detailed explanation please). * * *10x* Tal
On Thu, Dec 15, 2011 at 10:15 AM, petter <havlenap...@gmail.com> wrote: > I am working on SGS porting, and when I had phone new, I'd started > with compiling original kernel and samsung rom booted with my kernel(I > extracted initramfs from orig. zImage and used him for my kernel). I > remember that for samsung kernel you need www.codesourcery.com > toolchain, when I tryed toolchain from android prebuild dir, kernel > crashed. Maybe you can compile whole android for your device + > kernel(initramfs you should point to out/target/product/$name/rootdir) > and you will see. you can boot your OS from sdcard(ext4 partition), so > your orig. samsung rom can be still in your device internal memory, so > when device will be stuck, you can still boot into orig. rom by > flashing orig. kernel back > > On 14 pro, 08:43, "s.rawat" <imsaurabhra...@gmail.com> wrote: > > Petter You are correct.I followed the same.But I doubt there will be some > > MD5 *checksum *ssociated with it which I dont have any clue. > > "same root structure like orig"..hmmm..i could try this as well. > > plz if some one who has success in this , do report(in either SGT or SGS > ) > > > > Rgds, > > Saurabh > > > > "..pain is temporary.....quitting lasts forever......" > > > > > > > > > > > > > > > > On Wed, Dec 14, 2011 at 11:43 AM, petter <havlenap...@gmail.com> wrote: > > > I think that your problem is, that samsung uses initramfs in kernel > > > image, so theirs modules(and other files) are packed in zImage, so if > > > are some of these modules(files) not open, you must extract them from > > > orig. kernel, put them into your kernel and pack your kernel with all > > > these modules(files). you must make same root structure like orig. > > > kernel do, if you want to boot samsung's rom. > > > > > On Dec 13, 8:43 pm, Tal Alon <tal.alon1...@gmail.com> wrote: > > > > Hi > > > > I download the source directory of android brunch 2.3.5 and compiled > it > > > to > > > > receive the filesystem. I got an empty filesystem (~150KB) and added > > > under > > > > /lib/modules/ the new 7 modules from the kernel compilation. > > > > The next step was to mkbootfs to recreate the new file system and > then > > > > mkbootimg from the new kernel and filesystem. The image that i > received > > > is > > > > ~5.3MB and it does not boot on the device. > > > > The mkbootfs and mkbootimg i compiled from the android source > direcory > > > from > > > > 2.3.5 brunch. > > > > When i download kernel from XDA i get zImage ~6.4MB and i failed to > > > extract > > > > the filesystem from it (with some tools which i found at making > kernel > > > > guides), But the downloading to the device success and the device > boots > > > > well. > > > > I tried these process with kernel from samsung open source update > 1,2,3 > > > > with no success, I used default def_config as mentioned at kernel > > > > compilation instructions. > > > > I still don't understand what i do wrong, > > > > H E L P > > > > > > Tal > > > > > > On Tue, Dec 13, 2011 at 1:56 PM, Kiran Kumar Raparthy < > > > > > > kumarsharma.andr...@gmail.com> wrote: > > > > > Hi Tal, > > > > > Usually your Bootloader will launch the kernel image in any kind of > > > linux > > > > > systems. > > > > > So you have to create the kernel image to be compatible with > > > > > bootloader(Which adds the Header,size and CRC),so that when > launching > > > the > > > > > kernel, bootloader verifies the header,gets the kernel image based > on > > > the > > > > > size and calculates the CRC and verifies,when successful,gives > control > > > to > > > > > kernel. > > > > > If your compiling the kernel in android source,it creates the > > > filesystem > > > > > image too.If not,probably you have to compile the filesystem and > > > create the > > > > > File system image based on your requirement and burn the same. > > > > > > > Also the address where you are burning the images in the flash is > also > > > > > important,as bootloader reads the kernel header from a fixed > location > > > so > > > > > you have to load the kernel at that fixed address only. > > > > > > > Regards, > > > > > Kiran > > > > > > > On Mon, Dec 12, 2011 at 7:36 PM, Tal Alon <tal.alon1...@gmail.com> > > > wrote: > > > > > > >> Hi all > > > > >> I am trying to build kernel for galaxy S2 with no success and i > need > > > some > > > > >> help for it. > > > > >> I execute 2 steps first make config (c1_rev02_defconfig) and > second > > > make. > > > > >> My environment includes toolchines that provides with the source > tree > > > and > > > > >> i define the ARCH and CROSS_COMPILE macros before compilation. > > > > >> The compilation success and I receive zImage file (3.5MB to 4.6MB) > > > > >> depends on kernel version. > > > > >> What is the next step? How do i burn the new kernel to device? I > > > tried to > > > > >> do it with odin but the device stuck. > > > > >> What about the new modules of the new kernel compilation? what > about > > > file > > > > >> system? > > > > > > >> Thanks a lot > > > > >> Tal > > > > > > >> On Tue, Nov 22, 2011 at 9:31 AM, Tal Alon <tal.alon1...@gmail.com > > > > > wrote: > > > > > > >>> Hi Bridgette, > > > > > > >>> I am trying to build kernel for galaxy S2 and for these device i > > > didn't > > > > >>> find any script to run. The txt file details 2 steps > > > > >>> first make config (mine is c1_rev02_defconfig) and second make. > > > > >>> My environment includes toolchines that provides with the NDK > with no > > > > >>> installation but i define the ARCH and CROSS_COMPILE macros > before > > > > >>> compilation. > > > > > > >>> On Mon, Nov 21, 2011 at 8:17 PM, Bridgette <tbridge...@yahoo.com > > > > > wrote: > > > > > > >>>> Hello Talon.... > > > > > > >>>> Samsung provides a txt file that details how to build the > > > kernel...once > > > > >>>> your environment is set up correctly you should only need to > run a > > > script > > > > >>>> file that they provide, for example mine is called > > > make_kernel_tass_vtr.sh. > > > > > > >>>> If you take a look at the file it points to a specific config > file > > > to > > > > >>>> use I would use that one initially if your defconfig file is > not the > > > > >>>> same....they also recommend the Codesourcery cross compiler > (which > > > that may > > > > >>>> or may not be the one that you mentioned).... > > > > > > >>>> ------------------------------ > > > > >>>> *From:* talon1975 <tal.alon1...@gmail.com> > > > > >>>> *To:* Android Linux Kernel Development < > > > android-kernel@googlegroups.com> > > > > > > >>>> *Sent:* Sunday, November 20, 2011 9:32 PM > > > > >>>> *Subject:* [android-kernel] how to build kernel > > > > > > >>>> Hi all, > > > > > > >>>> l download the kernel source from Samsung site and the arm-eabi > > > > >>>> toolchine (4.4.0 and 4.4.3) from github. > > > > >>>> When i build my kernel (2.6.35.7) on Linux machine the size of > > > zImage > > > > >>>> is 3.5M and it doesn't work, i found some kernels zImage files > and > > > the > > > > >>>> size is 6.7M and bigger. I use the same defconfig file so I > wonder > > > > >>>> where is my problem? > > > > > > >>>> Thanx > > > > >>>> talon > > > > > > >>>> -- > > > > >>>> unsubscribe: android-kernel+unsubscr...@googlegroups.com > > > > >>>> website:http://groups.google.com/group/android-kernel > > > > > > >>>> -- > > > > >>>> unsubscribe: android-kernel+unsubscr...@googlegroups.com > > > > >>>> website:http://groups.google.com/group/android-kernel > > > > > > >> -- > > > > >> unsubscribe: android-kernel+unsubscr...@googlegroups.com > > > > >> website:http://groups.google.com/group/android-kernel > > > > > > > -- > > > > > unsubscribe: android-kernel+unsubscr...@googlegroups.com > > > > > website:http://groups.google.com/group/android-kernel > > > > > -- > > > unsubscribe: android-kernel+unsubscr...@googlegroups.com > > > website:http://groups.google.com/group/android-kernel > > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel > -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel