Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-06-2008, 06:53 PM   #1
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
How to compile the iRex stock kernel and modules?

Has anyone been successful at compiling the stock iLiad kernel source as provided by iRex? How did you do it? I've tried using the v2.95.3 cross-compiling tools provided by iRex, but I'm still having problems. Anyone have a simple approach to getting this to work?

I'm trying to do this in preparation for compiling the kernel modules, which I'm also having no luck with. Has anyone got this working yet?
jharker is offline   Reply With Quote
Old 11-10-2008, 05:40 PM   #2
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Bump. Anyone? I have played with it a teeny bit more and still have no idea.

Ah, well, it's not coming up for a while in the timeline anyway...
jharker is offline   Reply With Quote
Old 11-14-2008, 03:24 PM   #3
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Cool Here's how to build the official stuff...

Her is how you can build the kernel and kernel modules. This is tested on Ubuntu 8.10, gcc version 4.3.2

1: Download and install the toolchain form Irex:

Code:
  cd /tmp                                                                 
  wget http://developer.irexnet.com/pub/iLiad/Linux%20kernel/cross-2.95.3.tar.bz2
  tar xvfj cross-2.95.3.tar.bz2                                                  
  #location is important: path is compiled in binaries                           
  sudo mkdir /usr/local/arm                                                      
  sudo mv 2.95.3  /usr/local/arm/2.95.3
2: Download the kernel sources

Code:
  # Last-Modified: Thu, 22 Feb 2007 16:28:15 GMT
  wget http://developer.irexnet.com/pub/iLiad/Linux%20kernel/linux-2.4.19-rmk7-pxa2-irex1.tar.bz2
  tar xvfj linux-2.4.19-rmk7-pxa2-irex1.tar.bz2
3: Apply patch(es)
Code:
  cd linux-2.4.19-rmk7-pxa2-irex1

# big patch, probably already applied? gives warnings if tried...
# Last-Modified: Thu, 22 Feb 2007 16:28:11 GMT
wget http://developer.irexnet.com/pub/iLiad/Linux%20kernel/linux-2.4.19-rmk7-pxa2-irex1.patch.gz

# small patch for 2.11
# Last-Modified: Thu, 04 Oct 2007 08:45:48 GMT
  wget http://developer.irexnet.com/pub/iLiad/Linux%20kernel/linux-2.4.19-rmk7-pxa2-irex1-v2.11.patch
# apply patch
patch -p0 < linux-2.4.19-rmk7-pxa2-irex1-v2.11.patch

4: Set the right PATH to activate the right compilers . The order is important! Check that gcc --version shows your local compiler
and arm-linux-gcc --version shows 2.95.3
Code:
  export PATH=$PATH:/usr/local/arm/2.95.3/bin
5: Provide depmod.old (make install complains about a missing /sbin/depmod.old)
Code:
sudo ln -s /sbin/depmod /sbin/depmod.old
6: Build everything
Code:
# this copies the right kernel configuration to .config
# (arch/arm/def-configs/irex?)
make irex_config
make oldconfig        # sets things with the settings in .config
make dep              # creates files with dependencies

make zImage   # create the kernel
make modules  # builds the modules

7: Group all results in a handy place, (not in /boot and /lib/modules...)
Code:
mkdir /tmp/irex_stuff
make INSTALL_PATH=/tmp/irex_stuff install
make INSTALL_MOD_PATH=/tmp/irex_stuff modules_install

8: Compile a kernel module

Example: the Irex button driver from
http://developer.irexnet.com/pub/iLi...drivers.tar.gz

Code:
cd /tmp
tar xvfz irex_er0100_kernel_drivers.tar.gz
cd button
export PATH=$PATH:/usr/local/arm/2.95.3/bin
make KERNEL_PATH=/tmp/linux-2.4.19-rmk7-pxa2-irex1
Enjoy!

Last edited by hansel; 11-14-2008 at 05:16 PM. Reason: added: compile a kernel module
hansel is offline   Reply With Quote
Old 11-14-2008, 03:29 PM   #4
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Fantastic! Thank you! I'll give this a shot.

Looking at your guide, I think the source of my problems might have been putting the PATH in the wrong order. I had /usr/local/arm/2.95.3/bin:$PATH, which is the wrong way around. I also didn't have depmod and depmod.old...
jharker is offline   Reply With Quote
Old 11-14-2008, 03:35 PM   #5
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by jharker View Post
Looking at your guide, I think the source of my problems might have been putting the PATH in the wrong order. I had /usr/local/arm/2.95.3/bin:$PATH, which is the wrong way around.
When you do that, it crosscompiles some tools that are needed in the build process. Took me some time to discover what was happening...
hansel is offline   Reply With Quote
Old 11-14-2008, 05:17 PM   #6
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Added to original post: compile a kernel module
hansel is offline   Reply With Quote
Old 11-22-2008, 04:29 AM   #7
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 974
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
There is a file "zImage_nfs" in http://developer.irexnet.com/pub/iLiad/Linux%20kernel/ . What is it for? From its file name, is it for booting by nfs?
ericshliao is offline   Reply With Quote
Old 11-22-2008, 05:50 AM   #8
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by ericshliao View Post
There is a file "zImage_nfs" in http://developer.irexnet.com/pub/iLiad/Linux%20kernel/ . What is it for? From its file name, is it for booting by nfs?
I think it's a kernel with nfs enabled. This allows it to mount remote file systems. An educated guess would be that it is a kernel tailored by Irex developers to ease development. The Iliad can boot from a remote file system on your development pc. In this way you don't have to re-flash all the time when changing (most) things.

You can probably build it by typing make irex_nfs_config instead of make irex_config in step 6. You can see the differences by looking at the config files themselves: they live in linux-2.4.19-rmk7-pxa2-irex1/arch/arm/def-configs

B.t.w: this is a handy way to handle your own experimental kernel recipes.

h.t.h, Hansel
hansel is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugins and optional Python modules pdurrant Plugins 14 03-02-2010 04:28 AM
Process Modules LarryLaser Calibre 3 02-10-2010 01:32 PM
Building USB HID modules for 2.4.19-rmk7 hudson iRex 38 12-05-2009 04:05 AM
NEC develops A4, A3 e-paper modules grimo1re News 2 10-29-2008 02:31 AM
iLiad USB serial modules drazvan iRex Developer's Corner 8 07-30-2007 06:43 PM


All times are GMT -4. The time now is 11:19 PM.


MobileRead.com is a privately owned, operated and funded community.