2004-09-01 10:07:14

by Prasad

[permalink] [raw]
Subject: Embedded Linux :: How different is it?


am sorry if its irrelevant here but i have always had this doubt
and this doubt is growing stronger as i see more and more embedded
linux based companies coming up!

How different is a embedded linux kernel from the normal mainstream
one. e.g. I have seen linux run on a mobile phone. When i buy it, am
i not entitled to get the source-code???

thanks,
Prasad.


2004-09-01 10:25:10

by Arjan van de Ven

[permalink] [raw]
Subject: Re: Embedded Linux :: How different is it?

On Wed, 2004-09-01 at 12:03, [email protected] wrote:

> How different is a embedded linux kernel from the normal mainstream
> one. e.g. I have seen linux run on a mobile phone. When i buy it, am
> i not entitled to get the source-code???

yes you absolutely are entitled to the full source code including
"all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation"

In fact the vendor of the phone is required to either ship the source
with the phone (rare) or include a written offer to give you the source.


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part

2004-09-01 11:43:16

by Alan

[permalink] [raw]
Subject: Re: Embedded Linux :: How different is it?

On Mer, 2004-09-01 at 11:23, Arjan van de Ven wrote:
> yes you absolutely are entitled to the full source code including
> "all the source code for all modules it contains, plus any
> associated interface definition files, plus the scripts used to
> control compilation and installation"
>
> In fact the vendor of the phone is required to either ship the source
> with the phone (rare) or include a written offer to give you the source.

Several appliances I have seen stick a large zip of the sources on the
CD that comes with them and otherwise contains windows drivers, adobe
acrobat and the manual they were too cheap to print.

Its also worth emphasizing that you shouldn't expect a Linux based phone
vendor to do anything more than suggest you buy a new one if you break
it reflashing the OS with your own changes 8)


2004-09-01 12:30:58

by Jon Masters

[permalink] [raw]
Subject: Re: Embedded Linux :: How different is it?

On Wed, 1 Sep 2004 15:33:42 +0530 (IST), [email protected]
<[email protected]> wrote:

> am sorry if its irrelevant here but i have always had this doubt
> and this doubt is growing stronger as i see more and more embedded
> linux based companies coming up!

Embedded Linux companies are all about offering extra value-added
services. Anyone can go read one of the limited number of books on
Embedded Linux, or one of the many on the kernel itself (Linux Kernel
Development is a good introductory read because it's - as the folks I
work with would say - a manageable size and also a fun read at the
same time) and either roll their own environment from scratch or use
tools such as crosstool and PTXdist to make their life easier.
Montavista (and the various other available embedded vendors) take the
effort out of the process by supplying the toolchains and kernel ports
so that developers don't have to figure this all out in the limited
time that they usually have available - especially those unfamiliar
with using Linux who have a six month deadline.

So there's a bandwaggon right now and if you look at the various
surveys (VDC reckon the market for embedded Linux devices will double
between 2003 and 2006), for example on the Linux Devices market
snapshot, you can see that no one vendor currently has a majority of
the market out there. You have to judge each offering on its own
merits.

> How different is a embedded linux kernel from the normal mainstream

Functionally it is identical but the compilation options will have
been adjusted to remove unwanted code for memory footprint or
performance reasons. The kernel might have been built using the newer
embedded specifc options (e.g. to remove certain processor support)
and it might actually turn out that the ucLinux 2.4 kernel tree is in
use on devices where there is no MMU. The kernel will also likely have
a bunch of patches that for whatever reason are available but not in
the stock kernel as nobody else wants to use them.

The kernel you get given by device manufacturer X is not magically
different from a stock kernel but just a little patched and built with
whatever device they have in mind.

> one. e.g. I have seen linux run on a mobile phone.

For example using an ARM7TDMI type core or something similar.

> When i buy it, am i not entitled to get the source-code???

Of course you can. This whole issue has been discussed before - your
best bet is to give them a call or send them an email and ask them for
a link to the sourcecode.

Then try to perhaps get somewhere with persuading them to honour their
GPL commitment.

Various projects, e.g. busybox, maintain a hall of shame and you'll
always find somewhere like slashdot to moan about company Y.
Unfortunately this does not mean that they will actually every release
the source (few of us have the resources to go suing every vendor we
buy devices from today - there are folks that will do it and certainly
community pressure but at the end of the day things can drag out for a
very long time trying to get the matter resolved properly) nor that
you'll find out exactly what they're using without dissecting the
images loaded on the flash chips in the device.

Jon.