[U-Boot-Users] Sector addresses alignment of "flinfo"

Masao Uebayashi uebayasi at pultek.co.jp
Thu Jul 22 12:19:08 CEST 2004


Currently the "flinfo" command shows sector start addresses like this:

	Bank # 1: INTEL 28F128J3A (128 Mbit)
	  Size: 32 MB in 128 Sectors
	  Sector Start Addresses:
	    FC000000      FC040000      FC080000      FC0C0000      FC100000
	    FC140000      FC180000      FC1C0000      FC200000      FC240000

IMO printing 4 (a power of 2) addresses per line would be more
readable and reasonable:

	Bank # 1: INTEL 28F128J3A (128 Mbit)
	  Size: 32 MB in 128 Sectors
	  Sector Start Addresses:
	    FC000000      FC040000      FC080000      FC0C0000
	    FC100000      FC140000      FC180000      FC1C0000
	    FC200000      FC240000      FC280000      FC2C0000

And I believe this is always the case for any Flash disk.

Where to be fixed?  Run "grep -r '% 5' u-boot".  All the results seem
relating this task.  (Mmm, duplicate code...)

Masao




More information about the U-Boot mailing list