Skip to contentSkip to conversation

Boot flash

DISCUSSION Joakim Tjernlund 2 participants 2 messages Feb 13, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi all

I want to use JFFS on a custom made PPC860 board. This board will have NOR flash memory(Intel) and will probably use ppcboot(suggestions for better boot loader welcome).
Can I have ppcboot share a flash device with JFFS?

something like this:

FLASH device 1:
------------------------- address 0

  |  ppcboot              |
  |-----------------------|
  |  linux kernel         |
  |-----------------------|
  |  start of JFFS        |
  |                       |
  |                       |
  |                       |
  |                       |
  -------------------------
  FLASH device 2:
  -------------------------
  |   JFFS continued      |
  |                       |
  |                       |
  |                       |
  |                       |
  |                       |
  |                       |
  |                       |
  |                       |

-------------------------

ppcboot starts after a reset, loads the linux kernel image. The linux kernel expects to find JFFS at some offset(compiled into JFFS) in the flash device.

Is this possible or do I need an extra boot flash where ppcboot and linux kernel goes?

Jocke

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw
Quoted 4 lines · [email protected] said:

I want to use JFFS on a custom made PPC860 board. This board will have NOR flash memory(Intel) and will probably use ppcboot(suggestions for better boot loader welcome). Can I have ppcboot share a flash device with JFFS?

Assuming ppcboot is happy with this arrangement, yes. Arrange the 'map' driver to split the flash into multiple partitions after probing it. See pnc2000.c for one of many examples of this. The boot partition appears to the upper layers, including JFFS, as an entirely separate MTD device.

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]