Autor Tópico: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!  (Lida 2365336 vezes)

4d4c47

  • Visitante
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3375 Online: 12 de Fevereiro de 2011, 16:57 »

ps2: vampire, eu passo como habilitar o Uheadaread amanhã, perdi o fio da meada hoje "programando" hauahuah



será que daria pra ajudar agente aé, que o negocio aqui tá osso, lento pra burro mesmo.

Offline py8elo

  • Usuário Ubuntu
  • *
  • Mensagens: 107
  • Acorda Brasil!
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3376 Online: 12 de Fevereiro de 2011, 17:45 »
Aqui deu erro na instalação 32bits...
----------------------------------------------
dpkg: problemas de dependência impedem a configuração de linux-headers-2.6.37-12-lineduc2:
 linux-headers-2.6.37-12-lineduc2 depende de linux-headers-2.6.37-12; porém:
  Pacote linux-headers-2.6.37-12 não está instalado.
dpkg: erro processando linux-headers-2.6.37-12-lineduc2 (--install):
 problemas de dependência - deixando desconfigurado
Erros foram encontrados durante o processamento de:
 linux-headers-2.6.37-12-lineduc2



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


@4d4c47
Po, valeu :D:D

@vampire_thunder
Então, o diff poderia fazer o que a gente mexe muito aqui (um .patch)
Eu pensei em fazer isso, só que a intenção era procurar todos os arquivos que tenham o mtune ou march e dar esse "replace", Isso é meio perigoso porque como o cara falou, tem arquivos responsáveis pelo video. ;s
O patch séria legal, mas teria que saber quais arquivos dar patch, e nas próximas versões do kernel pode ser que essas linhas sejam removidas, ou novas linhas sejam adicionadas, tendo que fazer um script que procure essas linhas novas e crie um novo patch, o que mais vale rodar o script, hm1

Geralmente não muda muita coisa, e o que dá erro ainda dá para corrigir, devido aos arquivos .rej que ele cria. É assim que eu aplico patches mais antigos, com o do LZMA, em versões novas.
Mas eu vou testar seu script e recompilar o kernel que, aliás, tenho gostado da velocidade e estabilidade. Para quem não conseguiu ver o tópico e baixar, aí vão os links:


http://archive.lineduc.sigeduc.info/lineduc/pool/main/l/linux/linux-headers-2.6.37-12_2.6.37-12.26.1_all.deb

32 bits
http://archive.lineduc.sigeduc.info/lineduc/pool/main/l/linux/linux-headers-2.6.37-12-lineduc2_2.6.37-12.26.1_i386.deb
http://archive.lineduc.sigeduc.info/lineduc/pool/main/l/linux/linux-image-2.6.37-12-lineduc2_2.6.37-12.26.1_i386.deb

64 bits
http://archive.lineduc.sigeduc.info/lineduc/pool/main/l/linux/linux-headers-2.6.37-12-lineduc2_2.6.37-12.26.1_amd64.deb
http://archive.lineduc.sigeduc.info/lineduc/pool/main/l/linux/linux-image-2.6.37-12-lineduc2_2.6.37-12.26.1_amd64.deb


A única coisa que percebi aqui no notebook (só uso notebook, não tenho desktop), é que a bateria vai embora. Creio que por conta da mudança para 300 HZ.
Ubuntu 16.04 LTS
G41M-S01 + E7500 + 4Gb Ram + Gforce GT610 2Tb SATA + 3x500Gb SATA
Linux registered user #521164

Offline vampire_thunder

  • Usuário Ubuntu
  • *
  • Mensagens: 735
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3377 Online: 12 de Fevereiro de 2011, 18:17 »
Aqui deu erro na instalação 32bits...
----------------------------------------------
dpkg: problemas de dependência impedem a configuração de linux-headers-2.6.37-12-lineduc2:
 linux-headers-2.6.37-12-lineduc2 depende de linux-headers-2.6.37-12; porém:
  Pacote linux-headers-2.6.37-12 não está instalado.
dpkg: erro processando linux-headers-2.6.37-12-lineduc2 (--install):
 problemas de dependência - deixando desconfigurado
