TEXT   4

kernel-old.txt

Guest on 23rd May 2021 07:57:21 AM

  1. 1) ssh to a PC with debian unstable. You can easily install it to a
  2.    chroot with http://iki.fi/lindi/schroot.txt if you don't want to
  3.    break your normal installation.
  4. 1.2) sudo aptitude install emdebian-tools
  5. 1.3) sudo emsetup --arch armel
  6. 1.4) sudo emsetup --arch armel
  7. 1.5) verify that arm-linux-gnueabi-gcc works:
  8.  
  9. $ cat > hello.c <<EOF
  10. #include <stdio.h>
  11. int main(void) {
  12. printf("Hello world\n");
  13. return 0;
  14. }
  15. EOF
  16. $ arm-linux-gnueabi-gcc -o hello hello.c
  17. $ file hello
  18. hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped
  19.  
  20. 2) git clone git://git.openmoko.org/git/kernel.git linux-2.6
  21. 3) git branch lindi origin/stable-tracking
  22. 4) modify ./build to use your compiler:
  23. -export CROSS_COMPILE=../../cross/bin/arm-angstrom-linux-gnueabi-
  24. +export CROSS_COMPILE=arm-linux-gnueabi-
  25. 5) ./build dummy
  26. 6) suggested change:
  27. @@ -52,6 +52,8 @@ if make -j5 ARCH=arm CONFIG_DEBUG_SECTION_MISMATCH=y EXTRAVERSION=$VERSION; then
  28.         if [ ! -z "`grep CONFIG_USB_USBNET=y .config`" ] ; then
  29.                 rm -f uImage-moredrivers*-$PRODUCT.bin modules-*$PRODUCT.tar.gz
  30.                 cp uImage-$PRODUCT.bin uImage-moredrivers$VERSION.bin
  31. +               cp arch/arm/boot/zImage zImage$VERSION
  32. +               cp .config config$VERSION
  33.                 rm -rf staging
  34.                 mkdir -p staging
  35.                 if [ ! -z "$1" ] ; then

Raw Paste


Login or Register to edit or fork this paste. It's free.