public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] eMMC boot partition booting and SMDK5250 support
@ 2014-01-28 17:25 Tom Rini
  2014-01-28 19:31 ` Tom Rini
  2014-01-28 21:56 ` Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Tom Rini @ 2014-01-28 17:25 UTC (permalink / raw)
  To: u-boot

Hey guys,

I've posted a patch to support the eMMC boot partitions found on the TI
DRA7xx EVM the other day, and I've been looking at what exactly happens
with the 'mmc open ...' and 'mmc close ...' commands the
CONFIG_SUPPORT_EMMC_BOOT enables.  I've got a few questions about how
exactly the support works on the SMDK5250 and what your platform
requirements are, so we can re-work the code to be a bit more generic.

Why do we have it as "open" and "close" ?  Is this because it's a
version 4.2[1] style device?  I'm working with 4.3-compatible (it's
actually 4.41, but same method just larger partitions) one and that can
be done with setting EXT_CSD[179] (BOOT_CONFIG / Boot configuration) _and_
EXT_CSD[177] to a specific and different value than we've hard-coded
now.

I would like to change things to be:
"mmc open <device>" - Note required for eMMC 4.2 boot method.
"mmc close <device>" - Same
"mmc bootpart <device> <partition>" - Used for eMMC 4.3 and later boot
sequence option 1/2
"mmc bootbus <device> <value>" - Note used in all boot sequences

This would make the SMDK5250 sequence be (based on how I think it works
today):
mmc dev ...
mmc open
mmc write ...
mmc bootpart ...
mmc bootbus ...
mmc close

And the DRA7xx sequence be:
mmc dev ...
mmc write ...
mmc bootpart ...
mmc bootbus ...

Comments?  I plan to start down this path shortly, thanks!

[1]:
http://www.micron.com/~/media/Documents/Products/Technical%20Note/NAND%20Flash/tn2918.pdf
-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140128/38316824/attachment.pgp>

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

* [U-Boot] eMMC boot partition booting and SMDK5250 support
  2014-01-28 17:25 [U-Boot] eMMC boot partition booting and SMDK5250 support Tom Rini
@ 2014-01-28 19:31 ` Tom Rini
  2014-01-29  0:48   ` Minkyu Kang
  2014-01-28 21:56 ` Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Tom Rini @ 2014-01-28 19:31 UTC (permalink / raw)
  To: u-boot

On Tue, Jan 28, 2014 at 12:25:02PM -0500, Tom Rini wrote:
> Hey guys,
> 
> I've posted a patch to support the eMMC boot partitions found on the TI
> DRA7xx EVM the other day, and I've been looking at what exactly happens
> with the 'mmc open ...' and 'mmc close ...' commands the
> CONFIG_SUPPORT_EMMC_BOOT enables.  I've got a few questions about how
> exactly the support works on the SMDK5250 and what your platform
> requirements are, so we can re-work the code to be a bit more generic.
> 
> Why do we have it as "open" and "close" ?  Is this because it's a
> version 4.2[1] style device?  I'm working with 4.3-compatible (it's
> actually 4.41, but same method just larger partitions) one and that can
> be done with setting EXT_CSD[179] (BOOT_CONFIG / Boot configuration) _and_
> EXT_CSD[177] to a specific and different value than we've hard-coded
> now.
> 
> I would like to change things to be:
> "mmc open <device>" - Note required for eMMC 4.2 boot method.
> "mmc close <device>" - Same
> "mmc bootpart <device> <partition>" - Used for eMMC 4.3 and later boot
> sequence option 1/2
> "mmc bootbus <device> <value>" - Note used in all boot sequences
> 
> This would make the SMDK5250 sequence be (based on how I think it works
> today):
> mmc dev ...
> mmc open
> mmc write ...
> mmc bootpart ...
> mmc bootbus ...
> mmc close
> 
> And the DRA7xx sequence be:
> mmc dev ...
> mmc write ...
> mmc bootpart ...
> mmc bootbus ...

Oh!  And I forgot the current 'bootpart' which appears to be a resize
operation would become 'bootpart-resize'.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140128/555abd66/attachment.pgp>

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

* [U-Boot] eMMC boot partition booting and SMDK5250 support
  2014-01-28 17:25 [U-Boot] eMMC boot partition booting and SMDK5250 support Tom Rini
  2014-01-28 19:31 ` Tom Rini
