public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Weiguang Shi <wgshizz@yahoo.com>
To: linux-mtd@lists.infradead.org
Subject: cat zImage >/dev/mtd1 does not work
Date: Thu, 18 Jan 2007 23:30:41 -0800 (PST)	[thread overview]
Message-ID: <893459.85516.qm@web30403.mail.mud.yahoo.com> (raw)

Hi, 

I'm running snapgear-3.4.0 on an IXDP425 board with RedBoot as 
the bootloader and I want to
be able to upgrade my kernel and filesystem, i.e., zImage and 
ramdisk.gz on the flash, under Linux.

So I shipped the zImage and ramdisk.gz onto the running system
and did
    # cat zImage >/dev/mtd1
    # cat ramdisk.gz >/dev/mtd2

after eraseall the two partitions. To my surprise, when I reboot,
RedBoot gave 
                        RedBoot> fis load ramdisk                             
                        ** Warning - checksum failure.  stored: 0x33dbe19b, computed:
                        0xc9d7dfef                                            
                        RedBoot> fis load kernel                              
                        ** Warning - checksum failure.  stored: 0xfb99dd45, computed:
                        0x788bb713                                            
                        RedBoot> exec -c "console=ttyS0,115200 root=/dev/ram0 
                        initrd=0x00800000,6M mem=32M@0x00000000" 0x01600000   
                        Can't execute Linux - invalid entry address           
and refused to boot.

I understand here the newly flashed images (as it was not done in RedBoot but in the OS) may
not have the same checksum as RedBoot calculated for the earlier images. And this caused the
problem.

Any help is appreciated.

Weiguang


BTW, my MTD partition layout looks like

# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00080000 00020000 "RedBoot"
mtd1: 00100000 00020000 "kernel"
mtd2: 00200000 00020000 "ramdisk"
mtd3: 00020000 00020000 "vendor_config"
mtd4: 0001f000 00020000 "FIS directory"
mtd5: 00001000 00020000 "RedBoot config"


 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

                 reply	other threads:[~2007-01-19  7:37 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=893459.85516.qm@web30403.mail.mud.yahoo.com \
    --to=wgshizz@yahoo.com \
    --cc=linux-mtd@lists.infradead.org \
    /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