1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

try to debug the nand_read

This commit is contained in:
xiangfu
2008-07-13 13:20:35 -04:00
parent 05afbb65a7
commit 12ba156cfb
4 changed files with 101 additions and 58 deletions

View File

@@ -38,19 +38,15 @@ unsigned char buf[2048];
int start_kboot()
{
if(nand_read_ll(buf, 0x32000000, sizeof(buf))==-1) {
blink_led();
if(nand_read_ll(buf, 0x32000000, sizeof(buf))==-1)
{
while(1){blink_led(1);}
}
/*
void (*fp)(void)=(void (*)(void))&buf;
(fp)();
*/
asm volatile("mov pc, %0\n"
: /* output */
:"r"(ADDR) /* input */
);
return 0;
}