CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 9337|回复: 3

cb2 无法刷机到EMMC

[复制链接]
发表于 2018-7-18 21:47:52 | 显示全部楼层 |阅读模式
板子:cubieboard2
镜像:linaro-desktop-cb2-20151211-emmc-hdmi-V1.0.img
操作步骤:按照《CubieBoard2-20151211-EMMC Linux刷机介绍v1.0.pdf》的方法
使用win32diskimager把上述的img烧写到SD卡中
将制作好刷系统刷机卡插入CB2-EMMC 的卡槽
上电启动
绿色LED灯将会常亮,根据刷机介绍判断出现问题

以下是串口打印出的最后部分:
<6>[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[mmc-msg] sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
<6>[mmc-msg] sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[mmc-msg] sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
<6>[mmc-msg] sdc2 set round clock 42857143, src 600000000
[mmc-msg] sdc2 set round clock 42857143, src 600000000
<6>[mmc-msg] sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[mmc-msg] sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
<6>mmc0: new high speed SD card at address b368
mmc0: new high speed SD card at address b368
<6>mmcblk0: mmc0:b368 NCard 1.86 GiB
mmcblk0: mmc0:b368 NCard 1.86 GiB
<6> mmcblk0: p1
mmcblk0: p1
<6>[mmc-msg] mmc 0 detect change, present 1
[mmc-msg] mmc 0 detect change, present 1
<6>[mmc-msg] sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<6>[mmc-msg] sdc0 power on
[mmc-msg] sdc0 power on
<6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<6>[mmc-msg] sdc0 set round clock 400000, src 24000000
[mmc-msg] sdc0 set round clock 400000, src 24000000
<3>[mmc-err] smc 0 err, cmd 52,  RTO
[mmc-err] smc 0 err, cmd 52,  RTO
<3>[mmc-err] smc 0 err, cmd 52,  RTO
[mmc-err] smc 0 err, cmd 52,  RTO
<6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<3>[mmc-err] smc 0 err, cmd 5,  RTO
[mmc-err] smc 0 err, cmd 5,  RTO
<3>[mmc-err] smc 0 err, cmd 5,  RTO
[mmc-err] smc 0 err, cmd 5,  RTO
<3>[mmc-err] smc 0 err, cmd 5,  RTO
[mmc-err] smc 0 err, cmd 5,  RTO
<3>[mmc-err] smc 0 err, cmd 5,  RTO
[mmc-err] smc 0 err, cmd 5,  RTO
<6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<6>[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<6>[mmc-msg] sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
<6>[mmc-msg] sdc0 set round clock 25000000, src 600000000
[mmc-msg] sdc0 set round clock 25000000, src 600000000
<6>[mmc-msg] sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[mmc-msg] sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
<6>mmc1: new SD card at address d225
mmc1: new SD card at address d225
<6>mmcblk1: mmc1:d225 SU02G 1.84 GiB
mmcblk1: mmc1:d225 SU02G 1.84 GiB
<6> mmcblk1: p1 p2
mmcblk1: p1 p2
<4>Timeout waiting for EDID info
Timeout waiting for EDID info
<6>disp clks: lcd 74250000 pre_scale 1 hdmi 74250000 pll 297000000 2x 0
disp clks: lcd 74250000 pre_scale 1 hdmi 74250000 pll 297000000 2x 0
<6>Console: switching to colour frame buffer device 160x45
Console: switching to colour frame buffer device 160x45
<4>axp20_buck3: incomplete constraints, leaving on
axp20_buck3: incomplete constraints, leaving on
<4>axp20_buck2: incomplete constraints, leaving on
axp20_buck2: incomplete constraints, leaving on
<4>axp20_ldo4: incomplete constraints, leaving on
axp20_ldo4: incomplete constraints, leaving on
<4>axp20_ldo3: incomplete constraints, leaving on
axp20_ldo3: incomplete constraints, leaving on
<4>axp20_ldo2: incomplete constraints, leaving on
axp20_ldo2: incomplete constraints, leaving on
<6>console [netcon0] enabled
console [netcon0] enabled
<6>netconsole: network logging started
netconsole: network logging started
<6>sunxi-rtc sunxi-rtc: setting system clock to 2010-01-02 05:12:01 UTC (1262409121)
sunxi-rtc sunxi-rtc: setting system clock to 2010-01-02 05:12:01 UTC (1262409121)
<6>ALSA device list:
ALSA device list:
<6>  #0: sunxi-CODEC  Audio Codec
  #0: sunxi-CODEC  Audio Codec
<6>EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: discard
EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: discard
<6>VFS: Mounted root (ext4 filesystem) on device 179:10.
VFS: Mounted root (ext4 filesystem) on device 179:10.
<6>devtmpfs: mounted
devtmpfs: mounted
<6>Freeing init memory: 212K
Freeing init memory: 212K
<6>Write protecting the kernel text section c0008000 - c07ca000
Write protecting the kernel text section c0008000 - c07ca000
<6>EXT4-fs (mmcblk1p2): re-mounted. Opts: discard,data=ordered
EXT4-fs (mmcblk1p2): re-mounted. Opts: discard,data=ordered
<6> mmcblk0: p1
mmcblk0: p1

串口终端中手动启动烧写脚本/bin/install.sh,结果如下:
The number of cylinders for this disk is set to 6507.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The num<6> mmcblk0: p1
mmcblk0: p1
ber of cylinders for this disk is set to 6507.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (1-6507, default 1): Last cylinder or +size or +sizeM or +sizeK (32-6507, default 6507):
Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (1-6507, default 1): Last cylinder or +size or +sizeM or +sizeK (545-6507, default 6507): Using default value 6507

Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table
mke2fs 1.43-WIP (09-Jul-2014)
Creating filesystem with 488047 4k blocks and 122160 inodes
Filesystem UUID: 80582484-166a-47a1-a2bf-d8f66224b287
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

Allocating group tables: done                           
Writing inode tables: done                           
Writing superblocks and filesystem accounting information: done

mke2fs 1.43-WIP (09-Jul-2014)
mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

刚刚购买的板子,想知道是不是我的板子有问题(EMMC部分),使用SD卡系统启动的时候,
fdisk /dev/mmcblk0 -l

Disk /dev/mmcblk0: 1999 MB, 1999110144 bytes
25 heads, 24 sectors/track, 6507 cylinders
Units = cylinders of 600 * 512 = 307200 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1               1        6508     1952191+  6 FAT16

显示只有1999MB!!



回复

使用道具 举报

 楼主| 发表于 2018-7-18 22:00:29 | 显示全部楼层
log.txt的内容是:err in mkfs p2
回复 支持 反对

使用道具 举报

发表于 2018-7-19 10:06:43 | 显示全部楼层
是很奇怪第一次见到2G的情况,你的卡不会是2G的吧?不是的话,2G的emmc就有问题了,可能会导致刷机脚本算错,刷不进


回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-7-19 17:39:19 | 显示全部楼层
@allen 发表于 2018-7-19 10:06
是很奇怪第一次见到2G的情况,你的卡不会是2G的吧?不是的话,2G的emmc就有问题了,可能会导致刷机脚本算错 ...

是的,所以怀疑是不是卖家那边出了什么问题。板子EMMC芯片上写的是8G。跟淘宝卖家沟通,态度很不好。
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-4-20 12:50 , Processed in 0.022256 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部