主题 : 移植ubuntu core到nanopi2 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 118058
精华: 0
发帖: 14
金钱: 70 两
威望: 14 点
贡献值: 0 点
综合积分: 28 分
注册时间: 2015-08-08
最后登录: 2016-02-28
楼主  发表于: 2016-01-30 13:13

 移植ubuntu core到nanopi2

1、下载ubuntu core文件系统:http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/
我下载的是12.04.4版本(ubuntu-core-12.04.4-core-armhf.tar.gz  ):记得一定是armhf!!!


2、
    插入sd卡
    删除 sd卡上rootfs下所有文件、文件夹,
    复制下载好的ubuntu core文件系统到sd卡rootfs分区
    并解压到sd卡roofs分区。

3、在 /etc/init目录下增加tty0.conf

内容如下:
# tty0 - getty                                                                 
#                                                                              
# This service maintains a getty on tty1 from the point the system is          
# started until it is shut down again.                                         
                                                                               
start on stopped rc RUNLEVEL=[2345] and (                                      
            not-container or                                                   
            container CONTAINER=lxc or                                         
            container CONTAINER=lxc-libvirt)                                   
                                                                               
stop on runlevel [!2345]                                                       
                                                                               
respawn                                                                        
exec /sbin/getty -8 115200 ttyAMA0 -L

4、修改 /etc/shadow root 字段的密码(可以直接拷贝主机下的密码)。

ok大功告成。

此方法前提是sd卡已经刷了debian镜像。


  
[ 此帖被948413534在2016-01-30 13:18重新编辑 ]
级别: 新手上路
UID: 63851
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
贡献值: 0 点
综合积分: 6 分
注册时间: 2012-02-25
最后登录: 2017-09-13
1楼  发表于: 2017-08-10 09:37
请问这个ubuntu core rootfs可以用在mini2440上面吗?怎么移植?