Firefly开源社区

打印 上一主题 下一主题

Firefly Ubuntu开发入门之(1)自已编译内核

25

积分

0

威望

0

贡献

技术小白

积分
25
发表于 2016-11-23 18:24:54        只看该作者  51#
为什么按照文档编译出来的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[120]: starting version 175

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

使用道具 举报

56

积分

0

威望

0

贡献

技术小白

积分
56
发表于 2016-11-26 16:22:26        只看该作者  52#
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
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/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:   HOSTCC  scripts/sortextable
  CHK     include/generated/utsrelease.h
Syntax error: "(" unexpected
make[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** 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[2]: *** [scripts/mod/devicetable-offsets.s] Error 2
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  HOSTCC  scripts/bin2c
make[1]: `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[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2

求解答
回复

使用道具 举报

56

积分

0

威望

0

贡献

技术小白

积分
56
发表于 2016-11-26 16:26:09        只看该作者  53#
lengji22 发表于 2016-11-26 16:22
exbot@ubuntu:~/UbuntuDev/firefly-3.14-kernel-1$ make -j8 firefly-rk3288.img
Makefile:634: Cannot us ...

按照教程做的
回复

使用道具 举报

56

积分

0

威望

0

贡献

技术小白

积分
56
发表于 2016-11-28 12:36:40        只看该作者  54#
大神,按照上面的步骤,出现:
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
  HOSTCC  scripts/kallsyms
  CC      scripts/mod/empty.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/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[2]: *** [scripts/mod/empty.o] Error 2
make[2]: *** Waiting for unfinished jobs....
Syntax error: "(" unexpected
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 2
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
  HOSTCC  scripts/sortextable
  CHK     include/generated/utsrelease.h
make[1]: `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[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
make: *** [scripts] Error 2
exbot@ubuntu:~/UbuntuDev/toolchain/firefly-3.14-kernel$
不知道原因,,,,,求助
回复

使用道具 举报

60

积分

0

威望

0

贡献

游客

积分
60
发表于 2016-11-30 15:25:04        只看该作者  55#
本帖最后由 CraftHeart 于 2016-11-30 15:26 编辑

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

捕获.PNG (114.29 KB, 下载次数: 72)

捕获.PNG
回复

使用道具 举报

65

积分

0

威望

0

贡献

技术小白

积分
65
发表于 2016-12-12 12:47:43        只看该作者  56#
老大, 問一問幾個常識性問題
我在WIKI看到內核跟主線內核, 區別在哪?
另外, 我手上的板本身是在跑3.10.0 ubuntu 14.04, 想把它的內核升級為4.4, 應該看哪幾個教學?
回复

使用道具 举报

221

积分

0

威望

0

贡献

技术达人

Rank: 2

积分
221
QQ
发表于 2016-12-12 16:48:22        只看该作者  57#
https://github.com/T-Firefly/firefly-3.14-kernel
该源码对应固件那个版本的,4.4还是5.1的,为为什么的还有的版本是5.0呢?
回复

使用道具 举报

16

积分

0

威望

0

贡献

游客

积分
16
发表于 2017-1-2 21:41:20        只看该作者  58#
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[1]: *** [arch/arm/boot/dts/firefly-rk3288.dtb] Error 1
make: *** [firefly-rk3288.dtb] Error 2

回复

使用道具 举报

39

积分

0

威望

0

贡献

游客

积分
39
发表于 2017-1-4 15:45:35        只看该作者  59#
版主大人, 这个内核menuconfig里Virtualization项是空的...   如果想要做虚拟化, 装KVM的话怎么弄呢?
回复

使用道具 举报

发表于 2017-2-16 12:24:24        只看该作者  60#
本帖最后由 遗忘的小石头 于 2017-2-16 13:00 编辑
rocksing 发表于 2017-1-2 21:41
make -j4 zImage 成功。
接下来make firefly-rk3288.dtb失败,请问什么原因

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


360桌面截图20170216125956.jpg (62.63 KB, 下载次数: 73)

360桌面截图20170216125956.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表