CubieBoard中文论坛

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

新买的板子烧写系统到nand flash以后无法重启

[复制链接]
发表于 2014-5-4 14:06:50 | 显示全部楼层 |阅读模式
本帖最后由 wizardoz 于 2014-5-4 14:26 编辑

同样的镜像,同样的tf卡,旧的cubieboard都可以正常烧写。但是最近新买了几个板子,发现烧写后都无法启动。
旧板的CPU:

提示错误为:
  1. HELLO! BOOT0 is starting!
  2. boot0 version : 3.0.0
  3. dram size =1024
  4. sum=0x01be1e34
  5. src_sum=0x01be1e34
  6. Ready to disable icache.
  7. Jump to secend Boot.
  8. [      0.131]

  9. U-Boot 2011.09-rc1-00003-ge89ab14-dirty (Jan 03 2014 - 12:57:33) Allwinner Technology

  10. [      0.140]version: 1.1.0
  11. [      0.143]pmbus:   ready
  12. [      0.248]PMU: AXP209
  13. [      0.251]PMU: AXP20x found
  14. [      0.254]PMU: bat ratio = 100
  15. [      0.257]after set, dcdc2 =1400mv
  16. [      0.260]PMU: dcdc2 1400
  17. [      0.263]PMU: pll1 912 Mhz
  18. boot_clock = 912
  19. dcdc2_vol = 1400
  20. [      0.271]after set, dcdc2 =1400mv
  21. dcdc3_vol = 1250
  22. ldo2_vol = 3000
  23. ldo3_vol = 2800
  24. ldo4_vol = 2800
  25. power_start = 0
  26. storage_type = -1
  27. usb_recovery = 1
  28. find power_sply to end
  29. fel key old mode
  30. run key detect
  31. no key found
  32. no key input
  33. dram_para_set start
  34. dram_para_set end
  35. [      0.307]DRAM:  1 GiB
  36. relocation Offset is: 35b23000
  37. donn't initialize ther user_gpio (main_key:boot_init_gpio)
  38. DRV_DISP_Init: opened
  39. [      0.521]boot_disp.output_type=2
  40. [      0.525]boot_disp.output_mode=5
  41. [      0.528]boot_disp.auto_hpd=1
  42. workmode = 0
  43. [      1.832]NAND: NAND_UbootInit
  44. NB1 : enter NAND_LogicInit
  45. nand : get id_number_ctl from script, 3
  46. not burn nand partition table!
  47. NB1 : nand_info_init fail
  48. [      5.061]nand init fail
  49. set to recovery
  50. try sprite_led_gpio config
  51. sprite_led_gpio start
  52. sunxi sprite begin
  53. screen_width = 800
  54. screen_height = 480
  55. bar x1: 200 y1: 200
  56. bar x2: 600 y2: 280
  57. read mbr failed
  58. sprite update error: no data part found
  59. read mbr failed
  60. sprite update error: read image start error
  61. sprite update error: current card sprite failed
  62. now hold the machine
  63. fail to find part named env
  64. Using default environment

  65. In:    serial
  66. Out:   serial
  67. Err:   serial
  68. --------fastboot partitions--------
  69. mbr not exist
  70. base bootcmd=run setargs_nand boot_normal
  71. bootcmd set setargs_nand
  72. key 0
  73. recovery key high 6, low 4
  74. cant find fstbt value
  75. no misc partition is found
  76. to be run cmd=run setargs_nand boot_normal
  77. the part isn't exist
  78. WORK_MODE_BOOT
  79. WORK_MODE_BOOT
  80. [      5.154]Hit any key to stop autoboot:  0
  81. cant find part named boot
  82. sunxi_flash - sunxi_flash sub-system

  83. Usage:
  84. sunxi_flash read command parmeters :
  85. parmeters 0 : addr to load(hex only)
  86. parmeters 1 : the name of the part to be load
  87. [parmeters 2] : the number of bytes to be load(hex only)
  88. if [parmeters 2] not exist, the number of bytes to be load is the size of the part indecated on partemeter 1
  89. boota: bad boot image magic, maybe not a boot.img?
  90. sunxi#
