CubieBoard中文论坛

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

紧急求助,NAND刷机后法了一半容量

[复制链接]
发表于 2013-9-11 09:52:51 | 显示全部楼层 |阅读模式
刚到手的CB2,刷成lubuntu,http://dl.cubieboard.org/softwar ... -12.10-v1.05.img.gz
然后查看空间大小:
root@cubieboard2:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/nandd      2.0G  1.5G  431M  78% /
tmpfs            20M  4.0K   20M   1% /tmp
none             91M  196K   91M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            454M     0  454M   0% /run/shm
none            100M   12K  100M   1% /run/user
root@cubieboard2:~#

这个表示不理解。

使用FDISK -l 查看分区有错误 :

root@cubieboard2:~# fdisk -l

Disk /dev/nand: 4085 MB, 4085252096 bytes
255 heads, 63 sectors/track, 496 cylinders, total 7979008 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nand doesn't contain a valid partition table

Disk /dev/nanda: 33 MB, 33554432 bytes
255 heads, 63 sectors/track, 4 cylinders, total 65536 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

     Device Boot      Start         End      Blocks   Id  System

Disk /dev/nandb: 16 MB, 16777216 bytes
255 heads, 63 sectors/track, 2 cylinders, total 32768 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x78303d78

Disk /dev/nandb doesn't contain a valid partition table

Disk /dev/nandc: 33 MB, 33554432 bytes
255 heads, 63 sectors/track, 4 cylinders, total 65536 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nandc doesn't contain a valid partition table

Disk /dev/nandd: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders, total 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nandd doesn't contain a valid partition table

Disk /dev/nande: 1837 MB, 1837105152 bytes
255 heads, 63 sectors/track, 223 cylinders, total 3588096 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xffffffff

Disk /dev/nande doesn't contain a valid partition table
root@cubieboard2:~#


如何解决这些问题呢??请大神帮解决下

回复

使用道具 举报

发表于 2013-9-11 09:56:47 | 显示全部楼层
别紧张。系统只用了2GB,后面的2GB留给用户了。只需要mkfs.ext4 /dev/nande,然后mount起来用就好了
回复 支持 反对

使用道具 举报

发表于 2013-9-11 10:12:13 | 显示全部楼层
听说livesuit最大支持2g
回复 支持 反对

使用道具 举报

发表于 2013-9-11 11:51:01 | 显示全部楼层
剩余的空间自行格式化后挂载使用。
回复 支持 反对

使用道具 举报

发表于 2013-9-26 23:18:14 | 显示全部楼层
nand还是尽量少用的好,调试用 sd u盘 硬盘。有满意系统刷进nand,最好再设置成只读。

flash不太靠谱,坏块多时,不是玩硬件的,想自己换芯片会比较困难。
回复 支持 反对

使用道具 举报

发表于 2013-9-28 18:28:23 | 显示全部楼层
matson 发表于 2013-9-11 09:56
别紧张。系统只用了2GB,后面的2GB留给用户了。只需要mkfs.ext4 /dev/nande,然后mount起来用就好了 ...

你确定?我干了直接导致启动失败,导致我折腾了那么久的服务全挂掉了,只能推倒重来,这是我的记录,血的教训啊:
遇到的问题:
如果将dev/nande格式化为EXT4分区,开机就会出现hotplug问题,估计是cubieboard上的分区是采用sanxi-tools的nand-pard来分的,估计它的MBR(硬盘分区表)是比较特殊的,所以如果采用fdisk和格式化命令,将会导致MBR改变,然后Magic Number也改变了,于是内核启动时就会报错,也有可能是/etc/nande中有一些配置信息,内核启动时会读取,格式化之后读取不了就会崩溃
崩溃时的启动信息:
/dev/nandd: clean, 57466/130304 files, 316309/524288 blocks
e2fsck 1.41.14 (22-Dec-2010)
/dev/nande: clean, 11/112224 files, 15906/448512 blocks
<6>EXT4-fs (nandd): mounted filesystem with ordered data mode. Opts: (null)
<6>EXT4-fs (nande): mounted filesystem with ordered data mode. Opts: (null)
switch_root: can't execute '/sbin/init': No such file or directory
<0>Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

[    5.654144] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[    5.654154]
Backtrace: [    5.664252] Backtrace:

[<c0012b5c>] (dump_backtrace+0x0/0x10c) from [<c05efd48>] (dump_stack+0x18/0x1c)
[    5.674029] [<c0012b5c>] (dump_backtrace+0x0/0x10c) from [<c05efd48>] (dump_stack+0x18/0x1c)
r6:c097175c[    5.683506]  r6:c097175c r5:c097175c r5:c097175c r4:c09f93c0 r4:c09f93c0 r3:00000001 r3:00000001

[<c05efd30>] (dump_stack+0x0/0x1c) from [<c05f0124>] (panic+0x94/0x1d4)
[    5.698880] [<c05efd30>] (dump_stack+0x0/0x1c) from [<c05f0124>] (panic+0x94/0x1d4)
[<c05f0090>] (panic+0x0/0x1d4) from [<c003b1e8>] (do_exit+0x6d4/0x7c4)
[    5.712787] [<c05f0090>] (panic+0x0/0x1d4) from [<c003b1e8>] (do_exit+0x6d4/0x7c4)
r3:ef048000[    5.721396]  r3:ef048000 r2:00000000 r2:00000000 r1:00000100 r1:00000100 r0:c084c720 r0:c084c720

r7:ef03c000[    5.731473]  r7:ef03c000

