mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-25 20:20:39 +02:00
qi-memory-test-when-no-kernels.patch
This makes a new behaviour for Qi, when there are no valid kernels then it performs the memory test. It means you can either move kernels out of the way to get the memory test, or make an SD Card just with normal Qi on it and no kernels to get a memory test. Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
parent
c5d0a6379f
commit
69de926cf4
@ -297,7 +297,20 @@ void bootloader_second_phase(void)
|
|||||||
|
|
||||||
/* none of the kernels worked out */
|
/* none of the kernels worked out */
|
||||||
|
|
||||||
puts("No usable kernel image found, we've had it :-(\n");
|
puts("\nNo usable kernel image found\n");
|
||||||
while (1)
|
|
||||||
;
|
/*
|
||||||
|
* sit there doing a memory test in this case.
|
||||||
|
*
|
||||||
|
* This phase 2 code will get destroyed but it's OK, we won't be
|
||||||
|
* coming back and the whole memory test and dependency functions are
|
||||||
|
* in phase 1 / steppingstone, so we can test entire memory range.
|
||||||
|
*
|
||||||
|
* It means we just boot with SD Card with kernel(s) renamed or removed
|
||||||
|
* to provoke memory test.
|
||||||
|
*/
|
||||||
|
|
||||||
|
memory_test((void *)this_board->linux_mem_start,
|
||||||
|
this_board->linux_mem_size);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user