public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] AM335x Boot Device 6 (NAND?)
@ 2014-11-11  9:10 Stefan Roese
  2014-11-11 12:17 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Roese @ 2014-11-11  9:10 UTC (permalink / raw)
  To: u-boot

Hi Tom,

we have equipped some of our am335x boards (draco from mainline U-Boot)
with NAND devices from Hynix. And as it seems, the BootROM passes
now a different bootdevice number to SPL. Its not 5 as it used to be
for NAND but 6 instead. So SPL hangs of course as this boot-device is
not "supported".

Could you please let me know what this boot-device == 6 means /
represents? Should it be handled identical as the "normal" NAND
boot-device (5)?

Just to make this clear. This is the code that I'm referring to:

arch/arm/cpu/armv7/omap-common/boot-common.c:

	/*
	 * rom_params can be type casted to omap_boot_parameters and
	 * used. But it not correct to assume that romcode structure
	 * encoding would be same as u-boot. So use the defined offsets.
	 */
	gd->arch.omap_boot_params.omap_bootdevice = boot_device =
				   *((u8 *)(rom_params + BOOT_DEVICE_OFFSET));


BTW: U-Boot can handle this Hynix NAND (same layout as the other NAND
chips we use) without any problems.

Thanks,
Stefan

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

* [U-Boot] AM335x Boot Device 6 (NAND?)
  2014-11-11  9:10 [U-Boot] AM335x Boot Device 6 (NAND?) Stefan Roese
@ 2014-11-11 12:17 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-11-11 12:17 UTC (permalink / raw)
  To: u-boot

On Tue, Nov 11, 2014 at 10:10:41AM +0100, Stefan Roese wrote:
> Hi Tom,
> 
> we have equipped some of our am335x boards (draco from mainline U-Boot)
> with NAND devices from Hynix. And as it seems, the BootROM passes
> now a different bootdevice number to SPL. Its not 5 as it used to be
> for NAND but 6 instead. So SPL hangs of course as this boot-device is
> not "supported".
> 
> Could you please let me know what this boot-device == 6 means /
> represents? Should it be handled identical as the "normal" NAND
> boot-device (5)?

Well, my guess is that you've wired it up, or at least selected SYSBOOT
pins saying that this is a "NAND+I2C" device where the geometry is
stored on an i2c eeprom (see 26.1.7.4 of the TRM).  Is this really what
you wanted is my first question. :)

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141111/685b6385/attachment.pgp>

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

end of thread, other threads:[~2014-11-11 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-11  9:10 [U-Boot] AM335x Boot Device 6 (NAND?) Stefan Roese
2014-11-11 12:17 ` Tom Rini

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