Published on Sake.in.th (https://sake.in.th)

หน้าแรก > หน้าหลัก > Build Rsync Cross Compile ลงใน mips32el STB

Build Rsync Cross Compile ลงใน mips32el STB [1]

เขียนโดย sake [2] เมื่อ 2008-09-15 20:18

หลังจากที่งมอยู่นาน ปรากฎว่า architecture ผิด -_-''
ที่จริงเป็น mipsel ไม่ใช่ mip เฉย ๆ

แก้ /etc/apt/source.list

  1. deb http:// www.emdebian.org/debian/ stable main
  2. deb-src http:// www.emdebian.org/debian/ stable main

ลอง Compile ใหม่ บน etch

  1. # apt-get update
  2. # apt-get install  binutils-mipsel-linux-gnu  
  3. # apt-get install libc6-dev-mipsel-cross libc6-mipsel-cross
  4. # apt-get install gcc-4.1-mipsel-linux-gnu g++-4.1-mipsel-linux-gnu

จากนั้น compile rsync

  1. # wget http://samba.anu.edu.au/ftp/rsync/rsync-3.0.4.tar.gz
  2. # tar zxvf rsync-3.0.4.tar.gz
  3. # cd rsync-3.0.4
  4. # CC="mipsel-linux-gnu-gcc" LDFLAGS="-static" ./configure --target=mipsel --host=i386
  5. # make

จากนั้น copy ไฟล์ rsync ไปใช้งาน

:D

Tags: 
linux [3]
embeded linux [4]
mips [5]
Cross Compile [6]

Source URL (modified on 2008-09-15 20:25): https://sake.in.th/node/65

Links
[1] https://sake.in.th/blog/build-rsync-cross-compile-%E0%B8%A5%E0%B8%87%E0%B9%83%E0%B8%99-mips32el-stb
[2] https://sake.in.th/users/sake
[3] https://sake.in.th/tags/sitetags/linux
[4] https://sake.in.th/category/sitetags/embeded-linux
[5] https://sake.in.th/category/sitetags/mips
[6] https://sake.in.th/tags/sitetags/cross-compile