499563980 发表于 2016-11-23 18:24:54

为什么按照文档编译出来的boot.img ,升级进去,HDMI没有声音输出呢?
kernel log中HDMI的声卡是注册成功的。
[    3.575240] rockchip-drm display-subsystem.4: rk drm load success
[    3.581643] platform ff500000.usb: Driver ehci-platform requests probe deferral
[    3.589623] rockchip-hdmi-audio hdmi_audio.6: dw-hdmi-hifi <-> ff890000.i2s mapping ok
[    3.597665] cpu dai set fmt 16385
[    3.601020] set cpu dai to master mode
[    3.605150] input: RockchipHDMI HDMI Jack as /devices/hdmi_audio.6/sound/card0/input2
[    3.613253] rockchip-hdmi-audio hdmi_audio.6: hdmi audio init success.
[    3.619949] platform ff500000.usb: Driver ehci-platform requests probe deferral
[    3.627914] input: gpio-keys.12 as /devices/gpio-keys.12/input/input3
[    3.634525] platform ff500000.usb: Driver ehci-platform requests probe deferral
[    3.634582] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    3.641797] ALSA device list:
[    3.641804]   #0: RockchipHDMI
[    3.654923] Freeing unused kernel memory: 504K (c0d00000 - c0d7e000)
Loading, please wait...
[    3.676073] mmc0: BKOPS_EN bit is not set
[    3.682384] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
[    3.693185] udevd: starting version 175

我升级Firefly-rk3288_Ubuntu_1604_2016_10261641_NO_VGA_Beta.img这一版,HDMI就有声音,是不是https://github.com/T-Firefly/firefly-3.14-kernel这个版本的HDMI声音还没调试好?

lengji22 发表于 2016-11-26 16:22:26

exbot@ubuntu:~/UbuntuDev/firefly-3.14-kernel-1$ make -j8 firefly-rk3288.img
Makefile:634: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
./../toolchain/arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../toolchain/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK   include/config/kernel.release
CHK   include/generated/uapi/linux/version.h
CC      scripts/mod/empty.o
HOSTCCscripts/kallsyms
HOSTCCscripts/conmakehash
HOSTCCscripts/recordmcount
CC      scripts/mod/devicetable-offsets.s
./../toolchain/arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../toolchain/arm-eabi-4.6/bin/arm-eabi-gcc:   HOSTCCscripts/sortextable
CHK   include/generated/utsrelease.h
Syntax error: "(" unexpected
make: *** Error 2
make: *** Waiting for unfinished jobs....
./../toolchain/arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../toolchain/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make: *** Error 2
make: *** Error 2
make: *** Waiting for unfinished jobs....
HOSTCCscripts/bin2c
make: `include/generated/mach-types.h' is up to date.
CC      kernel/bounds.s
./../toolchain/arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../toolchain/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make: *** Error 2
make: *** Error 2
make: *** Waiting for unfinished jobs....
make: *** Error 2

求解答

lengji22 发表于 2016-11-26 16:26:09

lengji22 发表于 2016-11-26 16:22
exbot@ubuntu:~/UbuntuDev/firefly-3.14-kernel-1$ make -j8 firefly-rk3288.img
Makefile:634: Cannot us ...

按照教程做的

lengji22 发表于 2016-11-28 12:36:40

大神,按照上面的步骤,出现:
exbot@ubuntu:~/UbuntuDev/toolchain/firefly-3.14-kernel$ export ARCH=arm
exbot@ubuntu:~/UbuntuDev/toolchain/firefly-3.14-kernel$ export CROSS_COMPILE=./../arm-eabi-4.6/bin/arm-eabi-
exbot@ubuntu:~/UbuntuDev/toolchain/firefly-3.14-kernel$ make firefly-rk3288_defconfig
#
# configuration written to .config
#
exbot@ubuntu:~/UbuntuDev/toolchain/firefly-3.14-kernel$ make -j8 firefly-rk3288.img
Makefile:634: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
./../arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
Makefile:634: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
./../arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK   include/config/kernel.release
CHK   include/generated/uapi/linux/version.h
HOSTCCscripts/kallsyms
CC      scripts/mod/empty.o
CC      scripts/mod/devicetable-offsets.s
HOSTCCscripts/conmakehash
HOSTCCscripts/recordmcount
./../arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
./../arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../arm-eabi-4.6/bin/arm-eabi-gcc: make: *** Error 2
make: *** Waiting for unfinished jobs....
Syntax error: "(" unexpected
make: *** Error 2
make: *** Error 2
make: *** Waiting for unfinished jobs....
HOSTCCscripts/sortextable
CHK   include/generated/utsrelease.h
make: `include/generated/mach-types.h' is up to date.
CC      kernel/bounds.s
./../arm-eabi-4.6/bin/arm-eabi-gcc: 1: ./../arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
make: *** Error 2
make: *** Error 2
make: *** Waiting for unfinished jobs....
make: *** Error 2
exbot@ubuntu:~/UbuntuDev/toolchain/firefly-3.14-kernel$
不知道原因,,,,,求助

CraftHeart 发表于 2016-11-30 15:25:04

本帖最后由 CraftHeart 于 2016-11-30 15:26 编辑

我前面的步骤都能正常通过,求解为什么在mkkrnlimg 时报错;mkkrnlimg command not

brian1611 发表于 2016-12-12 12:47:43

老大, 問一問幾個常識性問題
我在WIKI看到內核跟主線內核, 區別在哪?
另外, 我手上的板本身是在跑3.10.0 ubuntu 14.04, 想把它的內核升級為4.4, 應該看哪幾個教學?

peak9527 发表于 2016-12-12 16:48:22

https://github.com/T-Firefly/firefly-3.14-kernel
该源码对应固件那个版本的,4.4还是5.1的,为为什么的还有的版本是5.0呢?

rocksing 发表于 2017-1-2 21:41:20

make -j4 zImage 成功。
接下来make firefly-rk3288.dtb失败,请问什么原因

edm@ubuntu:~/UbuntuDev/firefly-3.14-kernel-master$ make firefly-rk3288.dtb
DTC   arch/arm/boot/dts/firefly-rk3288.dtb
arch/arm/boot/dts/firefly-rk3288.dts:14:46: fatal error: dt-bindings/clock/rockchip,rk808.h: No such file or directory
compilation terminated.
make: *** Error 1
make: *** Error 2

iamlook 发表于 2017-1-4 15:45:35

版主大人, 这个内核menuconfig里Virtualization项是空的...   如果想要做虚拟化, 装KVM的话怎么弄呢?

遗忘的小石头 发表于 2017-2-16 12:24:24

本帖最后由 遗忘的小石头 于 2017-2-16 13:00 编辑

rocksing 发表于 2017-1-2 21:41
make -j4 zImage 成功。
接下来make firefly-rk3288.dtb失败,请问什么原因


这个问题解决了吗?我也遇到了和你一样的问题?根据错误提示,说是缺少了rockchip,rk808.h这个库文件,但是我按照路径查找,能找到这个文件啊。


页: 1 2 3 4 5 [6] 7 8 9 10 11 12
查看完整版本: Firefly Ubuntu开发入门之(1)自已编译内核