Leonard Ye escribió:
>
> Hi,
>
> This topic has been discussed here many many times, but I am still too
> stupid to figure it out. So could you guys help?
>
> I have got the bootldr cross-compiled and downloaded into the board
> using Jflash-linux. Then I can get the ">boot" promot from UART3.
> After command "load kernel" is issued, I use Xmodem to downloading the
> kernel. A dialog box poped up with a lot of messages which, I think,
> indicates error.
>
> Mesages :
> Xmodem sectors/bytes sent :5287/660k Retry 0: NAK on sector
> Retry 0: NAK on sector
> ......
> Retry 0: No ACK on EOT
>
> Transfer incomplete
>
> What do these messages, especially "NAK" mean, what have I do wrong? The
> serial port is configured as 115200 8N1, and a null modem cable is used.
>
> I know my kernel size is too big. But I think it will only cause
> problem later on, no so earily.
>
Hi,
I had the same problem. In my opinion, this is a bug in "sx" (the xmodem
utility).
When you start a xmodem transfer from bootldr, it starts sending NAK
characters every X seconds (don't know exactly) and waits for a reply
from the transmitter side (sx, for instance). If you are not fast enough
initiating the transmission, the receiver probably has sent more than
one NAK to the transmitter. When sx starts, it gets a double NAK
sequence which is wrongly decoded as an end-of-transmission signal.
sx would have to consume all pending NAKs on start-up.
I have a patch for sx that does this, and it works. Apply it to
lrzsz-0.12.20.
1329d1328
<
1341,1346d1339
<
< /* if the receiver has sent more than one NAK, they must be
consumed, */
< /* otherwise they will be interpreted as packet rejects later (JCO)
*/
< while (firstch == NAK)
< firstch=READLINE_PF(1);
<
1409d1401
< {
1411,1412c1403
< }
<
---
>
Under minicom, it is possible to start a transmission "quickly"
manually. The first one takes time because you must chhose the file,
etc, but the second time you already have the filename prompted, which
is quicker.
Jordi Colomer.
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.