orbbec-wmy 发表于 2016-12-14 17:39:14

用androi的内核启动ubuntu文件系统

如题,谁有尝试过用android目录树中的kernel 代码编译出来的 zImage打包成的linux-boot.img 去启动ubuntu文件系统有成功的吗

isle 发表于 2016-12-15 08:59:46

这个很多人都做成功了的,官方很多固件都是这样制作的。

orbbec-wmy 发表于 2016-12-15 15:03:06

isle 发表于 2016-12-15 08:59
这个很多人都做成功了的,官方很多固件都是这样制作的。

那再请教下,android&ubuntu双系统的 android代码github地址能提供下吗,我这边试过android的内核都不行,引导不起来ubuntu文件系统一直进入initramfs 终端,找不到linuxroot。

isle 发表于 2016-12-16 09:04:57

代码都在 :https://github.com/T-Firefly
找不到linuxroot 看下你的parameter

orbbec-wmy 发表于 2016-12-16 14:58:04

isle 发表于 2016-12-16 09:04
代码都在 :https://github.com/T-Firefly
找不到linuxroot 看下你的parameter

是这样的,我先把整包ok的ubuntu固件烧进去,系统正常起来,现在需要换成android的kernel,我只烧了linux-boot.img 系统起来就说找不到linuxroot,提示信息如下:
[    5.794135] iep dpi mode inactivity
[    8.746157] spk_ctrl_fun:: spk status = 1
chvt: can't open console
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)
chvt: can't open console
ALERT!/dev/block/mtd/by-name/linuxroot does not exist.Dropping to a shell!
Couldn't get a file descriptor referring to the console
/scripts/panic/console_setup: line 77: can't create /dev/tty1: No such device or address
/scripts/panic/console_setup: line 1: can't open /dev/tty1: No such device or address
/scripts/panic/console_setup: line 1: can't create /dev/tty2: No such device or address
/scripts/panic/console_setup: line 1: can't open /dev/tty2: No such device or address
/scripts/panic/console_setup: line 1: can't create /dev/tty3: No such device or address
/scripts/panic/console_setup: line 1: can't open /dev/tty3: No such device or address
/scripts/panic/console_setup: line 1: can't create /dev/tty4: No such device or address
/scripts/panic/console_setup: line 1: can't open /dev/tty4: No such device or address
/scripts/panic/console_setup: line 1: can't create /dev/tty5: No such device or address
/scripts/panic/console_setup: line 1: can't open /dev/tty5: No such device or address
/scripts/panic/console_setup: line 1: can't create /dev/tty6: No such device or address
/scripts/panic/console_setup: line 1: can't open /dev/tty6: No such device or address
/bin/sh: can't access tty; job control turned off
(initramfs) DDR Version 1.00 20141007

此时我再次烧入ok的kernel,从固件中解压出来的kernel,系统能正常起来。我一直没有碰parameter文件,应该是正确的。

我的观点是目前android的kernel无法正常的将initrd 文件系统引导起来,无法云心initrd系统下的init脚本,导致不能挂在真正的根文件系统。不知当初你们从android中抠出来的kernel有没有做什么修改,或者需要一些注意的地方?

isle 发表于 2016-12-19 10:13:50

/dev/block/mtd/by-name/linuxroot does not exist.

orbbec-wmy 发表于 2016-12-19 16:07:20

isle 发表于 2016-12-19 10:13
/dev/block/mtd/by-name/linuxroot does not exist.

但是烧单独的内核就可以啊,文件系统一直都在,只是initrd这个引导文件系统没有把根文件系统挂载上,导致说找不到,至于为什么挂载不上,目前只有kernel的zImage不一样

isle 发表于 2016-12-20 09:32:17

initrd的问题,或者你修改paramter

scrin 发表于 2016-12-20 14:55:57

isle 发表于 2016-12-20 09:32
initrd的问题,或者你修改paramter

我这里也是烧了内核后挂载不了emmc里的根文件系统,但可以挂载u盘里的根文件系统,应该不是parameter的问题吧

scrin 发表于 2016-12-20 15:45:14

使用网盘那个安卓5.1的内核,不更新的情况下找不到emmc,感觉是内核emmc驱动有问题,更新后可以找到emmc,可以挂载了,不过我用的fireprime出现了其他跟这个无关的问题。lz可以更新一下内核试试,另外resource.img应该也要烧
页: [1] 2
查看完整版本: 用androi的内核启动ubuntu文件系统