Erros foram encontrados durante o processamento de:
 linux-headers-2.6.37-12-lineduc2



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


Você tem que instalar primeiro o headers "all".

4d4c47

  • Visitante
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3378 Online: 12 de Fevereiro de 2011, 20:58 »
Aqui deu erro na instalação 32bits...
----------------------------------------------
dpkg: problemas de dependência impedem a configuração de linux-headers-2.6.37-12-lineduc2:
 linux-headers-2.6.37-12-lineduc2 depende de linux-headers-2.6.37-12; porém:
  Pacote linux-headers-2.6.37-12 não está instalado.
dpkg: erro processando linux-headers-2.6.37-12-lineduc2 (--install):
 problemas de dependência - deixando desconfigurado
Erros foram encontrados durante o processamento de:
 linux-headers-2.6.37-12-lineduc2





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


Você tem que instalar primeiro o headers "all".

vampire_thunder, meu irmão, tenho que falar a verdade

seu kernel é simplesmente perfeito cara, rodou tudo beleza aqui numa velocidade alucinante,

foi o mais rápido até agora que já testei, e sem o bug no driver da ati, o unico problema é que só não funcionou o ureadahead mas de resto está perfeito

valeu mesmo.


Ps: fiz um teste aqui nesse kernel, abri 5 videos em 1080p e um video em 4k, abrir uma maquina virtualbox windows xp, mais o programa espacial celestia e mais o broffice, e tudo funcionando sem travamento nenhum e isso tudo em um notebook acer aspire 4540 processador athlon II x2, executou tudo lizinho sem leg nenhum




« Última modificação: 12 de Fevereiro de 2011, 22:27 por 4d4c47 »

Offline luciannoaramalho

  • Usuário Ubuntu
  • *
  • Mensagens: 19
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3379 Online: 13 de Fevereiro de 2011, 07:24 »
Pessoal, não sei se é problema deste kernel 2.6.37, mas quando eu o instalo aqui no ubuntu 10.10, executo um ssh para algum servidor (são vários), ele pede senha e para, fica estagnado, não faz mais nada. Com o 2.6.34-omnislash instalado aqui e no notebook da empresa, o ssh funciona normalmente, apenas quando uso o kernel 2.6.37.
O que poderia ocasionar?

Desde já agradeço.

Offline MSXManiac

  • Usuário Ubuntu
  • *
  • Mensagens: 126
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3380 Online: 13 de Fevereiro de 2011, 18:19 »

um notebook acer aspire 4540 processador athlon II x2, executou tudo lizinho sem leg nenhum


"lizinho"?
"Agora vc "lezou" o português, rsrsrs
"sem leg nenhm"?
leg=perna
vc fez isso sem conectar nenhum pino da cpu no soquete?
mágica?
rsrsrsrsrsrsrs
Deve ser um "lag" da minha memória que anda meio paradona!
rsrsrsrsrsrsrsrs

foi só prá zoar! um bom fds prá todo mundo!

P.S.: Q d o meu kernel omnislash 2.6.37 seu hqx?
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs!
« Última modificação: 13 de Fevereiro de 2011, 18:20 por MSXManiac »
ASUSTek P5QPL-AM + Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (Yorkfield) + 4 Gb RAM 800 MHz

4d4c47

  • Visitante
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3381 Online: 14 de Fevereiro de 2011, 00:44 »

um notebook acer aspire 4540 processador athlon II x2, executou tudo lizinho sem leg nenhum


"lizinho"?
"Agora vc "lezou" o português, rsrsrs
"sem leg nenhm"?
leg=perna
vc fez isso sem conectar nenhum pino da cpu no soquete?
mágica?
rsrsrsrsrsrsrs
Deve ser um "lag" da minha memória que anda meio paradona!
rsrsrsrsrsrsrsrs

foi só prá zoar! um bom fds prá todo mundo!

P.S.: Q d o meu kernel omnislash 2.6.37 seu hqx?
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs!

brincadeiras a parte,

