ARM从硬盘启动

本文介绍了如何在ARM设备上从硬盘启动,包括在UBOOT中设置启动项,下载并烧录uImage到FLASH,以及创建和挂载硬盘文件系统。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Booting from HardDisk

1、在UBOOT中设置启动项

EVM # setenv serverip <tftp server ip address>

EVM # setenv bootfile uImage

EVM # setenv bootcmd bootm 0x2060000

EVM # setenv bootargs video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/hda1 mem=120M

EVM # saveenv

2、下载uImage

EVM # tftp 0x80700000 uImage

然后看到:

Filename 'uImage'.

Load address: 0x80700000

Loading:

###################################################

###################################################

done

Bytes transferred = 823844 (c9224 hex)

c9224 hexuImage大小。

3、查看FLASH型号

EVM # flinfo

对于NOR Flash,可以看到0x20400000后就是x2060000,所以我们将uImage烧到0x2060000

4、烧写uImage

DVEVM # protect off 0x2060000 +0xC9224

DVEVM # erase 0x2060000 +0xC9224         

如果看到如下提示,表示擦除过程正确。

Erasing sector 5 ... done.

Erasing sector 6 ... done.

DVEVM # cp.b 0x80700000 0x2060000 0xC9224

The cp (copy) command is used to copy the Linux kernel image in RAM into the accessible flash memory. The arguments are the source address, the destination address, and the length. The .b extension on the cp command specifies a byte-wise copy.

如果看到如下提示,表示烧写过程正确。

Copy to Flash.../done

DVEVM # protect on 0x2060000 +0xC9224

1、创建HardDisk文件系统

在用tfp/nfs启动系统时,挂载硬盘系统

#mount /dev/hda1 /mnt –t ext3

将需要的系统文件复制进去。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值