public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] U-Boot: Checksum error when booting kernel from jffs2 partition
@ 2012-12-27 16:24 dpdonny
  2012-12-27 18:58 ` dpdonny
  2012-12-27 22:04 ` Dan Donahue
  0 siblings, 2 replies; 3+ messages in thread
From: dpdonny @ 2012-12-27 16:24 UTC (permalink / raw)
  To: u-boot

Greetings,

I am using U-Boot version 2011.09-00096 and Kernel 3.1.0 on a proprietary
board booting out of NOR flash. The only mods to the sources are my BSP
files.

All is well as long as the kernel image and ram filesystem archive image are
created with the mkfs.jffs2 command and copied into flash (in directory
'foo' for this case) from U-Boot using the 'cp' command.   The U-boot
environment file is updated to point to foo and the board successfully boots
the kernel. No padding is used when creating the jffs2 image.

Once the kernel is booted I create directory foo2 in the same partition as
foo (again from the kernel). My update untars an archive containing the
kernel image and ram filesystem into foo2, updates the U-Boot environment
file to point to foo2, and reboots. U-Boot comes up, fsloads the images from
foo2, and the Checksum error is seen.

Note, If I create a jffs2 image containing both foo and foo2 the checksum
error is not seen.

Is there a jffs2 compatibility issue between my kernel and U-Boot?



--
View this message in context: http://u-boot.10912.n7.nabble.com/U-Boot-Checksum-error-when-booting-kernel-from-jffs2-partition-tp143640.html
Sent from the U-Boot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] U-Boot: Checksum error when booting kernel from jffs2 partition
  2012-12-27 16:24 [U-Boot] U-Boot: Checksum error when booting kernel from jffs2 partition dpdonny
@ 2012-12-27 18:58 ` dpdonny
  2012-12-27 22:04 ` Dan Donahue
  1 sibling, 0 replies; 3+ messages in thread
From: dpdonny @ 2012-12-27 18:58 UTC (permalink / raw)
  To: u-boot

Here is the text of the checksum error:


U-Boot (gridco)# fsload 80200000 os-1.1/uImage
### JFFS2 loading 'os-1.1/uImage' to 0x80200000
### JFFS2 load complete: 2859696 bytes loaded to 0x80200000
U-Boot (gridco)# fsload os/os-1.1/initramfs.cpio.img 81600000
### JFFS2 loading '81600000' to 0x0
find_inode failed for name=81600000
load: Failed to find inode
### JFFS2 LOAD ERROR<0> for 81600000!
U-Boot (gridco)# fsload 81600000 os-1.1/initramfs.cpio.img
### JFFS2 loading 'os-1.1/initramfs.cpio.img' to 0x81600000
### JFFS2 load complete: 2767639 bytes loaded to 0x81600000
U-Boot (gridco)# bootm 80200000 81600000
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux-3.1.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2859632 Bytes = 2.7 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!




--
View this message in context: http://u-boot.10912.n7.nabble.com/U-Boot-Checksum-error-when-booting-kernel-from-jffs2-partition-tp143640p143644.html
Sent from the U-Boot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] U-Boot: Checksum error when booting kernel from jffs2 partition
  2012-12-27 16:24 [U-Boot] U-Boot: Checksum error when booting kernel from jffs2 partition dpdonny
  2012-12-27 18:58 ` dpdonny
@ 2012-12-27 22:04 ` Dan Donahue
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Donahue @ 2012-12-27 22:04 UTC (permalink / raw)
  To: u-boot

I believe I solved my own problem. It looks like a hardware or kernel driver
issue. Software timeouts are seen in the kernel CFI command set driver
during the write. The driver reports the copy succeeded in spite of the
timeout. I was able to do a copy without experiencing timeouts and the
kernel booted just fine.

I apologize if I've wasted anyone's time...I see several people took the
time to read the post.

--- 
Dan Donahue



--
View this message in context: http://u-boot.10912.n7.nabble.com/U-Boot-Checksum-error-when-booting-kernel-from-jffs2-partition-tp143640p143651.html
Sent from the U-Boot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-27 22:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-27 16:24 [U-Boot] U-Boot: Checksum error when booting kernel from jffs2 partition dpdonny
2012-12-27 18:58 ` dpdonny
2012-12-27 22:04 ` Dan Donahue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox