天嵌 ARM开发社区

 找回密码
 注册
查看: 7199|回复: 13

按照步骤烧写Linux系统,屡次无法成功

[复制链接]
175259994 发表于 2012-10-17 22:06:34 | 显示全部楼层 |阅读模式

Linux 烧写
第一:首先烧写nor:什么都没有的开发板,需要在nor flash 烧写uboot文件,用h-jtag或者j-link,
第二:第一步完成之后,在nor下面启动,选择1,烧写uboot,文件还是uboot

第三:在nand模式下启动,进入烧写模式,
选择2,烧写eboot,
选择3,烧写zImage,                          
选择b,烧写logo,
最后选择6,烧写文件系统,就是那个root_qt的文件,
烧写完后,选择8可以进入linux系统,
按照以上步骤进行的,最后按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-203) ) #6 Fri Aug 7 20:53:01 CST 2009
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: 60928KB available (3380K code, 368K data, 176K init)
SLUB: Genslabs=12, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
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
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
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)
yaffs Aug  7 2009 20:38:08 Installing.
io scheduler noop registered (default)
Console: switching to colour frame buffer device 40x15
fb0: s3c2410fb frame buffer device
TQ2440/SKY2440 LEDS, (c) 2008,2009 www.embedsky.net
EmbedSky-leds initialized
TQ2440/SKY2440 Beep, (c) 2008,2009 www.embedsky.net
EmbedSky-Beep initialized
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
loop: module loaded
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPPoL2TP kernel driver, V1.0
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
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 c480e000,c4810004 IRQ 51 MAC: 10:32:54:76:98:ba
Linux video capture interface: v2.00
Driver 'sd' needs updating - please use bus_type methods
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 32 at 0x00400000
Bad eraseblock 304 at 0x02600000
Bad eraseblock 2031 at 0x0fde0000
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "EmbedSky_Board_uboot"
0x00200000-0x00600000 : "EmbedSky_Board_kernel"
0x00400000-0x0ff80000 : "EmbedSky_Board_yaffs2"
usbmon: debugfs is not available
Initial EmbedSky 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
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
EmbedSky TouchScreen successfully loaded
input: EmbedSky TouchScreen as /class/input/input0
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
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
s3c2440-sdi s3c2410-sdi: unable to get DMA channel.
s3c2440-sdi s3c2410-sdi: powered down.
s3c2440-sdi s3c2410-sdi: initialisation done.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
s3c2440-sdi s3c2410-sdi: powered down.
UDA1341 audio driver initialized
Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31 16:40:16 2008 UTC).
ASoC version 0.13.2
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2008-11-11 14:40:44 UTC (1226414444)
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:
1f00        256 mtdblock0 (driver?)
1f01       4096 mtdblock1 (driver?)
1f02     257536 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

怎么解决呢?
还有eboot不是烧写wince系统才用吗?这里烧写有什么用?
我选了EBOOT_Q35_20100120.nb0烧写进去了。
 楼主| 175259994 发表于 2012-10-17 22:08:42 | 显示全部楼层
补充一句,上述烧写直接导致的结果是:开发板无法进入系统,屏幕显示logo
chris_xi 发表于 2012-10-17 23:29:13 | 显示全部楼层
看打印好像环境变量写的ROOT格式和加的不一致,你换个文件系统格式文件试试
梦来是缘 发表于 2012-10-18 07:34:40 | 显示全部楼层
本帖最后由 梦来是缘 于 2012-10-18 07:35 编辑

以前重新烧过   但是没有烧写eboot
天嵌使用手册教程中有写的
在这一章节,别烧错文件了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
Jangel 发表于 2012-10-18 09:01:08 | 显示全部楼层
不用烧写eboot,LZ多了这一步
梦来是缘 发表于 2012-10-18 09:43:55 | 显示全部楼层
按照手册上的做就可以了
TQ-ZQL 发表于 2012-10-18 09:58:22 | 显示全部楼层
选择2,烧写eboot,
如楼上2位所言,试下将这个改成uboot看下
 楼主| 175259994 发表于 2012-10-18 17:11:00 | 显示全部楼层
chris_xi 发表于 2012-10-17 23:29
看打印好像环境变量写的ROOT格式和加的不一致,你换个文件系统格式文件试试

我这里就两个Linux文件系统镜像
root_qt_4.5_2.6.30.4_256MB_20091216.bin和root_qtopia_2.2.0_2.6.30.4_256MB_20091216.bin
我重新烧写了都不行。
我每次都从nor启动,把NAND擦一遍start address 0x0 ,size 256m
然后依次烧写uboot到NAND
然后从NAND启动,烧写Linux内核:zImage
然后烧写文件系统。 这个流程应该再没有错了吧?

另外我有个问题是,能重复烧写文件系统吗?就是不重头开始,烧写一次文件系统失败后,直接再烧写一次文件系统?
chris_xi 发表于 2012-10-18 22:30:54 | 显示全部楼层
如果你玩LINUX就不用EBOOT,不一定按顺序,我都是直接加的,不用擦,怀疑他做那个菜单加的时候自动会擦,。UBOOT+KERNEL+ROOT,他这个是这样的
 楼主| 175259994 发表于 2012-10-18 23:04:45 | 显示全部楼层
TQ-ZQL 发表于 2012-10-18 09:58
选择2,烧写eboot,
如楼上2位所言,试下将这个改成uboot看下

现在烧写完成 按8,不断循环出现下面代码,开发板屏幕不停的闪LOGO,怎么解决呢?
##### EmbedSky BIOS for SKY2440/TQ2440 #####
Press Space key to Download Mode !
Booting Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ...
Bad block at 0x420000 ,will be skipped

Bad block at 0x460000 ,will be skipped

Bad block at 0x480800 ,will be skipped

Bad block at 0x4a1000 ,will be skipped

Bad block at 0x4c1800 ,will be skipped

Bad block at 0x4e2000 ,will be skipped

Bad block at 0x502800 ,will be skipped
Copy Kernel to SDRAM done,NOW, Booting Linux......
data abort
pc : [<3000b420>]    lr : [<0000005c>]
sp : 302441c4  ip : ecf24d3c  fp : 302441e0
r10: 40000000  r9 : 30000000  r8 : 30008000
r7 : 75220919  r6 : 58686409  r5 : 02243f65  r4 : 3023ad20
r3 : 000000a8  r2 : 302541e4  r1 : 302441e4  r0 : 302541e4
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

*** Warning - bad CRC or NAND, using default environment
 楼主| 175259994 发表于 2012-10-21 10:59:56 | 显示全部楼层
昨天晚上,终于烧写成功,所以还是我自己来回复一下吧。
烧写失败的根本原因是,我的资料比较陈旧,是我买板子之前从网上下载下来的,后来买板子以后,觉得资料差不多,就没有用光盘里面的资料。最近,一一对比,发现光盘里面的资料是更新过的。唉····

更新我的光盘资料以后,烧写还出现过几次问题,但是重复几次,按步骤来最终还是成功了。
万事开头难,终于把简单的烧写完成了,要进一步开始学习了,希望与大家共同探讨!
梦来是缘 发表于 2012-10-21 11:14:39 | 显示全部楼层
最好下载板子配套的资料
亚瑟王 发表于 2012-10-26 10:41:36 | 显示全部楼层
怀疑你烧写的内核镜像或文件系统镜像有问题(内核的问题大于文件系统镜像)。
小虾m米i 发表于 2015-6-17 19:50:20 | 显示全部楼层
楼主很好,我正好也遇到这个问题了,明天去拷贝新资料
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-30 15:19 , Processed in 1.043878 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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