weekly report
xiangfu
xiangfu at openmoko.org
Sun Jul 20 08:20:52 CEST 2008
this week i find this file serial.c under uboot/cpu/arm920t/s3c24x0/
i try to use the serial console debug, maybe this file can help,
i am dig into this file.
i also have some question
1. when i use "nand write.e 0x32000000 u-boot 0x1000"
the nand reply
"nand write:device 0 offset 0x0 size 0x1000
write data at 0x800 100% <--------------i don't understand here. the
uboot is at the begin of NAND flash, it's should be at 0x0, why
here is 0x800?
4096 bytes written ok"
when i use
"nand_read_ll(buf,0x800,siaeof(buf))"
then this function never go into "if"[1] like before,
but this "for"[2] also not stop. so may be i use serial console debug,
can find why
for (i=start_addr; i < (start_addr + size);) { <---------[2]
if (i % NAND_BLOCK_SIZE == 0) { <--------------[1]
if (is_bad_block(i) ||
is_bad_block(i + NAND_PAGE_SIZE)) {
orange_on(1);
i += NAND_BLOCK_SIZE;
size += NAND_BLOCK_SIZE;
bad_block_count++;
if(bad_block_count==4){
return -1;
}
continue;
}
}
blue_on(1);
j = nand_read_page_ll(buf, i);
i +=j;
}
More information about the openmoko-kernel
mailing list