rt2x00 git's kernel itself broken.

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4440

Amp_God

13-11-2007 21:15:24

Apparently the current GIT kernel is broken

http//lkml.org/lkml/2007/10/25/127
[code4v1f6s1t]
> > LD init/built-in.o
> > LD .tmp_vmlinux1
> > arch/x86/kernel/built-in.o: In function `machine_crash_shutdown':
> > (.text+0x191c8): undefined reference to `genapic'
> > make: *** [.tmp_vmlinux1] Error 1
[/code4v1f6s1t]

I got exactly that error when compiling.
git clone date 2007-11-12 1837

+ i cant even get the latest patches from linux-2.6 (linus) anymore.

[code4v1f6s1t]
$ git pull ../linux-2.6

remote: Generating pack...
remote: Done counting 10283 objects.
remote: Result has 7087 objects.
remote: Deltifying 7087 objects.
remote: 100% (7087/7087) done
Unpacking 7087 objects
remote: Total 7087, written 7087 (delta 5908), reused 6500 (delta 5341)
100% (7087/7087) done
Merging HEAD with 325d22df7b19e0116aff3391d3a03f73d0634ded
Merging:
39e0501 rt2x00: Allow rt61 to catch up after a missing tx report
325d22d sigwait eats blocked default-ignore signals
found 2 common ancestor(s):
6ef89d0 [PATCH] iwl3945: fix direct scan problem
ddd6858 [PATCH] mac80211: fix printk warning on 64-bit
Merging:
6ef89d0 [PATCH] iwl3945: fix direct scan problem
ddd6858 [PATCH] mac80211: fix printk warning on 64-bit
found 1 common ancestor(s):
c9927c2 Linux 2.6.24-rc1
merging of trees 365bfcf0aa2b166f849c7c4343f91f8a300a57f4 and 1b1576ed774d34b7575e492195af75cfe3894668 resulted in 04d45f54012e35d8057ee381f786f99b167ccff9
fatal: Entry 'Documentation/SubmittingPatches' not uptodate. Cannot merge.
No merge strategy handled the merge.
[/code4v1f6s1t]

Ideas how to patch the kernel?

AdamBaker

13-11-2007 23:10:16

Using the patch from the post referenced at the link you gave I decided the easiest option was to just edit arch/x86/kernel/crash.c and change every line that said

#ifdef X86_32
to
#ifdef CONFIG_X86_32

There should be 3 of them to fix.

Automated patching tools are great for big patches but for small ones it is often easier to just read the diff and make the change manually.

Amp_God

14-11-2007 05:28:26

Using the patch from the post referenced at the link you gave I decided the easiest option was to just edit arch/x86/kernel/crash.c and change every line that said

#ifdef X86_32
to
#ifdef CONFIG_X86_32

There should be 3 of them to fix.

Automated patching tools are great for big patches but for small ones it is often easier to just read the diff and make the change manually.[/quote1ig6tp6j]

Could we just follow the newer code & update to 2.6.24-rc2?

AdamBaker

14-11-2007 08:18:29

Not easily. Rt2x00 has to follow wireless-2.6 and even updating to the latest version of that is a reasonable amount of work for Ivo.

IvD

15-11-2007 19:16:05

Well actually I did merge the tree, but forgot to push it to the server. ;)