|
1.安装交叉编译器: 安装天嵌光盘->linux平台工具->ubuntu_env_install.tar.bz2, 并在/etc/environment中添加路径:/opt/EmbedSky/4.4.6/bin
2.解压系统源码Kernel_2.6.35.7_TQ210_for_Linux_V1.2.tar.bz2
3.修改Makefile文件:ARCH = arm和CROSS_COMPILE = arm-linux-
4.修改平台时钟为12000000;
5.打开 arch/arm/configs/s3c2410_defconfig, 并保存为 .config
6.使用make zImage命令编译
以下是串口接收的下载、启动信息:
自己编译内核后,更完整信息:
?OK
##### EmbedSky BIOS for SKY210/TQ210 #####
This Board: SDRAM is 1024MB; LCD display size is: 800X480
Hit any key to stop autoboot: 0
SD and FAT initialize success!
file length is 0x328.
condition=INSTALL
OSType=LINUX
beep state=ON
bootloader=images\bootloader\u-boot_TQ210_V1.3.bin
file length is 0x6c000.
NAND erase: device 0 offset 0x0, size 0x100000
Erasing at 0xe0000 -- 100% complete.
OK
NAND write: device 0 offset 0x0, size 0x6c000
Main area read (4 blocks):
Checksum is calculated.
Main area write (4 blocks):
524288 bytes written: OK
logodir=images\logo\logo_800x480.bin
file length is 0x177000.
NAND erase: device 0 offset 0x200000, size 0x300000
Erasing at 0x4e0000 -- 100% complete.
OK
NAND write: device 0 offset 0x200000, size 0x177000
Writing data at 0x376800 -- 100% complete.
1536000 bytes written: OK
Linux zImage=images\linux\zImage.bin
file length is 0x362e38.
NAND erase: device 0 offset 0x500000, size 0x500000
Erasing at 0x9e0000 -- 100% complete.
OK
NAND write: device 0 offset 0x500000, size 0x362e38
Writing data at 0x69d6800 -- 100% complete.
103635840 bytes written: OK
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x100000 -- 100% complete.
Writing to Nand... done
Start Linux ......
NAND read: device 0 offset 0x500000, size 0x500000
5242880 bytes read: OK
Boot with zImage
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35.7-EmbedSky-GJ (root@gj-ThinkPad-Twist) (gcc version 4.4.6 (for TQ210 EmbedSky Tech) ) #1 PREEMPT Thu Mar 20 20:55:26 CST 2014
[ 0.000000] CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: TQ210
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Truncating RAM at 40000000-5fffffff to -53ffffff (vmalloc region overlap).
[ 0.000000] CPU S5PV210/S5PC110 (id 0x43110220)
[ 0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[ 0.000000] S5PV210: PLL settings, A=1000000000, M=667000000, E=80000000 V=54000000
[ 0.000000] S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=166750000
[ 0.000000] HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLKP=66700000
[ 0.000000] sclk_dmc: source is sclk_a2m (0), rate is 200000000
[ 0.000000] sclk_onenand: source is hclk_dsys (1), rate is 166750000
[ 0.000000] sclk: source is mout_mpll (6), rate is 66700000
[ 0.000000] sclk: source is mout_mpll (6), rate is 66700000
[ 0.000000] sclk: source is mout_mpll (6), rate is 66700000
[ 0.000000] sclk: source is mout_mpll (6), rate is 66700000
[ 0.000000] sclk_mixer: source is sclk_dac (0), rate is 54000000
[ 0.000000] sclk_spdif: source is sclk_audio (0), rate is 24000000
[ 0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_fimc: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_cam0: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_cam1: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_fimd: source is mout_epll (7), rate is 80000000
[ 0.000000] sclk_mmc: source is mout_mpll (6), rate is 47642857
[ 0.000000] sclk_mmc: source is mout_epll (7), rate is 80000000
[ 0.000000] sclk_mmc: source is mout_mpll (6), rate is 47642857
[ 0.000000] sclk_mmc: source is mout_epll (7), rate is 80000000
[ 0.000000] sclk_mfc: source is sclk_a2m (0), rate is 200000000
[ 0.000000] sclk_g2d: source is sclk_a2m (0), rate is 200000000
[ 0.000000] sclk: source is sclk_a2m (0), rate is 200000000
[ 0.000000] sclk_csis: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_spi: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_spi: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_pwi: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_pwm: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_mdnie: source is ext_xtal (0), rate is 24000000
[ 0.000000] sclk_mdnie_pwm: source is ext_xtal (0), rate is 24000000
[ 0.000000] s5pv210: 37748736 bytes system memory reserved for mfc at 0x20fb3000
[ 0.000000] s5pv210: 37748736 bytes system memory reserved for mfc at 0x40000000
[ 0.000000] s5pv210: 25165824 bytes system memory reserved for fimc0 at 0x42400000
|
|