Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Replace Kernel in Elinos
- 12-19-2003

Re: Replace Kernel in Elinos

Hi Thomas,
a had the same problem; unfortunately the sysgo-"support" ends at this point
if you bought only the BasicToolbox :-( Original words from a sysgo
employee: "Warum nicht den ELK weglassen und in der Shell arbeiten?" ("Why
don't you skip the ELK and work with the shell?"). They offer to use an
other/newer kernel, but don't describe how to do that.
However, I'm using the command line tools in that way:
-copy the new kernel sources (i.e. into /opt/elinos/linux-2.4.22 for the
2.4.22 kernel)
-go into you elinos project directory
-type (like the doc describes):
/opt/elinos/bin/elinos-linkkernel --kernelsrc=/opt/elinos/linux-2.4.22/
-go into the linux-dir in your project dir
-edit the makefile (look for the lines and edit/remove remarks):
export INSTALL_PATH=$(ELINOS_PROJECT)/boot
INSTALL_MOD_PATH=$(ELINOS_PROJECT)/kernel.rootfs
-go to arch/i386/boot/install.sh and edit it:
# skip the LILO stuff if installing in Elinos cross environment
if [ -z "$ELINOS_BIN_PREFIX" ] ; then
if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
fi
-than build your kernel and call make boot to build your linux.
I hope this helps,
Juergen

Re: Replace Kernel in Elinos

The usual reason for this is that there there is a syntax error
in a config file.
Elk is more picky about such errors than xconfig/menuconfig. As a quick
work-around, you could try using the commandline tools instead of Elk
(also see below).
And before everybody picks on this: Yes, I agree that Elk should be a
little more verbose here (such as point to the location of the syntax
error).

There is *no* support included in the BasicToolbox. That is the reason for
its low price, and I'm sure this is clear to any customer before he makes
the decision to buy it.

I don't know who said or wrote that, and in what context. I can only
guess the situation was probably the same as the one described by Thomas
above: the prime reason for his problem is that the kernel tree he uses
has a config file with a syntax error. Elk fails to parse it because
it is more picky about ConfigLang syntax than the commandline tools are(*).
So a suitable work-around indeed is to use the commandline tools.
As always with work-arounds, this is not nice and clean, but at
least it lets the user continue his work (that's why they are called
work-arounds, not fixes. The clean solution would be to fix the
syntax error).
Nevertheless, this was a helpful hint after all, wasn't it? Plus,
apparently, it was given to you for free, even though, as a BasicToolbox
customer, you were not entitled to get support.
(*) Wether or not this is Elk's fault is at least debatable: Given a
program with syntax errors, would you prefer:
(1) a compiler that refuses to compile, indicating an error?
(2) a compiler that silently ignores the fault, possibly
doing whatever it believes is the Right Thing(tm)?
I personally prefer (1)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here you say it's not described, but a few lines further ...

^^^^^^^^^^^^^^^^^^^^^^
.. it seems there *is* some description after all (section 4.6.1 in the
v2.0 Manual).

Plus, there is even a tool (elinos-linkkernel) provided specifically
for the purpose, however ...

... oops, hmm, well, I guess I'll have to admit that the manual does not
tell you this :-(. (It does remind you that the Elinos kernel tree contains
patches and the changes you describe here are part of those patches, but
one would expect that this caveat be mentioned explicitly).
I'll forward this to the people in charge so they can change the manual
accordingly for the next release. Thanks for pointing it out!
Rob
----------------------------------------------------------------
Robert Kaiser email: snipped-for-privacy@sysgo.com
SYSGO AG
Am Pfaffenstein 14 phone: (49) 6136 9948-762
D-55270 Klein-Winternheim / Germany fax: (49) 6136 9948-10
Site Timeline
- » cf wear levelling strategy
- — Next thread in » Embedded Linux
-
- » USB on MIPS
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » CR1616 en remplacement de CTL1616
- — The site's Newest Thread. Posted in » Electronics (French)
-