* [U-Boot-Users] flashcp checksum problem
@ 2008-01-22 16:48 sj29fr
2008-01-23 12:04 ` sj29fr
0 siblings, 1 reply; 5+ messages in thread
From: sj29fr @ 2008-01-22 16:48 UTC (permalink / raw)
To: u-boot
I have an ARM922T with u-boot 1.2.0
I created 1 image with mkimage. This image contains my kernel (zImage) and my
ramdisk.
mkimage -A arm -o linux -T multi -C none -a 0x8000 -e 0x8000 -n
"Kernel-Ramdisk-Image" -d zImage:ramdisk.gz mImage
1) Flash mImage with uboot
The kernel works nice.
2) Now I want to upgrade Flash image from Linux
I use flashcp on my MTD partition. I successfully write the image.
$ flashcp updateImage /dev/mtd1
When I reboot I have a bad CRC error in u-boot.
I made a dump of my MTD partition with dd and I compared it to mImage.
I have seen thaht CRLF are replace by LF !
Why does u-boot remove CR ?
How can I generate a correct image for flashcp ?
Is there a special tool to generate an image for flashcp or is there another
tool than flashcp to update my board ?
How can I verify the image checksum ?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] flashcp checksum problem
2008-01-22 16:48 [U-Boot-Users] flashcp checksum problem sj29fr
@ 2008-01-23 12:04 ` sj29fr
2008-01-23 12:49 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: sj29fr @ 2008-01-23 12:04 UTC (permalink / raw)
To: u-boot
Hi all,
I tried again to check flash in u-boot, and I think that my problem come from
u-boot which need to read a checksum in a special place.
Flashcp doesn't write any checksum, so is there a way to do it under linux ?
I use a 2.6.17.8 kernel with uboot 1.2.0 and mtd-utils 1.1.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] flashcp checksum problem
2008-01-23 12:04 ` sj29fr
@ 2008-01-23 12:49 ` Wolfgang Denk
2008-01-23 13:56 ` sj29fr
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2008-01-23 12:49 UTC (permalink / raw)
To: u-boot
In message <loom.20080123T120219-53@post.gmane.org> you wrote:
>
> I tried again to check flash in u-boot, and I think that my problem come from
> u-boot which need to read a checksum in a special place.
> Flashcp doesn't write any checksum, so is there a way to do it under linux ?
> I use a 2.6.17.8 kernel with uboot 1.2.0 and mtd-utils 1.1.
flashcp is something that is *not* part of the public U-Boot code, so
please don't expect much help here on the list. Rather ask the guys
who provided that version of U-Boot to you.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is surely a great calamity for a human being to have no ob-
sessions. - Robert Bly
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] flashcp checksum problem
2008-01-23 12:49 ` Wolfgang Denk
@ 2008-01-23 13:56 ` sj29fr
2008-01-23 14:58 ` Ben Warren
0 siblings, 1 reply; 5+ messages in thread
From: sj29fr @ 2008-01-23 13:56 UTC (permalink / raw)
To: u-boot
> flashcp is something that is *not* part of the public U-Boot code, so
> please don't expect much help here on the list. Rather ask the guys
> who provided that version of U-Boot to you.
So is there a supported tool to upgrade from linux ?
sj29fr
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] flashcp checksum problem
2008-01-23 13:56 ` sj29fr
@ 2008-01-23 14:58 ` Ben Warren
0 siblings, 0 replies; 5+ messages in thread
From: Ben Warren @ 2008-01-23 14:58 UTC (permalink / raw)
To: u-boot
sj29fr wrote:
>> flashcp is something that is *not* part of the public U-Boot code, so
>> please don't expect much help here on the list. Rather ask the guys
>> who provided that version of U-Boot to you.
>>
>
> So is there a supported tool to upgrade from linux ?
>
>
Sure. Use mtd-utils in Linux user-space to copy your new U-boot image
into flash. Of course, this runs the risk of 'bricking' your board if
there's a problem with the copy or if you embed your environment
variables in the image, but there are tons of ways to make it a little
safer. I'm sure you'll figure something out.
regards,
Ben
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-23 14:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-22 16:48 [U-Boot-Users] flashcp checksum problem sj29fr
2008-01-23 12:04 ` sj29fr
2008-01-23 12:49 ` Wolfgang Denk
2008-01-23 13:56 ` sj29fr
2008-01-23 14:58 ` Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox