U-boot启动过程

发布时间:2016-07-24 10:02:39   来源:文档文库   
字号:

U-Boot 1.1.6 (Nov 26 2010 - 08:49:16)

DRAM: 64 MB

Flash: 2 MB

NAND: 256 MiB

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

In: serial

Out: serial

Err: serial

UPLLVal [M:38h,P:2h,S:2h]

MPLLVal [M:5ch,P:1h,S:1h]

CLKDIVN:5h

+---------------------------------------------+

| S3C2440A USB Downloader ver R0.03 2004 Jan |

+---------------------------------------------+

USB: IN_ENDPOINT:1 OUT_ENDPOINT:3

FORMAT: <ADDR(DATA):4>++<DATA:n>+

NOTE: Power off/on or press the reset button for 1 sec

in order to get a valid USB device address.

Hit any key to stop autoboot: 0

平台开关:NORFLASH

使用SecureCRT软件监控

给嵌入式平台上电或复位时,按PC机键盘的任意键后出现:

##### 100ask Bootloader for OpenJTAG #####

[n] Download u-boot to Nand Flash

[o] Download u-boot to Nor Flash

[k] Download Linux kernel uImage

[j] Download root_jffs2 image

[y] Download root_yaffs image

[d] Download to SDRAM & Run

[z] Download zImage into RAM

[g] Boot linux from RAM

[f] Format the Nand Flash

[s] Set the boot parameters

[b] Boot the system

[r] Reboot u-boot

[q] Quit from menu

Enter your selection:

对于Download开头的菜单项,它用来启动USB下载,选择这些菜单项后,要在主机上使用DNW工具发送文件。

若不按任何按键,嵌入式平台将进入启动Linux过程。

Booting Linux ...

NAND read: device 0 offset 0x60000, size 0x200000

Reading data from 0x25f800 -- 100% complete.

2097152 bytes read: OK

## Booting image at 30007fc0 ...

Image Name: Linux-2.6.22.6

Created: 2013-05-11 7:09:50 UTC

Image Type: ARM Linux Kernel Image (uncompressed)

Data Size: 1848668 Bytes = 1.8 MB

Load Address: 30008000

Entry Point: 30008000

Verifying Checksum ... OK

XIP Kernel Image ... OK

Starting kernel ...

Uncompressing Linux...................................................................................................................... done, booting the kernel.

Linux version 2.6.22.6 (book@book-desktop) (gcc version 3.4.5) #1 Sat May 11 15:09:41 CST 2013

CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177

Machine: SMDK2440

Memory policy: ECC disabled, Data cache writeback

CPU S3C2440A (id 0x32440001)

S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

S3C24XX Clocks, (c) 2004 Simtec Electronics

CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on

CPU0: D VIVT write-back cache

CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets

CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets

Built 1 zonelists. Total pages: 16256

Kernel command line: noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0

irq: clearing subpending status 00000002

PID hash table entries: 256 (order: 8, 1024 bytes)

timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8

Console: colour dummy device 80x30

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory: 64MB = 64MB total

Memory: 60976KB available (3264K code, 458K data, 140K init)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

NET: Registered protocol family 16

S3C2410 Power Management, (c) 2004 Simtec Electronics

S3C2440: Initialising architecture

S3C2440: IRQ Support

S3C2440: Clock Support, DVS off

S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics

DMA channel 0 at c4800000, irq 33

DMA channel 1 at c4800040, irq 34

DMA channel 2 at c4800080, irq 35

DMA channel 3 at c48000c0, irq 36

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NetWinder Floating Point Emulator V0.97 (double precision)

Registering GDB sysrq handler

JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

yaffs May 11 2013 15:08:01 Installing.

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler deadline registered

io scheduler cfq registered

Console: switching to colour frame buffer device 60x34

fb0: s3c2410fb frame buffer device

lp: driver loaded but no devices found

ppdev: user-space parallel port driver

S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics

Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled

s3c2440-uart.0: s3c2410_serial0 at MMIO map 0x50000000 mem 0xf0400000 (irq = 70) is a S3C2440

s3c2440-uart.1: s3c2410_serial1 at MMIO map 0x50004000 mem 0xf0404000 (irq = 73) is a S3C2440

s3c2440-uart.2: s3c2410_serial2 at MMIO map 0x50008000 mem 0xf0408000 (irq = 76) is a S3C2440

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

loop: module loaded

line 400 I/O: c486a000, VID: 90000a46

line 408 I/O: c486a000, VID: 90000a46

error version, chip_revision = 0x1a, chip_info = 0x3

id_val=0

S3C24XX NAND Driver, (c) 2004 Simtec Electronics

s3c2440-nand s3c2440-nand: Tacls=3, 30ns Twrph0=7 70ns, Twrph1=3 30ns

NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)

Scanning device for bad blocks

Bad eraseblock 54 at 0x006c0000

Bad eraseblock 482 at 0x03c40000

Bad eraseblock 945 at 0x07620000

Bad eraseblock 977 at 0x07a20000

Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x00000000-0x00040000 : "bootloader"

0x00040000-0x00060000 : "params"

0x00060000-0x00260000 : "kernel"

0x00260000-0x10000000 : "root"

s3c2410-ohci s3c2410-ohci: S3C24XX OHCI

s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1

s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

mice: PS/2 mouse device common for all mice

s3c2410 TouchScreen successfully loaded

input: s3c2410 TouchScreen as /class/input/input0

S3C24XX RTC, (c) 2004,2006 Simtec Electronics

