[转]Ubuntu for ARM -- Rootfs From Scratch

Ubuntu for ARM wiki:https://wiki.ubuntu.com/ARM

Rootfs From Scratch:https://wiki.ubuntu.com/ARM/RootfsFromScratch

RootfsFromScratch


This page describes building an armel Debian/Ubuntu root filesystem. It's only from scratch in that you are not starting from installer images, and you don't need target hardware to build it; the code is not rebuilt though, pre-build .deb packages are downloaded and installed instead.

Using rootstock

Simplest and recommended way, just run rootstock to create your rootfs (check ARM/RootStock for more info about rootstock).

Rootstock will automate the creation of a rootfs tarball and exposes some config options to tweak the contents/setup.

If you're running Ubuntu 9.10 (karmic) or later, you just need to install the rootstock package and it will pull the appropriate dependencies.

If you install rootstock manually or if you are running it from a bzr checkout, you will also need:

Please note: rootstock will not automatically give you a kernel package. You will have to include the kernel package you need for your hardware. For instance, for OMAP3 based hardware, you will need to include "--seed linux-image-omap" somewhere in your rootstock command.

To create an armel rootfs tarball of, for instance, xubuntu-desktop:

    sudo rootstock \
        --fqdn myhostname \
        --login ubuntu \
        --password temppwd \
        --imagesize 2G \
        --seed xubuntu-desktop

Here's another example for ubuntu-desktop:

    sudo rootstock \
        --fqdn ubuntu \
        --login ubuntu \
        --password ubuntu \
        --imagesize 3G \
        --seed ubuntu-desktop

Some typical flags when developing headless (connecting over the network):

    --seed build-essential,openssh-server

Note that you should edit /etc/network/interfaces and

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值