Why the USB Secondary Boot Loader from AN10866 doesn't work on Linux / Mac PCs ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Why the USB Secondary Boot Loader from AN10866 doesn't work on Linux / Mac PCs ?

1,971 次查看
lpcware-support
Senior Contributor I

The tiny FAT file system emulation in the bootloader uses a fixed translation from FAT cluster number to flash address. Once the old firmware has been deleted in the file browser (e.g Windows Explorer) on the host, all clusters are available for following write operations. Windows use them sequentially starting at the first available cluster. However, Linux starts at the second cluster, and this leads to the code ending up at the wrong location (here: 1 KB shifted, since a cluster contains two file system sectors of 512 bytes).

 

Both Windows and Linux do it perfectly right, because they can use clusters in any sequence they like. However, since the bootloader is translating the cluster no directly into Flash sector no, it may not working with different OS, other than Windows.

标签 (3)
标记 (3)
0 项奖励
回复
0 回复数