Franck Bui-Huu wrote: [snip] > > Now I guess we're back to CONFIG_BUILD_ELF64=n? I guess the real > > question is, which way is the OneWay(TM), RightWay(TM) and OnlyWay(TM)? > > Now it's clear that CONFIG_BUILD_ELF64 is really confusing. I would say > that whatever the value of CONFIG_BUILD_ELF64, your kernel should run > fine. BUT it really depends on your kernel load address: > > if CONFIG_BUILD_ELF64=y then kernel load address must be in XKPHYS > if CONFIG_BUILD_ELF64=n then kernel load address must be in CKSEG0 > > All others configs (I think) are buggy... Why? A ELF64 kernel for CKSEG0 should be fine, at least in principle, even if it doesn't work wih the current codebase. > That's said, it seems that IPxx kernels are really special > beasts. Take from MIPS makefile: > > """ > Some machines like the Indy need 32-bit ELF binaries for booting > purposes. > """ This is true for netbooting via firmware. For booting from disk the bootloaders support AFAIR ELF64-for-CKSEG0. Thiemo