Both sides previous revisionPrevious revisionNext revision | Previous revision |
making_kernel_with_dtb [2012/12/07 21:09] – 78.122.157.53 | making_kernel_with_dtb [2013/06/12 08:01] (current) – starox |
---|
| |
^ Distribution name ^ toolchain provider ^ commands to get mkimage command ^ toolchain triplet ^ | ^ Distribution name ^ toolchain provider ^ commands to get mkimage command ^ toolchain triplet ^ |
| Ubuntu 12.10 | ubuntu |sudo apt-get install arm-linux-gnueabi-gcc | arm-linux-gnueabi- | | | Ubuntu >= 12.10 | ubuntu |sudo apt-get install arm-linux-gnueabi-gcc | arm-linux-gnueabi- | |
| Debian squeeze | [[http://www.emdebian.org/|embedian]] | Follow instruction on [[http://www.emdebian.org/crosstools.html]] or [[http://wiki.debian.org/EmdebianToolchain]] \\ The quick way : \\ ''# echo "deb http://www.emdebian.org/debian/ squeeze main" >> etc/apt/sources.list\\ # apt-get update\\ # apt-get install emdebian-archive-keyring\\ # apt-key add /usr/share/emdebian-tools/emdebian-archive-keyring.gpg\\ # apt-key add /usr/share/keyrings/emdebian-archive-keyring.gpg\\ # apt-get update\\ # apt-get install gcc-4.4-arm-linux-gnueabi'' | arm-linux-gnueabi- | | | Debian squeeze | [[http://www.emdebian.org/|embedian]] | Follow instruction on [[http://www.emdebian.org/crosstools.html]] or [[http://wiki.debian.org/EmdebianToolchain]] \\ The quick way : \\ ''# echo "deb http://www.emdebian.org/debian/ squeeze main" >> etc/apt/sources.list\\ # apt-get update\\ # apt-get install emdebian-archive-keyring\\ # apt-key add /usr/share/emdebian-tools/emdebian-archive-keyring.gpg\\ # apt-key add /usr/share/keyrings/emdebian-archive-keyring.gpg\\ # apt-get update\\ # apt-get install gcc-4.4-arm-linux-gnueabi'' | arm-linux-gnueabi- | |
| |
====== Setting up kernel source ====== | ====== Setting up kernel source ====== |
| |
There is 2 kind of lacie devices : | There is 2 kind of LaCie devices : |
* those supported by the mainstream linux kernel | * those supported by the mainstream linux kernel |
* those supported by the lacie-nas.org kernel | * those supported by the lacie-nas.org kernel |
DTB are in the arch/arm/boot/ directory. Choose the one corresponding to your device (here this is a network space 2 lite) : | DTB are in the arch/arm/boot/ directory. Choose the one corresponding to your device (here this is a network space 2 lite) : |
| |
cat arch/arm/boot/zImage arch/arm/boot/kirkwood-ns2lite.dtb > zImage+kirkwood-ns2lite.dtb | cat arch/arm/boot/zImage arch/arm/boot/dts/kirkwood-ns2lite.dtb > zImage+kirkwood-ns2lite.dtb |
| |
Now you need to add an header for u-boot loader. | Now you need to add an header for u-boot loader. |