Xiangfu Liu wrote: > Hi > I try to compile the 2.6.28 kernel. > kernel try to run '/etc/preinit' but it's always > kernel panic. > > give some tip about this error. very thanks. > > you can find source code at : > http://github.com/lindnermarek/openwrt-x-burst/tree/master > > Hi Florian 1. change some configure[attach] as you said. 2. recompile the openwrt. 3. use the openwrt cross toolchain compile the 2.6.24 kernel. 4. the .24 kernel can boot to openwrt-rootfs. 5. but the .28 kernel can not.
so maybe there is nothing wrong with the toolchain. there is something wrong with the .28 openwrt-kernel. maybe there is something wrong with kernel FPU_EMU. -- http://www.qi-hardware.com Best Regards Xiangfu Liu
diff --git a/target/linux/generic-2.6/patches-2.6.28/024-mips_disable_fpu.patch b/target/linux/generic-2.6/patches-2.6.28/024-mips_disable_fpu.patch index ded4b21..342da99 100644 --- a/target/linux/generic-2.6/patches-2.6.28/024-mips_disable_fpu.patch +++ b/target/linux/generic-2.6/patches-2.6.28/024-mips_disable_fpu.patch @@ -14,7 +14,7 @@ Signed-off-by: Florian Fainelli <flor...@openwrt.org> +config MIPS_FPU_EMU + bool -+ default n ++ default y + help + This option allows building a kernel with or without the Algorithmics + FPU emulator enabled. Turning off this option results in a kernel which diff --git a/toolchain/Config.in b/toolchain/Config.in index 6fc7b6f..a5bad6e 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -101,7 +101,7 @@ config SOFT_FLOAT bool prompt "Use software floating point by default" if TOOLCHAINOPTS default y - depends on (arm || armeb || powerpc || mipsel || mips) && !HAS_FPU + depends on (arm || armeb || powerpc || mips) && !HAS_FPU help If your target CPU does not have a Floating Point Unit (FPU) or a kernel FPU emulator, but you still wish to support floating point
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel