seymour

seymour

0个粉丝

10

问答

0

专栏

0

资料

seymour  发布于  2017-06-09 18:23:00
采纳率 0%
10个问答
4420

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工具没法烧录)。
我来回答
回答2个
时间排序
认可量排序

kgui

0个粉丝

13

问答

0

专栏

4

资料

kgui 2017-06-11 09:53:23
认可0
size的总大小不能变啊,boot ,kernel ,和rootfs

seymour

0个粉丝

10

问答

0

专栏

0

资料

seymour 2017-06-12 10:04:28
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=52622&ptid=15488]kgui 发表于 2017-6-11 09:53[/url]
size的总大小不能变啊,boot ,kernel ,和rootfs[/quote]

你好,我没明白你的意思?你是说系统包的大小不能变,还是这些分区不能变,关于这些分区的大小我也使用默认测试过。
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区