shao890813 发表于 2012-2-7 20:54:40

TQ6410烧写文件系统重启系统不能看到触摸屏界面

本帖最后由 shao890813 于 2012-12-17 09:26 编辑

    我是嵌入式ARM新手,TQ6410开发板是我接触的第一块开发板,最近我想把所有光盘自带的镜像文件烧写一遍,下面是U-BOOT下载模式终端的菜单
#####    Boot for SKY6410/TQ6410 Main Menu      #####
#####   EmbedSky USB download mode   #####
Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
Download Eboot (eboot.nb0) to Nand Flash
Download Linux Kernel (zImage.bin) to Nand Flash
Download LOGO Picture (logo.bin) to NandFlash
Download UBIFS image (root.ubi) to Nand Flash
Download YAFFS image (root.bin) to Nand Flash
Download Program to SDRAM and Run it
Boot the system
Format the Nand Flash
Set the boot parameters
Download User Program
Enter TFTP download mode menu
Reboot u-boot
Test Linux Image (zImage)
Enter your selection:

我具体的步骤如下:
1.选择9格式化NAND FLASH
2.用SD卡烧写U-BOOT,重新启动板子后在终端可以看到上面的U-BOOT下载菜单;
3.U-BOOT模式下重新烧写了U-BOOT(跟上面的第二步的可能重复),烧写完终端显示正常;
4.烧写自带的3.0版LINUX内核镜像;终端显示正常;
5.烧写文件系统(镜像名称为root_TQ6410_PDA_SLC_V1.1.ubi)终端显示如下:
    Now, Downloading
    Please waiting ..............................................................................................................................................................
    Download Address: 0xc0000000, Download Filesize:0x446a000
    Checksum is being calculated.....................................................................
    Checksum Value => MEM:9925 DNW:91d3
    Checksum failed.

    NAND erase: device 0 offset 0x700000, size 0xf900000
    Skipping bad block at0x09760000                                          
    Erasing at 0xffe0000 -- 100% complete.
    OK
    Creating 1 MTD partitions on "nand0":
   0x00700000-0x10000000 : "mtd=4"
   Creating dynamic volume rootfs of size 253919232
   Volume "rootfs" found at volume id 0
   Write UBIFS to rootfs, please wait ...OK.
   UBIFS write compilete!
