From: Grant Erickson <gerickson@nuovations.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Using FIT Multi-Images for an Auto-Updater
Date: Tue, 27 May 2008 11:08:55 -0700 [thread overview]
Message-ID: <C4619C47.F696%gerickson@nuovations.com> (raw)
I am attempting to craft an auto-updater image consisting of three files in
a FIT multi-image:
* u-boot.bin (Binary 512 KiB u-boot image)
* boot.itb (FIT Multi-image)
- vmlinux.bin.gz (Compressed Binary Linux Kernel)
- devices.dtb (Binary FDT Blob)
* root.img (JFFS2 File System)
and a script that effectively does:
# Erase and write u-boot
protect off fff80000 ffffffff
era fff80000 ffffffff
cp.b u-boot at 1 fff80000 <size>
protect on fff80000 ffffffff
# Erase and write boot images (primary and secondary)
nand erase 0 400000
nand write.i boot at 1 0 <size>
nand erase 1C00000 400000
nand write.i boot at 1 1C00000 <size>
# Erase and write root file system images (primary and secondary)
nand erase 800000 1400000
nand write.i root at 1 800000 <size>
nand erase 2400000 1400000
nand write.i root at 1 2400000 <size>
when the user runs:
=> tftp 800000 aupd.itb
=> autoscr 800000
Based on my experience in working with the FIT multi-image 'boot.itb' above,
this seems like it should work; however, a few questions come to mind:
1) Can a script self-reference files within the FIT multi-image as
indicated above (u-boot at 1, boot at 1, root at 1, etc.)?
2) Must the <size> values for 'cp.b' and 'nand write.i' be hard-coded in
the script or can these be extracted somehow dynamically from the FIT
image?
3) What is an appropriate 'type' for 'u-boot.bin' and 'boot.itb' in the
FIT multi-image? The type "firmware" seems appropriate in terms of
how the code treats such a type but the name slightly misleading for
this application.
Thanks,
Grant
reply other threads:[~2008-05-27 18:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C4619C47.F696%gerickson@nuovations.com \
--to=gerickson@nuovations.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox