CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 12825|回复: 3

构建ubuntu 文件系统

[复制链接]
发表于 2016-9-22 18:07:20 | 显示全部楼层 |阅读模式
  1. wget http://cdimage.ubuntu.com/ubuntu-base/releases/14.04/release/ubuntu-base-14.04-core-armhf.tar.gz
  2. #prepare and install    
  3. #apt-get install qemu binfmt-support qemu-user-static

  4. mkdir armhf-rootfs-minimal
  5. tar -zxf ubuntu-base-14.04-core-armhf.tar.gz -C armhf-rootfs-minimal/
  6. #mount system (attached file)
  7. ./arm-mount.sh -m armhf-rootfs-minimal

  8. #now you are in the new rootfs

  9. echo "nameserver 8.8.8.8" > /etc/resolv.conf
  10. echo "" > /etc/apt/sources.list
  11. echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe" >> /etc/apt/sources.list
  12. echo "deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main universe" >> /etc/apt/sources.list

  13. touch /etc/apt/sources.list.d/linaro.list
  14. echo "# Linaro Overlay PPA" >> /etc/apt/sources.list.d/linaro.list
  15. echo "deb http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu trusty main main/debug" >> /etc/apt/sources.list.d/linaro.list
  16. echo "deb-src http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu trusty main" >> /etc/apt/sources.list.d/linaro.list
  17. echo "deb http://repo.linaro.org/ubuntu/linaro-overlay trusty main" >> /etc/apt/sources.list.d/linaro.list
  18. echo "deb-src http://repo.linaro.org/ubuntu/linaro-overlay trusty main" >> /etc/apt/sources.list.d/linaro.list

  19. apt-get update
  20. apt-get -y install wget
  21. wget -O - http://repo.linaro.org/ubuntu/linarorepo.key|sudo apt-key add -
  22. apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F1FCBACA7BE1F97B

  23. echo "" > /etc/hosts
  24. echo "127.0.0.1 localhost" >> /etc/hosts

  25. apt-get  -y install  libasound2-plugins samba alsa-utils bash-completion bc bridge-utils bluez curl dosfstools evtest figlet fping git haveged hddtemp hdparm hostapd htop i2c-tools ifenslave-2.6 iperf iotop iw less libtool libfuse2 lsof makedev module-init-tools mtp-tools nano ntfs-3g ntp parted pkg-config pciutils pv python-smbus rfkill rsync screen stress sudo sysfsutils toilet u-boot-tools tar unzip zip usbutils wireless-tools wget wpasupplicant python3 python-mysql.connector python-websocket python-imaging python-pip python-serial python-pyasn1 python-pymodbus python-smbus php5 php5-cli php5-common php5-json php5-mysql php5-curl php5-sqlite php5-imagick php5-mcrypt mysql-client php5-snmp openvpn apache2 openssh-server gammu-smsd python-gammu python-dev python-pip python-pyaudio ppp fbi mongodb-server php5-mongo python-pymongo python-bson python3-bson python3-pymongo  python-gridfs python3-gridfs iptables iproute2 nmap  python-crypto python-pycurl python-pysnmp-common

  26. #prevent statarting mysql at installlation
  27. sudo RUNLEVEL=1 apt-get install -y mysql-server
  28. exit
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

 楼主| 发表于 2017-3-3 10:52:51 | 显示全部楼层
测试发现使用12.04 主机去虚拟16.04的arm core ,出现主机内核版本太低的错误。虚拟14.04的arm core,则没有问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-3-3 16:13:54 | 显示全部楼层
构建16.04 系统。
下载rootfs

wget http://cdimage.ubuntu.com/ubuntu ... 2-base-armhf.tar.gz
or
wget http://cdimage.ubuntu.com/ubuntu ... 4-core-armhf.tar.gz

更换源地址

cat etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports/ xenial main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main universe


cat etc/apt/sources.list.d/linaro.list
# Linaro Overlay PPA
deb http://repo.linaro.org/ubuntu/linaro-overlay xenial main
deb-src http://repo.linaro.org/ubuntu/linaro-overlay xenial main


其他步骤跟之前一样
回复 支持 反对

使用道具 举报

发表于 2018-3-26 21:26:56 | 显示全部楼层
谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-22 12:55 , Processed in 0.022446 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部