天嵌 ARM开发社区

 找回密码
 注册
查看: 2783|回复: 9

请教,编译 zImage.bin 和 root_2.6.25.8.bin 系统无法启动

[复制链接]
hnk 发表于 2010-7-16 17:11:49 | 显示全部楼层 |阅读模式
按照 <Linux移植手册> 上的step1~step12 一步一步做完了。但是系统无法启动。
请教。先谢谢了。



写 zImage.bin 和 root_2.6.25.8.bin
##### 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: 3
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:1607978]
RECEIVED FILE SIZE: 1607978 (785KB/S, 2S)

NAND erase: device 0 offset 0x200000, size 0x200000
Erasing at 0x3e0000 -- 100% complete.
OK

NAND write: device 0 offset 0x200000, size 0x188920

Writing data at 0x388800 -- 100% complete.
1607968 bytes written: OK

#####    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: 6
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:14539018]
RECEIVED FILE SIZE:14539018 (676KB/S, 21S)

NAND erase: device 0 offset 0x400000, size 0xfc00000
Skipping bad block at  0x00c00000                           

               
Skipping bad block at  0x04200000                           

               
Skipping bad block at  0x0a200000                           

               
Skipping bad block at  0x0aac0000                           

               
Skipping bad block at  0x0b0a0000                           

               
Skipping bad block at  0x0c540000                           

               
Skipping bad block at  0x0c5c0000                           

               
Skipping bad block at  0x0dc40000                           

               
Skipping bad block at  0x0dc60000                           

               
Skipping bad block at  0x0f820000                           

               
Skipping bad block at  0x0f960000                           

               
Erasing at 0xffe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x400000, size 0xddd900

Bad block at 0xc00000 in erase block from 0xc00000 will be

skipped
Writing data at 0x11b1800 -- 100% complete.
14539008 bytes written: OK
 楼主| hnk 发表于 2010-7-16 17:14:43 | 显示全部楼层
8 启动,信息:
#####    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)
[b] 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: 8
Start 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.25.8-EmbedSky (root@EmbedSky) (gcc version

4.3.3 (Sourcery G++ Lite 2009q1-176) ) #2 Thu Jul 15

12:59:09 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
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 in Zone order, mobility grouping on.  

Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2

init=/linuxrc console=ttySAC0
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000003
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
console [ttySAC0] enabled
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: 61568KB available (2932K code, 282K data, 116K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
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
S3C244X: Clock Support, DVS off
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
 楼主| hnk 发表于 2010-7-16 17:16:49 | 显示全部楼层
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)
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
yaffs Jul 15 2010 12:58:46 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ

sharing enabled
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70)

is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73)

is a S3C2440
s3c2440-uart.2: tq2440_serial2 at MMIO 0x50008000 (irq = 76)

is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver
eth%d: Invalid ethernet MAC address.  Please set using

ifconfig
Now use the default MAC address: 10:32:54:76:98:ba
eth0: dm9000 at c485e000,c4860004 IRQ 51 MAC:

10:32:54:76:98:ba
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override

with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 20ns Twrph0=3 30ns,

Twrph1=2 20ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung

NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 34 at 0x00440000
Bad eraseblock 35 at 0x00460000
Bad eraseblock 36 at 0x00480000
Bad eraseblock 37 at 0x004a0000
Bad eraseblock 38 at 0x004c0000
Bad eraseblock 39 at 0x004e0000
Bad eraseblock 40 at 0x00500000
Bad eraseblock 41 at 0x00520000
Bad eraseblock 42 at 0x00540000
Bad eraseblock 43 at 0x00560000
Bad eraseblock 44 at 0x00580000
Bad eraseblock 45 at 0x005a0000
Bad eraseblock 46 at 0x005c0000
Bad eraseblock 47 at 0x005e0000
Bad eraseblock 48 at 0x00600000
Bad eraseblock 49 at 0x00620000
Bad eraseblock 50 at 0x00640000
Bad eraseblock 51 at 0x00660000
Bad eraseblock 52 at 0x00680000
Bad eraseblock 54 at 0x006c0000
Bad eraseblock 55 at 0x006e0000
Bad eraseblock 56 at 0x00700000
Bad eraseblock 57 at 0x00720000
Bad eraseblock 58 at 0x00740000
Bad eraseblock 59 at 0x00760000
Bad eraseblock 60 at 0x00780000
Bad eraseblock 61 at 0x007a0000
Bad eraseblock 62 at 0x007c0000
Bad eraseblock 63 at 0x007e0000
Bad eraseblock 64 at 0x00800000
Bad eraseblock 65 at 0x00820000
Bad eraseblock 66 at 0x00840000
Bad eraseblock 67 at 0x00860000
Bad eraseblock 68 at 0x00880000
Bad eraseblock 70 at 0x008c0000
Bad eraseblock 71 at 0x008e0000
Bad eraseblock 72 at 0x00900000
Bad eraseblock 73 at 0x00920000
Bad eraseblock 74 at 0x00940000
Bad eraseblock 75 at 0x00960000
Bad eraseblock 76 at 0x00980000
Bad eraseblock 77 at 0x009a0000
Bad eraseblock 78 at 0x009c0000
Bad eraseblock 79 at 0x009e0000
Bad eraseblock 80 at 0x00a00000
 楼主| hnk 发表于 2010-7-16 17:20:17 | 显示全部楼层
