天嵌 ARM开发社区

 找回密码
 注册
查看: 7737|回复: 3

uboot启动失败!!

[复制链接]
dw2835 发表于 2010-7-3 13:07:20 | 显示全部楼层 |阅读模式
##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !

#####    Boot for Nor Flash Main Menu   #####
[1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
[2] Download Eboot to Nand Flash
[3] Download Linux Kernel to Nand Flash
[5] Download CRAMFS image to Nand Flash
[6] Download YAFFS image 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)
Download LOGO Picture (.bin) to Nand  Flash
[l] Set LCD Parameters
[o] Download u-boot to Nor Flash
[r] Reboot u-boot
[t] Test Linux Image (zImage)
[q] quit from menu
Enter your selection: 7
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:28918]
RECEIVED FILE SIZE:   28918 (28KB/S, 1S)
## Starting application at 0x30000000 ...
Nand Flash ID is 0xEC44,is Large Block

<***************************************>
               EmbedSky Boot
             www.embedsky.net
<***************************************>
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Setup linux parameters at 0x30000100
Set boot params = noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0 mem=64MB
NOW, Booting Linux......
undefined instruction
pc : [<30f00920>]    lr : [<33f8151c>]
sp : 33ff57e8  ip : c000107e  fp : 33d3d993
r10: 33d3d893  r9 : 00000000  r8 : 33d3ffdc
r7 : 33cc99da  r6 : 33f00000  r5 : 00000400  r4 : 00000000
r3 : c000107c  r2 : 30008000  r1 : 000000a8  r0 : 00000000
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32
Resetting CPU ...

以上是出错现象!
另外我打印了一些环境设置以供参考:
##### Parameter Menu #####
[1] Set NFS boot parameter
[2] Set Yaffs boot parameter
[3] Set parameter
[4] View the parameters
[d] Delete parameter
Save the parameters to Nand Flash
[q] Return main Menu
Enter your selection: 4
Name(enter to view all paramters):
bootcmd=nboot 0x32000000 kernel; bootm 0x32000000
bootdelay=0
baudrate=115200
ethaddr=0a:1b:2c:3d:4e:5f
ipaddr=192.168.1.6
serverip=192.168.1.8
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
mtdids=nand0=nandflash0
mtdparts=mtdparts=nandflash0:256k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),2m(kernel),-(root)
partition=nand0,0
mtddevnum=0
mtddevname=bios
bootargs=console=ttySAC0 root=/dev/nfs nfsroot=q:q ip=q:q:q:q:SKY2440.embedsky.net:eth0:off

Environment size: 477/131068 bytes

十万火急,多谢指教!!!!!!!!!!!!!
embedsky Team 发表于 2010-7-3 17:15:59 | 显示全部楼层
1 保持uboot(nandflash和norflash里面的)和内核的同步更新,意思就是必须使用天嵌同步发布的uboot和linux内核使用, 旧版本的uboot和新版本的内核可能会有nandflash分区信息不一样 导致无法启动
2 建议格式化后,重新刷写配套光盘里面的uboot(nor和nandflash都需要更新)和内核,文件系统,或者使用最新发布的uboot和内核 2010年6月发布,看论坛置顶的帖子!
回复

使用道具 举报

 楼主| dw2835 发表于 2010-7-4 07:02:34 | 显示全部楼层
?** Warning - bad CRC or NAND, using default environment



