Check
+ ffffffff) REPLY="empty" ;;
+ 1f8b0800) REPLY="gzip" ;;
+ fd377a58) REPLY="xz" ;;
+ 68737173) REPLY="squashfs" ;;
+ 55424923) REPLY="ubi" ;;
+ 27051956) REPLY="uimage" ;;
+ 851901e0|1985e001) REPLY="jffs2" ;; # type=dirent
+ 851902e0|1985e002) REPLY="jffs2" ;; # type=inode
+ 85190320|19852003) REPLY="jffs2" ;; # type=clean
+ 85190420|19852004) REPLY="jffs2" ;; # type=padding
+ 85190620|19852006) REPLY="jffs2" ;; # type=summary
+ 851908e0|1985e008) REPLY="jffs2" ;; # type=xattr
+ 851909e0|1985e009) REPLY="jffs2" ;; # type=xref
u-boot里面第一句reset的二进制表达是ea000014,而在u-boot.16k中的表达是140000ea(第二行,去掉前16字节的HeaderInfo)。这就涉及到大小端的问题
例如把bin文件转为小端输出
xxd -e -g4 test.bin temp-hexdump.txt
xxd -e -g4 input.bin temp.txt
xxd -r temp.txt output.bin
xxd -e -g4 input.bin | xxd -r > output.bin
处理器以小端模式为主,硬盘等存储设备以大选模式为主,网络通信都是大端模式(先传高位,再传低位)