PDA

Bekijk de volledige versie : Missing linux sources



oldgringo
23-11-2011, 21:58
Hi guys,
I'm trying to compile a custom rtn firmware by wiki but it seems to me that both linux archives were removed from kernel.org. Could somebody upload them into the download repo?
Thanks.

Edit:
However I found some 2.6.22.19 file but when I'm trying to compile I get these messages:

./135-mma-updates1.patch
Can not apply ./135-mma-updates1.patch cleanly
make[1]: *** [patch] Error 1
make[1]: Leaving directory `/home/oldgringo/firmwarertn/1.9.2.7-rtn/kernel-2.6'
make: *** [kernel-patch] Error 2
cp -p Makefile.top /home/oldgringo/firmwarertn/gateway/Makefile
svnversion -c 2>/dev/null | sed "s/.*://" > /home/oldgringo/firmwarertn/gateway/.svnrev
[ -d /home/oldgringo/firmwarertn/gateway/config ] || \
tar -C . --exclude .svn -cf - config | tar -C /home/oldgringo/firmwarertn/gateway -xf -
[ -d /home/oldgringo/firmwarertn/gateway/shared ] || \
tar -C . --exclude .svn -cf - shared | tar -C /home/oldgringo/firmwarertn/gateway -xf -
make -C kernel-2.6 version
make[1]: Entering directory `/home/oldgringo/firmwarertn/1.9.2.7-rtn/kernel-2.6'
make -C /home/oldgringo/firmwarertn/linux/linux-2.6 include/linux/version.h
make[2]: Entering directory `/home/oldgringo/firmwarertn/linux/linux-2.6'
CHK include/linux/version.h
UPD include/linux/version.h
make[2]: Leaving directory `/home/oldgringo/firmwarertn/linux/linux-2.6'
make[1]: Leaving directory `/home/oldgringo/firmwarertn/1.9.2.7-rtn/kernel-2.6'
make -C /home/oldgringo/firmwarertn/gateway .config
make[1]: Entering directory `/home/oldgringo/firmwarertn/gateway'
Makefile:15: .config: No such file or directory
grep: /include/linux/version.h: No such file or directory
grep: /include/linux/utsrelease.h: No such file or directory
cp config/defconfig .config
make oldconfig
grep: /home/oldgringo/firmwarertn/linux/linux-2.6/include/linux/utsrelease.h: No such file or directory

# Also configure kernel
make koldconf
grep: /home/oldgringo/firmwarertn/linux/linux-2.6/include/linux/utsrelease.h: No such file or directory
make[3]: Entering directory `/home/oldgringo/firmwarertn/gateway'
cp /home/oldgringo/firmwarertn/linux/linux-2.6/arch/mips/defconfig-bcm947xx /home/oldgringo/firmwarertn/linux/linux-2.6/.config
cp: cannot stat `/home/oldgringo/firmwarertn/linux/linux-2.6/arch/mips/defconfig-bcm947xx': No such file or directory
make[3]: *** [/home/oldgringo/firmwarertn/linux/linux-2.6/.config] Error 1
make[3]: Leaving directory `/home/oldgringo/firmwarertn/gateway'
make[2]: *** [oldconf] Error 2
make[2]: Leaving directory `/home/oldgringo/firmwarertn/gateway'
make[1]: *** [.config] Error 2
make[1]: Leaving directory `/home/oldgringo/firmwarertn/gateway'
make: *** [/home/oldgringo/firmwarertn/gateway/.config] Error 2


Is that file incomplete or am I missing something? Can you feel where is the problem?
I'm using fresh installed Ubuntu 11.10 on VM and situation is similar on 3 older editions too, same messages.
Thanks in advance.

lly
24-11-2011, 06:40
Seems to be you got wrong kernel source.

You have to find mirror with "linux-2.6.22.19.tar.bz2.sign" file and check signature like it described at kernel.org

Unfortunately, googlecode don't support subfolders in downloads area, so kernel archive will be mixed in one long list with firmware images :( As workaround we can upload it with "deprecated" label, but IMHO it is bad solution too...

oldgringo
05-12-2011, 00:44
OK, I have managed source issues but I'm still out here:
./135-mma-updates1.patch
Can not apply ./135-mma-updates1.patch cleanly
make[1]: *** [patch] Error 1

wpte
05-12-2011, 11:14
that should be fixed in the new revision I believe... I have no problems patching things.

I got my kernel from launchpad: https://launchpad.net/linux/2.6.22
imho still a decent place to get it from... after the kernel.org hack they removed the old stuff:(

oldgringo
07-12-2011, 12:41
Hmm, still the same problem :(, here is in more details:

./135-mma-updates1.patch
patching file include/linux/writeback.h
patching file mm/filemap.c
patching file mm/madvise.c
patching file mm/memory.c
Hunk #1 FAILED at 1643.
Hunk #2 succeeded at 1683 (offset -8 lines).
Hunk #3 FAILED at 1780.
Hunk #4 FAILED at 2350.
Hunk #5 FAILED at 2427.
Hunk #6 FAILED at 2482.
5 out of 6 hunks FAILED -- saving rejects to file mm/memory.c.rej
patching file mm/mempool.c
patching file mm/mmap.c
Hunk #1 succeeded at 1010 (offset -20 lines).
patching file mm/page-writeback.c
Hunk #2 succeeded at 331 (offset -171 lines).
Hunk #3 succeeded at 344 (offset -171 lines).
patching file mm/page_alloc.c
Can not apply ./135-mma-updates1.patch cleanly

Does it mean that 135-mm4-vm_fault.patch haven't applied or? Have I miss something?
Here is complete patch_debug.log attached.

Edit:
I just have noticed that patch like xxx_xxa.patch is running before xxx_xx1.patch. How could I change order of patching to numbers first followed by characters?

Edit2:
I have changed my locale to english and everything is fine now.
However is there any possibility to use different locale with fixed order of patching? Is it enough to change something in patch.sh file?

theMIROn
07-12-2011, 13:44
I have changed my locale to english and everything is fine now.
However is there any possibility to use different locale with fixed order of patching? Is it enough to change something in patch.sh file?

try to add "LC_ALL=C" before "for a in $*; do" line and check with your locale

oldgringo
07-12-2011, 20:15
try to add "LC_ALL=C" before "for a in $*; do" line and check with your locale

This was not a right piece of cake but guided me to find simple solution. ;)
I have added export LC_COLLATE=C into main compile script and since then my problem is solved.
Thank you guys for good tips and inspiration and of course for your time.
I really appreciate your excelent work!