yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] kwibis:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

And in many roms you can remap the buttons. Like use volume rocker as power button.

Sent from my Nexus S
[Nexus S Android Development] towelboy:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

I had a g2x laying around might as well use it before my contract ends in august and get a nexus 4! I dont want to say this but i was kind of getting bored with the nexus s :(
[Nexus S Android Development] kalinusa:
It has happened twice to me. Simply remove back panel, remove the black plastic (it is a bit tricky, find online a video) AND USE A AIR-SPRAY-CANISTER AND BLOW 10 TIME EXACTLY WHERE THE BUTTON IS!!!!! Or put the battery in, and start the phone and monitor how much blowing would fix it. I have done it 2 times already and before I knew I spent HOURS trying to figure what is wrong.
[Nexus S Android Development] FirePoncho86:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

For the first time in about 6 months, I'm leaving marmite kernel. Why? Not because I dislike it in anyway, or because I think there is a better kernel somewhere.( In fact, I actually think marmite is the best kernel out there..not just because of the kernel itself, but because of Bedalus, and all the people in this thread that helped make it awesome! )But because....I'm going back to GB! Woot! But really when I get bored of GB and move back to JB, I'll be right back on marmite ;)
[Nexus S Android Development] DerTeufel1980:
AW: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Hi,

is there a way, to implement a custom kernel splash screen (before the boot animation starts)? It's possible for galaxy s, but I don't know about nexus s.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Nexus S Android Development] micha3lvd:
http://xdaforums.com/showthread.php?t=1632001

Should do the trick
[Nexus S Android Development] weedy2887:
HEY OVERCLOCKERS

What voltages are you guys running?

echo "1380 1300 1240 1175 1050 950 950" > /sys/class/misc/customvoltage/arm_volt

echo "1175 1150 1100 1075 1050 1000 975" > /sys/class/misc/customvoltage/int_volt

Wondering if I'm like way far off. Also I forget the stock settings so if someone could paste that it would be nice.
[Nexus S Android Development] xdwxrd:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Here's the default ARM and INT voltages according to NSTools:
[Nexus S Android Development] polobunny:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

That's for atrix 2,not nexus s!
[Nexus S Android Development] weedy2887:
Hey bedalus,

Ignoring the reboots I get when screwing with my OC, the few i have left are GPU resets when I'm playing with jpegs or videos.

I saw 612079a1da628b3593e801d406642ea812d8866b, what do I have to echo to give the GPU more ram?

Pretty much all of my older BIGMEM kernels were 396-399mb, while I have 406 with yours. I don't need that extra 6-10mb, I need gallery/youtube/whatsapp to work. How do I give the GPU back it's buffer?
[Nexus S Android Development] micha3lvd:
Works same for Nexus S, you just got to change the resolution of the image. Proces remains the same..
[Nexus S Android Development] :
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Those apps should work fine in the latest version. Anyone else having the same issues?
[Nexus S Android Development] JerryPi:
No issues with gallery, camera and youtube for me. Im on the latest CM10.1 and marmite cm 7.3.1 :D
[Nexus S Android Development] xdwxrd:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

I haven't had any trouble with those apps. I've been running 7.3.1 with Slimbean 4.2.1 RC1 and more recently Metal Dragon Overlord.
[Nexus S Android Development] polobunny:
Tested by you? Cause you know if that's not the case it's a possible brick...

Edit: Can somebody give me marmite v7.3 ondemand settings? Cheers.
[Nexus S Android Development] Nexus HAL:
Even on 7.1.7 + Slimbean 3.1 with 410mb available RAM, everything is running so fine that I didn't really feel the urge to upgrade to any latest versions of Marmite.. reaches 200hrs of uptime regularly. I'll try 7.3.1 when/ if i change ROM. :good:
[Nexus S Android Development] :
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

You should be able to see them here: https://github.com/bedalus/marmite/blob/bedalusv7.1/drivers/cpufreq/cpufreq_ondemand.c
[Nexus S Android Development] atpiggy:
hey bedalus, thoughts on compiling an frandom module for this mod?

http://xdaforums.com/showthread.php?t=2113150
[Nexus S Android Development] micha3lvd:
No not tested by me, but besides the resolution nothing in that thread is specific about a phone type, so it should work. It was just one of the first google results and it looked pretty general.
[Nexus S Android Development] leap_ahead:
i use the version with 410 and can play all video and youtube
[Nexus S Android Development] weedy2887:
So I can't raise the video buffer with the bigmem module?
[Nexus S Android Development] :
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

