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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user