怎么设置uboot从u盘启动linux,RT5350使用uboot从U盘启动linux顺利

RT5350使用uboot从U盘启动linux成功

1、在uboot需要做的是:

①usb reset

②fatload usb 0:1 0x80c00000 root_uImage

③bootm 0x80c00000

启动内核参数

CONFIG_CMDLINE="console=ttyS1,57600n8 mem=32m ip=off noinitrd root=8:2 rw rootfstype=ext2 rootdelay=10"

在内上驱动需支持scsi,usb等

本次使用的16G的sandisk u 盘

前一个分区为8M,剩下为第二分区

第一分区格式化ewingvfat;第二分区格式化为ext2

并分别将zimage放在第一分区,rootfs放在第二分区

FAT16: entry: 0x008b = 139, offset: 0x008b = 139

FAT16: ret: 0000008c, offset: 008b

gc - clustnum: 3, startsect: 551

...........................................................................................................................................................................................................................

gc - clustnum: 140, startsect: 2743

Size: 1124654, got: 1124654

1124654 bytes read

RT5350 # bootm 0x80c00000

## Booting image at 80c00000 ...

Image Name:   Linux Kernel Image

Image Type:   MIPS Linux Kernel Image (lzma compressed)

Data Size:    1124590 Bytes =  1.1 MB

Load Address: 80000000

Entry Point:  8031b000

Verifying Checksum ... OK

Uncompressing Kernel Image ... OK

No initrd

## Transferring control to Linux (at address 8031b000) ...

## Giving linux memsize in MB, 32

Starting kernel ...

LINUX started...

THIS IS ASIC

Linux version 2.6.21 (root@zq) (gcc version 3.4.2) #24 Tue Jul 22 20:06:46 CST 2014

The CPU feqenuce set to 360 MHz

CPU revision is: 0001964c

Determined physical RAM map:

memory: 02000000 @ 00000000 (usable)

User-defined physical RAM map:

memory: 02000000 @ 00000000 (usable)

Initrd not found or empty - disabling initrd

Built 1 zonelists.  Total pages: 8128

Kernel command line: console=ttyS1,57600n8 mem=32m ip=off noinitrd root=8:2 rw rootfstype=ext2 rootdelay=10

Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.

Primary data cache 16kB, 4-way, linesize 32 bytes.

Synthesized TLB refill handler (20 instructions).

Synthesized TLB load handler fastpath (32 instructions).

Synthesized TLB store handler fastpath (32 instructions).

Synthesized TLB modify handler fastpath (31 instructions).

Cache parity protection disabled

cause = d0808060, status = 11000000

PID hash table entries: 128 (order: 7, 512 bytes)

calculating r4koff... 0015f900(1440000)

CPU frequency 360.00 MHz

Using 180.000 MHz high precision timer.

Console: colour dummy device 80x25

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory: 29040k/32768k available (2449k kernel code, 3728k reserved, 726k data, 144k init, 0k highmem)

Mount-cache hash table entries: 512

NET: Registered protocol family 16

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

Time: MIPS clocksource has been installed.

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

deice id : 20 20 17 10 0 (20171000)

Warning: un-recognized chip ID, please update SPI driver!

AT25DF321(1f 47000000) (4096 Kbytes)

mtd .name = raspi, .size = 0x00400000 (4M) .erasesize = 0x00010000 (6

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值