mas realmente tenho que reconhecer, esse kernel é sensacional, até meu bluetooth foi reconhecido na boa,

maravilha viu, vale a pena testar






Offline Gunss

  • Usuário Ubuntu
  • *
  • Mensagens: 618
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3382 Online: 14 de Fevereiro de 2011, 12:28 »
@vampire, realmente esse seu kernel ta muito bom. Só tem o lance do ureadahead não funciona, e isso pq aparece a mensagem no boot dizendo que ele nao ta pegando.
Não descobri o que tem que desabilitar para ele aparecer por isso vou mandar parte do meu .config  ;D

Código: [Selecionar]
# Kernel hacking
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_PRINTK_TIME=y
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=2048
CONFIG_MAGIC_SYSRQ=y
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_UNUSED_SYMBOLS is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_SHIRQ is not set
# CONFIG_LOCKUP_DETECTOR is not set
# CONFIG_HARDLOCKUP_DETECTOR is not set
# CONFIG_DETECT_HUNG_TASK is not set
# CONFIG_SCHED_DEBUG is not set
CONFIG_SCHEDSTATS=y
CONFIG_TIMER_STATS=y
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not set
# CONFIG_DEBUG_KMEMLEAK is not set
CONFIG_DEBUG_PREEMPT=y
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
CONFIG_STACKTRACE=y
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_HIGHMEM is not set
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_VIRTUAL is not set
# CONFIG_DEBUG_WRITECOUNT is not set
CONFIG_DEBUG_MEMORY_INIT=y
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set
CONFIG_ARCH_WANT_FRAME_POINTERS=y
# CONFIG_FRAME_POINTER is not set
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_RCU_CPU_STALL_DETECTOR is not set
# CONFIG_KPROBES_SANITY_TEST is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# CONFIG_LKDTM is not set
# CONFIG_CPU_NOTIFIER_ERROR_INJECT is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not set
CONFIG_SYSCTL_SYSCALL_CHECK=y
# CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_USER_STACKTRACE_SUPPORT=y
CONFIG_NOP_TRACER=y
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST=y
CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_RING_BUFFER=y
CONFIG_EVENT_TRACING=y
CONFIG_CONTEXT_SWITCH_TRACER=y
CONFIG_RING_BUFFER_ALLOW_SWAP=y
CONFIG_TRACING=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_PREEMPT_TRACER is not set
# CONFIG_SCHED_TRACER is not set
CONFIG_ENABLE_DEFAULT_TRACERS=y
# CONFIG_FTRACE_SYSCALLS is not set
CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
CONFIG_KPROBE_EVENT=y
# CONFIG_MMIOTRACE is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
CONFIG_PROVIDE_OHCI1394_DMA_INIT=y
# CONFIG_DYNAMIC_DEBUG is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
CONFIG_HAVE_ARCH_KMEMCHECK=y
# CONFIG_KMEMCHECK is not set
# CONFIG_STRICT_DEVMEM is not set
CONFIG_X86_VERBOSE_BOOTUP=y
CONFIG_EARLY_PRINTK=y
# CONFIG_EARLY_PRINTK_DBGP is not set
CONFIG_DEBUG_STACKOVERFLOW=y
CONFIG_DEBUG_STACK_USAGE=y
# CONFIG_DEBUG_PER_CPU_MAPS is not set
# CONFIG_X86_PTDUMP is not set
# CONFIG_DEBUG_RODATA is not set
# CONFIG_DEBUG_NX_TEST is not set
# CONFIG_4KSTACKS is not set
CONFIG_DOUBLEFAULT=y
# CONFIG_IOMMU_STRESS is not set
CONFIG_HAVE_MMIOTRACE_SUPPORT=y
# CONFIG_X86_DECODER_SELFTEST is not set
CONFIG_IO_DELAY_TYPE_0X80=0
CONFIG_IO_DELAY_TYPE_0XED=1
CONFIG_IO_DELAY_TYPE_UDELAY=2
CONFIG_IO_DELAY_TYPE_NONE=3
CONFIG_IO_DELAY_0X80=y
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not set
# CONFIG_IO_DELAY_NONE is not set
CONFIG_DEFAULT_IO_DELAY_TYPE=0
# CONFIG_DEBUG_BOOT_PARAMS is not set
# CONFIG_CPA_DEBUG is not set
# CONFIG_OPTIMIZE_INLINING is not set
# CONFIG_DEBUG_STRICT_USER_COPY_CHECKS is not set


