查看: 3155|回复: 0

[原创] 【Rico Board】开发环境搭建之内核更新

[复制链接]
  • TA的每日心情
    开心
    2016-9-3 19:24
  • 签到天数: 27 天

    连续签到: 1 天

    [LV.4]偶尔看看III

    发表于 2015-10-23 23:19:44 | 显示全部楼层 |阅读模式
    分享到:
    linux编译好了以后就要考虑如何更新内核了,手册上没有新的很清楚,我把我的方法记录如下,供大家参考。

    1、我们要知道Rico Board内核的存放位置,是在文件系统的boot目录下
    1. root@am437x-evm:/# cd boot
    2. root@am437x-evm:/boot# ls -ln
    3. lrwxrwxrwx    1 0        0               35 Jan  1  2000 am437x-gp-evm.dtb -> devicetree-zImage-am437x-gp-evm.dtb
    4. lrwxrwxrwx    1 0        0               36 Jan  1  2000 am43x-epos-evm.dtb -> devicetree-zImage-am43x-epos-evm.dtb
    5. -rw-r--r--    1 0        0            46472 Jun  9 14:57 devicetree-zImage-am437x-gp-evm.dtb
    6. -rw-r--r--    1 0        0            48203 Jun  9 14:57 devicetree-zImage-am43x-epos-evm.dtb
    7. -rw-r--r--    1 0        0        107299702 Jun  9 14:56 vmlinux-3.12.10-ti2013.12.01
    8. lrwxrwxrwx    1 0        0               27 Jan  1  2000 zImage -> zImage-3.12.10-ti2013.12.01
    9. -rw-r--r--    1 0        0          4119048 Jun  9 14:56 zImage-3.12.10-ti2013.12.01
    复制代码
    2、编译好zImage文件
    1. OBJCOPY arch/arm/boot/Image
    2.   Kernel: arch/arm/boot/Image is ready
    3.   AS      arch/arm/boot/compressed/head.o
    4.   GZIP    arch/arm/boot/compressed/piggy.gzip
    5.   AS      arch/arm/boot/compressed/piggy.gzip.o
    6.   CC      arch/arm/boot/compressed/misc.o
    7.   CC      arch/arm/boot/compressed/decompress.o
    8.   CC      arch/arm/boot/compressed/string.o
    9.   SHIPPED arch/arm/boot/compressed/hyp-stub.S
    10.   AS      arch/arm/boot/compressed/hyp-stub.o
    11.   SHIPPED arch/arm/boot/compressed/fdt_rw.c
    12.   SHIPPED arch/arm/boot/compressed/fdt.h
    13.   SHIPPED arch/arm/boot/compressed/libfdt.h
    14.   SHIPPED arch/arm/boot/compressed/libfdt_internal.h
    15.   CC      arch/arm/boot/compressed/fdt_rw.o
    16.   SHIPPED arch/arm/boot/compressed/fdt_ro.c
    17.   CC      arch/arm/boot/compressed/fdt_ro.o
    18.   SHIPPED arch/arm/boot/compressed/fdt_wip.c
    19.   CC      arch/arm/boot/compressed/fdt_wip.o
    20.   SHIPPED arch/arm/boot/compressed/fdt.c
    21.   CC      arch/arm/boot/compressed/fdt.o
    22.   CC      arch/arm/boot/compressed/atags_to_fdt.o
    23.   SHIPPED arch/arm/boot/compressed/lib1funcs.S
    24.   AS      arch/arm/boot/compressed/lib1funcs.o
    25.   SHIPPED arch/arm/boot/compressed/ashldi3.S
    26.   AS      arch/arm/boot/compressed/ashldi3.o
    27.   LD      arch/arm/boot/compressed/vmlinux
    28.   OBJCOPY arch/arm/boot/zImage
    29.   Kernel: arch/arm/boot/zImage is ready
    30.   DTC     arch/arm/boot/dts/omap2420-h4.dtb
    31.   DTC     arch/arm/boot/dts/omap3430-sdp.dtb
    32.   DTC     arch/arm/boot/dts/omap3-beagle.dtb
    33.   DTC     arch/arm/boot/dts/omap3-devkit8000.dtb
    34.   DTC     arch/arm/boot/dts/omap3-beagle-xm.dtb
    35.   DTC     arch/arm/boot/dts/omap3-evm.dtb
    36.   DTC     arch/arm/boot/dts/omap3-tobi.dtb
    37.   DTC     arch/arm/boot/dts/omap3-igep0020.dtb
    38.   DTC     arch/arm/boot/dts/omap3-igep0030.dtb
    39.   DTC     arch/arm/boot/dts/omap4-panda.dtb
    40.   DTC     arch/arm/boot/dts/omap4-panda-a4.dtb
    41.   DTC     arch/arm/boot/dts/omap4-panda-es.dtb
    42.   DTC     arch/arm/boot/dts/omap4-var-som.dtb
    43.   DTC     arch/arm/boot/dts/omap4-sdp.dtb
    44.   DTC     arch/arm/boot/dts/omap4-sdp-es23plus.dtb
    45.   DTC     arch/arm/boot/dts/omap5-uevm.dtb
    46.   DTC     arch/arm/boot/dts/am335x-evm.dtb
    47.   DTC     arch/arm/boot/dts/am335x-evmsk.dtb
    48.   DTC     arch/arm/boot/dts/am335x-bone.dtb
    49.   DTC     arch/arm/boot/dts/am335x-boneblack.dtb
    50.   DTC     arch/arm/boot/dts/am335x-evm-profile1.dtb
    51.   DTC     arch/arm/boot/dts/am335x-evm-profile2.dtb
    52.   DTC     arch/arm/boot/dts/am3517-evm.dtb
    53.   DTC     arch/arm/boot/dts/am3517_mt_ventoux.dtb
    54.   DTC     arch/arm/boot/dts/am43x-epos-evm.dtb
    55.   DTC     arch/arm/boot/dts/am437x-gp-evm.dtb
    56.   DTC     arch/arm/boot/dts/dra7-evm.dtb
    57.   DTC     arch/arm/boot/dts/myir_ricoboard.dtb
    复制代码
    3、进入boot目录并删除点zImage文件
    1. root@am437x-evm:/boot# rm zImage
    2. root@am437x-evm:/boot# ls
    3. am437x-gp-evm.dtb                     devicetree-zImage-am43x-epos-evm.dtb
    4. am43x-epos-evm.dtb                    vmlinux-3.12.10-ti2013.12.01
    5. devicetree-zImage-am437x-gp-evm.dtb   zImage-3.12.10-ti2013.12.01
    复制代码
    4、通过scp命令把编译好的zImage传到boot目录
    1. leo@chen:~/rico-board/linux-3.12.10-ti2013.12.01$ scp arch/arm/boot/zImage root@192.168.1.25:/boot
    2. root@192.168.1.25's password:
    3. zImage                                        100% 4028KB   3.9MB/s   00:01
    复制代码
    5、查看一下boot目录下是不是有了zImage文件
    1. root@am437x-evm:/boot# ls
    2. am437x-gp-evm.dtb                     vmlinux-3.12.10-ti2013.12.01
    3. am43x-epos-evm.dtb                    zImage
    4. devicetree-zImage-am437x-gp-evm.dtb   zImage-3.12.10-ti2013.12.01
    5. devicetree-zImage-am43x-epos-evm.dtb
    复制代码
    6、JP1断开,JP2短接,选择从SD卡启动
    7、上电重启

    1. Booting Linux on physical CPU 0x0
    2. Linux version 3.12.10 (leo@chen) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #1 Fri Oct 23 22:54:45 CST 2015
    复制代码
    可以看出Linux内核更新完成



    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条



    手机版|小黑屋|与非网

    GMT+8, 2025-1-12 06:20 , Processed in 0.122310 second(s), 15 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.