[Armadillo:02809] Re: Armadillo-9のパーティション構成変更について

Fumihiro SHIMONO email@hidden
2008年 3月 4日 (火) 22:08:42 JST


お世話になっております。shimonoです。

「【実施内容】の5.」で若干訂正です。すいません。

---
5. ファイルを作成
  # cd /mnt
  # echo "Hello World!" > foo.txt
  # ls foo.txt
  foo.txt  (←抜けていました。)
  # cat foo.txt
  Hello World!
---

よろしくお願い申し上げます。


On Tue, 04 Mar 2008 21:58:58 +0900
Fumihiro SHIMONO <email@hidden> wrote:

fu3hi6sh> お世話になっております。shimonoです。
fu3hi6sh> 
fu3hi6sh> JFFS2のファイルシステムのアンマウント等でつまずいており、御教授いただき
fu3hi6sh> たく、現象と実施内容を書かせていただきます。
fu3hi6sh> 
fu3hi6sh> なにとぞよろしくお願い申し上げます。
fu3hi6sh> 
fu3hi6sh> 【現象】
fu3hi6sh> ・JFFS2イメージをフラッシュメモリに書き込み、
fu3hi6sh>  マウント後にファイル作成等、書き込めることを確認したのですが、
fu3hi6sh>  アンマウント操作をすると固まってしまいます。
fu3hi6sh> ・リセットボタンを押してリブート後に再度マウントし、
fu3hi6sh>  その後syncコマンドを実行すると、エラーメッセージが出力されます。
fu3hi6sh> 
fu3hi6sh> 【実施内容】
fu3hi6sh> 1. Armadillo-9から開発PCをNFSマウント
fu3hi6sh>   # mount -t nfs -o nolock 192.168.1.10:/home /mnt
fu3hi6sh> 2. Armadillo-9で、mkfs.jffs2コマンドを実行
fu3hi6sh>   # mkfs.jffs2 --pad=0x330000 -d usrland-user -o userland-usr_jffs2.img
fu3hi6sh> 3. 2.で作成したファイルイメージのフラッシュメモリへの書き込み
fu3hi6sh>   # flash_eraseall
fu3hi6sh>   # dd if=userland-usr_jffs2.img of=/dev/mtdblock4 bs=1k
fu3hi6sh> 4. 3.で書き込んだデバイスをマウント
fu3hi6sh>   # cd
fu3hi6sh>   # umount /mnt (←1.でNFSマウントしていたため)
fu3hi6sh>   # mount -t jffs2 -o rw /dev/mtdblock4 /mnt
fu3hi6sh> 5. ファイルを作成
fu3hi6sh>   # cd /mnt
fu3hi6sh>   # echo "Hello World!" > foo.txt
fu3hi6sh>   # ls foo.txt
fu3hi6sh>   # cat foo.txt
fu3hi6sh>   Hello World!
fu3hi6sh> 6. アンマウント操作を実行
fu3hi6sh>   # cd
fu3hi6sh>   # uomunt /mnt
fu3hi6sh>   (応答なしになりました。)
fu3hi6sh> 7. リセットボタン押下し、ログイン後、再度マウントしてsyncコマンドを実行
fu3hi6sh>   # mount -t jffs2 -o rw /dev/mtdblock4 /mnt
fu3hi6sh>   # cat /mnt/foo.txt
fu3hi6sh>   Hello World!
fu3hi6sh>   # sync
fu3hi6sh>   (エラーメッセージ(※下記参照)が出力されます。)
fu3hi6sh> 
fu3hi6sh> -------------------------------------------<エラーメッセージ ここから>
fu3hi6sh> Unable to handle kernel NULL pointer dereference at virtual address
fu3hi6sh> 00000000
fu3hi6sh> pgd = c0ff8000
fu3hi6sh> [00000000] *pgd=c5fa5031, *pte=00000000, *ppte=00000000
fu3hi6sh> Internal error: Oops: 817 [#1]
fu3hi6sh> Modules linked in:
fu3hi6sh> CPU: 0
fu3hi6sh> PC is at __down_write+0xa0/0xe4
fu3hi6sh> LR is at jffs2_flush_wbuf_pad+0x1c/0x3c
fu3hi6sh> pc : [<c02485e0>]    lr : [<c0122c14>]    Not tainted
fu3hi6sh> sp : c5a81f14  ip : c5a81f3c  fp : c5a81f38
fu3hi6sh> r10: 001b8050  r9 : c5a80000  r8 : c0031ee4
fu3hi6sh> r7 : 00000024  r6 : 00000001  r5 : c0d7531c  r4 : c0ca6300
fu3hi6sh> r3 : c0d75320  r2 : c5a81f14  r1 : 00000000  r0 : c0d7531c
fu3hi6sh> Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  Segment user
fu3hi6sh> Control: C000317F  Table: C0FF8000  DAC: 00000015
fu3hi6sh> Process busybox (pid: 985, stack limit = 0xc5a80198)
fu3hi6sh> Stack: (0xc5a81f14 to 0xc5a82000)
fu3hi6sh> 1f00:                                              c0d75320 00000000 c0ca6300
fu3hi6sh> 1f20: 00000002 c0d75200 c0d7531c c5a81f50 c5a81f3c c0122c14 c0248550 c0d75230
fu3hi6sh> 1f40: c0293c48 c5a81f64 c5a81f54 c0120f54 c0122c08 c0d75000 c5a81f80 c5a81f68
fu3hi6sh> 1f60: c008bdbc c0120f28 00000001 00000001 00000000 c5a81f94 c5a81f84 c0086b08
fu3hi6sh> 1f80: c008bcdc bea2de54 c5a81fa4 c5a81f98 c0086b50 c0086ae4 00000000 c5a81fa8
fu3hi6sh> 1fa0: c0031d60 c0086b4c bea2de54 c0038bc0 ffffffff 00000000 401d9468 000001cc
fu3hi6sh> 1fc0: bea2de54 00000001 00000000 00000000 00000000 00000001 001b8050 bea2de54
fu3hi6sh> 1fe0: 40178b50 bea2dad4 00021514 40178b54 60000010 ffffffff 00000000 00000000
fu3hi6sh> Backtrace:
fu3hi6sh> [<c0248540>] (__down_write+0x0/0xe4) from [<c0122c14>] (jffs2_flush_wbuf_pad+0x1c/0x3c)
fu3hi6sh>  r5 = C0D7531C  r4 = C0D75200
fu3hi6sh> [<c0122bf8>] (jffs2_flush_wbuf_pad+0x0/0x3c) from [<c0120f54>] (jffs2_sync_fs+0x3c/0x68)
fu3hi6sh>  r5 = C0293C48  r4 = C0D75230
fu3hi6sh> [<c0120f18>] (jffs2_sync_fs+0x0/0x68) from [<c008bdbc>] (sync_filesystems+0xf0/0x13c)
fu3hi6sh>  r4 = C0D75000
fu3hi6sh> [<c008bccc>] (sync_filesystems+0x0/0x13c) from [<c0086b08>] (do_sync+0x34/0x68)
fu3hi6sh>  r6 = 00000000  r5 = 00000001  r4 = 00000001
fu3hi6sh> [<c0086ad4>] (do_sync+0x0/0x68) from [<c0086b50>] (sys_sync+0x14/0x1c)
fu3hi6sh>  r4 = BEA2DE54
fu3hi6sh> [<c0086b3c>] (sys_sync+0x0/0x1c) from [<c0031d60>] (ret_fast_syscall+0x0/0x2c)
fu3hi6sh> Code: e24b2024 e5832004 e50b3024 e50b1020 (e5812000)
fu3hi6sh>  Segmentation fault
fu3hi6sh> -------------------------------------------<エラーメッセージ ここまで>
fu3hi6sh> 
fu3hi6sh> 
fu3hi6sh> 
fu3hi6sh> 上記状況のため、flatfsdに関しては、急遽、パーティション分割内容を変更し
fu3hi6sh> て回避しています。(正しくない回避策でしたら、これについても御教授いただ
fu3hi6sh> きたく、お願い申し上げます。)
fu3hi6sh> 
fu3hi6sh> 以前は
fu3hi6sh>  bootloader
fu3hi6sh>  kernel
fu3hi6sh>  userland
fu3hi6sh>  userland-user
fu3hi6sh>  config
fu3hi6sh> という構成でしたが、1つパーティションを増やし(userland-config(64KB))
fu3hi6sh>  bootloader
fu3hi6sh>  kernel
fu3hi6sh>  userland
fu3hi6sh>  userland-config
fu3hi6sh>  userland-user
fu3hi6sh>  config
fu3hi6sh> という構成にしました。
fu3hi6sh> 
fu3hi6sh> 
fu3hi6sh> 
fu3hi6sh> On Mon, 03 Mar 2008 02:35:48 +0900
fu3hi6sh> Yasushi SHOJI <email@hidden> wrote:
fu3hi6sh> 
fu3hi6sh> yashi> At Sun, 02 Mar 2008 02:20:47 +0900,
fu3hi6sh> yashi> Fumihiro SHIMONO wrote:
fu3hi6sh> yashi> > 
fu3hi6sh> yashi> > yashi> > flatfsdは止めていますか??
fu3hi6sh> yashi> > 
fu3hi6sh> yashi> > 方法はどのようにすればよいでしょうか?(^^;)
fu3hi6sh> yashi> 
fu3hi6sh> yashi> /etc/init.d/flatfsdの実行権限を外すと良いかも。
fu3hi6sh> yashi> -- 
fu3hi6sh> yashi>           yashi
fu3hi6sh> yashi> _______________________________________________
fu3hi6sh> yashi> armadillo mailing list
fu3hi6sh> yashi> email@hidden
fu3hi6sh> yashi> http://lists.atmark-techno.com/mailman/listinfo/armadillo
fu3hi6sh> 
fu3hi6sh> -- 
fu3hi6sh> Fumihiro SHIMONO <email@hidden>
fu3hi6sh> 
fu3hi6sh> _______________________________________________
fu3hi6sh> armadillo mailing list
fu3hi6sh> email@hidden
fu3hi6sh> http://lists.atmark-techno.com/mailman/listinfo/armadillo

-- 
Fumihiro SHIMONO <email@hidden>




armadillo メーリングリストの案内