To achando estranho que independente do kernel, sempre que vou compilar alguns GB de uma partição para outra, meu PC trava constantemente, o Firefox 4.0 trava, o nautilus deixa de responder por alguns segundos, fica muito chato de usar o sistema.

E outra, a taxa de MB/s do HD copiando os arquivos é maior usando o CFQ.
Acho que vou aplicar algumas das dicas do EXT4 do galactus no PC.

Offline vampire_thunder

  • Usuário Ubuntu
  • *
  • Mensagens: 735
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3383 Online: 14 de Fevereiro de 2011, 13:55 »
Tava voltando umas páginas, alguém pediu se dava pra dar um "replace" em todos os arquivos do kernel que contenha algum -march,-mtune,-mcpu, por -march=native.

Bom, eu não sou um eeexpert em bash, eu tenho lógica de programação porque programo em PHP.
Fiz esse script, ele é bem POG (programação orientada a gambiarra), devido a eu não ser muito bom em bash.
Ele dá o replace em todos os mtune march, mcpu por -march=native.

Se alguém quiser testar:
Código: [Selecionar]
#!/bin/bash
grep -srin mtune /usr/src/linux-2.6.37/* -l | while read path; do
if [ "$path" != "/usr/src/linux-2.6.37/script.sh" ]; then
echo $path
sed -e 's/-mtune=.*/-march=native/g' $path > "$path.file_changed"
rm -rf $path
mv "$path.file_changed" $path
fi
done
grep -srin march /usr/src/linux-2.6.37/* -l | while read path; do
if [ "$path" != "/usr/src/linux-2.6.37/script.sh" ]; then
echo $path
sed -e 's/-march=.*/-march=native/g' $path > "$path.file_changed"
rm -rf $path
mv "$path.file_changed" $path
fi
done


PS.: Ele vai te dizer (ao menos é pra dizer) que arquivos ele mudou, depois de ele mudar, verifique a integridade do arquivo, com o backup que você deve ter feito do source do kernel. Tenha certeza que ele só deu replace  no que deve. Isso é só pra testar claro. Eu testei com todos os arquivos (fiquei 20 min codando e 1 hora testando '-') e fez tudo que ele deveria sem problemas, mas pode ser que tenha algum erro, melhor testar.

PS2.: Se você fizer na pasta do src vai ter que executar ele como root

PS3.: se você fizer isso na pasta de outro kernel (eu fiz na do linux-2.6.37), tenha certeza de mudar todos os caminhos do script, pra não dar erro. E caso você mude o caminho, tome MUITO cuidado com o que vais remover porque eu uso: rm -rf, se você usar um rm -rf /, já era, rs. Por isso tome cuidado ou não execute como root, coloque em uma pasta que seu user tenha permissão.


PS4.: O script leva uns 10 minutos pra executar, isso é normal já que ele vai procurar 3 vezes em toooodos os arquivos do kernel ;x

Acabei de rodar o script e fui conferir o arch/x86/Makefile_32.cpu, onde tem mais entradas alteradas. Percebi que ele não fechou os parênteses. Vejam por exemplo, a partir da linha 30:

Original
Código: [Selecionar]
cflags-$(CONFIG_MWINCHIPC6) += $(call cc-option,-march=winchip-c6,-march=i586)
cflags-$(CONFIG_MWINCHIP3D) += $(call cc-option,-march=winchip2,-march=i586)
cflags-$(CONFIG_MCYRIXIII) += $(call cc-option,-march=c3,-march=i486) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0
cflags-$(CONFIG_MVIAC3_2) += $(call cc-option,-march=c3-2,-march=i686)
cflags-$(CONFIG_MVIAC7) += -march=i686
cflags-$(CONFIG_MCORE2) += -march=i686 $(call tune,core2)
cflags-$(CONFIG_MATOM) += $(call cc-option,-march=atom,$(call cc-option,-march=core2,-march=i686)) \
$(call cc-option,-mtune=atom,$(call cc-option,-mtune=generic))

