Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: dingbatca on October 14, 2012, 07:51:46 PM

Title: Looking for the 2.6.35 source tree
Post by: dingbatca on October 14, 2012, 07:51:46 PM
Hunting for the 2.6.35 source tree with the olinuxino patches. Does ant one have a link to the tar ball?
Title: Re: Looking for the 2.6.35 source tree
Post by: r3flow on October 15, 2012, 01:14:39 PM
Hi,

Hint:
https://www.olimex.com/forum/index.php?topic=101.0

Kernel:
git clone --depth=1 git://git.freescale.com/imx/linux-2.6-imx.git linux-2.6-imx

Olinuxino patches:
git clone --depth=1 git://github.com/archlinuxarm/PKGBUILDs.git alarm

Also you will need to build the boot code (imx-bootlets), the build script at top will does it for you.

Here is the offical alarm kernel build "script":
https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/kernel26-olinuxino/PKGBUILD

I hope that help.
Title: Re: Looking for the 2.6.35 source tree
Post by: dingbatca on October 16, 2012, 05:19:22 PM
Works perfectly!  Thanks.
Title: Re: Looking for the 2.6.35 source tree
Post by: KD6PAG on January 13, 2014, 06:11:29 PM
Neither of these two .git archives currently correspond to 2.6.35

> Kernel:
> git clone --depth=1 git://git.freescale.com/imx/linux-2.6-imx.git linux-2.6-imx

In spite of its name, this is now Linux 3.2.0 .

> Olinuxino patches:
> git clone --depth=1 git://github.com/archlinuxarm/PKGBUILDs.git alarm

These are now patches to 3.7.2 .

I am still looking for the Linux sources and patches which correspond to the kernel
for iMX233-OLinuXino-SD ...
Title: Re: Looking for the 2.6.35 source tree
Post by: KD6PAG on March 18, 2014, 02:58:07 AM
In 'How do I build complete arch Linux image from scratch?'

   https://www.olimex.com/forum/index.php?topic=2773.0

Jean points to:

   https://github.com/OLIMEX/OLINUXINO/wiki/ArchlinuxARM

That allowed me to find a copy of the package 'kernel26-olinuxino':

   https://github.com/OLIMEX/archlinuxarm-olinuxino/tree/master/olinuxino/kernel26-olinuxino

But the author was only able compile it in native-mode under ARCHLINUX.
This was't much help to Debian folks like myself, as to actually get the
source tree, one has to be running ARCHLINUX with the development
packages installed.

One then goes to the 'kernel26-olinuxino' directory and says:

   makepkg

But only ran that process as far as starting the native-mode compilation.
I stopped it at that point and copied the source tree to Debian Linux
running on an MacBook Pro ('amd64').  From there, i was able to cross-
compile to kernel by saying:

   make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- ...

which in my case, '...' ended up being 'targz-pkg'. Say

   make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- help

to find out your build options.  The result to be passed to 'bootlets'
can be found as 'arch/arm/boot/zImage'.  This successfully booted via
'bootlets' and the command:

    dd if=/dev/mmcblk0p2 of=/dev/null count=102400

or

    dd if=/dev/sda1 of=/dev/null count=102400

runs about twice as fast as under '3.7.1' with Debian Linux.

BE AWARE, this is NOT the source tree that corresponds to the kernel
for iMX233-OLinuXino-SD, as this is '2.6.35-4-ARCH+' while the SD
card contains 'Linux-2.6.35-8-ARCH+'.

(By the way, i later did a full build in native-mode under ARCHLINUX
and it took over 48 hours, the vast majority of which was doing 'xz'
compression.)
Title: Re: Looking for the 2.6.35 source tree
Post by: kostas on June 07, 2014, 10:20:29 PM
Conclusion
Ghost 2.6.35-8-ARCH+ original source and patches still missing.
By the way, it's still the best choice in case you need each one of the peripherals working.
Personally I have found my way without recompiling the kernel, but a repository would be nice.
:)