复制代码

本帖子中包含更多资源

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

x
回复

使用道具 举报

发表于 2014-5-28 09:58:14 | 显示全部楼层
这个问题已经解决了,用cubian-nandinstall 1.1.1
回复 支持 反对

使用道具 举报

发表于 2014-6-7 16:25:57 | 显示全部楼层
cubieplayer 发表于 2014-5-28 09:58
这个问题已经解决了,用cubian-nandinstall 1.1.1

cubieplayer版主,你好!

我现在用的cubieboard A20 RevB, cubian 桌面版 TF卡。 用 “apt-cache policy cubian-nandinstall”  显示 cubian-nandinstall 1.1-4,更新后写入nand flash,nand flash依旧不能启动。

是我用cubian-nandinstall版本不对吗?
  1. HELLO! BOOT0 is starting!
  2. boot0 version : 3.0.0
  3. dram size =1024
  4. sum=0x01be1e3a
  5. src_sum=0x01be1e3a
  6. Ready to disable icache.
  7. Jump to secend Boot.
  8. [      0.131]

  9. U-Boot 2011.09-rc1-00003-ge89ab14-dirty (Jan 03 2014 - 12:57:33) Allwinner Technology

  10. [      0.140]version: 1.1.0
  11. [      0.143]pmbus:   ready
  12. [      0.248]PMU: AXP209
  13. [      0.251]PMU: AXP20x found
  14. [      0.254]PMU: bat ratio = 100
  15. [      0.257]after set, dcdc2 =1400mv
  16. [      0.261]PMU: dcdc2 1400
  17. [      0.263]PMU: pll1 912 Mhz
  18. boot_clock = 912
  19. dcdc2_vol = 1400
  20. [      0.271]after set, dcdc2 =1400mv
  21. dcdc3_vol = 1250
  22. ldo2_vol = 3000
  23. ldo3_vol = 2800
  24. ldo4_vol = 2800
  25. power_start = 0
  26. storage_type = -1
  27. usb_recovery = 1
  28. find power_sply to end
  29. fel key old mode
  30. run key detect
  31. no key found
  32. no key input
  33. dram_para_set start
  34. dram_para_set end
  35. [      0.307]DRAM:  1 GiB
  36. relocation Offset is: 35b23000
  37. donn't initialize ther user_gpio (main_key:boot_init_gpio)
  38. DRV_DISP_Init: opened
  39. [      0.521]boot_disp.output_type=4
  40. [      0.525]boot_disp.output_mode=4
  41. [      0.528]boot_disp.auto_hpd=1
  42. workmode = 0
  43. [      1.832]NAND: NAND_UbootInit
  44. NB1 : enter NAND_LogicInit
  45. nand : get id_number_ctl from script, 3
  46. not burn nand partition table!
  47. NB1 : nand_info_init fail
  48. [      4.346]nand init fail
  49. set to recovery
  50. try sprite_led_gpio config
  51. sprite_led_gpio start
  52. sunxi sprite begin
  53. screen_width = 800
  54. screen_height = 480
  55. bar x1: 200 y1: 200
  56. bar x2: 600 y2: 280
  57. read mbr failed
  58. sprite update error: no data part found
  59. read mbr failed
  60. sprite update error: read image start error
  61. sprite update error: current card sprite failed
  62. now hold the machine
  63. fail to find part named env
  64. Using default environment

  65. In:    serial
  66. Out:   serial
  67. Err:   serial
  68. --------fastboot partitions--------
  69. mbr not exist
  70. base bootcmd=run setargs_nand boot_normal
  71. bootcmd set setargs_nand
  72. key 0
  73. recovery key high 6, low 4
  74. cant find fstbt value
  75. no misc partition is found
  76. to be run cmd=run setargs_nand boot_normal
  77. the part isn't exist
  78. WORK_MODE_BOOT
  79. WORK_MODE_BOOT
  80. [      4.440]Hit any key to stop autoboot:  0
  81. cant find part named boot
  82. sunxi_flash - sunxi_flash sub-system

  83. Usage:
  84. sunxi_flash read command parmeters :
  85. parmeters 0 : addr to load(hex only)
  86. parmeters 1 : the name of the part to be load
  87. [parmeters 2] : the number of bytes to be load(hex only)
  88. if [parmeters 2] not exist, the number of bytes to be load is the size of the part indecated on partemeter 1
  89. boota: bad boot image magic, maybe not a boot.img?
  90. sunxi#