No, that's not a kernel parameter, it's software. The software has direct access to the frame buffer. How the software feeds the frame buffer is nothing to do with the kernel.
[Nexus S Android Development] simplyposting:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Hi bedalus, would u see your inbox, i ask bout the guide for building a kernel.. :(
[Nexus S Android Development] weedy2887:
Well then why do my apps crash now on your hugemem when bigmem works fine?

Hint:

<3>mfc_get_free_mem: there is no suitable chunk....[case 1]
<3>mfc_allocate_buffer: There is no more memory
<3>
<3>mfc_wait_for_done: Decode Error Returned Disp Error Status(0), Dec Error Status(4)
<3>mfc_return_inst_no: R2H_CMD_CLOSE_INSTANCE_RET FAIL
<6>mtp_open
<6>DC servo took 7ms
<3>mfc_get_free_mem: there is no suitable chunk....[case 1]
<3>mfc_allocate_buffer: There is no more memory
<3>
<3>mfc_get_free_mem: there is no suitable chunk....[case 1]
<3>mfc_allocate_buffer: There is no more memory
<3>
<3>mfc_get_free_mem: there is no suitable chunk....[case 1]
<3>mfc_allocate_buffer: There is no more memory
<3>mfc_wait_for_done: Decode Error Returned Disp Error Status(0), Dec Error Status(4)
<3>mfc_return_inst_no: R2H_CMD_CLOSE_INSTANCE_RET FAIL
[Nexus S Android Development] simplyposting:
hi bedalus, here is the script..

thankyou for ur answer :)

#!/bin/sh
cd /home/simply/marmite
git branch
read -p "Correct branch? [Y/N]: " -n 1
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
echo -e "\n"
exit 1
fi
echo -e "\nSTARTING...\n"
export PATH=$PATH:/opt/android-toolchain-eabi/bin/
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-none-eabi-
[Nexus S Android Development] :
no-one else has ever reported any issue with those apps. Are you flashing my kernel in some non-standard way, e.g. zImage only or built your own version?
[Nexus S Android Development] :
Can you add echo $SHELL at the top like I have (see above) and report the output please?
[Nexus S Android Development] simplyposting:
I've followed your instructions, but the result(output) remains the same as I wrote above..

:crying:

how bout the kernel.sh and .config at this directory? is that true??
[Nexus S Android Development] :
try again and see if there is a line output like

/bin/bash
[Nexus S Android Development] simplyposting:
yup, there is a line output /bin/bash, i try it twice and i found that

and still, got a problem on

kernel.sh: 5: read: illegal loption -n

