Patching v3.2.21 kernel for BeagleBoard-XM

I need to patch up this v3.2.21 to support the Ethernet adaptor and the other devices.
The patch release now matches the kernel as seen.

ahmet@T520:~/linux-stable$ git describe
v3.2.21
ahmet@T520:~/BB/Ubuntu-RCN/stable-kernel$ git describe
3.2.21-x13

system.h is good, too.

BUT

ahmet@T520:~/BB/Ubuntu-RCN/stable-kernel$ ./build_kernel.sh
git version 1.7.9.5

  • Detected build host [debian-]
    Using: Cross Compiler

Using : arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright © 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Debug: LINUX_GIT setup…
/home/ahmet/linux-stable
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote “origin”]
fetch = +refs/heads/:refs/remotes/origin/
url = git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
[branch “master”]
remote = origin
merge = refs/heads/master
Updating LINUX_GIT tree via: git fetch
/home/ahmet/BB/Ubuntu-RCN/stable-kernel
Resolve operation not in progress, we are not resuming.
git tree is clean…
error: invalid object 100644 b2d535b21c7af8b6cac083573d5c7e248b8d1830 for ‘.config’
error: invalid object 100644 b2d535b21c7af8b6cac083573d5c7e248b8d1830 for ‘.config’
error: Error building trees

any ideas please?

Your "KERNEL" repo is broken..

The question: was "/home/ahmet/linux-stable" broken before it was
copied to "/home/ahmet/BB/Ubuntu-RCN/stable-kernel/KERNEL"

I'd just "rm -rf KERNEL" and let it try to recopy...

Regards,

Thank you, Robert. Both the kernel repo and your stable-kernel patch set repo were cloned from scratch. After receiving this reply I cloned another kernel repo. The result was the same error message.

I commented out the “git_kernel” line in the build_kernel.sh in order to skip the fetch and pull part as a quick fix but then I got this error message:
Starting patch.sh
Distro Specific Patches
/usr/lib/git-core/git-am: 90: /usr/lib/git-core/git-am: envsubst: Argument list too long

Ahmet

Thank you, Robert. Both the kernel repo and your stable-kernel patch set
repo were cloned from scratch. After receiving this reply I cloned another
kernel repo. The result was the same error message.

Well, something is messed up on your system..

It works perfectly fine here:

I commented out the "git_kernel" line in the build_kernel.sh in order to
skip the fetch and pull part as a quick fix but then I got this error
message:
Starting patch.sh
Distro Specific Patches
/usr/lib/git-core/git-am: 90: /usr/lib/git-core/git-am: envsubst: Argument
list too long

Sorry, I don't have the time or resources to go down that road, once
you start "modifying" (build_kernel.sh, etc), you are on your own...

Regards,