[<c003ab14>] (do_exit+0x0/0x7c4) from [<c003b558>] (do_group_exit+0x50/0xb8)
[    5.740973] [<c003ab14>] (do_exit+0x0/0x7c4) from [<c003b558>] (do_group_exit+0x50/0xb8)
r7:000000f8[    5.750102]  r7:000000f8

[<c003b508>] (do_group_exit+0x0/0xb8) from [<c003b5d8>] (__wake_up_parent+0x0/0x28)
[    5.760208] [<c003b508>] (do_group_exit+0x0/0xb8) from [<c003b5d8>] (__wake_up_parent+0x0/0x28)
r7:000000f8[    5.769944]  r7:000000f8 r6:b6f3b774 r6:b6f3b774 r5:b6f3b774 r5:b6f3b774 r4:000708ee r4:000708ee

[<c003b5c0>] (sys_exit_group+0x0/0x18) from [<c000edc0>] (ret_fast_syscall+0x0/0x30)
[    5.786445] [<c003b5c0>] (sys_exit_group+0x0/0x18) from [<c000edc0>] (ret_fast_syscall+0x0/0x30)
<2>CPU1: stopping
[    5.796885] CPU1: stopping
Backtrace: [    5.800553] Backtrace:

[<c0012b5c>] (dump_backtrace+0x0/0x10c) from [<c05efd48>] (dump_stack+0x18/0x1c)
[    5.810317] [<c0012b5c>] (dump_backtrace+0x0/0x10c) from [<c05efd48>] (dump_stack+0x18/0x1c)
r6:c0954170[    5.819794]  r6:c0954170 r5:ef064000 r5:ef064000 r4:c09685f0 r4:c09685f0 r3:c0970194 r3:c0970194

[<c05efd30>] (dump_stack+0x0/0x1c) from [<c0014268>] (handle_IPI+0x194/0x1c8)
[    5.835688] [<c05efd30>] (dump_stack+0x0/0x1c) from [<c0014268>] (handle_IPI+0x194/0x1c8)
[<c00140d4>] (handle_IPI+0x0/0x1c8) from [<c000853c>] (gic_handle_irq+0x58/0x60)
[    5.850978] [<c00140d4>] (handle_IPI+0x0/0x1c8) from [<c000853c>] (gic_handle_irq+0x58/0x60)
[<c00084e4>] (gic_handle_irq+0x0/0x60) from [<c000e980>] (__irq_svc+0x40/0x70)
[    5.866354] [<c00084e4>] (gic_handle_irq+0x0/0x60) from [<c000e980>] (__irq_svc+0x40/0x70)
Exception stack(0xef065f58 to 0xef065fa0)
[    5.878346] Exception stack(0xef065f58 to 0xef065fa0)
5f40:                                                       ffffffed 00000001
[    5.890249] 5f40:                                                       ffffffed 00000001
5f60: 0febd000 00000000 ef064000 ef064000 c09eac88 c05fba14 c096cb10 410fc074
[    5.905278] 5f60: 0febd000 00000000 ef064000 ef064000 c09eac88 c05fba14 c096cb10 410fc074
5f80: ef064000 ef065fac ef065fb0 ef065fa0 c000f9c4 c000f9c8 60000013 ffffffff
[    5.920307] 5f80: ef064000 ef065fac ef065fb0 ef065fa0 c000f9c4 c000f9c8 60000013 ffffffff
r6:ffffffff[    5.929523]  r6:ffffffff r5:60000013 r5:60000013 r4:c000f9c8 r4:c000f9c8 r3:c000f9c4 r3:c000f9c4

[<c000f998>] (default_idle+0x0/0x38) from [<c000fd64>] (cpu_idle+0xd8/0x11c)
[    5.945330] [<c000f998>] (default_idle+0x0/0x38) from [<c000fd64>] (cpu_idle+0xd8/0x11c)
[<c000fc8c>] (cpu_idle+0x0/0x11c) from [<c05ece78>] (secondary_start_kernel+0xfc/0x11c)
[    5.961143] [<c000fc8c>] (cpu_idle+0x0/0x11c) from [<c05ece78>] (secondary_start_kernel+0xfc/0x11c)
[<c05ecd7c>] (secondary_start_kernel+0x0/0x11c) from [<405ec814>] (0x405ec814)
[    5.977126] [<c05ecd7c>] (secondary_start_kernel+0x0/0x11c) from [<405ec814>] (0x405ec814)
r6:10c0387d[    5.986430]  r6:10c0387d r5:00000015 r5:00000015 r4:6f05406a r4:6f05406a r3:c05ec7fc r3:c05ec7fc

<6>[hotplug]: cpu(0) try to kill cpu(1)
[    5.999023] [hotplug]: cpu(0) try to kill cpu(1)
<3>[hotplug]: try to kill cpu:1 failed!
[    7.007059] [hotplug]: try to kill cpu:1 failed!



回复 支持 反对

使用道具 举报

发表于 2015-6-23 00:05:48 | 显示全部楼层
用PHONIXSUIT 1.1刷ct-lubuntu-desktop-nand-20131023.img进NAND后,第一次启动正常,接上USB键盘都登录进去了,再接上鼠标,键盘鼠标都不能用了,关机重启就一直:

  [hotplug]: try to kill cpu:1 failed!

反复重启。

插入DSD(linaro-server-ct-card0-hdmi&vga-v1.0.img)卡,可以正常启动。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 13:33 , Processed in 0.025685 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部