@ 2014-01-28 21:56 ` Tom Rini
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2014-01-28 21:56 UTC (permalink / raw)
  To: u-boot

On Tue, Jan 28, 2014 at 12:25:02PM -0500, Tom Rini wrote:
> Hey guys,
> 
> I've posted a patch to support the eMMC boot partitions found on the TI
> DRA7xx EVM the other day, and I've been looking at what exactly happens
> with the 'mmc open ...' and 'mmc close ...' commands the
> CONFIG_SUPPORT_EMMC_BOOT enables.  I've got a few questions about how
> exactly the support works on the SMDK5250 and what your platform
> requirements are, so we can re-work the code to be a bit more generic.
> 
> Why do we have it as "open" and "close" ?  Is this because it's a
> version 4.2[1] style device?  I'm working with 4.3-compatible (it's
> actually 4.41, but same method just larger partitions) one and that can
> be done with setting EXT_CSD[179] (BOOT_CONFIG / Boot configuration) _and_
> EXT_CSD[177] to a specific and different value than we've hard-coded
> now.

Or, is this done to save a step in terms of issuing 'mmc dev' commands
and thus the 'close' is to done to get people back to the user
partition?  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140128/18ab221e/attachment.pgp>

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

* [U-Boot] eMMC boot partition booting and SMDK5250 support
  2014-01-28 19:31 ` Tom Rini
@ 2014-01-29  0:48   ` Minkyu Kang
  0 siblings, 0 replies; 4+ messages in thread
From: Minkyu Kang @ 2014-01-29  0:48 UTC (permalink / raw)
  To: u-boot

Jaehoon,
How you think?

On 29/01/14 04:31, Tom Rini wrote:
> On Tue, Jan 28, 2014 at 12:25:02PM -0500, Tom Rini wrote:
>> Hey guys,
>>
>> I've posted a patch to support the eMMC boot partitions found on the TI
>> DRA7xx EVM the other day, and I've been looking at what exactly happens
>> with the 'mmc open ...' and 'mmc close ...' commands the
>> CONFIG_SUPPORT_EMMC_BOOT enables.  I've got a few questions about how
>> exactly the support works on the SMDK5250 and what your platform
>> requirements are, so we can re-work the code to be a bit more generic.
>>
>> Why do we have it as "open" and "close" ?  Is this because it's a
>> version 4.2[1] style device?  I'm working with 4.3-compatible (it's
>> actually 4.41, but same method just larger partitions) one and that can
>> be done with setting EXT_CSD[179] (BOOT_CONFIG / Boot configuration) _and_
>> EXT_CSD[177] to a specific and different value than we've hard-coded
>> now.
>>
>> I would like to change things to be:
>> "mmc open <device>" - Note required for eMMC 4.2 boot method.
>> "mmc close <device>" - Same
>> "mmc bootpart <device> <partition>" - Used for eMMC 4.3 and later boot
>> sequence option 1/2
>> "mmc bootbus <device> <value>" - Note used in all boot sequences
>>
>> This would make the SMDK5250 sequence be (based on how I think it works
>> today):
>> mmc dev ...
>> mmc open
>> mmc write ...
>> mmc bootpart ...
>> mmc bootbus ...
>> mmc close
>>
>> And the DRA7xx sequence be:
>> mmc dev ...
>> mmc write ...
>> mmc bootpart ...
>> mmc bootbus ...
> 
> Oh!  And I forgot the current 'bootpart' which appears to be a resize
> operation would become 'bootpart-resize'.
> 

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

end of thread, other threads:[~2014-01-29  0:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28 17:25 [U-Boot] eMMC boot partition booting and SMDK5250 support Tom Rini
2014-01-28 19:31 ` Tom Rini
2014-01-29  0:48   ` Minkyu Kang
2014-01-28 21:56 ` Tom Rini

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