首先是使用相应的SD卡制作的系统启动程序u-boot.bin和ML0以及Linux操作系统的内核uImage文件,放在SD卡的p1分区,同样的讲Linux的根文件系统放在了SD卡的p2分区当中,制作完成的SD卡是完全可以使用的,但是今天拿出来就突然不能用了,在另一块相同的办卡上SD卡时可以正常运行的,串口打印的相关信息如下:
U-Boot 2010.06 (Jun 02 2015 - 04:54:06) TI8148-GP rev 3.0 ARM clk: 600MHz DDR clk: 400MHz DRAM: 2 GiB MMC:OMAP SD/MMC: 0 Using default environment The 2nd stage U-Boot will now be auto-loaded Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed Hit any key to stop autoboot: 0 reading u-boot.bin 186836 bytes read ## Starting application at 0x80800000 ... U-Boot 2010.06 (Jun 02 2015 - 05:51:17) TI8148-GP rev 3.0 ARM clk: 600MHz DDR clk: 400MHz I2C:ready DRAM: 2 GiB NAND: HW ECC BCH8 Selected NAND device: Manufacturer ID: 0x2c, Chip ID: 0xc3 (Micron NAND 1GiB 3,3V 16-bit) NAND bus width 8 instead 16 bit No NAND device found!!! 0 MiB MMC:OMAP SD/MMC: 0 *** Warning - bad CRC or MMC, using default environment.:;rrr;;.,5#@@@@#####@@@@@@#2,,A@@@hi;;;r5;;;;r;rrSG@@@A,r@@#i;:;s222hG;rrsrrrrrr;ri#@@r:@@hr:r;SG3ssrr2r;rrsrsrsrsrr;rh@@:B@H;;rr;3Hs;rrr;sr;;rrsrsrsrsrsr;;H@B@@s:rrs;5#;;rrrr;r#@H:;;rrsrsrsrsrr:s@@@@;;srs&X#9;r;r;;,2@@@rrr:;;rrsrsrsrr;;@@@@;;rrsrrs@MB#@@@@@###@@@@@@#rsrsrsrsrr;;@@G@r;rrsrsr;#X;SX25Ss#@@#M@#9H9rrsrsrsrsrs;r@G@9:srsrsrs;2@;:;;:.X@@@@@H::;rrsrsrsrsrsrr:3@X@;rrsrsrsrr;XAi;;:&@@#@Bs:rrsrsrsrsrsrsrsrr;@X@#;rsrsrsrsrr;r2ir@@@###::rrsr U-Boot 2010.06 (Jun 02 2015 - 04:54:06) TI8148-GP rev 3.0 ARM clk: 600MHz DDR clk: 400MHz DRAM: 2 GiB MMC:OMAP SD/MMC: 0 Using default environment The 2nd stage U-Boot will now be auto-loaded Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed Hit any key to stop autoboot: 0 reading u-boot.bin 186836 bytes read ## Starting application at 0x80800000 ... U-Boot 2010.06 (Jun 02 2015 - 05:51:17) TI8148-GP rev 3.0 ARM clk: 600MHz DDR clk: 400MHz I2C:ready DRAM: 2 GiB NAND: HW ECC BCH8 Selected NAND device: Manufacturer ID: 0x2c, Chip ID: 0xc3 (Micron NAND 1GiB 3,3V 16-bit) NAND bus width 8 instead 16 bit No NAND device found!!! 0 MiB MMC:OMAP SD/MMC: 0 *** Warning - bad CRC or MMC, using default environment.:;rrr;;.,5#@@@@#####@@@@@@#2,,A@@@hi;;;r5;;;;r;rrSG@@@A,r@@#i;:;s222hG;rrsrrrrrr;ri#@@r:@@hr:r;SG3ssrr2r;rrsrsrsrsrr;rh@@:B@H;;rr;3Hs;rrr;sr;;rrsrsrsrsrsr;;H@B@@s:rrs;5#;;rrrr;r#@H:;;rrsrsrsrsrr:s@@@@;;srs&X#9;r;r;;,2@@@rrr:;;rrsrsrsrr;;@@@@;;rrsrrs@MB#@@@@@###@@@@@@#rsrsrsrsrr;;@@G@r;rrsrsr;#X;SX25Ss#@@#M@#9H9rrsrsrsrsrs;r@G@9:srsrsrs;2@;:;;:.X@@@@@H::;rrsrsrsrsrsrr:3@X@;rrsrsrsrr;XAi;;:&@@#@Bs:rrsrsrsrsrsrsrsrr;@X@#;rsrsrsrsrr;r2i
这里会一直反复打印上面的信息,能看到在打印字符串的过程中系统突然中断了,并重新看是运行,这是为什么呢?这里也看到成功读取了SD卡上的uboot.bin的文件!!这该如何解释呀,下面的时正常启动的相关信息:
U-Boot 2010.06 (Jun 02 2015 - 04:54:06) TI8148-GP rev 3.0 ARM clk: 600MHz DDR clk: 400MHz DRAM: 2 GiB MMC:OMAP SD/MMC: 0 Using default environment The 2nd stage U-Boot will now be auto-loaded Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed Hit any key to stop autoboot: 0 reading u-boot.bin 186836 bytes read ## Starting application at 0x80800000 ... U-Boot 2010.06 (Jun 02 2015 - 05:51:17) TI8148-GP rev 3.0 ARM clk: 600MHz DDR clk: 400MHz I2C:ready DRAM: 2 GiB NAND: HW ECC BCH8 Selected NAND device: Manufacturer ID: 0x2c, Chip ID: 0xc3 (Micron NAND 1GiB 3,3V 16-bit) NAND bus width 8 instead 16 bit No NAND device found!!! 0 MiB MMC:OMAP SD/MMC: 0 *** Warning - bad CRC or MMC, using default environment.:;rrr;;.,5#@@@@#####@@@@@@#2,,A@@@hi;;;r5;;;;r;rrSG@@@A,r@@#i;:;s222hG;rrsrrrrrr;ri#@@r:@@hr:r;SG3ssrr2r;rrsrsrsrsrr;rh@@:B@H;;rr;3Hs;rrr;sr;;rrsrsrsrsrsr;;H@B@@s:rrs;5#;;rrrr;r#@H:;;rrsrsrsrsrr:s@@@@;;srs&X#9;r;r;;,2@@@rrr:;;rrsrsrsrr;;@@@@;;rrsrrs@MB#@@@@@###@@@@@@#rsrsrsrsrr;;@@G@r;rrsrsr;#X;SX25Ss#@@#M@#9H9rrsrsrsrsrs;r@G@9:srsrsrs;2@;:;;:.X@@@@@H::;rrsrsrsrsrsrr:3@X@;rrsrsrsrr;XAi;;:&@@#@Bs:rrsrsrsrsrsrsrsrr;@X@#;rsrsrsrsrr;r2ir@@@###::rrsrsrsrsrsrsrsrsr:@@@A:rrsrsrsrr;:2@29@@M@@@;:;rrrrsrsrsrsrsrsrs;H@@&;rsrsrsrr;A@@@@@@###@@@s::;:;;rrsrsrsrsrsr;G@@#:rrsrsrsr;G@5Hr25@@@#@@@#9XG9s:rrrrsrsrsrs:#@M@;rsrsrsrs;r@&#;::S@@@@@@@M@@@@Grr:;rsrsrsr;@#:@s;rsrsrsrr:M#Msrr;;&#@@@@@@@@@@H@@5;rsrsr;s@,@@:rrsrsrsr;S@rrrsr;:;r3MH@@#@M5,S@@irrsrr:@@@A:rrsrsrsrrrrrsrsrrr;::;@##@r:;rH@h;srr:H@;@9:rrsrsrsrrrsrsrsrsr;,S@Hi@i:;s;MX;rr:h@;r@B:rrrrsrsrsrsrsrr;;sA@#i,i@h;r;S5;r:H@r,@@r;rrrsrsrsrsrr;2BM3r:;r:G@:rrr;;r@@,B@Mr;rrrrsrsrsr@@S;;;rrr:5M;rr;rM@H.@@@i;;rrrrsrs2i;rrrrr;r@M:;i@@@..A@@#5r;;;r;;;rrr;r:r#AsM@@H.;&@@@@MhXS5i5SX9B@@@@G;:ihM#@@@@@##hs, Net:->cpsw_pad_config() <ethaddr> not set. Reading from E-fuse Detected MACID:84:7e:40:d2:df:dc miiphy_register: added 'cpsw', read=0x80721c10, write=0x80721c7c cpsw Hit any key to stop autoboot: 0 reading boot.scr 308 bytes read Running bootscript from MMC/SD to set the ENV... ## Executing script at 80900000 reading uImage 3105852 bytes read ## Booting kernel from Legacy Image at 81000000 ...Image Name:Linux-2.6.37Image Type:ARM Linux Kernel Image (uncompressed)Data Size:3105788 Bytes = 3 MiBLoad Address: 80008000Entry Point: 80008000Verifying Checksum ... OKLoading Kernel Image ... OK OK Starting kernel ...
mamiao ma:
回复 Ternence_Hsu:
是的,在一块板子上能正常工作,在另一块板子上工作就出现了问题,SD卡的数据是没有问题的。
您说检查板卡的接触问题,是电源接触的问题吗?SD卡槽应该没有接触的问题吧,能麻烦您教一下如何排查具体的问题呢,用什么仪器测试呢,我还是个小白,不是很懂硬件检查的步骤和详细方法,我也更换过板卡的电源,还是一样的结果,能否从uboot打印出来的信息状况来判断板卡的相关问题,每次输出打印到这里就会中断可能的原因是什么,而且每次打印的内容长度也有所不同,这个能说明点什么吗?
user6299109:
回复 mamiao ma:
你好,我用8148做了一块PCB,在uboot中发现网络ping不通,PHY读写寄存器是正常的,麻烦指点指点,感谢。