Looking for the 2.6.35 source tree

Started by dingbatca, October 14, 2012, 07:51:46 PM

Previous topic - Next topic

dingbatca

Hunting for the 2.6.35 source tree with the olinuxino patches. Does ant one have a link to the tar ball?

r3flow

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.

dingbatca


KD6PAG

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 ...

KD6PAG

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.)

kostas

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.
:)