复制代码
回复 支持 反对

使用道具 举报

发表于 2014-6-12 10:17:47 | 显示全部楼层
wkloh 发表于 2014-6-7 16:25
cubieplayer版主,你好!

我现在用的cubieboard A20 RevB, cubian 桌面版 TF卡。 用 “apt-cache polic ...

回头我把我的nand的头1M数据发给你,你dd一下看能不能解决,估计是头部有magic code
回复 支持 反对

使用道具 举报

发表于 2014-6-12 10:17:51 | 显示全部楼层
wkloh 发表于 2014-6-7 16:25
cubieplayer版主,你好!

我现在用的cubieboard A20 RevB, cubian 桌面版 TF卡。 用 “apt-cache polic ...

回头我把我的nand的头1M数据发给你,你dd一下看能不能解决,估计是头部有magic code
回复 支持 反对

使用道具 举报

发表于 2014-6-13 08:19:46 | 显示全部楼层
谢谢,等待中。。。

应为接触了cubian,才开始学习linux,请问 dd是不是这样设置:
dd if=/dev/zero of=/dev/nanda bs=1k count=1024 //清空 uboot 1M空间
dd if=1M.bin of=/dev/nanda bs=1024 seek=8 //倒入 1M数据
回复 支持 反对

使用道具 举报

发表于 2014-6-13 10:05:17 | 显示全部楼层
本帖最后由 cubieplayer 于 2014-6-13 10:07 编辑
wkloh 发表于 2014-6-13 08:19
谢谢,等待中。。。

应为接触了cubian,才开始学习linux,请问 dd是不是这样设置:

设备应该是/dev/nand而不是/dev/nanda
  1. dd if=/dev/zero of=/dev/nand bs=1k count=1024 //清空 uboot 1M空间
复制代码
这个不需要seek=8,你这个命令原来的意思是从1M.bin导入数据,但是跳过头部的8k,我们不许要这么做,直接用下面命令即可
  1. dd if=1M.bin of=/dev/nand bs=1024 //倒入 1M数据
复制代码
回复 支持 反对

使用道具 举报

发表于 2014-6-13 10:57:23 | 显示全部楼层
cubieplayer 发表于 2014-6-13 10:05
设备应该是/dev/nand而不是/dev/nanda这个不需要seek=8,你这个命令原来的意思是从1M.bin导入数据,但是跳 ...

我是参考soloforce版主的http://forum.cubietech.com/forum ... &extra=page%3D1[/url]的文档,还是误解了dd命令的用法,谢谢版主提点。

版主你可以把数据发到我的邮箱wahkiangloh@hotmail.com吗?

测试后再回来报告进展。
回复 支持 反对

使用道具 举报

发表于 2014-6-16 20:59:03 | 显示全部楼层
cubieplayer 发表于 2014-6-12 10:17
回头我把我的nand的头1M数据发给你,你dd一下看能不能解决,估计是头部有magic code ...

cubieplayer版主,请问可以发你的nand的头1M数据给我做测试吗?这个1M数据可以用在cubietruck的nand 吗。
回复 支持 反对

使用道具 举报

发表于 2014-6-17 12:35:20 | 显示全部楼层
wkloh 发表于 2014-6-16 20:59
cubieplayer版主,请问可以发你的nand的头1M数据给我做测试吗?这个1M数据可以用在cubietruck的nand 吗。 ...

问题解决了么,亲
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-28 04:07 , Processed in 0.029393 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部