readsa 发表于 2016-9-24 19:50:31

牛头 发表于 2016-9-24 17:22
确实是有问题存在,请更新到最新代码,问题已经解决。

哎哟word妈啊,可算解决了。这可卡了我一个初学者快一个星期的时间了。。。{:4_178:}

牛头 发表于 2016-9-25 22:25:31

readsa 发表于 2016-9-24 19:50
哎哟word妈啊,可算解决了。这可卡了我一个初学者快一个星期的时间了。。。

{:4_177:}我写教程时github代码还没更新,没想到在中间的时间更新了个有问题的代码。

dalton.lai 发表于 2016-9-26 08:34:16

本帖最后由 dalton.lai 于 2016-9-26 13:19 编辑

Ha, thanks a lot for your great help.
It can compile successfully, I'll test it on the board.
{:4_175:}
Thanks

here comes the test result as below:

1. with ubuntu 14.04 rootfs, successfully boot into system with wifi work well
2. with ubuntu 16.04 rootfs, boot into rootfs with below hang-up message:
    brcmfmac: brcmf_p2p_create_p2pdev: timeout occurred

I have no idea if this is driver revision issue, so I check the driver folder, /drivers/net.
There are totally four wifi drivers:
wireless
wireless-3.8
wireless-3.16
wireless-3.18

In kernel makefile, we have this "export WIFIVERSION=-3.8"
In /net makefile, we have "obj-$(CONFIG_WLAN) += wireless$(WIFIVERSION)/"
In /drivers/net/wireless-3.8/brcm80211/brcmfmac, we have:
ccflags-y += \
    -Idrivers/net/wireless-3.8/brcm80211/brcmfmac    \
    -Idrivers/net/wireless-3.8/brcm80211/include

so, the question is: should we apply wireless driver 3.16 or 3.18 (or other one) for ubuntu 16.04 rootfs?
Thanks a lot.

readsa 发表于 2016-9-26 15:00:29

牛头 发表于 2016-9-25 22:25
我写教程时github代码还没更新,没想到在中间的时间更新了个有问题的代码。
Some problems still exist...
It seems you have not added the new files into a file list.So if you run 'make clean', 4339.bin will be deleted and needs to be added again.

dalton.lai 发表于 2016-10-10 10:38:47

hi 牛头,

I have test this compilation again, and found one more question.
There are 5 partitions in old firmware, and dtb file is concatenated into resource.img.
But there are only three partitions in new firmware, and dtb file is concatenated into zImage.

Here comes the make file in detail:
kernel.img: zImage
        $(Q)$(srctree)/mkkrnlimg $(objtree)/arch/arm/boot/zImage $(objtree)/kernel.img >/dev/null
        @echo 'Image:kernel.img is ready'

%_kernel.img: %.dtb zImage
        $(Q)cat $(objtree)/arch/arm/boot/zImage $(objtree)/arch/arm/boot/dts/$*.dtb > $(objtree)/zImage-dtb && \
        $(srctree)/mkkrnlimg $(objtree)/zImage-dtb $(objtree)/kernel.img >/dev/null && \
        rm -f $(objtree)/zImage-dtb
        @echo 'Image:kernel.img (with $*.dtb) is ready'

LOGO := $(notdir $(wildcard $(srctree)/logo.bmp))
%.img: %.dtb kernel.img $(LOGO)
        $(Q)$(srctree)/resource_tool $(objtree)/arch/arm/boot/dts/$*.dtb $(LOGO)
        @echo 'Image:resource.img (with $*.dtb $(LOGO)) is ready'

I have try to enable dtb in zImage by change below kernel options:
Boot options => Build a concatenated zImage/dtb by default
Boot options => Use appended device tree blob to zImage (EXPERIMENTAL)

In your description, we have two way to make our kernel.img:
1. dtb file in zImage
make -j4 zImage
make firefly-rk3288.dtb
cat arch/arm/boot/zImage arch/arm/boot/dts/firefly-rk3288.dtb > zImage-dtb
mkkrnlimg -a zImage-dtb kernel.img

ERROR messages:
mkkrnlimg V20120220
cmd:-a zImage-dtb
Makimg kernel Image: zImage-dtb for MID!
input open NG !

2. dtb file in resource.img
make -j8 firefly-rk3288.img

So, the question need your help is:
How should I do to update the kernel in 3 partitions firmware?
1. how to enable dtb with zImage in kernel options?
2. how to fix the issue with mkkrnlimg?

Thanks a lot.

dreamsong2046 发表于 2016-10-12 22:27:06

请问能直接编译android sdk里的linux内核来运行吗

Hailong 发表于 2016-10-19 15:10:32

readsa 发表于 2016-9-20 23:48
我把Android4.4的sdk的kernel抽出来编译了一下,这次没有问题了,看来是官方给的这个内核有问题

你的怎么解决的

yanbib 发表于 2016-11-2 16:11:25

执行make -j8 firefly-rk3288.img的时候 就出现错误 不能生成kernel.img
/home/yanbib/Documents/UbuntuDev/firefly-3.14-kernel-master/arch/arm/Makefile:356: recipe for target 'kernel.img' failed
make: *** Error 127

talugirl 发表于 2016-11-22 10:15:35

用了最新版的,但还是没有编译出zImage。firefly-3.14-kernel-8fc3d070b5765b55dbb93067d1ef7f7fba04dbd5。我用的是linux系统,ubuntu14.04.

talugirl 发表于 2016-11-22 16:45:36

运行到最后一步的时候,出现cp: cannot stat module.order.请问博主这是什么问题。
页: 1 2 3 4 [5] 6 7 8 9 10 11 12
查看完整版本: Firefly Ubuntu开发入门之(1)自已编译内核