[U-Boot] Problems with ext2ls & SD

DVM karl.robinsod at gmail.com
Sat Mar 28 13:52:51 CET 2009


Further debugging reveals UBoot uses a fixed length for inodes (128 bye). The
inodes on my 2GB SD card are 256 bytes There was a patch that fizzled out
back in January looking at this

http://www.nabble.com/-U-Boot----PATCH--Fix-ext2-non-working-td21742132.html#a21742132

The superblock contains the inode length in the function 

static int ext2fs_read_inode()
...

	inodes_per_block = EXT2_BLOCK_SIZE (data) /
__le32_to_cpu(sblock->inode_size); 
...

	status = ext2fs_devread (((__le32_to_cpu (blkgrp.inode_table_id) + blkno)
<< LOG2_EXT2_BLOCK_SIZE (data)),
				 			 __le32_to_cpu(sblock->inode_size) * blkoff,
							 sizeof (struct ext2_inode),  /*HACK till I fix up struct size*/ 
							 (char *) inode); 


This seems to improve matters for me BUT I dont have any other hardware to
test on and I am no ext2fs guru. Does anyone else have any ideas?
-- 
View this message in context: http://www.nabble.com/Problems-with-ext2ls---SD-tp22728281p22756563.html
Sent from the Uboot - Users mailing list archive at Nabble.com.



More information about the U-Boot mailing list