##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !
Booting Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00200000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux.......................................................................................................... done, booting the kernel.
Linux version 2.6.13 (root@EmbedSky) (gcc version 3.4.5) #4 Fri Aug 7 22:01:14 CST 2009
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: TQ2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
BUG: mapping for 0x20000300 at 0xd0000000 overlaps vmalloc space
S3C2440: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
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
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 61056KB available (2559K code, 1037K data, 176K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
USB Power Control, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: IRQ Support
S3C2440: Clock Support, UPLL 48.000 MHz
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
S3C2410 DMA Driver, (c) 2003-2004 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
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
yaffs Aug  7 2009 21:34:45 Installing.
Initializing Cryptographic API
Console: switching to colour frame buffer device 64x30
S3C24X0 fb0: s3c2410fb frame buffer device initialize done
GPIO L3 bus interface for S3C2440, installed
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
TQ2440_backlight initialized
TQ2440_GPF initialized
TQ2440_leds initialized
TQ2440-Beep initialized
s3c24x0_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c24x0_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c24x0_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
DM9000 ethernet driver V1.26 I/O: c481a300, VID: 90000a46
Linux video capture interface: v1.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide_s3c2440_init
ide0: S3C2410 IDE interface
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4880000
30 ns is too big for current clock rate 100000
s3c2410-nand: timing: Tacls 0ns, Twrph0 4294ns, Twrph1 0ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Bad eraseblock 73 at 0x00920000
Bad eraseblock 187 at 0x01760000
Bad eraseblock 369 at 0x02e20000
Bad eraseblock 1075 at 0x08660000
Bad eraseblock 1422 at 0x0b1c0000
Bad eraseblock 1530 at 0x0bf40000
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "EmbedSky_Board_uboot"
mtd: Giving out device 0 to EmbedSky_Board_uboot
0x00200000-0x00400000 : "EmbedSky_Board_kernel"
mtd: Giving out device 1 to EmbedSky_Board_kernel
0x00200000-0x03df8000 : "EmbedSky_Board_yaffs2"
mtd: partition "EmbedSky_Board_yaffs2" doesn't end on an erase block -- force read-only
mtd: Giving out device 2 to EmbedSky_Board_yaffs2
Initial TQ2440 TWO USB HOST Driver!
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
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb 1-1: new low speed USB device using s3c2410-ohci and address 2
usb 1-2: new full speed USB device using s3c2410-ohci and address 3
usb 1-2: device descriptor read/64, error -110
usb 1-2: device descriptor read/64, error -110
usb 1-2: new full speed USB device using s3c2410-ohci and address 4
usb 1-2: device descriptor read/64, error -110
usb 1-2: device descriptor read/64, error -110
usb 1-2: new full speed USB device using s3c2410-ohci and address 5
usb 1-2: device not accepting address 5, error -110
usb 1-2: new full speed USB device using s3c2410-ohci and address 6
usb 1-2: device not accepting address 6, error -110
input: USB HID v1.10 Mouse [USB Mouse] on usb-s3c24xx-1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
usbcore: registered new driver ov511
drivers/usb/media/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver
usbcore: registered new driver gspca
drivers/usb/media/gspca/gspca_core.c: gspca driver 00.60.00 registered
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
TQ2440 TouchScreen successfully loaded
i2c /dev entries driver
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
TQ2440-SD TQ2440-SD: powered down.
TQ2440-SD TQ2440-SD: initialisation done.
TQ2440 SOUND driver register
TQ2440 SOUND driver probe!
TQ2440 UDA1341 audio driver initialized
NET: Registered protocol family 2
TQ2440-SD TQ2440-SD: powered down.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
restore entry: isCheckpointed 0
found no more checkpt blocks
checkpoint byte count 0
restore exit: isCheckpointed 0
block 58 is bad
block 172 is bad
block 354 is bad
VFS: Mounted root (yaffs filesystem) readonly.
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 176K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.


对不起,内容长了点,请问目前情况如何解决?? 多谢!!
回复

使用道具 举报

liushuiyue 发表于 2010-7-16 13:45:17 | 显示全部楼层
我也遇到过这种问题,觅得yaffs文件系统挂载上了,不能打开一个初始化文件。看看你的文件系统目录下的linuxrc 的初始化文件是否存在,权限是不是可执行的。还有就是你uboot是否和内核中传递的启动参数移植。通过你的打印信息,你的uboot种参数是init=/linuxrc
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2025-8-16 02:28 , Processed in 2.051119 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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