MT7620A 編譯問題:mksquashfs
問題1. liblzma.so.0: cannot open shared object file: No such file ...
# update version info
echo ""WM102A"-0.0.4 (Beta, Build 64321.435)" > /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version
LC_ALL=C date -u >> /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version
mkdir -p /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/opt
cp -af /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/opt/version
/home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/tools/mksquashfs: error while loading shared libraries: liblzma.so.0: cannot open shared object file: No such file or directory
make[1]: *** [platform_rt7620-image] Error 127
make[1]: Leaving directory `/home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336'
make: *** [target] Error 2
make: *** [target] Error 2
解決:
1.downlod xz-5.0.3.tar.bz2
2. 解壓縮:#tar jxvf xz-5.0.3.tar.bz2
3. #cd xz-5.0.3
4. #make
5. copy liblzma.so.5.0.3 至 /opt/buildroot-gcc342/lib
6.#cd /opt/buildroot-gcc342/lib
7.#ln -s lib liblzma.so.5.0.3 liblzma.so
8.#ln -s lib liblzma.so.5.0.3 liblzma.so.0
問題2. liblzma.so.0: wrong ELF class: ELFCLASS64
# update version info
echo ""WM102A"-0.0.4 (Beta, Build 64331.424)" > /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version
LC_ALL=C date -u >> /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version
mkdir -p /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/opt
cp -af /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/opt/version
/home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/tools/mksquashfs: error while loading shared libraries: liblzma.so.0: wrong ELF class: ELFCLASS64
make[1]: *** [platform_rt7620-image] Error 127
make[1]: Leaving directory `/home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336'
make: *** [target] Error 2
解決:重新編譯 squashfs4.2.tar.gz
1. download squashfs4.2.tar.gz
2. #tar zxvf squashfs4.2.tar.gz
3. #cd squashfs4.2/squashfs-tools
4. #vi Makefile (問題3 需要修改)
GZIP_SUPPORT = 1
19
20 ########### Building XZ support #############
21 #
22 # LZMA2 compression.
23 #
24 # XZ Utils liblzma (http://tukaani.org/xz/) is supported
25 #
26 # To build using XZ Utils liblzma - install the library and uncomment
27 # the XZ_SUPPORT line below.
28 #
29 XZ_SUPPORT = 1
5.#make
6.將編譯好的mksquashfs 取代舊的
#cp mksquashfs /opt/buildroot-gcc342/bin/mksquashfs_lzma-4.2
問題3 mksquashfs compressor xz is not supported
# update version info
echo ""WM102A"-0.0.4 (Beta, Build 64331.424)" > /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version
LC_ALL=C date -u >> /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version
mkdir -p /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/opt
cp -af /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/etc/version /home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/build/rootfs/opt/version
/home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336/tools/mksquashfs: invalid option
mksquashfs compressor "xz" is not supported
make[1]: *** [platform_rt7620-image] Error 127
make[1]: Leaving directory `/home/paddy/workspace/project/mediatek/apsoc2/WM102A-0.0.4.10336'
make: *** [target] Error 2
解決:請看問題2.
以上!
沒有留言:
張貼留言