2418
- 收藏
- 点赞
- 分享
- 举报
A20 linux 系统分区问题
请教一下大家,
使用A20,使用NAND flash (512M 和 1G都试过),用LinuxBSP包编译一个linux系统。大小是53.5M
使用Phoenixsuit工具烧录系统。系统跑起来后,用df -h 查看了下
# df -h
Filesystem Size Used Available Use% Mounted on
none 411.2M 0 411.2M 0% /dev
/dev/nandd 33.7M 30.8M 1.2M 96% / --》》这系统分区怎么只有33.7M
tmpfs 413.4M 60.0K 413.3M 0% /tmp
none 411.2M 0 411.2M 0% /dev
/dev/nanda 127.7M 5.8M 121.9M 5% /boot
用fdisk -l 查看:
# fdisk -l
Disk /dev/nanda: 33 MB, 33554432 bytes
255 heads, 63 sectors/track, 4 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/nandb: 16 MB, 16777216 bytes
255 heads, 63 sectors/track, 2 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/nandb doesn't contain a valid partition table
Disk /dev/nandc: 16 MB, 16777216 bytes
255 heads, 63 sectors/track, 2 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/nandc doesn't contain a valid partition table
Disk /dev/nandd: 134 MB, 134217728 bytes
255 heads, 63 sectors/track, 16 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/nandd doesn't contain a valid partition table
Disk /dev/nande: 238 MB, 238026752 bytes
255 heads, 63 sectors/track, 28 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/nandd 大小分明是134M。 /dev/nanda 大小是33M,反变成了127.7M。
没搞懂是怎么回事。是系统挂载问题吗?还是系统包问题。
下面是我的sys_partition.fex分区文件
[partition_start]
;------------------------------>mmcblk0p2/nanda
[partition]
name = bootloader
size = 65536
downloadfile = "bootloader.fex"
verify = 1
;------------------------------>mmcblk0p5/nandb
[partition]
name = env
size = 32768
downloadfile = "env.fex"
verify = 1
;------------------------------>mmcblk0p6/nandc
[partition]
name = boot
size = 32768
downloadfile = "boot.fex"
verify = 1
[partition]
name = rootfs
size = 262144
downloadfile = "rootfs.fex"
verify = 1
主要问题是,当我的系统增大到62.3M时,系统无法启动。mount 文件系统时出错。
e2fsck /dev/nandd return 1
[ 5.681976] EXT4-fs (nandd): barriers disabled
[ 5.688301] EXT4-fs (nandd): mounted filesystem with ordered data mode. Opts: noauto_da_alloc,barrier=0,data=ordered
[ 5.701027] [uart]: uart0 LCR & BAUD changed, reset controller...
mount /dev/nandd return 0
[ 5.890244] init used greatest stack depth: 5240 bytes left
[ 5.896539] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 5.896546]
[ 5.906805] [] (unwind_backtrace+0x0/0xe0) from [] (panic+0x80/0x1d0)
[ 5.915980] [] (panic+0x80/0x1d0) from [] (do_exit+0x330/0x744)
[ 5.924564] [] (do_exit+0x330/0x744) from [] (do_group_exit+0x88/0xb4)
[ 5.933823] [] (do_group_exit+0x88/0xb4) from [] (__wake_up_parent+0x0/0x18)
[ 5.943655] CPU0: stopping
[ 5.946687] [] (unwind_backtrace+0x0/0xe0) from [] (handle_IPI+0xf8/0x1d4)
[ 5.956311] [] (handle_IPI+0xf8/0x1d4) from [] (gic_handle_irq+0x50/0x58)
[ 5.965849] [] (gic_handle_irq+0x50/0x58) from [] (__irq_svc+0x40/0x70)
[ 5.975170] Exception stack(0xc06bdcf0 to 0xc06bdd38)
[ 5.980815] dce0: 00000400 c06bdeac 00000001 0000122f
[ 5.989952] dd00: ef03e740 00000000 c06bde6c ef001180 00000001 00000000 00000
麻烦大家指点下,谢谢!(我还尝试过SDcard, 也是一样。emmc的话,用Phoenixsuit工具没法烧录)。
使用A20,使用NAND flash (512M 和 1G都试过),用LinuxBSP包编译一个linux系统。大小是53.5M
使用Phoenixsuit工具烧录系统。系统跑起来后,用df -h 查看了下
# df -h
Filesystem Size Used Available Use% Mounted on
none 411.2M 0 411.2M 0% /dev
/dev/nandd 33.7M 30.8M 1.2M 96% / --》》这系统分区怎么只有33.7M
tmpfs 413.4M 60.0K 413.3M 0% /tmp
none 411.2M 0 411.2M 0% /dev
/dev/nanda 127.7M 5.8M 121.9M 5% /boot
用fdisk -l 查看:
# fdisk -l
Disk /dev/nanda: 33 MB, 33554432 bytes
255 heads, 63 sectors/track, 4 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/nandb: 16 MB, 16777216 bytes
255 heads, 63 sectors/track, 2 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/nandb doesn't contain a valid partition table
Disk /dev/nandc: 16 MB, 16777216 bytes
255 heads, 63 sectors/track, 2 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/nandc doesn't contain a valid partition table
Disk /dev/nandd: 134 MB, 134217728 bytes
255 heads, 63 sectors/track, 16 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/nandd doesn't contain a valid partition table
Disk /dev/nande: 238 MB, 238026752 bytes
255 heads, 63 sectors/track, 28 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/nandd 大小分明是134M。 /dev/nanda 大小是33M,反变成了127.7M。
没搞懂是怎么回事。是系统挂载问题吗?还是系统包问题。
下面是我的sys_partition.fex分区文件
[partition_start]
;------------------------------>mmcblk0p2/nanda
[partition]
name = bootloader
size = 65536
downloadfile = "bootloader.fex"
verify = 1
;------------------------------>mmcblk0p5/nandb
[partition]
name = env
size = 32768
downloadfile = "env.fex"
verify = 1
;------------------------------>mmcblk0p6/nandc
[partition]
name = boot
size = 32768
downloadfile = "boot.fex"
verify = 1
[partition]
name = rootfs
size = 262144
downloadfile = "rootfs.fex"
verify = 1
主要问题是,当我的系统增大到62.3M时,系统无法启动。mount 文件系统时出错。
e2fsck /dev/nandd return 1
[ 5.681976] EXT4-fs (nandd): barriers disabled
[ 5.688301] EXT4-fs (nandd): mounted filesystem with ordered data mode. Opts: noauto_da_alloc,barrier=0,data=ordered
[ 5.701027] [uart]: uart0 LCR & BAUD changed, reset controller...
mount /dev/nandd return 0
[ 5.890244] init used greatest stack depth: 5240 bytes left
[ 5.896539] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000000
[ 5.896546]
[ 5.906805] [
[ 5.915980] [
[ 5.924564] [
[ 5.933823] [
[ 5.943655] CPU0: stopping
[ 5.946687] [
[ 5.956311] [
[ 5.965849] [
[ 5.975170] Exception stack(0xc06bdcf0 to 0xc06bdd38)
[ 5.980815] dce0: 00000400 c06bdeac 00000001 0000122f
[ 5.989952] dd00: ef03e740 00000000 c06bde6c ef001180 00000001 00000000 00000
麻烦大家指点下,谢谢!(我还尝试过SDcard, 也是一样。emmc的话,用Phoenixsuit工具没法烧录)。
我来回答
回答2个
时间排序
认可量排序
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2019-12-19 14:38:37
-
2019-01-07 15:23:09
-
2015-01-10 10:45:54
-
2017-03-15 11:38:27
-
372016-07-23 17:43:41
-
02016-05-26 22:00:19
-
2016-07-06 19:42:02
-
2016-06-21 09:43:06
-
2017-03-21 14:19:10
-
2016-10-29 17:33:09
-
2019-02-12 10:21:35
-
2018-12-06 18:05:40
-
2016-01-20 14:43:29
-
2017-03-15 10:38:31
-
2017-12-06 10:23:29
-
2017-09-07 13:50:29
-
2015-02-09 09:51:13
-
2018-01-31 16:01:45
-
2016-07-16 16:43:04
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认