s3c2440-i2c s3c2440-i2c: slave address 0x10

s3c2440-i2c s3c2440-i2c: bus frequency set to 390 KHz

s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter

mapped channel 0 to 0

s3c2440-sdi s3c2440-sdi: powered down.

s3c2440-sdi s3c2440-sdi: initialisation done.

s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).

s3c2440-sdi s3c2440-sdi: running at 196kHz (requested: 195kHz).

s3c2440-sdi s3c2440-sdi: running at 196kHz (requested: 195kHz).

s3c2440-sdi s3c2440-sdi: running at 196kHz (requested: 195kHz).

usbcore: registered new interface driver hiddev

s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #2 op:UNKNOWN(8) arg:0x000001aa flags:0x0875 retries:0 Status:nothing to complete

s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #3 op:APP_CMD(55) arg:0x00000000 flags:0x0875 retries:0 Status:nothing to complete

usbcore: registered new interface driver usbhid

drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).

ASoC version 0.13.1

s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #4 op:APP_CMD(55) arg:0x00000000 flags:0x0875 retries:0 Status:nothing to complete

s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #5 op:APP_CMD(55) arg:0x00000000 flags:0x0875 retries:0 Status:nothing to complete

s3c2410iis_probe...

s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #6 op:APP_CMD(55) arg:0x00000000 flags:0x0875 retries:0 Status:nothing to complete

s3c2440-sdi s3c2440-sdi: CMD[TIMEOUT] #7 op:ALL_SEND_OCR(1) arg:0x00000000 flags:0x0861 retries:0 Status:nothing to complete

s3c2440-sdi s3c2440-sdi: powered down.

UDA1341 audio driver initialized

ALSA device list:

No soundcards found.

TCP cubic registered

NET: Registered protocol family 1

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

UDF-fs: No partition found (1)

yaffs: dev is 32505859 name is "mtdblock3"

yaffs: passed flags ""

yaffs: Attempting MTD mount on 31.3, "mtdblock3"

yaffs: auto selecting yaffs2

block 36 is bad

block 464 is bad

block 927 is bad

block 959 is bad

VFS: Mounted root (yaffs filesystem).

Freeing init memory: 140K

init started: BusyBox v1.7.0 (2008-01-22 10:04:09 EST)

starting pid 764, tty '': '/etc/init.d/rcS'

Please press Enter to activate this console. tsdev (compaq touchscreen emulation) is scheduled for removal.

See Documentation/feature-removal-schedule.txt for details.

Warning: TimeZone::data Can't create a valid data object for 'Europe/Oslo'

Warning: could not register server

process '-/bin/sh' (pid 772) exited. Scheduling it for restart.

Please press Enter to activate this console.

starting pid 787, tty '/dev/s3c2410_serial0': '/bin/sh'

#

DNW下载

CD1中:

第0课第8节_win7下不能使用dnw烧写的替代方法

windows版本:

1. dnw.exe是一个USB工具,通过USB发送文件给具有USB下载功能的bootloader

工具本身的使用方法为(要发送成功,单板必须运行具有USB下载功能的bootloader)

在“Configuration -> Options 菜单里设置下载地址“Download Address

通过“USB Port -> Transmit”菜单项选择、发送文件

2. 开发板的u-boot启动时,在串口工具上输入空格键,u-boot将输出如下菜单:

##### 100ask Bootloader for OpenJTAG #####

[n] Download u-boot to Nand Flash

[o] Download u-boot to Nor Flash // 如果是Nand Flash启动的话,这个菜单项没有

[k] Download Linux kernel uImage

[j] Download root_jffs2 image

[y] Download root_yaffs image

[d] Download to SDRAM & Run

[z] Download zImage into RAM

[g] Boot linux from RAM

[f] Format the Nand Flash

[s] Set the boot parameters

[b] Boot the system

[r] Reboot u-boot

[q] Quit from menu

输入前面的小写字母即可启动下载,然后使用dnw工具发送文件。

比如:

a. u-boot界面输入k后,u-boot将等待主机发出内核映象,这时在主机上使用dnw.exe选择uImage即可发送内核给u-boot

b. u-boot界面输入y后,u-boot将等待主机发出yaffs文件系统映象,这时在主机上使用dnw.exe选择yaffs文件系统映象即可发送内核给u-boot

c. u-boot界面输入d后,u-boot将等待主机发出文件,这时在主机上运行dnw.exe,将它的下载地址设为0x31000000,然后发送文件;

u-boot接收到文件及地址0x31000000,会把此文件内容存放在0x31000000处,然后跳转去执行它

3. 也可以不使用u-boot的菜单,输入q退出菜单,然后使用u-boot的命令进行操作。

usb命令的使用方法可以输入“help usbslave”命令看到:

usbslave [wait] [loadAddress]

"wait" is 0 or 1, 0 means for return immediately, not waits for the finish of transferring

这表示:运行usbslave即可启动USB下载,[wait][loadAddress]这两个地址是可选的;

如果[wait]的值是0u-boot将不等待USB传输完成,这时你可以立刻输入下一条u-boot命令;

如果[wait]的值是1u-boto将等待USB传输完成,完成之后你才能输入下一个u-boot命令;

如果指定[loadAddress],那么下载的文件将保存在SDRAM地址[loadAddress]处,否则存放地址由主机的dnw命令指定

本文来源:https://www.2haoxitong.net/k/doc/4145be7edd88d0d232d46a9c.html

《U-boot启动过程.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式