Community discussions

MikroTik App
 
alphalt
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Sat Aug 01, 2009 1:53 pm
Location: Denmark

Unable to compile OpenWRT from svn

Sun Jan 22, 2012 8:26 pm

Hi all,

I'm trying to compile OpenWrt from snv as it is said in Mikrotik's Wiki, but I'm getting an error:
patching file arch/mips/include/asm/fixmap.h
Hunk #1 FAILED at 70.
1 out of 1 hunk FAILED -- rejects in file arch/mips/include/asm/fixmap.h
patching file arch/mips/include/asm/io.h
Hunk #1 succeeded at 181 with fuzz 2 (offset -18 lines).
Hunk #2 FAILED at 208.
1 out of 2 hunks FAILED -- rejects in file arch/mips/include/asm/io.h
The next patch would create the file arch/mips/include/asm/mach-metarouter/kernel-entry-init.h,
which already exists!  Applying it anyway.
patching file arch/mips/include/asm/mach-metarouter/kernel-entry-init.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/mips/include/asm/mach-metarouter/kernel-entry-init.h
The next patch would create the file arch/mips/include/asm/mach-metarouter/spaces.h,
which already exists!  Applying it anyway.
patching file arch/mips/include/asm/mach-metarouter/spaces.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/mips/include/asm/mach-metarouter/spaces.h
The next patch would create the file arch/mips/include/asm/mach-metarouter/war.h,
which already exists!  Applying it anyway.
patching file arch/mips/include/asm/mach-metarouter/war.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/mips/include/asm/mach-metarouter/war.h
The next patch would create the file arch/mips/include/asm/vm.h,
which already exists!  Applying it anyway.
patching file arch/mips/include/asm/vm.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/mips/include/asm/vm.h
patching file arch/mips/Kconfig
Hunk #1 succeeded at 604 with fuzz 2 (offset 13 lines).
patching file arch/mips/Makefile
Hunk #1 succeeded at 580 with fuzz 2 (offset 9 lines).
The next patch would create the file arch/mips/metarouter/irq.c,
which already exists!  Applying it anyway.
patching file arch/mips/metarouter/irq.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/mips/metarouter/irq.c
The next patch would create the file arch/mips/metarouter/Makefile,
which already exists!  Applying it anyway.
patching file arch/mips/metarouter/Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/mips/metarouter/Makefile
The next patch would create the file arch/mips/metarouter/prom.c,
which already exists!  Applying it anyway.
patching file arch/mips/metarouter/prom.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/mips/metarouter/prom.c
The next patch would create the file arch/mips/metarouter/setup.c,
which already exists!  Applying it anyway.
patching file arch/mips/metarouter/setup.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/mips/metarouter/setup.c
The next patch would create the file arch/powerpc/include/asm/mtvic.h,
which already exists!  Applying it anyway.
patching file arch/powerpc/include/asm/mtvic.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/powerpc/include/asm/mtvic.h
patching file arch/powerpc/include/asm/pgtable-ppc32.h
Hunk #1 FAILED at 63.
1 out of 1 hunk FAILED -- rejects in file arch/powerpc/include/asm/pgtable-ppc32.h
The next patch would create the file arch/powerpc/include/asm/vm.h,
which already exists!  Applying it anyway.
patching file arch/powerpc/include/asm/vm.h
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/powerpc/include/asm/vm.h
patching file arch/powerpc/platforms/85xx/Kconfig
Hunk #1 succeeded at 141 with fuzz 2 (offset 6 lines).
patching file arch/powerpc/platforms/85xx/Makefile
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- rejects in file arch/powerpc/platforms/85xx/Makefile
The next patch would create the file arch/powerpc/platforms/85xx/metarouter.c,
which already exists!  Applying it anyway.
patching file arch/powerpc/platforms/85xx/metarouter.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/powerpc/platforms/85xx/metarouter.c
patching file arch/powerpc/sysdev/Kconfig
Hunk #1 FAILED at 12.
1 out of 1 hunk FAILED -- rejects in file arch/powerpc/sysdev/Kconfig
patching file arch/powerpc/sysdev/Makefile
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- rejects in file arch/powerpc/sysdev/Makefile
The next patch would create the file arch/powerpc/sysdev/mtvic.c,
which already exists!  Applying it anyway.
patching file arch/powerpc/sysdev/mtvic.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file arch/powerpc/sysdev/mtvic.c
The next patch would create the file drivers/char/hvc_meta.c,
which already exists!  Applying it anyway.
patching file drivers/char/hvc_meta.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file drivers/char/hvc_meta.c
patching file drivers/char/Kconfig
Hunk #1 succeeded at 679 with fuzz 2 (offset 7 lines).
patching file drivers/char/Makefile
Hunk #1 FAILED at 51.
1 out of 1 hunk FAILED -- rejects in file drivers/char/Makefile
patching file drivers/net/Kconfig
Hunk #1 succeeded at 462 with fuzz 2 (offset 5 lines).
patching file drivers/net/Makefile
Hunk #1 FAILED at 208.
1 out of 1 hunk FAILED -- rejects in file drivers/net/Makefile
The next patch would create the file drivers/net/mtveth.c,
which already exists!  Applying it anyway.
patching file drivers/net/mtveth.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file drivers/net/mtveth.c
patching file fs/Kconfig
Hunk #1 FAILED at 173.
1 out of 1 hunk FAILED -- rejects in file fs/Kconfig
patching file fs/Makefile
Hunk #1 FAILED at 73.
1 out of 1 hunk FAILED -- rejects in file fs/Makefile
The next patch would create the file fs/metafs/inode.c,
which already exists!  Applying it anyway.
patching file fs/metafs/inode.c
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file fs/metafs/inode.c
The next patch would create the file fs/metafs/Kconfig,
which already exists!  Applying it anyway.
patching file fs/metafs/Kconfig
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file fs/metafs/Kconfig
The next patch would create the file fs/metafs/Makefile,
which already exists!  Applying it anyway.
patching file fs/metafs/Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file fs/metafs/Makefile
Patch platform/000-linux-metarouter.patch does not apply (enforce with -f)
make[4]: *** [/home/darius/openwrt/trunk/build_dir/linux-mr-mips/linux-2.6.31.10/.quilt_checked] Error 1
make[4]: Leaving directory `/home/darius/openwrt/trunk/target/linux/mr-mips'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/darius/openwrt/trunk/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/darius/openwrt/trunk'
make[1]: *** [/home/darius/openwrt/trunk/staging_dir/target-mips_uClibc-0.9.32/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/darius/openwrt/trunk'
make: *** [world] Error 2
I've done everything is said in wiki, but still no success. I have feeling that patch 1.2 is a little bit outdated. Could anyone ghelp me a bit ?
 
alphalt
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Sat Aug 01, 2009 1:53 pm
Location: Denmark

Re: Unable to compile OpenWRT from svn [new question]

Sun Jan 22, 2012 10:55 pm

Ok, I just deleted whole openwrt folder and reinstalled everything from scratch. Now it's compiled and ok, but I have other problem. Just don't want to create new topic, so I'll try to ask here. So the problem is that I can create as much interfaces as I like in 'Metarouter' section in ROS, but whenI go to OpenWrt console, then I only see br-lan, eth0 and lo interfaces. Nothing more, even if I have for example 4 dynamic and 1 static interface created in ROS Metarouter. What am I missing ?
 
User avatar
liquidcz
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Dec 28, 2010 1:24 pm

Re: Unable to compile OpenWRT from svn

Wed Jan 25, 2012 4:27 pm

Configure that interfaces in /etc/config/network
like
config 'interface' 'lan2'
        option 'ifname' 'eth1'
        option 'proto' 'static'
        option 'ipaddr' '192.168.0.10'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.0.1'
atc ...

and take interface up by "ifup eth1"
or
restart networking "/etc/init.d/network restart"
 
alphalt
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Sat Aug 01, 2009 1:53 pm
Location: Denmark

Re: Unable to compile OpenWRT from svn

Wed Jan 25, 2012 4:30 pm

Hi,

Thanks for that !!!
 
jinzhanhua
just joined
Posts: 9
Joined: Sun Nov 22, 2015 6:05 am

Re: Unable to compile OpenWRT from svn

Mon Nov 23, 2015 7:53 am

Dear alphalt,

I have same problem during build metarouter.
Could you list your operating system and installed package?
Thanks!

Who is online

Users browsing this forum: No registered users and 11 guests