Depois do script
Código: [Selecionar]
cflags-$(CONFIG_MWINCHIPC6) += $(call cc-option,-march=native
cflags-$(CONFIG_MWINCHIP3D) += $(call cc-option,-march=native
cflags-$(CONFIG_MCYRIXIII) += $(call cc-option,-march=native
cflags-$(CONFIG_MVIAC3_2) += $(call cc-option,-march=native
cflags-$(CONFIG_MVIAC7) += -march=native
cflags-$(CONFIG_MCORE2) += -march=native
cflags-$(CONFIG_MATOM) += $(call cc-option,-march=native
$(call cc-option,-march=native

Alguém já conseguiu compilar depois dessas alterações? Deu erro de compilação ou foi de boa?

Testei aqui e deu uma série de erros de compilação. O script apaga tudo que vai depois do "native", e com isso está apagando coisas importantes.
Uma pena, pois ele foi realmente uma mão na roda. Substituiu tudo direitinho.

Gunss, mais tarde vou tentar. Dei uma olhada no patch e tenho algumas suspeitas de onde habilita, mas vou tentar com sua config também. É só eu acabar de mudar tudo pra native, para ver se melhora.


Offline Stivekx

  • Usuário Ubuntu
  • *
  • Mensagens: 126
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3384 Online: 14 de Fevereiro de 2011, 23:08 »
ahh que pena que não deu certo o script, fiz com tanto carinho, rs

Segui a dica e fiz um .patch usando diff, fiquem a vontade pra testar:
http://pastebin.com/raw.php?i=fSjEqBcg

Teste no kernel 2.6.37 (baixado direto daqui: http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.tar.bz2)
To baixando o 2.6.36, .34 e o .38 (talvez) pra ir testando se dá certo
« Última modificação: 15 de Fevereiro de 2011, 06:05 por Stivekx »

Offline vampire_thunder

  • Usuário Ubuntu
  • *
  • Mensagens: 735
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3385 Online: 14 de Fevereiro de 2011, 23:23 »
ahh que pena que não deu certo o script, fiz com tanto carinho, rs

Segui a dica e fiz um .patch usando diff, fiquem a vontade pra testar:
http://pastebin.com/raw.php?i=QXJb3J9G

Teste no kernel 2.6.37 (baixado direto daqui: http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.tar.bz2)
To baixando o 2.6.36, .34 e o .38 (talvez) pra ir testando se dá certo

E não daria para consertar?
Vou testar o patch agora.

Offline Stivekx

  • Usuário Ubuntu
  • *
  • Mensagens: 126
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3386 Online: 14 de Fevereiro de 2011, 23:34 »
Depende, até daria, mas pra achar a palavra exata, teria que usar regExp, o que eu sou uma bosque tanto no PHP quando vi que sou no bash.
-march=.*, é esse comando que tem no arquivo...
Eu sei que se você usar: -march=\(.*\)\n, ele vai apagar até a próxima linha... Só que, ali aconteceu de ele dar replace não só no que vem depois de uma linha, mas em quase tudo que vem depois de -march=, eu teria que fazer uma ER (expressão regular) que procurasse só até pontos x.
Então, eu teria que saber todos os pontos em que ele deve "parar" como:  ")" , \n [quebra de linha], "," [virgulas]. Saber tooodos os pontos a parar seria um trabalho e pode mudar a cada kernel, construir a expressão daria trabalho (só se alguém aqui no fórum fosse bom em BASH e fizesse, mas vai achar alguém ;s) dai daria.
No fim das contas mas vale fazer com patch mesmo. em outras versões roda com --dry-run e vê, se arquivo x deu erro, é só corrigir, bem mais fácil (:

Offline vampire_thunder

  • Usuário Ubuntu
  • *
  • Mensagens: 735
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3387 Online: 15 de Fevereiro de 2011, 01:40 »
Parece até que estou de marcação, mas aqui falhou tudo:
Código: [Selecionar]
patching file usr/src/linux-2.6.37/arch/parisc/Makefile.diff
Hunk #1 FAILED at 61.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/parisc/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/s390/Makefile.diff
Hunk #1 FAILED at 35.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/s390/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/mips/loongson/Platform.diff
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/mips/loongson/Platform.diff.rej
patching file usr/src/linux-2.6.37/arch/mips/Makefile.diff
Hunk #1 FAILED at 121.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/mips/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/arm/mach-omap2/Makefile.diff
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 55.
2 out of 2 hunks FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/arm/mach-omap2/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/arm/boot/compressed/Makefile.diff
Hunk #1 FAILED at 77.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/arm/boot/compressed/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/arm/mm/Makefile.diff
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 41.
Hunk #3 FAILED at 63.
Hunk #4 FAILED at 92.
4 out of 4 hunks FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/arm/mm/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/arm/Makefile.diff
Hunk #1 FAILED at 57.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/arm/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/avr32/Makefile.diff
Hunk #1 FAILED at 16.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/avr32/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/cris/boot/rescue/Makefile.diff
Hunk #1 FAILED at 2.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/cris/boot/rescue/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/x86/kernel/acpi/realmode/Makefile.diff
Hunk #1 FAILED at 32.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/x86/kernel/acpi/realmode/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/x86/boot/compressed/Makefile.diff
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/x86/boot/compressed/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/x86/boot/Makefile.diff
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/x86/boot/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/x86/Makefile_32.cpu.diff
Hunk #1 FAILED at 2.
Hunk #2 FAILED at 10.
Hunk #3 FAILED at 67.
3 out of 3 hunks FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/x86/Makefile_32.cpu.diff.rej
patching file usr/src/linux-2.6.37/arch/powerpc/Makefile.diff
Hunk #1 FAILED at 90.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/powerpc/Makefile.diff.rej
patching file usr/src/linux-2.6.37/arch/sparc/Makefile.diff
Hunk #1 FAILED at 52.
1 out of 1 hunk FAILED -- saving rejects to file usr/src/linux-2.6.37/arch/sparc/Makefile.diff.rej

Offline Stivekx

  • Usuário Ubuntu
  • *
  • Mensagens: 126
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3388 Online: 15 de Fevereiro de 2011, 03:28 »
uaheuhae
Aqui também deu isso, eu fechei o terminal e voltei na pasta depois rodei o patch.

tem certeza que a pasta /usr/src/linux-2.6.37 existe? hm

Eu deletei a pasta toda, extrai o source de novo, dei patch, fiz isso duas vezes e nas duas funfo ;dd

Edit:
Testei denovo aqui e deu certo :0
Código: [Selecionar]
root@stive-laptop:/usr/src/linux-2.6.37# cat mnative.patch | patch -p0 --dry-run
patching file /usr/src/linux-2.6.37/arch/parisc/Makefile
patching file /usr/src/linux-2.6.37/arch/s390/Makefile
patching file /usr/src/linux-2.6.37/arch/mips/loongson/Platform
patching file /usr/src/linux-2.6.37/arch/mips/Makefile
patching file /usr/src/linux-2.6.37/arch/arm/mach-omap2/Makefile
patching file /usr/src/linux-2.6.37/arch/arm/boot/compressed/Makefile
patching file /usr/src/linux-2.6.37/arch/arm/mm/Makefile
patching file /usr/src/linux-2.6.37/arch/arm/Makefile
patching file /usr/src/linux-2.6.37/arch/avr32/Makefile
patching file /usr/src/linux-2.6.37/arch/cris/boot/rescue/Makefile
patching file /usr/src/linux-2.6.37/arch/x86/kernel/acpi/realmode/Makefile
patching file /usr/src/linux-2.6.37/arch/x86/boot/compressed/Makefile
patching file /usr/src/linux-2.6.37/arch/x86/boot/Makefile
patching file /usr/src/linux-2.6.37/arch/x86/Makefile_32.cpu
patching file /usr/src/linux-2.6.37/arch/powerpc/Makefile
patching file /usr/src/linux-2.6.37/arch/sparc/Makefile


Edit 2:
você tá usando patch -p1 ou -p0?
Com patch -p1 nao dá certo, usa patch -p0

Edit 3:
Patch pro 2.6.36.3
aparece algumas mensagens, mas compila sem problemas.
http://pastebin.com/raw.php?i=XCAkTN1H
« Última modificação: 15 de Fevereiro de 2011, 06:07 por Stivekx »

Offline vampire_thunder

  • Usuário Ubuntu
  • *
  • Mensagens: 735
    • Ver perfil
Re: Kernel Omnislash (Unofficial) - Aprendendo a voar sem segredos!!!
« Resposta #3389 Online: 15 de Fevereiro de 2011, 07:53 »
uaheuhae
Aqui também deu isso, eu fechei o terminal e voltei na pasta depois rodei o patch.

tem certeza que a pasta /usr/src/linux-2.6.37 existe? hm

Eu deletei a pasta toda, extrai o source de novo, dei patch, fiz isso duas vezes e nas duas funfo ;dd

Edit:
Testei denovo aqui e deu certo :0
Código: [Selecionar]
root@stive-laptop:/usr/src/linux-2.6.37# cat mnative.patch | patch -p0 --dry-run
patching file /usr/src/linux-2.6.37/arch/parisc/Makefile
patching file /usr/src/linux-2.6.37/arch/s390/Makefile
patching file /usr/src/linux-2.6.37/arch/mips/loongson/Platform
patching file /usr/src/linux-2.6.37/arch/mips/Makefile
patching file /usr/src/linux-2.6.37/arch/arm/mach-omap2/Makefile
patching file /usr/src/linux-2.6.37/arch/arm/boot/compressed/Makefile
patching file /usr/src/linux-2.6.37/arch/arm/mm/Makefile
patching file /usr/src/linux-2.6.37/arch/arm/Makefile
patching file /usr/src/linux-2.6.37/arch/avr32/Makefile
patching file /usr/src/linux-2.6.37/arch/cris/boot/rescue/Makefile
patching file /usr/src/linux-2.6.37/arch/x86/kernel/acpi/realmode/Makefile
patching file /usr/src/linux-2.6.37/arch/x86/boot/compressed/Makefile
patching file /usr/src/linux-2.6.37/arch/x86/boot/Makefile
patching file /usr/src/linux-2.6.37/arch/x86/Makefile_32.cpu
patching file /usr/src/linux-2.6.37/arch/powerpc/Makefile
patching file /usr/src/linux-2.6.37/arch/sparc/Makefile


Edit 2:
você tá usando patch -p1 ou -p0?
Com patch -p1 nao dá certo, usa patch -p0

Edit 3:
Patch pro 2.6.36.3
aparece algumas mensagens, mas compila sem problemas.
http://pastebin.com/raw.php?i=XCAkTN1H

Eu sempre uso -p1. Aliás, nunca soube a diferença. Qual é?
Vou testar de novo.

Eu acho que se vc remover o caminho, dá para aplicar o patch em qualquer pasta, não apenas na /usr/src. Eu aqui costumo fazer isso porque não compilo lá.

Citação de: Gunss
@vampire, realmente esse seu kernel ta muito bom. Só tem o lance do ureadahead não funciona, e isso pq aparece a mensagem no boot dizendo que ele nao ta pegando.
Não descobri o que tem que desabilitar para ele aparecer por isso vou mandar parte do meu .config 

Essa config é para 32 bits, certo?
Aqui um monte de opções sumiram depois que carreguei a config. kkkkkkkkkkkkkk

Ontem eu corrompi minha instalação e, ao não carregar o plymouth, vi que o Ureadahead está habilitado mas dá um erro. Aparece uma mensagem do tipo "ureadahead (373) terminated with status 5". Então tem hora que ele funciona e tem hora que dá erro. O difícil é descobrir o que ocasiona o erro.