kernel.sh: 6: kernel.sh: [[: not found

-e

STARTING...

**then nothing happened.. just go back to the root in terminal
[Nexus S Android Development] weedy2887:
Not really, I run the scripts against the kernel file vs. dumping the image since I'm flashing it along with my ROM.

@@ -16,9 +15,9 @@
set_perm(0, 0, 0777, "/tmp/cleaner.sh");
run_program("/tmp/cleaner.sh");
unmount("/system");
-run_program("/tmp/dump_image", "boot", "/tmp/boot.img");
+assert(package_extract_file("boot.img","/tmp/boot.img"););
run_program("/tmp/unpackbootimg", "-i", "/tmp/boot.img", "-o", "/tmp/");
run_program("/tmp/unpack_add_init.sh");
run_program("/tmp/mkbootimg.sh");
-write_raw_image("/tmp/newboot.img", "boot");
+assert(write_raw_image("/tmp/newboot.img", "boot"), delete("/tmp/boot.img"));

I run MIUI and I have full GPU accel running. Which is why I would like to know where you set the ram limits.
[Nexus S Android Development] :
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

The ram limits are fine. You need some modified libraries that are packaged in the kernel zip.
[Nexus S Android Development] :
It must be something simple...

If you haven't already done it, try

chmod a+x kernel.sh

and execute the script using ./kernel.sh

(not sh kernel.sh)
[Nexus S Android Development] simplyposting:
i did it, and still nothing happend after line:

"STARTING......"

just go back to the root in terminal, there is no message come from the compiler..

:(
[Nexus S Android Development] :
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

This is progress.

The reason it won't compile is because you need to select a branch.

In the terminal try

git checkout -b mybranch bedalus7.3

... where mybranch is just a name for your own branch and bedalus7.3 is my most up-to-date branch. If you've cloned my repo it should work fine.

After that your script should work.
[Nexus S Android Development] Nokiaro91:
R: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Kernel dont have the changes with pimpmyrom applicatio

Inviato dal mio Nexus S con Tapatalk 2
[Nexus S Android Development] simplyposting:
oke ill do it ASAP, and report the result on this post too

thanks bedalus

:)

===================

report:

is that true??

:(
[Nexus S Android Development] :
Is this your entire script or is there more?
[Nexus S Android Development] simplyposting:
yes, thats my first script, but i choose to try again your tutor from the starts..

then,

i wrote again like that:

i think to erase:

because u said:

This is just a little precaution that I put in to give myself the chance to abort the build before it starts if I'm on the wrong branch. If I don't hit y then the script aborts, and I can checkout the right branch, then restart the script.

so IMHO thats can be erased.. :(

am i wrong?..

and once more..

depends on my dir right?
[Nexus S Android Development] :
Ok, you can delete the check if you want, but that isn't the problem.

Yes, you need to make sure the directory/path names are all correct and match your system.

At the moment I think you are missing the final commands to begin building.

make -j3

When it's finished, copy arch/arm/boot/zImage into one of my recent kernel zips. Put it in the kernel folder. Flash, reboot, and see if it reports your kernel in 'About Phone'
[Nexus S Android Development] simplyposting:
wew thats the key! lol...

i wrote down "make -j3"

actually, whats the meaning of "make -j3" ??

n then.. when i answer Y/N question.. its about more than 100 question..

there is no zImage from boot directory like u said..

i found error like this..

would u explain bout that error??
[Nexus S Android Development] Nexus HAL:
Is BLX enabled by default on Marmite? If yes, at what percentage. Mine shows 100% at full charge. Is it a cosmetics fix, or do I have to enable BLX with scripts?
[Nexus S Android Development] ciaastek:
Odp: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

NS Tools has ability to control BLX. I think that when you set it to 95% phone won't charge battery over that value but it won't change displayed value in any way (you won't see 100% anymore)
[Nexus S Android Development] Nexus HAL:
I know.. but thats not what I was asking!
[Nexus S Android Development] :
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

The long list of questions is the kernel config script. It generates the .config file.

Use mine as a starting point. You can download it from my github

Download it and replace your existing .config

make is just the command to start the build. It runs the commands in Make file

-j3 is how many threads to use.
[Nexus S Android Development] simplyposting:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Ooo.. I ty to answer it one by one n it takes a long time lol..

Thanks bedalus...

But how about the errors??

Error1 and error2.. They showed in my pic above..

:)

==================================

==================================

report:

i use your .config from your github.. and then i try to run again..

./kernel.sh

Initially there was no problem, but during the process, I found that my computer shut down and that happen again when I repeat the process ..

i dont know how to solve it bedalus.. my comp always shutdown if i run that script :0 :0

:(

=======================

=======================

i have done bedalus..

i try to run your script again.. and then i found this:

it means success??

:P

FAST JUST GOT FASTER!

NEXUS S - I9023
[Nexus S Android Development] ciaastek:
Odp: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

You asked is blx enabled by default right? I told you, that when you set blx, phone wont't charge to 100% anymore. So if you don't see it...?

BLX is not enabled by default (to any value lower than 100%) in marmite kernel.
[Nexus S Android Development] weedy2887:
I know, they are flashed. So where are the ram limits set?
[Nexus S Android Development] FirePoncho86:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

I've always wanted the seven thousandth post....also, I've been nostalgic about ICS....how is the ICS version of marmite? Stable?
[Nexus S Android Development] alienwolf426:
I have a noob question. I tried searching for it but couldn't get an answer.

For the init.d scripts to work, does the feature have to be supported by my rom? or the kernel? The reason I ask is that I'm using ParanoidAndroid 3.00 with this kernel and my init.d script doesn't seem to work. Im trying to make BLN work by using one of the scripts provided in this thread and its not working at all.

Cheers,
[Nexus S Android Development] polobunny:
ROM. I'm pretty damn sure PA supports init.d scripts. You need a working busybox install too, which most custom roms have.
[Nexus S Android Development] alienwolf426:
So, is there any way I can check if init.d scripts are working? because I'm been trying to figure out why the BLN controls don't work at all.

I'm using the following in my init.d script (i've named it customscripts and given it proper permissions and placed it within /system/etc/init.d/)

#!/system/bin/sh
# ---------- BLN (Backlight Notification) ----------
# Enabled (0 - Disable; 1 - Enable)
echo 1 > /sys/class/misc/backlightnotification/enabled

# Blink (0 - Disable; 1 - Enable)
echo 0 > /sys/class/misc/backlightnotification/in_kernel_blink
[Nexus S Android Development] BenHeng:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

You might check using pimp my ROM app (download on the play store). As for your init.d issue, init.d script are a pain in the a.... Use smanager instead to run custom script at boot. It needs an extra ap but it is pretty convenient .

Envoyé depuis mon Nexus s avec Tapatalk
[Nexus S Android Development] benoit2600:
@simplyposting :

You might be interrested by my script to build bedalus' kernel :

https://github.com/benoit2600/test/blob/master/mybuild.sh

there 2-3 little thing to adapt for yourself :

line 3 : dir=/home/ben/kernel/test //change by the directory of your kernel

line 49, 53, 56 : change "ben" by the name you want for the zip file

you might also need the whole zipfile folder (put it on the root of the kernel folder) :

https://github.com/benoit2600/test/tree/master/zipfile

usage :

just type ./myscript.sh will compile and fastboot flash the compiled kernel

other option :

./mybuild -c //compile the kernel

./mybuild -z //make a zip of the kernel

./mybuild -f //fastboot flash the kernel
[Nexus S Android Development] :
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Cool script!
[Nexus S Android Development] dchriste90:
Looks nice! I would make the name of the zip a define like you did for $dir. Say call it $ZIP=ben or whatever. then for any given user they only modify two lines.

DIR=/home/ben/kernel/test
ZIP_NAME=ben

And usage later:

zip -r -q ${DIR}/${ZIP_NAME}.zip ${DIR}/zipfile/*
[Nexus S Android Development] weedy2887:
Never mind, I did a bisect and found what I wanted. Fixed my panics.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

I have another question for the overclockers. Does your phone feel slower when OC'ed?

I can get stupid high benchmark results when I have the OC active but from an interactivity standpoint the phone feels slower. It's almost like I'm missing VSYNC or something it's hard to describe. Anyone else notice this? The phone just seems to try harder when I'm OC'ed.

That said I can use other kernels that only OC the processor and that scales performance like you would expect. And I remember back in the day steven had a kernel with the bus running at 220 that was fast as ****.

Anyway I thought I was going nuts until I flashed my GFs phone and her first words were "Why does this feel slower?" and when I changed the max from 1092 to 1000 she said it felt better. Anyone else feel this or is it just me? If you bench your phone it scores higher, that isn't what I'm *****ing about.
[Nexus S Android Development] anshumandash:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

I don't feel the same. I feel 1096 is much faster in responsiveness than 1000.

Sent from my Nexus S
[Nexus S Android Development] skinner12:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Yes, me too.. Always on 1096, for me the perfect speed..

Try wipe data and reinstall..

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;)
[Nexus S Android Development] simplyposting:
thanks ben, ill try it later...

it means the other way to build a kernel?:)

then..

what's the difference between yours and bedalus?

is there something better or what

:) im just asking

once again.. thanks to you, ben!

indeed! :)
[Nexus S Android Development] skinner12:
In ben's script you can choose only to build, zip and fastboot or make and flash to device. I guess it's better choose what to do.
[Nexus S Android Development] Basche:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

For 1096mhz, what settings do you use, cause I get constant reboots on it with smartass and cfq. I left the settings on default
[Nexus S Android Development] spider623:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

On demand

Sent from my Nexus S
[Nexus S Android Development] Basche:
is it better to use ondemand than smartassv2?
[Nexus S Android Development] polobunny:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Ondemand as it is set is more battery friendly than smartassv2
[Nexus S Android Development] Basche:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

That I know, I wanted to know if it's better to use ondemand for 1096mhz since that's what spider said.
[Nexus S Android Development] :
Looks like it.
[Nexus S Android Development] Icecoldmeat:
It worked.. now I can use your magical kernel again without problems :)
[Nexus S Android Development] :
I had some dodgy formatting code in the OP that was causing XDA app to crash. Fixed now. Hopefully now people can read the OP on their phone! And see the marmite!
[Nexus S Android Development] tchaari:
Thanks buddy. Yes I am a bit busy with work these days :)

I tried your kernel v2c on JellyBelly and DoubleX but I got a bootloop. Wiped cache and fixed permissions but still a bootloop.

Did I missed something?
[Nexus S Android Development] :
Jelly belly is Adamg's right? It worked on v1.1, I checked.
[Nexus S Android Development] tchaari:
Too strange :confused:

Yes it is AdamG's ROM 0.1.3 with your JB marmite v2c. Anyone tried this combo too?

I even reflashed the ROM and the kernel with a full wipe but stuck at google logo :(
[Nexus S Android Development] sdhanjal15:
Same combo. Running like a champ
[Nexus S Android Development] tchaari:
It is not the first time I flash a kernel but I think that I need help with the JB marmite :)

Can you please detail the steps that you did to get things working?
[Nexus S Android Development] sdhanjal15:
Flashed Rom and wiped coach and dalvik. And fixed permissions.
[Nexus S Android Development] tchaari:
You mean the kernel?

I did the same. I flashed the kernel then wiped dalvik, wiped cache and fixed permissions but I got stuck to google logo :(
[Nexus S Android Development] sdhanjal15:
Well idk then

Btw bedalus...my YouTube won't play videos
[Nexus S Android Development] tchaari:
Thanks anyway.

I'll wait for other users if they encounter the same problem or not :)
[Nexus S Android Development] marinierb:
Cleared dalvik and flashed over CM10. No problems. Youtube working fine.
[Nexus S Android Development] alen1901:
Just flashed 1.4d on cm9. All great. Flashed without wipeing anything. Only thing i think is kinda strange, is that you cannot enable bln in cm9 settings, so you have to use script. Nothing big, but just to mention. Calibrating battery and testing battery life are on the way. ;) also, did you include bld on 1.4d? I got confused with all this kernels. :p

Sent from SpeedMachine i9023
[Nexus S Android Development] sdhanjal15:
I'll reflash
[Nexus S Android Development] sdhanjal15:
Probably need a big mem patch
[Nexus S Android Development] uzzo85:
flashed after wipe dalvik on the brainm. stock jelly bean, but google logo breaked :(
[Nexus S Android Development] tchaari:
Well, it seems that I am not the only one having flahing problems. Did you wiped dalvik and cache again and fixed permissions after flashing the kernel?
[Nexus S Android Development] JokerAce:
Actually, if both you of are going from pure reset..

I would (my opinion) suggest that:

1. Wipe/format System

2. Go to advance and format everything (system, data, cache, boot, etc)

3. Flash ROM.

4. Flash Gapps (if any)

5. Flash Kernel

6. Fix Permission

7. Boot
[Nexus S Android Development] tchaari:
I exactly did that but never passed google logo.
[Nexus S Android Development] polobunny:
It's not all black or white.

Better for what? performance? no. Battery saving? yes.

400MHz, 1000Mhz, 1096MHz or 5000MHz, the same usual principles still apply.

Reboot has nothing to do with the governor (if said governor is stable at stable clocks).
[Nexus S Android Development] weedy2887:
Scheduler has nothing to do with overclock. Tweak your voltages.
[Nexus S Android Development] Basche:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

How much should I tweak it?
[Nexus S Android Development] simplyposting:
hm okay, i'l try it :)

thanks for the explanation bro :good:
[Nexus S Android Development] anshumandash:
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

Increase the arm voltage for 1096 by 25. If you still get reboot, increase by 25 more.

Sent from my Nexus S
[Nexus S Android Development] DerTeufel1980:
hey bedalus, would you mind telling me, what you changend for mtp mode? for my aries kernel nothing had to be changend. i am little bit confused by this ;)

also, is there anything about uinitramfs, when you are compiling your kernel? mine is not working with 4.1 roms
[Nexus S Android Development] :
Re: [GUIDE] Build a Kernel! + [KERNEL] marmite_v7.3 MTP

MTP requires changes in the ramdisk. There's a script in the kernel zip that handles it. Have a dig around, I can't remember off the top of my head where the bit is.

Are you using any-kernel script?
[Nexus S Android Development] DerTeufel1980:
ah, ok. then i understand ;)

i heard about anykernel script, but never took a look at it.
[Nexus S Android Development] :
Oh yeah, it's great. It unpacks the ROM's existing boot.img, replaces the zImage with your own, and packs it back up, flashes it to the partition... The MTP stuff is done with some sed scripting technique, to avoid adding it more than once.
[Nexus S Android Development] DerTeufel1980:
ah, i'll take a look at it :) sounds good.

ok, another question: are yoiu building your kernel with 4.2 ramdisk? because i got told, your kernel works for both, 4.2.x as well as 4.1.2