Qi runs fine unmodified. But if I insert a single puts() call it hangs
and prints a line of Ts.
Patch attached. A single puts() added to
src/cpu/s3c2442/nand_read.c:nand_read_ll as Werner suggested. Looks
like puts() can not be used at that time. Though it is used in another
place in the same function.
How can I print then?
Regards,
Dmitry
diff --git a/src/cpu/s3c2442/nand_read.c b/src/cpu/s3c2442/nand_read.c
index 06ec24d..4d5c907 100644
--- a/src/cpu/s3c2442/nand_read.c
+++ b/src/cpu/s3c2442/nand_read.c
@@ -131,6 +131,7 @@ int nand_read_ll(unsigned char *buf, unsigned long start_block512,
while (blocks512 > 0) {
if (s3c2442_nand_is_bad_block(start_block512) ||
s3c2442_nand_is_bad_block(start_block512 + 4)) {
+ puts("** nand bad block\n");
start_block512 += 4;
blocks512 += 4;
if (bad_count++ == 4)