On 02/20/2014 06:56 PM, 孙钰 wrote:
> Is there any instrucution I could follow to compile the kernel or
> build a image for panda board B3
Let me try a generic linux approach for the same:
on xubuntu 12.04 (yeah, I know it is sacrilege in a suse list ;) ):
sudo apt-get install gcc-arm-linux-gnueabi
you could alternatively pick up a cross compiler from
http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux
git checkout v3.14-rc3
patch -p1< a.diff
make -j6 CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm omap2plus_defconfig
make -j6 CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm zImage dtbs
mount the sdcard -> if /media/boot is where MLO and u-boot.img is located,
(without an uEnv.txt and using the u-boot defaults:)
cp arch/arm/boot/zImage /media/boot/zImage
cp arch/arm/boot/dts/omap4-panda-es.dtb /media/boot/zImage
sync; sudo umount /media/boot/
--
Regards,
Nishanth Menon
diff --git a/arch/arm/boot/dts/omap4-panda-common.dtsi b/arch/arm/boot/dts/omap4-panda-common.dtsi
index 88c6a05..112e483 100644
--- a/arch/arm/boot/dts/omap4-panda-common.dtsi
+++ b/arch/arm/boot/dts/omap4-panda-common.dtsi
@@ -371,12 +371,12 @@
};
&emif1 {
- cs1-used;
+ /* cs1-used; */
device-handle = <&elpida_ECB240ABACN>;
};
&emif2 {
- cs1-used;
+ /* cs1-used; */
device-handle = <&elpida_ECB240ABACN>;
};