fonero面白いね

fis initでファイルシステムを完全に消したあと、どうやって復帰させるかで苦労した。要はファイルサイズを元々あったサイズにして作成してflash rom上のアドレスを整えるという事と、ファイルを作る順番が大事という事だ。
これをやっていて、どんな風にメモリを使っているか段々わかってきた。こういう事をやってAP機能を殺したりしたら本当は人の為にならんのだけども。。ちょっと書きたい事を次に書く。ちなみに、一番前のfis initが諸悪の根源。まねしないでね。

RedBoot> ip_address -l myaddress/mask_bit -h tftp_server_address
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> load -r -v -b 0x80041000 rootfs.squashfs
Using default protocol (TFTP)
-
Raw file loaded 0x80041000-0x801c0fff, assumed entry at 0x80041000
RedBoot> fis create -b 0x80041000 -f 0xa8030000 -l 0x00700000 -e 0x00000000 rootfs
... Erase from 0xa8030000-0xa8730000: ................................................................................................................
... Program from 0x80041000-0x80741000 at 0xa8030000: ................................................................................................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> load -r -v -b 0x80041000 kernel.lzma
Using default protocol (TFTP)
|
Raw file loaded 0x80041000-0x800c0fff, assumed entry at 0x80041000
RedBoot> fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7
... Erase from 0xa8730000-0xa87b0000: ........
... Program from 0x80041000-0x800c1000 at 0xa8730000: ........
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> reset