[mpls-linux-general] I need any advice
Status: Beta
Brought to you by:
jleu
From: Jooil C. <he...@na...> - 2008-04-08 12:33:49
|
Hi I managed to make a patch file from kernel-2.6.23.14-64.fc7.src.rpm and kernel-2.6.23.14-64.fc7.mpls.1.959.src.rpm . I patched linux-2.6.23.14 with this patch file, and following message : [root@NEWWORK linux-2.6.23.14]# patch -p1 < /usr/src/mpls-linux-1.959/patches/kernel.patch.ppc patching file include/linux/genetlink.h patching file include/linux/if_arp.h patching file include/linux/mpls.h patching file include/linux/netdevice.h patching file include/linux/netfilter/xt_mpls.h patching file include/linux/ppp_defs.h patching file include/linux/rtnetlink.h patching file include/linux/shim.h patching file include/linux/socket.h patching file include/linux/sysctl.h patching file include/net/ip6_fib.h patching file include/net/ip_fib.h patching file include/net/mpls.h patching file include/net/shim.h patching file net/Kconfig patching file net/Makefile patching file net/bridge/Kconfig patching file net/bridge/Makefile patching file net/bridge/mplsbr.c patching file net/bridge/netfilter/Kconfig patching file net/bridge/netfilter/Makefile patching file net/bridge/netfilter/ebt_mpls.c patching file net/core/Makefile patching file net/core/dev.c patching file net/core/shim.c patching file net/core/shim_procfs.c patching file net/ipv4/Kconfig patching file net/ipv4/Makefile patching file net/ipv4/fib_frontend.c patching file net/ipv4/fib_semantics.c patching file net/ipv4/ip_input.c patching file net/ipv4/ip_output.c patching file net/ipv4/mpls4.c patching file net/ipv4/route.c patching file net/ipv6/Kconfig patching file net/ipv6/Makefile patching file net/ipv6/ip6_input.c patching file net/ipv6/ip6_output.c patching file net/ipv6/mpls6.c patching file net/ipv6/route.c patching file net/mpls/Makefile patching file net/mpls/TODO patching file net/mpls/af_mpls.c patching file net/mpls/mpls_dst.c patching file net/mpls/mpls_if.c patching file net/mpls/mpls_ilm.c patching file net/mpls/mpls_init.c patching file net/mpls/mpls_input.c patching file net/mpls/mpls_instr.c patching file net/mpls/mpls_netlink.c patching file net/mpls/mpls_nhlfe.c patching file net/mpls/mpls_opcode.c patching file net/mpls/mpls_output.c patching file net/mpls/mpls_procfs.c patching file net/mpls/mpls_proto.c patching file net/mpls/mpls_shim.c patching file net/mpls/mpls_tunnel.c patching file net/mpls/mpls_utils.c patching file net/mpls/sysctl_net_mpls.c patching file net/netfilter/Kconfig patching file net/netfilter/Makefile patching file net/netfilter/xt_mpls.c patching file net/sysctl_net.c But I cross compiled kernel for ppc, following message shows: [root@NEWWORK linux-2.6.23.14]# make uImage .... WARNING: vmlinux.o(.text+0x14c9b4): Section mismatch: reference to .init.text:pcibios_setup (between 'pci_setup' and 'pci_bus_max_busnr') WARNING: vmlinux.o(__ksymtab+0x4220): Section mismatch: reference to .init.text:mpls_proto_init (between '__ksymtab_mpls_proto_init' and '__ksymtab_mpls_instrs_free') WARNING: vmlinux.o(.init.text+0x15558): Section mismatch: reference to .exit.text:mal_exit (between 'emac_init' and 'emac_probe') WARNING: vmlinux.o(.init.text+0x1939c): Section mismatch: reference to .exit.text:mpls_nhlfe_exit (between 'mpls_init_module' and 'mpls_nhlfe_init') WARNING: vmlinux.o(.init.text+0x193a0): Section mismatch: reference to .exit.text:mpls_ilm_exit (between 'mpls_init_module' and 'mpls_nhlfe_init') WARNING: vmlinux.o(.init.text+0x193a4): Section mismatch: reference to .exit.text:mpls_proto_exit (between 'mpls_init_module' and 'mpls_nhlfe_init') WARNING: vmlinux.o(__ksymtab+0x4218): Section mismatch: reference to .exit.text:mpls_proto_exit (between '__ksymtab_mpls_proto_exit' and '__ksymtab_mpls_proto_init') LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map OBJCOPY arch/ppc/boot/images/vmlinux.bin GZIP arch/ppc/boot/images/vmlinux.gz UIMAGE arch/ppc/boot/images/uImage Image Name: Linux-2.6.23.14-g4160 Created: Mon Apr 7 10:51:02 2008 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1714112 Bytes = 1673.94 kB = 1.63 MB Load Address: 0x00000000 Entry Point: 0x00000000 Image: arch/ppc/boot/images/uImage is ready Anyway, I booted it on ppc, but when booting kernel panic occurs with following message: .... NET: Registered protocol family 1 NET: Registered protocol family 10 IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 Oops: kernel access of bad area, sig: 11 [#1] NIP: c02625bc LR: c02622f0 CTR: 00000000 REGS: cfdb1b80 TRAP: 0300 Not tainted (2.6.23.14-g4160) MSR: 00029000 CR: 82a42084 XER: 20000000 DEAR: 00000030, ESR: 00000000 TASK = cfda3bd0[1] 'swapper' THREAD: cfdb0000 GPR00: 00000c00 cfdb1c30 cfda3bd0 7f000001 00000000 00000000 cf9954fc cfd486a0 GPR08: 00000030 00000030 cfd9c800 c0014e48 82a42082 70000000 0ffe3000 007fffac GPR16: 00000000 00800000 ffffffff c02e0000 7fffffff c0380000 c0390000 00000002 GPR24: c02c0000 c0390000 00000001 cf9954a4 cfdb1d08 82a42088 cf995440 cf995828 NIP [c02625bc] fib_create_info+0x330/0x9a0 LR [c02622f0] fib_create_info+0x64/0x9a0 Call Trace: [cfdb1c30] [c02622f0] fib_create_info+0x64/0x9a0 (unreliable) [cfdb1cc0] [c0263a9c] fn_hash_insert+0x5c/0x6f0 [cfdb1d00] [c02607ac] fib_magic+0xbc/0xd8 [cfdb1d70] [c0260c40] fib_inetaddr_event+0x44/0x264 [cfdb1da0] [c00291b0] notifier_call_chain+0x88/0xcc [cfdb1dd0] [c002937c] __blocking_notifier_call_chain+0x50/0x74 [cfdb1df0] [c025ac0c] __inet_insert_ifa+0x128/0x1c8 [cfdb1e10] [c025b11c] inetdev_event+0x464/0x4b0 [cfdb1e50] [c00291b0] notifier_call_chain+0x88/0xcc [cfdb1e80] [c02156cc] dev_open+0xc8/0xcc [cfdb1ea0] [c02155a0] dev_change_flags+0x16c/0x1d0 [cfdb1ec0] [c0381064] ip_auto_config+0x7c/0xde8 [cfdb1f70] [c0366868] kernel_init+0xa4/0x290 [cfdb1ff0] [c0003edc] kernel_thread+0x48/0x64 Instruction dump: 4bdbe349 7ee3bb78 7fa4eb78 4bfff609 7f43d378 7fa4eb78 4bfff5fd 8016991c 2f800000 40befd2c 3860ff97 4bfffdc8 5540043e 2b800003 7f005800 Kernel panic - not syncing: Attempted to kill init! Rebooting in 1 seconds.. Now I don't have any idea what to do.. Do I have to edit kernel source..? Any help will be appreciated. |