u-boot: copy exception vectors into SteppingStone if booting from NOR

Werner Almesberger werner at openmoko.org
Mon Mar 3 17:04:40 CET 2008


This one fixes the crash on USB insertion when booting a GTA02 from NOR.
See description below.

- Werner

----------------------------------- Changes -----------------------------------

If we boot from NOR, the exception vectors are provided by the NOR as well.
Once the AUX button is released, SteppingStone appears at address 0, giving
us invalid exception vectors. Thus, any subsequent interrupt would crash
the system. This patch makes u-boot wait until AUX is released, copies the 
exception vectors into SteppingStone, and only then proceeds to enable
interrupts.

nor-irqvec.patch:
- board/neo1973/gta02/gta02.c (board_late_init): moved "extern"s to global 
  scope, since they're now also used by board_init
- board/neo1973/gta02/gta02.c (board_init): if booting from NOR, wait until the
  AUX button is released




More information about the openmoko-kernel mailing list