天嵌 ARM开发社区

 找回密码
 注册
查看: 3950|回复: 7

如何使u-boot自动引导内核

[复制链接]
banjamin 发表于 2010-9-13 19:35:39 | 显示全部楼层 |阅读模式
现在的u-boot启动linux需要按下“8”才能启动,如何使得在一定时间内没下按下任何按键就自动引导内核,我试着按网上的教程修改,还是没法自启动,是不是天嵌修改了某些代码,要实现这个功能我该怎么修改?
天嵌_support1 发表于 2010-9-13 20:02:31 | 显示全部楼层
u-boot 本来就有下载模式和引导加载模式。安命令8只不过是从下载模式中跳到加载模式运行系统而已
 楼主| banjamin 发表于 2010-9-14 09:23:38 | 显示全部楼层
请问版主,怎样设置可以使得u-boot一上电启动时就进入引导加载模式,我现在上电启动时,u-boot就进入到了下载模式,需要按8才能启动linux。
谢谢!
天嵌_support1 发表于 2010-9-14 11:39:23 | 显示全部楼层
3# banjamin


这个.........U-boot 一起动会自然是进入引导模式阿,如果发现没有内核,会调到下载模式下的。
 楼主| banjamin 发表于 2010-9-14 12:25:18 | 显示全部楼层
##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !

#####    Boot for Nor Flash Main Menu   #####
#####     EmbedSky USB download mode     #####

[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot (eboot.nb0) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image (root.bin) to Nand Flash
[7] Download Program (uCOS-II or TQ2440_Test) to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[a] Download User Program (eg: uCOS-II or TQ2440_Test)
[b] Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[n] Enter TFTP download mode menu
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection:


我一上电后就出现这个界面,没有按空格键,需要按8才能启动linux内核
天嵌_support1 发表于 2010-9-14 14:59:08 | 显示全部楼层
5# banjamin


##############Boot for Nor Flash Main Menu###########
很明显你是从Nor 启动,Nor 中只有u-boot,
你从Nand 启动就会自动进入加载模式引导系统。
 楼主| banjamin 发表于 2010-9-14 18:34:27 | 显示全部楼层
要把U-boot烧到NANDFLASH中吧,我是烧在了NOR FLASH中了
 楼主| banjamin 发表于 2010-9-14 18:37:57 | 显示全部楼层
好了,谢谢版主的帮助
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-18 12:27 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表