汗Ing
万能的Google告诉我:ramdisk.img 是android系统的根文件系统,系统内核会加载它
http://blog.csdn.net/ruixj/archive/2010/05/27/5627681.aspx
不过,谁能告诉我系统内核(zimage)是根据哪些信息来找到ramdisk.img的位置及大小的?

解决方案 »

  1.   

    thank you all the same
      

  2.   

    哎呀,Baidu说了一段内容如下:
    ramdisk.img is a small partition image that is mounted read-only by the 
    kernel at boot time. It only contains /init and a few config files. It is 
    used to start init which will mount the rest of the system images properly 
    and run the init procedure. A Ramdisk is a standard Linux feature.system.img is a partition image that will be mounted as / and thus contains 
    all system binaries 
    userdata.img is a partition image that can be mounted as /data and thus 
    contains all application-specific and user-specific data.The build system generates these files, which can later be flashed to a real 
    device, however the emulator uses them in a different way:   - system.img is copied into a temporary file, which is used by the 
       emulator session. So any change you make to / as root in the emulator are 
       lost when the program exits   - userdata.img is only used when you use -wipe-data. Instead, it uses 
       ~/.android/userdata-qemu.img (on Unix) as the persistent /data partition 
       image. Using -wipe-data simply copes the content of userdata.img into 
       userdata-qemu.imgThe main idea being that the emulator should not modify system.img and 
    userdata.img since they were generated as device images. However whether a 
    given system.img/userdata.img set of images will run on a real device 
    properly depends on how it was generated. For example I doubt that the ones 
    that come with the SDK would. ramdisk.img is gziped cpio archive. ramdisk.img is a small partition image that is mounted read-only by the kernel at boot time. It only contains /init and a few config files. It is used to start init which will mount the rest of the system images properly and run the init procedure. A Ramdisk is a standard Linux feature. It is made just for the Android and do special things to start up the Android system. 
    system.img is a partition image that will be mounted as / and thus contains all system binaries. 
    userdata.img is a partition image that can be mounted as /data and thus contains all application-specific and user-specific data 
      

  3.   

    奶奶的,研究了好几天linux kernel和u-boot的代码终于搞清楚了,终于从代码层面找到了linux kernel加载并运行android image的依据。
    大致过程是这样:
    linux中先加载跟文件系统-->初始化所有的driver-->运行所有的init进程包括android得出init函数,这个也就是文档中描述的android的第一个进程init进程
    --------------------------------
    JIE TIE
      

  4.   

    放在sdk中images文件夹中可以不?
      

  5.   

    我现在也正在做RAMDISK.IMG编译ADROID内核总是出错。正在找答案
      

  6.   

    http://blog.csdn.net/ruixj/archive/2010/05/27/5627681.aspx
    这个帖子讲的