Firefly开源社区

12345... 7
发表新贴

RK3288使用kernel4.4+ubuntu16.04,纯linux下升级包制作

264

积分

6

威望

5

贡献

技术达人

Rank: 2

积分
264
QQ
发表于 2017-6-21 16:21:37     
本帖最后由 luwanjia 于 2018-10-24 21:50 编辑

感谢各位亲的厚爱,很抱歉,本人从今年一月份就没有从事rk3288的开发了,所以本帖一直没有更新维护,但是之前开发的资料和源码一直保留在Github上面。
相关内容请直接去Github上获取,链接:https://github.com/luwanjia/rockchip-dev
rockchip-dev/RK3288_Technical_Reference_Manual.md 是本人自己总结和验证过的手册,大家可以参考。
目录rockchip-dev/linux-rootfs/下面的01~07是完整的步骤,初学者可以一步一步的来。


This manual is for the development of linux on RK3288 board. My operating system is debian8.7 x64.

1. Set develop environment
    We need arm-eabi-gcc to compile the kernel, arm-eabi-4.6 and arm-eabi-4.8 are available in AndroidSDK_5.1, you can find it in path "AndroidSDK_5.1/prebuilts/gcc/linux-x86/arm".
    Here I use arm-eabi-4.8, you can download it directly here. (链接: https://pan.baidu.com/s/1nvSfSPr 密码: 4ssx)

2. Build kernel
    1> Download source code of kernel4.4 for linux.
        $git clone https://github.com/luwanjia/linux-kernel

    2> Change to right branch
        $git checkout firefly

    3> Config whith right configure file.
        $export ARCH=arm
        $export CROSS_COMPILE=<path to arm-eabi-gcc root dir>/bin/arm-eabi-
        $make rockchip_linux_defconfig
        $make rk3288-firefly.img

    4> If there is no errors, the last print log is:
          OBJCOPY arch/arm/boot/zImage
          Kernel: arch/arm/boot/zImage is ready
          Image:  kernel.img is ready
        Pack to resource.img successed!
          Image:  resource.img (with rk3288-firefly.dtb logo.bmp) is ready

3. Build initrd
    1> Download source code
        $git clone https://github.com/TeeFirefly/initrd.git

    2> Change to branch for-kernel_4.4
        $git checkout for-kernel_4.4

    3> Build in parent directory of initrd root directory.
        $make -C initrd

    4> If there is no errors, initrd.img will be generated.

4. Pack zImage and initrd.img into the linux-root.img
    $mkbootimg --kernel kernel_4.4/arch/arm/boot/zImage --ramdisk initrd.img --second kernel_4.4/resource.img -o linux-boot.img

  Now, linux-boot.img is OK, it will be used in step6.

5. Make the rootfs of ubuntu16.04
    1> First, please download the minimum core of ubuntu
        $wget -c http://cdimage.ubuntu.com/ubuntu ... 4-core-armhf.tar.gz

    2> unpack
        $mkdir linux-rootfs
        $sudo tar -xpf ubuntu-base-16.04-core-armhf.tar.gz -C linux-rootfs

    3> Install the simulator to run the root file system
        $sudo apt-get install qemu-user-static
        $sudo cp /usr/bin/qemu-arm-static linux-rootfs/usr/bin/

    4> Copy the local host DNS configure to rootfs
        $sudo cp -b /etc/resolv.conf  linux-rootfs/etc/resolv.conf

    5> Add additional sources of port ubuntu, append follow strings to linux-rootfs/etc/apt/sources.list as administrator
        deb http://ports.ubuntu.com/ubuntu-ports/ xenial main universe
        deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial main universe

    6> Use a mount script file to mount the core file system. Please see file ch-mount.sh, and add executable permissions.
        ch-mount.sh Link: ch-mount.sh.tar.gz (473 Bytes, 下载次数: 205)
回复

使用道具 举报

16

积分

0

威望

0

贡献

游客

积分
16
发表于 2017-6-22 10:12:32     
好帖,要是早几天发就更好了,那样我就能早点走通了。
回复

使用道具 举报

264

积分

6

威望

5

贡献

技术达人

Rank: 2

积分
264
QQ
发表于 2017-6-22 16:54:04     
ctb2016 发表于 2017-6-22 10:12
好帖,要是早几天发就更好了,那样我就能早点走通了。

我也没有搞多久,深知其中的无奈,希望能帮到你。
回复

使用道具 举报

221

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
221
QQ
发表于 2017-6-23 14:25:00     
luwanjia 发表于 2017-6-22 16:54
我也没有搞多久,深知其中的无奈,希望能帮到你。

绝世好贴,小白的福音,楼主辛苦了,
回复

使用道具 举报

104

积分

0

威望

0

贡献

技术小白

积分
104
发表于 2017-6-26 14:14:42     
請問 RK3288 Reload 能用嗎?
謝謝
回复

使用道具 举报

264

积分

6

威望

5

贡献

技术达人

Rank: 2

积分
264
QQ
发表于 2017-6-26 19:14:38     
evanlitw 发表于 2017-6-26 14:14
請問 RK3288 Reload 能用嗎?
謝謝

reload开发板我没有,不清楚是否能用,但我想道理都是一样,你可以参考。
回复

使用道具 举报

104

积分

0

威望

0

贡献

技术小白

积分
104
发表于 2017-6-27 08:15:09     
請問一下 unpack.sh 這在哪裡呢?
謝謝
回复

使用道具 举报

10

积分

0

威望

0

贡献

游客

积分
10
发表于 2017-6-27 09:23:26     
evanlitw 发表于 2017-6-27 08:15
請問一下 unpack.sh 這在哪裡呢?
謝謝

most of the tools can be found on Github
https://github.com/rock64-androi ... ck_Firmware/rockdev
and you can download the fold with this website:
https://minhaskamal.github.io/DownGit/#/home
回复

使用道具 举报

104

积分

0

威望

0

贡献

技术小白

积分
104
发表于 2017-6-28 12:54:45     
謝謝
另外有個問題
我要燒寫update.img的時候
出現
Check Chip Fail
這是什麼原因呢?
我是使用RK3288 reload
回复

使用道具 举报

116

积分

0

威望

0

贡献

技术小白

积分
116
发表于 2017-7-25 13:48:31     
本站最好的帖子,实用性比超牛头,建议版主加精
回复

使用道具 举报

返回列表
12345... 7
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表