RK3288移植Ubuntu 文件系统及升级固件制作

1,  linux下 unpack 解包

 

报错

root@Ubuntu:/opt/rk-linux/mkimg# ./unpack.sh

start to unpack update.img...

********RKImageMaker ver 1.61********

Unpacking image, please wait...

Error:update.img is not exist!

Press any key to quit:

 

 

解包的命令有问题,在linux下不能正常解包

 

 

2,    继续打包.

 

测试在安卓下面运行是可以的:

liupingwei@xdtUbuntu:~/RK3288/rk3288Android5.1$ ./FFTools/mkupdate/mkupdate.sh

PRODUCT_FIREFLY_NAME=Public

TARGET_PRODUCT=rk3288_box

 

Android Firmware Package Tool v1.62

------ PACKAGE ------

Add file: ./package-file

Add file: ./Image/MiniLoaderAll.bin

Add file: ./Image/parameter.txt

Add file: ./Image/misc.img

Add file: ./Image/resource.img

Add file: ./Image/kernel.img

Add file: ./Image/boot.img

Add file: ./Image/recovery.img

Add file: ./Image/system.img

Add CRC...

Make firmware OK!

------ OK ------

********RKImageMaker ver 1.63********

Generating new image, please wait...

Writing head info...

Writing boot file...

Writing firmware...

Generating MD5 data...

MD5 data generated successfully!

New image generated successfully!

 

Making updateimg: rockdev/Image-rk3288_box/Firefly-RK3288_Android5.1.1_Public_181023.img

应该是缺少环境变量配置,所以才会 导致直接执行不通

 

 

 

3, 找到原因, 执行脚本的时候有个字符不匹配:

 

./afptool -pack ./ Image/update.img || pause

./rkImageMaker -RK32 RK3288Loader_uboot_V2.15.01.bin Image/update.img update.img -os_type:androidos || pause

# Ubuntt# ./rkImageMaker -RK32 rk3288_bootloader_v1.00.06.bin Image/update.img update.img -os_type:androidos || pause

 

 

后可生成

./afptool -pack ./ Image/update.img || pause

liupingwei@xdtUbuntu:~/RK3288/rk3288Android5.1/RKTools/linux/Linux_Upgrade_Tool_v1.2/rockdev$ ./rkImageMaker -RK32 rk3288_bootloader_v1.00.06.bin Image/update.img update.img -os_type:androidos || pause

********RKImageMaker ver 1.61********

Generating new image, please wait...

Writing head info...

Writing boot file...

Writing firmware...

Generating MD5 data...

MD5 data generated successfully!

New image generated successfully!

 

改成新的脚本执行:

 

 

root@Ubuntu:/opt/rk-linux/mkimg# ./umkupdate_ubuntu.sh

start to make update.img...

Android Firmware Package Tool v1.0

------ PACKAGE ------

Add file: ./package-file

Add file: ./rk3288_bootloader_v1.00.06.bin

Add file: ./parameter

Add file: ./linux-kernel.img

Add file: ./linux-resource.img

Add file: ./ubuntu1604armhf-rootfs.img

Add file: ./update-script

Add file: ./recover-script

Add CRC...

Make firmware OK!

------ OK ------

********RKImageMaker ver 1.61********

Generating new image, please wait...

Writing head info...

Writing boot file...

Writing firmware...

Generating MD5 data...

MD5 data generated successfully!

New image generated successfully!

Making update.img OK.

Press any key to quit:

 

 

4, 文件系统制作的在显卡部分应该有问题,导致启动卡死在 显卡驱动部分

 

 

 

5, 继续制作文件系统

替换\\192.168.0.102\opt\rk-linux\mkimg 目录下的  ubuntu1604armhf-rootfs.img

 

cd ..

./ch-mount.sh -m linux-rootfs

进入挂载模式

 

3、卸载软件

 

 1)sudo apt-get remove XXXX     #卸载软件(删除软件包)

 

 2)sudo apt-get autoremove XXXX          #自动卸载软件但保留其配置文件

 

 3)sudo apt-get autoremove --purge  XXXX      #自动卸载软件其删除其配置文件

---------------------

 

 

apt-get autoremove --purge    ubuntu-session xubuntu-desktop

 

 

重新安装:

 

root@Ubuntu:/# apt-get install ubuntu-session xubuntu-desktop

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

xubuntu-desktop : Depends: gtk2-engines-pixbuf but it is not going to be installed

                   Depends: xubuntu-artwork but it is not going to be installed

                   Depends: xubuntu-core but it is not going to be installed

                   Depends: xubuntu-default-settings but it is not going to be installed

                   Recommends: brltty-x11 but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

 

 

红色部分是依赖库,需要安装:

apt-get install  gtk2-engines-pixbuf

apt-get install  xubuntu-artwork

apt-get install  xubuntu-core

apt-get install  xubuntu-default-settings

apt-get install  brltty-x11

 

 

 

apt-get install

 

apt install ibgtk2.0-0

apt-get install libgtk2.0-dev

gtk2-engines-pixbuf

The following packages have unmet dependencies:

gtk2-engines-pixbuf : Depends: libgtk2.0-0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed

E: Unable to correct problems, you have held broken packages.

apt-get install

xubuntu-artwork

 

The following packages have unmet dependencies:

xubuntu-artwork : Depends: shimmer-themes but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

apt-get install

 xubuntu-core

 

apt-get install

xubuntu-default-settings

 

apt-get install

 brltty-x11

 

 

root@Ubuntu:/# apt-cache policy libgtk2.0-0

libgtk2.0-0:

  Installed: 2.24.30-1ubuntu1.16.04.2

  Candidate: 2.24.30-1ubuntu1.16.04.2

  Version table:

*** 2.24.30-1ubuntu1.16.04.2 500

        500 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main armhf Packages

        100 /var/lib/dpkg/status

     2.24.30-1ubuntu1 500

        500 http://ports.ubuntu.com/ubuntu-ports xenial/main armhf Packages

root@Ubuntu:/#

 

如何指定安装2.0版本呢?

apt-get autoremove  --purge libgtk2.0-dev

apt-cache policy libgtk2.0-dev

apt-get install libgtk2.0-dev

 

参考:  http://dev.t-firefly.com/thread-12732-1-19.html

 


原因: 需要clean 及重新 update

NOTICE:

apt-get upgrade

apt-get autoclean

apt-get update

 

后:

apt-get install ubuntu-session xubuntu-desktop

正常

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值