• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            攀升·Uranus


            Something Different,Something New
            數據加載中……

            Linux Kernel Image: initialize

            1. 編譯kernel  
                  編譯linux時其實會又很多產物,因為android讓我接觸了linux 內核的一些資料。

            貼最后一段make的Log
            $ make ARCH=arm CROSS_COMPILE=/dev/.....
            ...   < many build steps omitted for clarity>
              LD          vmlinux                                                  Kernel proper,EFL format,最原始的kernel
              SYSMAP      System.map                                 
              OBJCOPY     arch/arm/boot/Image                     去掉 symbols, notes, and comments.
              Kernel:     arch/arm/boot/Image is ready                objcopy to generate a binary file, Image   
              AS          arch/arm/boot/compressed/head.o         ARM-specific startup code generic to ARM processors,與arm相關的一些重要的啟動時要用
              GZIP        arch/arm/boot/compressed/piggy.gz      gzip打包
              AS          arch/arm/boot/compressed/piggy.o        加載piggy.S,initializes the processor,required memory regions
              CC          arch/arm/boot/compressed/misc.o        Routines used for decompressing the kernel image 
              AS          arch/arm/boot/compressed/head-xscale.o   
              AS          arch/arm/boot/compressed/big-endian.o
              LD          arch/arm/boot/compressed/vmlinux         這容易搞亂,這個vmlinux和第一個Kernel proper是不一樣的。
              OBJCOPY     arch/arm/boot/zImage                     Final composite kernel image,loaded by bootload.
              Kernel:     arch/arm/boot/zImage is ready
            boot-strap Loader :misc.o head-xscale.o big-endian.o

            2. Initialization
                Power on-> bootloader ->head-xscale.o(boot-strap )-> head.o(vmlinux)->main.o(kernel)

            3. start_kernel();
               啟動Init()process.init初始化之前注冊的函數,最后釋放資源。內核級別啟動常報的錯就是“No init found.  Try passing init= option to kernel”
            這主要是因為通過run_init_process執行系統級別的/init時失敗,返回。如果成功,該函數不會返回。
            if (execute_command) {
            run_init_process(execute_command);
            printk(KERN_WARNING "Failed to execute %s.  Attempting "
            "defaults...\n", execute_command);
            }
            run_init_process("/sbin/init");
            run_init_process("/etc/init");
            run_init_process("/bin/init");
            run_init_process("/bin/sh");
            panic("No init found.  Try passing init= option to kernel.");

            PS:
            start_kernel(): .../init/main.c 
            Most of the Linux kernel initialization takes place in this routine
            setup_arch(&command_line):  start_kernel() function is the call to setup_arch(), .../arch/arm/kernel/setup.c

            posted on 2009-07-11 17:40 攀升 閱讀(1589) 評論(2)  編輯 收藏 引用 所屬分類: Linux

            評論

            # re: Linux Kernel Image: initialize  回復  更多評論   

            bucuo,收藏一下啦
            2009-07-11 18:40 | 99網上書城

            # re: Linux Kernel Image: initialize  回復  更多評論   

            樓上的不要起哄!
            2009-07-12 23:50 | 小米
            婷婷久久综合九色综合绿巨人| 久久久久久a亚洲欧洲aⅴ| 欧美一级久久久久久久大| 日韩人妻无码一区二区三区久久99| 亚洲成色WWW久久网站| 免费精品99久久国产综合精品| 亚洲国产成人精品女人久久久 | 国产精品99精品久久免费| 久久精品国产一区二区三区日韩| 国产亚洲精久久久久久无码AV| 国产毛片欧美毛片久久久| 久久久久国色AV免费看图片| 国产毛片欧美毛片久久久| 99久久国产亚洲高清观看2024 | 无码人妻少妇久久中文字幕 | 99久久精品国产免看国产一区| 亚洲国产精品一区二区久久| 欧美日韩精品久久久免费观看| 国内精品久久久久| 久久久久久午夜成人影院| 久久婷婷国产剧情内射白浆| 国内精品久久久久久久久| avtt天堂网久久精品| 久久人人添人人爽添人人片牛牛 | 香蕉久久永久视频| 精品久久久久久久久久久久久久久 | 久久精品成人欧美大片| 色偷偷88欧美精品久久久| 狠狠色婷婷综合天天久久丁香| 7777久久久国产精品消防器材| 四虎久久影院| 欧洲国产伦久久久久久久| 久久久久亚洲精品无码网址 | 久久亚洲精品无码AV红樱桃| 久久AV无码精品人妻糸列| 2021最新久久久视精品爱| 欧美精品九九99久久在观看| 一本色综合久久| 综合久久国产九一剧情麻豆| 国产69精品久久久久APP下载| 久久久久久精品免费免费自慰|