Topic: Silvermoon Kernel and toolchain compiling

I think I must have missed something I was under the impression that typing gcc in ssh would allow you to download the toolchain used for compiling. However when I run make on "linux-2.6.28-silvermoon-1.0.3"

it errors out with compiler error.
first when dealing with ext4 so i changed the config to not mess with ext4
then it errors out on
fs/proc/base.c:309: internal compiler error: in df_install_ref, at df-scan.c:2431

Did I download something wrong or install something wrong?
All I want to do is add android specific build lines to the config and a few modules like the OV7670 camera driver to use the infocast 8's camera connector and attempt to make a video phone thru android as flashlite 3.1 sucks
Thanks
Jeff

Re: Silvermoon Kernel and toolchain compiling

I usually just ssh into the device, cd to /mnt/storage (which isn't required) and type "make" with no additional parameters.  It should then offer to download the build environment.  The next type you type just "make" in a directory without a makefile you should get a different message that implies no makefile found.


If you type make and get a gcc error, it implies that the compiler tools exist on your machine.  I'm not exactly sure what you are "making" in your example. It almost looks like you are trying to build a kernel on the machine.  I doubt all the libraries are there for that.

Re: Silvermoon Kernel and toolchain compiling

Yes I was trying to build a custom kernel. I downloaded and installed the toolchain and have built several programs without issue. The kernel just doesnt seem to want to compile. What would you suggest as an optimum build setup

Thanks
Jeff

Re: Silvermoon Kernel and toolchain compiling

clay_shooter, what libraries might be missing?  I also cannot build
http://files.chumby.com/source/silvermo … 2.6.28.tgz

on the infocast 8":

chumby-20-e5-4c:/mnt/storage/src/kernel/linux-2.6.28 # cp /proc/config.gz . ; gunzip config.gz ; cp config .config ; make oldconfig ; make bzImage modules

[...snip...]

  CC      drivers/video/logo/logo_silvermoon_normal_clut224.o
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [drivers/video/logo/logo_silvermoon_normal_clut224.o] Error 1

If I modify the config, it'll crash someplace else, last time the "gcc: Internal compiler error" was during tty_io.c compilation.

What do we have to do to be able to build the silvermoon kernel on the Infocast?  Anyone had any success?  Better to cross-compile?

Re: Silvermoon Kernel and toolchain compiling

The downloaded toolchain can be used to build programs. I've never tried to build a kernel other than OpenEmbedded and that was using bitbake...

Re: Silvermoon Kernel and toolchain compiling

I've tried compiling the kernel source from here:
http://files.chumby.com/source/silvermo … 0.3.tar.gz

I use the build tools obtained from here:
http://files.chumby.com/hacks/silvermoon_toolchain.sh
These are the ones you get if you execute 'gcc' or 'make' from a completely fresh Infocast 8. IOW this is the cool easter egg that Bunnie mentioned in his blog about the infocast (http://www.bunniestudios.com/blog/?p=1140)


Quite a few source files get built but eventually I get an error with fs/ext4/super.c:
---------snip---------
  CC      fs/ext4/fsync.o
  CC      fs/ext4/ialloc.o
  CC      fs/ext4/inode.o
  CC      fs/ext4/ioctl.o
  CC      fs/ext4/namei.o
  CC      fs/ext4/super.o
fs/ext4/super.c: In function 'ext4_unlockfs':
fs/ext4/super.c:2951: internal compiler error: in ready_remove_first, at haifa-sched.c:1040
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [fs/ext4/super.o] Error 1
make[1]: *** [fs/ext4] Error 2
make: *** [fs] Error 2
Command exited with non-zero status 2
---------snip---------