Bad eraseblock 81 at 0x00a20000
Bad eraseblock 82 at 0x00a40000
Bad eraseblock 83 at 0x00a60000
Bad eraseblock 84 at 0x00a80000
Bad eraseblock 85 at 0x00aa0000
Bad eraseblock 86 at 0x00ac0000
Bad eraseblock 87 at 0x00ae0000
Bad eraseblock 88 at 0x00b00000
Bad eraseblock 89 at 0x00b20000
Bad eraseblock 90 at 0x00b40000
Bad eraseblock 91 at 0x00b60000
Bad eraseblock 92 at 0x00b80000
Bad eraseblock 93 at 0x00ba0000
Bad eraseblock 94 at 0x00bc0000
Bad eraseblock 95 at 0x00be0000
Bad eraseblock 96 at 0x00c00000
Bad eraseblock 97 at 0x00c20000
Bad eraseblock 98 at 0x00c40000
Bad eraseblock 99 at 0x00c60000
Bad eraseblock 100 at 0x00c80000
Bad eraseblock 101 at 0x00ca0000
Bad eraseblock 102 at 0x00cc0000
Bad eraseblock 103 at 0x00ce0000
Bad eraseblock 104 at 0x00d00000
Bad eraseblock 105 at 0x00d20000
Bad eraseblock 106 at 0x00d40000
Bad eraseblock 107 at 0x00d60000
Bad eraseblock 108 at 0x00d80000
Bad eraseblock 109 at 0x00da0000
Bad eraseblock 110 at 0x00dc0000
Bad eraseblock 111 at 0x00de0000
Bad eraseblock 112 at 0x00e00000
Bad eraseblock 113 at 0x00e20000
Bad eraseblock 114 at 0x00e40000
Bad eraseblock 115 at 0x00e60000
Bad eraseblock 116 at 0x00e80000
Bad eraseblock 117 at 0x00ea0000
Bad eraseblock 118 at 0x00ec0000
Bad eraseblock 119 at 0x00ee0000
Bad eraseblock 120 at 0x00f00000
Bad eraseblock 121 at 0x00f20000
Bad eraseblock 122 at 0x00f40000
Bad eraseblock 123 at 0x00f60000
Bad eraseblock 124 at 0x00f80000
Bad eraseblock 125 at 0x00fa0000
Bad eraseblock 126 at 0x00fc0000
Bad eraseblock 127 at 0x00fe0000
Bad eraseblock 128 at 0x01000000
Bad eraseblock 129 at 0x01020000
Bad eraseblock 130 at 0x01040000
Bad eraseblock 131 at 0x01060000
Bad eraseblock 132 at 0x01080000
Bad eraseblock 133 at 0x010a0000
Bad eraseblock 134 at 0x010c0000
Bad eraseblock 135 at 0x010e0000
Bad eraseblock 136 at 0x01100000
Bad eraseblock 137 at 0x01120000
Bad eraseblock 138 at 0x01140000
Bad eraseblock 139 at 0x01160000
Bad eraseblock 140 at 0x01180000
Bad eraseblock 141 at 0x011a0000
Bad eraseblock 528 at 0x04200000
Bad eraseblock 1296 at 0x0a200000
Bad eraseblock 1366 at 0x0aac0000
Bad eraseblock 1413 at 0x0b0a0000
Bad eraseblock 1578 at 0x0c540000
Bad eraseblock 1582 at 0x0c5c0000
Bad eraseblock 1762 at 0x0dc40000
Bad eraseblock 1763 at 0x0dc60000
Bad eraseblock 1985 at 0x0f820000
Bad eraseblock 1995 at 0x0f960000
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "EmbedSky_Board_uboot"
0x00200000-0x00400000 : "EmbedSky_Board_kernel"
0x00200000-0x03df8000 : "EmbedSky_Board_yaffs2"
mtd: partition "EmbedSky_Board_yaffs2" doesn't end on an

