From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 23:01, 3 July 2008 by Ramuk (Talk | contribs)

Jump to: navigation, search

date: 2008 jul 03

i search for long how to compile a kernel for the kurobox pro, and here is my results

i have a kurobox-pro , which i installed debian lenny via armel's instructions at Armel_Debian_for_the_Kurobox_Pro_-_Manual_install

i had some modules missing. so here is how i compiled a new kernel with whatever modules i like ... Ramuk 00:01, 4 July 2008 (BST)

here is how is done: first we need a cross copiler toolchain

  mkdir -p ~/kuro
  cd ~/kuro
  wget ''
  tar xjvf arm-2007q3-53-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
  cd arm-2007q3/bin/
  wget ''
  chmod +x mkimage

now the kernel

  cd ~/kuro
  export kernver=
  wget "${kernver}.tar.bz2"
  tar xjvf linux-${kernver}.tar.bz2
  cd linux-${kernver}
  make mrproper
  export ARCH=arm
  export CROSS_COMPILE=arm-none-eabi-
  wget '' -O .config
  make menuconfig # if needed
  export PATH=~/kuro/arm-2007q3/bin/:${PATH}
  make zImage 
  devio > foo 'wl 0xe3a01c05,4' 'wl 0xe38110e5,4' # For kuropro/lspro
  cat foo arch/arm/boot/zImage >
  mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 'linux' -d uImage
  scp uImage kuro:/tmp/
  rm foo

and modules

  make modules
  export INSTALL_MOD_PATH=/tmp/kuro
  make modules_install
  tar czf modules.tgz lib
  scp modules.tgz kuro:/tmp/
  cd /
  rm -rf /tmp/kuro

now on the kurobox side:

  ssh kuro
  mount /dev/sda1 /mnt/sda1
  cd /mnt/sda1
  mv /tmp/uImage  uImage-$VER
  rm uImage
  ln -s uImage-$VER uImage
  cd /
  tar xzvf /tmp/modules.tgz
  rm /tmp/uImage /tmp/modules.tgz

worked for me on kernel ver, use at your on risk !!!

kudos to armel, bbradley and others

cheers, erez