微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > OK6410A学习笔记一:一键烧录Linux

OK6410A学习笔记一:一键烧录Linux

时间:11-21 来源:互联网 点击:
去年5月份买的飞凌OK6410A开发板,但是一直没有怎么用,主要是自己懒,呵呵,都是废话

开发环境:

windows7 + vmware 6.5 + ubuntu 9.10

烧录步骤:

1)SD卡,格式化成FAT32格式,然后用SD_Write.exe将mmc.bin烧录进去。

windows7下要在管理员模式下运行SD_Write.exe,烧录mmc.bin之前要点击Format

2)把u-boot.bin,zImage,cramfs拷贝到SD卡中

OK6410A支持cramfs和yaffs2文件系统,前者为compressed ram file system,后者为yet another ffs,区别在于前者为只读文件系统,后者支持读写。yaffs2的读写特性可以方便地进行u-boot和linux的在线烧录和读写操作,这样极大地方便了开发。

3)将SD插入OK6410A开发板SD卡槽,将拨码开关调成SD卡启动(123-off,45678-on)

4)上电,通过DNW实时查看烧录反馈信息。注意,可能烧写不成功,极有可能是因为NAND Flash坏块的原因,这个不能说开发板质量差,而是现在NAND Flash的一个通病吧。处理方法是重新上电,在DNW中按空格键,在提示出输入nand scrub命令处理坏块,大部分坏块是不能修复的,这一步骤只不过是把坏块标记成不使用。最后,重新上电烧录linux系统。

5)断电,将拨码开关调成NAND Flash启动(12367-off,458-on)

OK,thats all.

启动信息:

KK

U-Boot 1.1.6 (May 13 2011 - 16:11:02) for SMDK6410

****************************************

** u-boot 1.1.6 **

** Updated for TE6410 Board **

** Version 1.0 (10-01-15) **

** OEM: Forlinx Embedded **

** Web: http://www.witech.com.cn **

****************************************

CPU: S3C6410 @532MHz

Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC Mode)

Board: SMDK6410

DRAM: 256 MB

Flash: 0 kB

NAND: select s3c_nand_oob_mlc_128

2048 MB

*** Warning - bad CRC or NAND, using default environment

In: serial

Out: serial

Err: serial

Hit any key to stop autoboot: 0

NAND read: device 0 offset 0x100000, size 0x500000

5242880 bytes read: OK

Boot with zImage

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.0.1-svn140 (root@monkey-MS-7678) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #237 Wed Nov 2 10:51:04 CST 2011
S3C24XX Clocks, Copyright 2004 Simtec Electronics
camera: no parent clock specified
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66500000
spi-bus: source is mout_epll (0), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
irda-bus: source is mout_epll (0), rate is 24000000
camera: no parent clock specified
Kernel command line: root=/dev/mtdblock2 rootfstype=cramfs console=ttySAC0,115200
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 206888k/206888k available, 55256k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff600000 - 0xffe00000 ( 8 MB)
vmalloc : 0xd0800000 - 0xf4000000 ( 568 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.init : 0xc0008000 - 0xc0033000 ( 172 kB)
.text : 0xc0033000 - 0xc06f46bc (6918 kB)
.data : 0xc06f6000 - 0xc07367c8 ( 258 kB)
.bss : 0xc07367ec - 0xc07b4088 ( 503 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:246 nr_irqs:246 246
VIC @f4000000: id 0x00041192, vendor 0x41
VIC @f4010000: id 0x00041192, vendor 0x41
Console: colour dummy device 80x30
console [ttySAC0] enab

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top