Results 1 to 7 of 7

Thread: Missing linux sources

  1. #1

    Missing linux sources

    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.

  2. #2
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    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...

  3. #3
    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

  4. #4
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    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

  5. #5
    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?
    Attached Files Attached Files
    Last edited by oldgringo; 07-12-2011 at 12:42. Reason: Add Edit1&2

  6. #6
    Quote Originally Posted by oldgringo View Post
    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

  7. #7

    Thumbs up Solved!

    Quote Originally Posted by theMIROn View Post
    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!
    Last edited by oldgringo; 07-12-2011 at 20:25.

Similar Threads

  1. compiling the 1972 firmware sources
    By neweb in forum WL-500gP Firmware Discussion
    Replies: 1
    Last Post: 06-02-2007, 16:52
  2. Gameserver
    By blingbling in forum WL-500gP Q&A
    Replies: 2
    Last Post: 17-07-2006, 15:37
  3. Linux probleem Oleg firmware
    By v.d.schuit in forum Dutch Discussion - Nederlands
    Replies: 0
    Last Post: 28-12-2005, 13:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •