Makefile
ARCH ?= arm
CROSS_COMPILE ?= /home/flinn/tools/6.2.1/bin/arm-none-eabi-
make
make uImage LOADADDR=0x40008000 -j4
设备树
使用linux自带的exynos4412-tiny4412.dts,不要使用u-boot里面的设备树,否则出现各种问题
尽管使用内核自带的设备树,串口仍然没有输出。需要添加:
chosen {
...
bootargs = "root=/dev/ram0 rw rootfstype=ext4 console=ttySAC0,115200 init=/linuxrc earlyprintk";
};
tftp
//有Ramdisk
usb start;tftp 0x40080000 uImage;tftp 0x41000000 ramdisk.img;tftp 0x42000000 exynos4412-tiny4412.dtb;bootm 0x40080000 0x41000000 0x42000000
//没有Ramdisk
usb start;tftp 0x40080000 uImage;tftp 0x42000000 exynos4412-tiny4412.dtb;bootm 0x40080000 - 0x42000000
nfs
setenv serverip 192.168.1.101
usb start;nfs 0x40600000 192.168.1.101:/home/flinn/bin/uImage;nfs 0x42000000 192.168.1.101:/home/flinn/bin/exynos4412-tiny4412.dtb;bootm 0x40600000 - 0x42000000