6.最后烧写logo,终端显示正常;
7.重启系统,最后终端显示的最后几行如下:(不好意思,下边的可能显示的有点多,我选择性的删了一点,最后一行是启动系统后显示的最后一行)
#####    Boot for SKY6410/TQ6410 Main Menu      #####
#####   EmbedSky USB download mode   #####
Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash
Download Eboot (eboot.nb0) to Nand Flash
Download Linux Kernel (zImage.bin) to Nand Flash
Download LOGO Picture (logo.bin) to NandFlash
Download UBIFS image (root.ubi) to Nand Flash
Download YAFFS image (root.bin) to Nand Flash
Download Program to SDRAM and Run it
Boot the system
Format the Nand Flash
Set the boot parameters
Download User Program
Enter TFTP download mode menu
Reboot u-boot
Test Linux Image (zImage)
Enter your selection: 8
Start Linux ...
NAND read: device 0 offset 0x300000, size 0x400000
.....................................................................................................
4194304 bytes read: OK
Boot with zImage
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 3.0.0-rc6-EmbedSky (root@EmbedSky) (gcc version 4.6.0 (for TQ6410 EmbedSky Tech) ) #18 Tue Sep 6 17:19:47 CST 2011
CPU: ARMv6-compatible processor revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: TQ6410
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
TQ6410 Clocks, Copyright 2011 EmbedSky
camera: no parent clock specified
S3C64XX: PLL settings, A=533000000, M=533000000, E=48000000
S3C64XX: HCLK2=266500000, HCLK=133250000, PCLK=66625000
mout_apll: source is fout_apll (1), rate is 533000000
mout_epll: source is epll (1), rate is 48000000
mout_mpll: source is mpll (1), rate is 533000000
mmc_bus: source is dout_mpll (1), rate is 24227272
mmc_bus: source is mout_epll (0), rate is 48000000
mmc_bus: source is mout_epll (0), rate is 48000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66625000
spi-bus: source is mout_epll (0), rate is 48000000
spi-bus: source is mout_epll (0), rate is 48000000
audio-bus: source is mout_epll (0), rate is 48000000
audio-bus: source is mout_epll (0), rate is 48000000
audio-bus: source is mout_epll (0), rate is 48000000
irda-bus: source is mout_epll (0), rate is 48000000
camera: no parent clock specified
s3c64xx: 10485760 bytes SDRAM reserved for fimc at 0x5f5f9000
s3c64xx: 8388608 bytes SDRAM reserved for pp at 0x5edf9000
s3c64xx: 8388608 bytes SDRAM reserved for tv at 0x5e5f9000
s3c64xx: 6291456 bytes SDRAM reserved for mfc0 at 0x5dff9000
s3c64xx: 4194304 bytes SDRAM reserved for jpeg at 0x5dbf9000
s3c64xx: 8388608 bytes SDRAM reserved for cmm at 0x5d3f9000
TQ6410 Power Management, Copyright 2011 EmbedSky
EmbedSky NAND Driver, (c) 2011 EmbedSky.
EmbedSky NAND Driver is using hardware ECC.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000100000 : "Bootloader"
0x000000100000-0x000000300000 : "LOGO"
0x000000300000-0x000000700000 : "Kernel"
0x000000700000-0x000010000000 : "ROOTFS"
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:            512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: max. sequence number:       563
UBI: attached mtd3 to ubi0
UBI: MTD device name:            "ROOTFS"
UBI: MTD device size:            249 MiB
UBI: number of good PEBs:      1991
UBI: number of bad PEBs:         1
UBI: number of corrupted PEBs:   0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:   1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 1991
UBI: number of PEBs reserved for bad PEB handling: 19
UBI: max/mean erase counter: 2/1
UBI: image sequence number:0
UBI: background thread "ubi_bgt0d" started, PID 37
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
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
usbcore: registered new interface driver xirlink-cit
usbcore: registered new interface driver zc3xx
usbcore: registered new interface driver ALi m5602
usbcore: registered new interface driver STV06xx
usbcore: registered new interface driver gspca_gl860
TQ6410 Camera Interface Driver , (c) 2011 EmbedSky Tech
fimc0: controller 0 registered successfully
TQ6410 Camera Interface Init success !

完成了上述步骤后,终端就停在上面的最后一行TQ6410 Camera Interface Init success !,板子上面也没有看到触摸屏界面,只有一个embedsky的logo.我不知道接下来怎么做,所有的镜像都是光盘里自带的,我根据板子的内存256M(K9F2G08),显示屏是7英寸的选择了正确的镜像文件,不知道为什么结果是这样,试了很多回了,望路过的朋友能指点小弟,感激,感激

亚瑟王 发表于 2012-2-8 15:47:23

亲,我想问一下,你的开发板的内存是128MB的还是256MB的?根据你的情况,你应该是烧写镜像时选错了对应内存的镜像引起的(Linux的烧写,只有u-boot区分内存)。

shao890813 发表于 2012-2-8 21:30:13

内存芯片是三星的K9F2G08U0.这个是256M的没错。下面是我烧写的镜像名称和说明:
logo_A70.bin                              适合7寸屏的logo镜像
u-boot_nand_256MB_A70_V1.1.bin               适用于256MB内存,7寸屏NandFlash启动
zImage_3.0_A70_V1.1.bin                版本为3.0内核源、适合7寸屏的内核镜像
root_TQ6410_PDA_SLC_V1.1.ubi                适合TQ6410开发板SLC类型的PDA图形界面文件系统镜像
我想明天上午再重新格式化一遍,再重新走一遍上述过程,看看问题能不能解决,谢谢您的回答,有问题也请您指正

shao890813 发表于 2012-2-9 17:12:55

感谢亚瑟王的提醒,问题给我解决了,我把内存与NAND FLASH的概念混淆了,开发板上内存是128M,NAND FLASH是256M,之前的错误是因为,我把内存理解为NAND FLASH.再次感谢您。附件是我写的一个总结,希望可以帮助遇到类似问题的基友。

亚瑟王 发表于 2012-2-20 11:42:59

谢谢你的总结,那我结贴了哦。
页: [1]
查看完整版本: TQ6410烧写文件系统重启系统不能看到触摸屏界面