【求助】制作的固件update.img,启动后处于initramfs, 无法挂载linuxroot文件系统

请问下,自己制作的固件,启动后,出现无法识别/dev/block/mtd/by-name/linuxroot,
尝试修改paramter的root=/dev/mmcblk0p5 也不可以,请问是哪里出现问题了呢?

Begin: Running /scripts/init-premount … ls: /sys/block/mmcblk0/mmcblk0p*/volname: No such file or directory
done.
Begin: Mounting root file system … Begin: Running /scripts/local-top … done.
[ 8.837196] [otg id chg] last id -1 current id 1
Gave up waiting for root device. Common problems:

  • Boot args (cat /proc/cmdline)
    • Check rootdelay= (did the system wait long enough?)
    • Check root= (did the system wait for the right device?)
  • Missing modules (cat /proc/modules; ls /dev)
    ALERT! /dev/block/mtd/by-name/linuxroot does not exist. Dropping to a shell!
    /bin/sh: can’t access tty; job control turned off
    (initramfs)
    (initramfs)
    (initramfs)

内核代码用哪套?

zhansb 发表于 2016-5-31 11:37
内核代码用哪套?

版主您好! 我用 andorid 5.1 里面的内核,之前试过更新,但是没更新成功,所以不是最新的内核

zhansb 发表于 2016-5-31 11:37
内核代码用哪套?

这个跟内核有关系?用的5.1的android源码下,会出现这种问题?看版本为3.10.79版本。

firefly有的内核版本有做volname接口的支持,5.1那套没有

可以移植android4.4上kernel的补丁:Kernel->Partition: add volname attribute for easy access to eMMC flash partitions

另外一种可以看mac-l1的补丁,原生的kernel可以直接支持:
https://github.com/T-Firefly/initrd/commit/0445f96b3bfae9b7dc029417dd18d0f07db06a60

可以移植android4.4上kernel的补丁:Kernel->Partition: add volname attribute for easy access to eMMC flash partitions

请问版主,,这个补丁在哪? 我在kernel里面没有找到

zhansb 发表于 2016-5-31 14:45
可以移植android4.4上kernel的补丁:Kernel->Partition: add volname attribute for easy access to eMMC f …

请问版主,这个补丁在哪里可以找到呢?

搜一下bitbucket android4.4上的提交