erase block -- force read-only
usbmon: debugfs is not available
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
mice: PS/2 mouse device common for all mice
TQ2440/SKY2440 LEDS, (c) 2008,2009 www.embedsky.net
EmbedSky-buttons initialized
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
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
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: starting watchdog timer
s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq

enabled
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2008-11-12

06:25:51 UTC (1226471151)
end_request: I/O error, dev mtdblock2, sector 2
EXT2-fs: unable to read superblock
end_request: I/O error, dev mtdblock2, sector 0
Buffer I/O error on device mtdblock2, logical block 0
end_request: I/O error, dev mtdblock2, sector 0
Buffer I/O error on device mtdblock2, logical block 0
end_request: I/O error, dev mtdblock2, sector 8
Buffer I/O error on device mtdblock2, logical block 1
end_request: I/O error, dev mtdblock2, sector 8
Buffer I/O error on device mtdblock2, logical block 1
end_request: I/O error, dev mtdblock2, sector 16
Buffer I/O error on device mtdblock2, logical block 2
end_request: I/O error, dev mtdblock2, sector 16
Buffer I/O error on device mtdblock2, logical block 2
end_request: I/O error, dev mtdblock2, sector 24
Buffer I/O error on device mtdblock2, logical block 3
end_request: I/O error, dev mtdblock2, sector 24
Buffer I/O error on device mtdblock2, logical block 3
end_request: I/O error, dev mtdblock2, sector 0
FAT: unable to read boot sector
VFS: Cannot open root device "mtdblock2" or unknown-block

(31,2)
Please append a correct "root=" boot option; here are the

available partitions:
0100       4096 ram0 (driver?)
0101       4096 ram1 (driver?)
0102       4096 ram2 (driver?)
0103       4096 ram3 (driver?)
0104       4096 ram4 (driver?)
0105       4096 ram5 (driver?)
0106       4096 ram6 (driver?)
0107       4096 ram7 (driver?)
0108       4096 ram8 (driver?)
0109       4096 ram9 (driver?)
010a       4096 ram10 (driver?)
010b       4096 ram11 (driver?)
010c       4096 ram12 (driver?)
010d       4096 ram13 (driver?)
010e       4096 ram14 (driver?)
010f       4096 ram15 (driver?)
1f00        256 mtdblock0 (driver?)
1f01       2048 mtdblock1 (driver?)
1f02      61408 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on

unknown-block(31,2)
亚瑟王 发表于 2010-7-17 12:51:29 | 显示全部楼层
在TQ2440使用手册的V2.5版本的4.2章节烧写Linux部分讲解了这样的错误的原因的。你可以看一下。
http://bbs.embedsky.net/viewthread.php?tid=859&extra=page%3D1这里可以下载这个教程。
 楼主| hnk 发表于 2010-7-17 16:48:49 | 显示全部楼层
本帖最后由 hnk 于 2010-7-17 16:51 编辑

我按照天嵌科技出品-Linux移植之Step By Step_V4.5_20100605.pdf
上的step1~step12 一步一步做完了

不是TQ2440使用手册

还请说下具体的解决方法。
 楼主| hnk 发表于 2010-7-21 12:48:16 | 显示全部楼层
请教大家该问题。
 楼主| hnk 发表于 2010-7-25 15:08:54 | 显示全部楼层
几次都是这样。。。。。
没有人知道吗?
 楼主| hnk 发表于 2010-7-25 15:17:43 | 显示全部楼层
还是那个步骤需要注意,我按照手册一步一步做的。
zjzxn 发表于 2010-8-20 09:27:14 | 显示全部楼层
我也出现过这样的情况
但我也没解决,正等待高手指教呢
不好意思
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-6 06:04 , Processed in 1.034114 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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