Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Linux Kernel 2.6.37.y

1,439 bytes added, 18:02, 13 December 2016
m
Compiled binaries
= Introduction =
This article is for specific 2.6.37.y Linux kernel branch series. All the steps has been tested with [http://releases.ubuntu.com/12.04/ubuntu-12.04.5-desktop-amd64.iso Ubuntu 12.04 64b] and [httpshttp://releaseslabs.linaroisee.orgbiz/15index.05php/components/toolchain/binaries/arm-linux-gnueabi/gcc-linaro-4How_to_setup_a_cross_compiler#IGEP_OMAP3 IGEP SDK Yocto Toolchain 1.9-20152.05-x86_64_arm-linux-gnueabi.tar.xz gcc-linaro-4.9-2015.05-x86_64_arm-linux2-gnueabi3].
All configurations support the following IGEP Expansions Boards:
* IGEP COM MODULE / ELECTRON '''(no WIFI)'''
= Setup gccIGEP SDK Yocto Toolchain 1.2.2-linaro3 = == Install == Download -4[http://www.9isee.biz/support/downloads/item/igep-2015sdk-yocto-toolchain-1-2-2-3 isee.05biz] follow the next steps:*Open a terminal *Located your downloaded file, in my case is inside /home/jdoe/Downloads:<pre>jdoe@ubuntu ~ $ cd Downloads/</pre> *Extract binaries in root directory with root privileges<br><pre>jdoe@ubuntu ~/Downloads $ sudo tar jxf igep-x86_64_armsdk-linuxyocto-gnueabi toolchain-*.tar.bz2 -C /</pre>*Make sure that binaries are installed correctly.<pre>jdoe@ubuntu ~/Downloads $ ls /opt/poky/1.2 1.2.1 </pre> == Configure ==
Open a terminal and type:
<pre>cd Downloadssudo tar -xvf gcc-linaro-4export PATH=/opt/poky/1.92/sysroots/i686-2015.05-x86_64_armpokysdk-linux-gnueabi.tar.xz -C /optexport PATH=usr/optbin/gccarmv7a-linarovfp-4.9neon-2015.05-x86_64_armpoky-linux-gnueabi/bin:$PATH </pre>
= Compiled binaries =
 Binaries: latest stable kernel version IGEP OMAP3 devices is: '''2.6.37-11 12 (2015100820161206)'''
{| border="1"
! '''Platform'''
! '''Kernel source'''
! '''zImage binary (igep00x0_defconfig)'''
! '''Modules binaries (igep00x0_defconfig)'''
! '''zImage binary (igep00x0_wilink8_defconfig)'''
! '''Modules binaries (igep00x0_wilink8_defconfig)'''
! '''Compat Wireless source (only for igep00x0_wilink8_defconfig)'''
! '''zImage binary''' ! '''Modules binaries (igep00x0_wilink8_defconfig)'''! '''Firmware binaries (only for igep00x0_wilink8_defconfig)'''! '''Modules binaries (igep00x0_defconfig)''''''
|-
| IGEP00x0
| [http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/linux-omap-2.6.37-1112.tar.gz 2.6.37-1112] ([http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/linux-omap-2.6.37-1112.tar.gz.md5 md5sum]) | [http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/compatzImage-2.6.37-12.bin zImage-2.6.37-12.bin] ([http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-12/zImage-2.6.37-12.bin.md5 md5sum]) | [http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-wireless12/modules-wilink82.6.37-012.tar.gz compatmodules-wireless2.6.37-wilink8-012] ([http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/zImagemodules-2.6.37-11-wilink812.tar.bingz.md5 md5sum)]) | [http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/zImage-2.6.37-1112-wilink8.bin zImage-2.6.37-1112-wilink8.bin] ([http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/zImage-2.6.37-1112-wilink8.bin.md5 md5sum]) | [http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/modules-2.6.37-1112-wilink8.tar.gz modules-2.6.37-1112-wilink8] ([http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/modules-2.6.37-1112-wilink8.tar.gz.md5 md5sum)]| [http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/ticompat-wireless-wilink8-connectivity0.tar.gz ticompat-wireless-wilink8-connectivity0] ([http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/ticompat-wireless-wilink8-connectivity0.tar.gz.md5 md5sum])]| [http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/modulesti-connectivity-2.6.37wilink8-110.tar.gz modulesti-connectivity-2.6.37wilink8-110] ([http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/modulesti-connectivity-2.6.37wilink8-110.tar.gz.md5 md5sum)]
|}
'''Download''' the latest stable version sources and follow next steps:
wget http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/linux-omap-2.6.37-1112.tar.gz tar xzf linux-omap-2.6.37-1112.tar.gz cd linux-omap-2.6.37-1112
Also, it could download from GIT Repositories ([http://git.isee.biz/ http://git.isee.biz/]) and test the last unstable version at your own risk (see "''Linux mainline tree (development)''" chapter in [[The Linux kernel]])
 
== Important procedures ==
 
* Remove rootfs modules binaries from any previous Kernel
* If you switch to another configuration, clean kernel sources with command: make mrproper
 
== igep00x0_defconfig ==
make ARCH=arm CROSS_COMPILE=[your cross compiler] zImage modules
For example, if you are using gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabi IGEP SDK Yocto Toolchain then you should execute following cmdline:
make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- zImage modules
You can '''install''' the kernel image to your target boot
make ARCH=arm CROSS_COMPILE=[your cross compiler] zImage modules
For example, if you are using gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabi IGEP SDK Yocto Toolchain then you should execute following cmdline:
make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- zImage modules
You can '''install''' the kernel image to your target boot
Download and extract Compat Wireless source:
<pre>cd ..wget http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-1112/compat-wireless-wilink8-0.tar.gz
tar -xvf compat-wireless-wilink8-0.tar.gz
</pre>
Modify if it is needed the environment file (setup-env-wl18xx-rmd). My setup-env-wl18xx-rmd file has the following parameters:Change '''KLIB_BUILD''' variable<pre># \\\// # -(o o)- #========================oOO==(_)==OOo=======================## This file contains the exports needed for automating the# build process of WLAN components.##===========================================================# User specific environment settings export INSTALL_DIR="/media/rootfs"export PATH=/opt/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabi/bin:$PATH export CROSS_COMPILE="arm-linux-gnueabi-"export PATH="${INSTALL_DIR}/linux_devkit/bin:$PATH"export WORK_SPACE="${INSTALL_DIR}" export KLIB_BUILD="/home/ppajuel/Escritorio/Linux directory linux-omap-2.6.37-1112"export BUILD_VERSION="r8"export ROOTFS="/media/rootfs"export KLIB="/media/rootfs" #===========================================================export ARCH="arm"export MY_PREFIX="/usr"export MY_SYSCONFDIR="/etc"export MY_LOCALSTATEDIR="/var"export CC="${CROSS_COMPILE}gcc"export CXX="${CROSS_COMPILE}g++"export AR="${CROSS_COMPILE}ar"export RANLIB="${CROSS_COMPILE}ranlib"LS=/bin/ls </pre> Load (modify if it is needed) the environment file (setup-env-wl18xx-rmd):
source setup-env-wl18xx-rmd
make KLIB_BUILD=${KLIB_BUILD} modules
Remove old mac80211.ko and cfg80211.ko modules:  rm ${ROOTFS}/lib/modules/2.6.37-wilink8/kernel/net/mac80211/mac80211.ko rm ${ROOTFS}/lib/modules/2.6.37-wilink8/kernel/net/wireless/cfg80211.ko Install the compat-wireless modules to your target rootfs. Change '''KLIB''' and '''ROOTFS''' variables
make KLIB_BUILD=${KLIB_BUILD} KLIB=${ROOTFS} install-modules
 
Download Wilink 8 binaries:
 
wget http://downloads.isee.biz/pub/releases/linux_kernel/v2.6.37-12/ti-connectivity-wilink8-0.tar.gz
Copy WiLink 8 binaries to rootfs/lib/firmware:
sudo tar -xvf ti-connectivity-wilink8-0.tar.bz2 gz -C /media/rootfs/lib/firmware  == igep00x0_nowifi_defconfig == '''Configure''' Linux kernel for IGEP OMAP3 without WIFI:  make ARCH=arm igep00x0_nowifi_defconfig Then '''build''' the kernel and kernel modules. The result will be an ''zImage'' file in arch/arm/boot directory. Execute:   make ARCH=arm CROSS_COMPILE=[your cross compiler] zImage modules For example, if you are using IGEP SDK Yocto Toolchain then you should execute following cmdline:   make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- zImage modules You can '''install''' the kernel image to your target boot   cp arch/arm/boot/zImage /media/boot/zImage You can '''install''' the kernel modules to your target rootfs  make ARCH=arm modules_install INSTALL_MOD_PATH=[path to your target rootfs]
= Kernel Parameters =
See http://processors.wiki.ti.com/index.php/AM35x-OMAP35x-PSP_04.02.00.07_Release_Notes#Known_Issues_-_AM.2FDM37x
 
== modules are not installed correctly ==
 
Try to change rootfs owner from root to your username.
<pre> sudo chown <username> -R /media/rootfs</pre>
 
== wlcore: Unknown symbol ==
 
Probably, you didn't erase old module binaries from rootfs. Open IGEP terminal and type:
<pre>depmod -a
depmod -A </pre>
 
Finally reboot the system
= Changelog =
*[http://git.isee.biz/?p=pub/scm/linux-omap-2.6.git;a=tag;h=a7fcc18d3c24e0b11d945cb8f96df22cf9099617 2016-12-06 Release 2.6.37-12]
** Improved wilink8 support
*[http://git.isee.biz/?p=pub/scm/linux-omap-2.6.git;a=tag;h=56ce61fa77402b3d0a0ace13ebe1cc0e75ceefda 2015-10-08 Release 2.6.37-11]
** Added wilink8 support to new IGEP0020-RFxx and IGEP0030-RGxx boards
4,199
edits