rendered paste body
ip_addr -h 192.168.1.23 -l 192.168.1.254/24
1.
RedBoot> fis init
2.
RedBoot> load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma
3.
RedBoot> fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7
4.
RedBoot> load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-root.jffs2-64k
5.
RedBoot> fis create -l 0x006F0000 rootfs
Total Paste Views: 7 — Trackback (0) — PermaLink
oh, only one mistake (0xA8030000 + 0x000C0000) :-)
<lubek> or 0xA87E0000 - 0xA8030000 - 0x000C0000
1.
RedBoot> fis init
2.
...
3.
RedBoot> fis list
4.
Name FLASH addr Mem addr Length Entry point
5.
RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000
6.
FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000
7.
RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000
8.
RedBoot> load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma
9.
...
10.
11.
# you do not have to provide the flash address as we are writing after the boot block
12.
13.
RedBoot> fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7
14.
...
15.
RedBoot> fis list
16.
Name FLASH addr Mem addr Length Entry point
17.
RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000
18.
vmlinux.bin.l7 0xA8030000 0x80041000 0x000C0000 0x80041000
19.
FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000
20.
RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000
21.
...
22.
23.
# the calculation of the free space:
24.
# "FIS directory FLASH addr" - "vmlinux.bin.l7 FLASH addr" + "vmlinux.bin.l7 Length"
25.
# 0xA87E0000 - 0xA8030000 + 0x000C0000 = 0x006F0000
26.
# The size of the rootfs space 7274496 bytes
27.
28.
RedBoot> load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-root.jffs2-64k (or any other rootfs image)
29.
RedBoot> fis create -l 0x006F0000 rootfs
30.
31.
RedBoot> fis list
32.
Name FLASH addr Mem addr Length Entry point
33.
RedBoot 0xA8000000 0xA8000000 0x00030000 0x00000000
34.
vmlinux.bin.l7 0xA8030000 0xA8030000 0x000C0000 0xA8030000
35.
rootfs 0xA80F0000 0x80040800 0x00460000 0x80040800
36.
FIS directory 0xA87E0000 0xA87E0000 0x0000F000 0x00000000
37.
RedBoot config 0xA87EF000 0xA87EF000 0x00001000 0x00000000