Firefly开源社区

标题: Firefly Ubuntu开发入门之(2)运行内核 [打印本页]

作者: 牛头    时间: 2016-9-19 10:06
标题: Firefly Ubuntu开发入门之(2)运行内核
本帖最后由 牛头 于 2016-9-24 15:18 编辑

     很多朋友希望在拿到Firelfy发布的Ubuntu镜像后,会想自己加驱动或自己编译的内核等等,但做的过程中难免出现各种各样的问题。网上各种教程都不那么切题,讲解都不是那么细致,让人感到迷茫,又或许是无助。Firefly团队努力地在帮助开发者打破此困局,整理策划了系列教程,让开发者可以通过Firefly开源平台可以快速上手开发,并快速打造出成熟产品。
    “创新 开源 分享 定制”是我们的口号,我们一直在努力。

    上一篇文章说到如何把kernel及modules编译出来,今天继续讲如何让kernel在板子上飞~~告别各种不进系统桌面、串口不输出LOG等问题!
    那么请跟着我的脚步上路吧!

    一、准备初始RAM磁盘
    初始RAM磁盘(initrd)是在实际根文件系统可用之前挂载到系统中的一个初始根文件系统。initrd与内核绑定在一起,并作为内核引导过程的一部分进行加载。
    内核会将这个initrd文件作为其两阶段引导过程的一部分来加载模块,这样才能稍后使用真正的文件系统,并挂载实际的根文件系统。initrd中包含了实现这个目标所需要的目录和可执行程序的最小集合,例如将内核模块加载到内核中所使用的 insmod工具。
在桌面或服务器Linux系统中,initrd是一个临时的文件系统。其生存周期很短,只会用作到真实文件系统的一个桥梁。
     Firefly团队为方便开发者进行项目,在github上创建initrd的仓库,开发者可以直接clone使用。
cd ~/UbuntuDev/
git clone https://github.com/TeeFirefly/initrd.git
make -C initrd
    有兴趣深入去了解initrd的朋友,也可以自行去研究。
     
    二、打包内核和RAM磁盘
    Firefly官方发布的Ubuntu系统都是只有boot分区的,所以要将 kernel 和 initrd 打包成 boot.img,在烧录到指定分区才能上kernel飞~~
这里实际操作的方式和上篇讲的稍微有些区别,生成boot镜像用到了一个新工具mkbootimg,大家可通过 mkbootimg.tar.gz (12.53 KB, 下载次数: 593) 附件下载,放至kernel根目录。生成镜像的命令如下,记得给mkbootimg增加可执行属性:
cd ~/UbuntuDev/firefly-3.14-kernel/
./mkbootimg --kernel arch/arm/boot/zImage --ramdisk ../initrd.img --second resource.img  -o boot.img
   
    这里的resource.img可以由make -j8 firefly-rk3288.img得到
    至于boot分区、kernel分区、boot镜像带不带kernel等情况,在此就先挖个坑,改天再来填坑。
    三、确认parameter文件
    Linux 的根文件系统(RFS)可能在不同的分区或存储设备上(eMMC、TF 卡或 U 盘),所以需要在内核的参数CMDLINE中指定。如何修改内核CMDLINE参数?在parameter文件中修改CMDLINE行即可。为什么要提到这个parameter文件?烧录boot.img在开发板时,烧录工具里需要用到此文件。
    在板子启动时,内核会打印CMDLINE参数,可以用以确认板子的分区等信息。更新boot分区时,要按板子里原本的CMDLINE参数,去更新分区,才不会造成异常。另外,请确认控制台串口的设备节点,没配置对的话,串口没有LOG输出。
    建议通过串口调试工具直接拷贝log中的CMDLINE行参数,保存到parameter文件中在烧录,简单粗暴有效
    附件中有我实验用到的parameter文件,可以用于验证。 parameter.rar (467 Bytes, 下载次数: 0)

    四、烧录boot.img
    在AndroidTool的Download Image页面,boot栏选择编译后的boot.img进行烧录。烧录前要确认好boot分区的Address,烧录后可以通过log确认kernel是否更新成功。


     新编译的kernel已经在开发板上跑起来啦,心情还是有点激动,过程中不知道踩了多少坑。可以自由修改内核了,增加驱动什么的都不是问题了。



作者: 牛头    时间: 2016-9-19 10:06
沙发

作者: wangdongx40423p    时间: 2016-9-19 10:10
老大,parameter 文件怎么下载不了,提示我特定用户才可以下载,能不能处理一下
作者: 牛头    时间: 2016-9-19 11:13
看看这里能不能下载

mkbootimg.tar.gz

12.53 KB, 下载次数: 96, 下载积分: 灯泡 -1 , 经验 -1

parameter.rar

467 Bytes, 下载次数: 481, 下载积分: 灯泡 -1 , 经验 -1


作者: wangdongx40423p    时间: 2016-9-19 11:30
感谢,已经可以下载
作者: genius7    时间: 2016-9-19 14:28
parameter 文件怎么下载不了,提示我特定用户才可以下载,能不能处理一下
作者: wangdongx40423p    时间: 2016-9-19 15:27
我的能下载了,我把内容贴出来,你保存成parameter.txt即可


FIRMWARE_VER:5.0.0
MACHINE_MODEL:rk3288
MACHINE_ID:007
MANUFACTURER:RK3288
MAGIC: 0x5041524B
ATAG: 0x60000800
MACHINE: 3288
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
#KERNEL_IMG: 0x62008000
#FDT_NAME: rk-kernel.dtb
#RECOVER_KEY: 1,1,0,20,0
CMDLINE:earlyprintk=ttyS2,115200 console=tty0 console=ttyS2,115200 androidboot.selinux=permissive androidboot.hardware=rk30board androidboot.console=ttyS2 root=/dev/mmcblk0p3 linuxroot rw rootfstype=ext4 init=/sbin/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00010000@0x00002000(boot),0x00002000@0x00012000(backup),-@0x00014000(linuxroot)

作者: wangdongx40423p    时间: 2016-9-20 16:36
今天怎么没有继续更新啊
作者: csersoft    时间: 2016-9-23 22:27
有个问题:
  1. ./mkbootimg --kernel arch/arm/boot/zImage --ramdisk ../initrd.img --second resource.img  -o boot.img
复制代码

好像没有说明resource.img是从哪里来的?
作者: 牛头    时间: 2016-9-24 15:16
csersoft 发表于 2016-9-23 22:27
有个问题:

好像没有说明resource.img是从哪里来的?

之前有个地方提到了,没重点突出
make -j8 firefly-rk3288.img
作者: Angel CL    时间: 2016-10-14 00:57
本帖最后由 Angel  CL 于 2016-10-14 01:08 编辑

lz:请问parameter文件在哪儿呢?按照你的讲解,之前步骤我都编译成功了,只是在第三步“确认parameter文件”中有点疑问,我的源码文件中没有parameter文件呢?如果跳过这一步,直接烧录boot.img之后开发板一直停留在写模式?这是因为parameter参数的原因还是其他原因呢?另外我想问一下编译出来的boot.img有多大呢?怎么我的只有8M左右,这正常吗?谢谢。
作者: lam007    时间: 2016-10-18 18:21
./mkbootimg --kernel arch/arm/boot/zImage --ramdisk ../initrd.img --second resource.img  -o boot.img
这个请问要怎么写法?
作者: magic8421    时间: 2016-11-3 16:13
#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey
vbus = 0
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
no fuel gauge found
no fuel gauge found
read logo_on switch from dts [1]
can't find power_ctr node for lcdc0
can't find dts node for deviceinfo
rk_hdmi_register:fail to read deviceinfo
failed to find part:baseparamer
[EDID-EXTEND] It is a  CEA 861 Series Extension.
no baseparametr,find best edid mode,vic=16
hdmi_dev->video.vic is 16
tmdsclk is 148500000
hsync_pol 1 vsync_pol 1
[HDMI] sucess output HDMI.
pll_src = 0, dclk_hz = 148500000, dclk_div = 4
failed to find part:logo
no fuel gauge found
checkKey
vbus = 0
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
Hit any key to stop autoboot:  0
boot/recovery image sha mismatch!
Unable to boot:boot
try to start recovery
failed to find part:recovery
'recovery' does not seem to be a partition nor an address
Unable to boot:recovery
try to start backup
failed to find part:kernel
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:backup
try to start rockusb

冰天雪地360度跪求解决方法   为啥每次都是 sha mismatch! 呢?
无论我怎么刷都是这个结果。。


作者: 牛头    时间: 2016-11-4 10:38
magic8421 发表于 2016-11-3 16:13
#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey

刷之前是什么固件,后来刷什么固件有问题?
作者: brandwarden    时间: 2016-11-10 20:39
HI  你一开始说“上一篇文章说到如何把kernel及modules编译出来,今天继续讲如何让kernel在板子上飞~~告别各种不进系统桌面、串口不输出LOG等问题!” 我还是没看到modules在哪里有烧到板子中,第一篇中已经将modules都安装到modules_install/ 这,最终哪里用到它呢??
作者: brandwarden    时间: 2016-11-10 20:41
magic8421 发表于 2016-11-3 16:13
#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey

固件或者parameter不对吧,检验不过。
作者: talugirl    时间: 2016-11-23 10:00
执行烧录的时候,显示设备类型不匹配,停止执行。
作者: lengji22    时间: 2016-11-29 19:14
magic8421 发表于 2016-11-3 16:13
#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey

这个问题解决了吗?我也遇到了
作者: lengji22    时间: 2016-11-29 19:35
你好,牛头,新手做内核编译和运行。遇到问题,求助。编译前内核是3.10.0    按照你的帖子做的,运行内核:DDR Version 1.00 20150318
In
SRX
Channel a: DDR3 200MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=2 Die Bus-Width=16 Size=2048MB
Channel b: DDR3 200MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=2 Die Bus-Width=16 Size=2048MB
OUT


U-Boot 2014.10-RK3288-10-g65679f1 (Jul 20 2015 - 10:28:11)

CPU: rk3288
CPU's clock information:
    arm pll = 600000000HZ
    periph pll = 300000000HZ
    ddr pll = 200000000HZ
    codec pll = 594000000HZ
Board:        Rockchip platform Board
DRAM:  Found dram banks:1
Adding bank:0000000000000000(0000000100000000)
128 MiB
remotectl v0.1
storage init OK!
Using default environment

GetParam
check parameter success
no power key node
can't find dts node for ricoh619
pmic:act8846
Can't find dts node for fuel guage cw201x
SecureBootEn = 0, SecureBootLock = 0

#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey
vbus = 1
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
no fuel gauge found
no fuel gauge found
read logo_on switch from dts [0]
no fuel gauge found
checkKey
vbus = 1
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
failed to find part:misc
misc partition not found!
Hit any key to stop autoboot:  0
boot/recovery image sha mismatch!
Unable to boot:boot
try to start recovery
failed to find part:recovery
'recovery' does not seem to be a partition nor an address
Unable to boot:recovery
try to start backup
failed to find part:backup
'backup' does not seem to be a partition nor an address
Unable to boot:backup
try to start rockusb
请问怎么解决呢?
BColorImageLinkQuoteCodeSmilies

作者: lengji22    时间: 2016-11-29 19:35
你好,牛头,新手做内核编译和运行。遇到问题,求助。编译前内核是3.10.0    按照你的帖子做的,运行内核:DDR Version 1.00 20150318
In
SRX
Channel a: DDR3 200MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=2 Die Bus-Width=16 Size=2048MB
Channel b: DDR3 200MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=2 Die Bus-Width=16 Size=2048MB
OUT


U-Boot 2014.10-RK3288-10-g65679f1 (Jul 20 2015 - 10:28:11)

CPU: rk3288
CPU's clock information:
    arm pll = 600000000HZ
    periph pll = 300000000HZ
    ddr pll = 200000000HZ
    codec pll = 594000000HZ
Board:        Rockchip platform Board
DRAM:  Found dram banks:1
Adding bank:0000000000000000(0000000100000000)
128 MiB
remotectl v0.1
storage init OK!
Using default environment

GetParam
check parameter success
no power key node
can't find dts node for ricoh619
pmic:act8846
Can't find dts node for fuel guage cw201x
SecureBootEn = 0, SecureBootLock = 0

#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey
vbus = 1
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
no fuel gauge found
no fuel gauge found
read logo_on switch from dts [0]
no fuel gauge found
checkKey
vbus = 1
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
failed to find part:misc
misc partition not found!
Hit any key to stop autoboot:  0
boot/recovery image sha mismatch!
Unable to boot:boot
try to start recovery
failed to find part:recovery
'recovery' does not seem to be a partition nor an address
Unable to boot:recovery
try to start backup
failed to find part:backup
'backup' does not seem to be a partition nor an address
Unable to boot:backup
try to start rockusb
请问怎么解决呢?


作者: blue35sky    时间: 2016-11-30 21:31
lengji22 发表于 2016-11-29 19:35
你好,牛头,新手做内核编译和运行。遇到问题,求助。编译前内核是3.10.0    按照你的帖子做的,运行内核: ...

你好,请问你的怎么解决的,我也遇到这个问题

作者: yubang    时间: 2016-12-23 10:39
好东西
作者: klack    时间: 2017-1-14 21:34
怎么不能下附件呢
作者: klack    时间: 2017-1-15 14:36
前面编译好的modules派什么用啊?
作者: stormwch    时间: 2017-1-17 17:19
我在reload板子上用了你给的Parameter文件刷完程序后,一直循环启动,是不是Parameter文件不匹配啊
作者: david11    时间: 2017-2-14 18:26
看看
作者: chaokun    时间: 2017-3-13 15:05
把3.14kernel烧录进去后,找不到emmc,RFS起不来。是没有把emmc驱动编进去吗?
[    4.558602] Freeing unused kernel memory: 504K (c0c00000 - c0c7e000)
Loading, please wait...
Begin: Loading essential drivers ... [    4.585767] udevd[125]: starting version 175
FATAL: Could not load /lib/modules/3.14.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.14.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.14.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.14.0/modules.dep: No such file or directory
done.
Begin: Running /scripts/init-premount ... Waiting for eMMC storage...
Waiting for eMMC storage...
Waiting for eMMC storage...
Waiting for eMMC storage...
Waiting for eMMC storage...
Waiting for eMMC storage...
Waiting for eMMC storage...
Waiting for eMMC storage...
Waiting for eMMC storage...
Waiting for eMMC storage...
Timeout!
done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
[    5.982793] mmc0: unrecognised EXT_CSD revision 8
[    5.987547] mmc0: error -22 whilst initialising MMC card
[   11.100438] ES8323 2-0010: mic_state_switch 0
[   11.105446] ES8323 2-0010: hp_det = 1,deinsert hp
[   11.110886] ES8323 2-0010: hp mic use extern
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!
FATAL: Could not load /lib/modules/3.14.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.14.0/modules.dep: No such file or directory
/bin/sh: can't access tty; job control turned off
(initramfs) ls /dev/block/mtd/by-name/
(initramfs) ls /dev/mmc*
ls: /dev/mmc*: No such file or directory
(initramfs)
作者: celticszhao    时间: 2017-3-13 16:59
非常感谢
作者: celticszhao    时间: 2017-3-13 17:00
非常感谢楼主的资源,正在入行开发
作者: chaokun    时间: 2017-3-14 16:28
chaokun 发表于 2017-3-13 15:05
把3.14kernel烧录进去后,找不到emmc,RFS起不来。是没有把emmc驱动编进去吗?
[    4.558602] Freeing un ...

已解决
作者: chaokun    时间: 2017-3-14 16:36
chaokun 发表于 2017-3-13 15:05
把3.14kernel烧录进去后,找不到emmc,RFS起不来。是没有把emmc驱动编进去吗?
[    4.558602] Freeing un ...

可以用3.14将ubuntu1404和ubuntu1604都引导起来
作者: 小猪    时间: 2017-3-15 22:08
牛头 发表于 2016-9-24 15:16
之前有个地方提到了,没重点突出
make -j8 firefly-rk3288.img

超级版主  我按你的步骤 操作 但是实行
./mkbootimg --kernel arch/arm/boot/zImage --ramdisk ../initrd.img --second resource.img  -o boot.img

提示说 --second 不能放resource.img
这个是选项是放二级引导文件吗?

你用的内核是哪个版本的,我想自己编译一个内核 替换之前的ubuntu固件里面的内核,我该用哪个内核?
可以安卓SDK里面的内核来编译UBUNTU的内核文建吗?如果不可以能够给个链接我下载试试。
作者: luoxiaobao333    时间: 2017-3-19 11:51
学习 学习
作者: jinziyi    时间: 2017-3-24 00:23
牛头你好 请问你用的是具体哪个版本的UNBUNTU 为什么我用reload板参照你的总是成功不了
作者: chenxuying123    时间: 2017-4-9 17:36
很不错的入门教程,非常感谢!
作者: h.m_001@163.com    时间: 2017-4-10 09:32
本帖最后由 h.m_001@163.com 于 2017-4-10 22:23 编辑

亲爱的牛头和众家大神,问一下编译出来的boot.img有多大呢?怎么我的只有8M左右,这正常吗?我从官方固件解压出来的,可是有10M左右啊。我按照教程走在这里,就不行了!
#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey
vbus = 0
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
no fuel gauge found
no fuel gauge found
read logo_on switch from dts [1]
can't find power_ctr node for lcdc0
can't find dts node for deviceinfo
rk_hdmi_register:fail to read deviceinfo
failed to find part:baseparamer
[EDID-EXTEND] It is a  CEA 861 Series Extension.
no baseparametr,find best edid mode,vic=16
hdmi_dev->video.vic is 16
tmdsclk is 148500000
hsync_pol 1 vsync_pol 1
[HDMI] sucess output HDMI.
pll_src = 0, dclk_hz = 148500000, dclk_div = 4
failed to find part:logo
no fuel gauge found
checkKey
vbus = 0
board_fbt_key_pressed: ir_keycode = 0x0, frt = 0
Hit any key to stop autoboot:  0
boot/recovery image sha mismatch!
Unable to boot:boot
try to start recovery
failed to find part:recovery
'recovery' does not seem to be a partition nor an address
Unable to boot:recovery
try to start backup
failed to find part:kernel
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:backup
try to start rockusb
请问大家是怎么解决的呢

作者: chunallen    时间: 2017-4-13 14:07
看看 是否有用  。。。。。。。。。。
作者: mayh    时间: 2017-4-14 11:55
h.m_001@163.com 发表于 2017-4-10 09:32
亲爱的牛头和众家大神,问一下编译出来的boot.img有多大呢?怎么我的只有8M左右,这正常吗?我从官方固件解 ...

你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到linux-boot.img文件,在通过./unpackbootimg -i linux-boot.img解包得到linux-boot.img-ramdisk.gz这个内存盘镜像,在重新生成boot.img。./mkbootimg --kernel arch/arm/boot/zImage --ramdisk ../make-mkboot-tools/linux-boot.img-ramdisk.gz --second resource.img  -o boot.img
,之后烧入。这个错误是已经解决了,但内核也起来了,但还是没有起来Ubuntu,
错误如下,[    1.718146] mmc2:mmc host rescan start!
[    1.914705] init: plymouth-upstart-bridge main process (279) terminated with status 1
[    1.914742] init: plymouth-upstart-bridge main process ended, respawning
[    1.928128] init: plymouth-upstart-bridge main process (289) terminated with status 1
[    1.928163] init: plymouth-upstart-bridge main process ended, respawning
[    1.934629] rk_sdmmc: BOOT dw_mci_setup_bus: argue clk_mmc workaround out 800000Hz for init[mmc2]
[    1.937241] init: plymouth-upstart-bridge main process (292) terminated with status 1
[    1.937274] init: plymouth-upstart-bridge main process ended, respawning
[    1.946925] init: plymouth-upstart-bridge main process (294) terminated with status 1
[    1.946960] init: plymouth-upstart-bridge main process ended, respawning
[    1.955602] init: ureadahead main process (282) terminated with status 5
[    1.969708] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.971281] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.972839] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.975559] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.988791] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    1.988816] rk_sdmmc: BOOT dw_mci_setup_bus: argue clk_mmc workaround out normal clock [mmc2]
[    1.988879] rk_sdmmc: BOOT Bus speed=50000000Hz,Bus width=4bits.[mmc2]
[    1.989925] mmc2: new high speed SDIO card at address 0001
[    2.005994] bcmsdh_register: register client driver
[    2.006092] bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
[    2.006160] bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
[    2.006168] bus num (host idx)=2, slot num (rca)=1
[    2.006174] found adapter info 'DHD generic adapter'
[    2.006420] F1 signature read @0x18000000=0x1591a962
[    2.006576] dhd_conf_set_hw_oob_intr: Enable HW OOB for 43362
[    2.007945] F1 signature OK, socitype:0x1 chip:0xa962 rev:0x1 pkg:0x9
[    2.008588] DHD: dongle ram size is set to 245760(orig 245760) at 0x0
[    2.009062] wifi_platform_get_mac_addr
[    2.009072] ======== bcm_wlan_get_mac_address ========
[    2.009079] [WLAN_RFKILL]: rockchip_wifi_mac_addr: enter.
[    2.009089] [WLAN_RFKILL]: falsh wifi_custom_mac_addr=[00:00:00:00:00:00]
[    2.009095] [WLAN_RFKILL]: This mac address is not valid, ignored...
[    2.009105] dhd_conf_set_chiprev: chip=0xa962, chiprev=1
[    2.009144] dhd_conf_set_conf_path_by_nv_path: config_path=/system/etc/firmware/config.txt
[    2.009405] wl_create_event_handler(): thread:wl_event_handler:132 started
[    2.009410] tsk Enter, tsk = 0xdd8c149c
[    2.011599] dhd_attach(): thread:dhd_watchdog_thread:133 started
[    2.011658] dhd_attach(): thread:dhd_dpc:135 started
[    2.011669] dhd_dpc_thread: set dpc_cpucore 0 from config.txt
[    2.011697] dhd_attach(): thread:dhd_rxf:136 started
[    2.011708] dhd_deferred_work_init: work queue initialized
[    2.011783] dhdsdio_probe_init: set use_rxchain 0 from config.txt
[    2.018832] Dongle Host Driver, version 1.201.59.4 (r506368)
[    2.018832] Compiled in drivers/net/wireless/bcmdhd on Apr 14 2017 at 09:36:15
[    2.019122] Register interface [wlan0]  MAC: 98:3b:16:de:9c:cd
[    2.019122]
[    2.019162] dhd_prot_ioctl : bus is down. we have nothing to do
[    2.019195] bcmsdh_oob_intr_unregister: Enter
[    2.019202] bcmsdh_oob_intr_unregister: irq is not registered
[    2.019210] dhd_txglom_enable: enable 0
[    2.019216] dhd_bus_devreset:  WLAN OFF DONE
[    2.019248] wifi_platform_set_power = 0
[    2.019254] ======== PULL WL_REG_ON LOW! ========
[    2.019260] [WLAN_RFKILL]: rockchip_wifi_power: 0
[    2.064534] init: mounted-proc main process (311) terminated with status 1
[    2.121581] [WLAN_RFKILL]: wifi shut off power.
[    2.121595] [WLAN_RFKILL]: rockchip_wifi_ref_voltage: 0
[    2.121601] [WLAN_RFKILL]: rockchip_wifi_ref_voltage: wifi io reference voltage control is disabled.
[    2.121645] dhd_module_init: Exit err=0










* Setting up X socket directories...                                    [ OK ]

作者: h.m_001@163.com    时间: 2017-4-17 11:20
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

谢谢,我试一下。
作者: h.m_001@163.com    时间: 2017-4-18 14:56
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

按照你的方法,已经解决了上面的问题,更换了ramdisk以后,确实又前进了一步。
现在总是卡在找不到/dev/mmcblk0p3,等待了30秒后就有回到初始文件系统里了。
作者: wod    时间: 2017-4-21 14:26
在uboot里面把校验的代码给注释掉,系统终于可以跑起来了,最后一步了——替换自己的ubuntu系统
作者: infozt@126.com    时间: 2017-6-11 23:28
chaokun 发表于 2017-3-13 15:05
把3.14kernel烧录进去后,找不到emmc,RFS起不来。是没有把emmc驱动编进去吗?
[    4.558602] Freeing un ...

你好,你的这个问题是怎么解决的呢,请大体说一下!
作者: infozt@126.com    时间: 2017-6-11 23:34
chaokun 发表于 2017-3-14 16:28
已解决

你好,怎么解决的,请教一下!
作者: infozt@126.com    时间: 2017-6-12 12:41
你好,请教一下,内核模块编译后,是如何放到开发板上的!
作者: infozt@126.com    时间: 2017-6-12 12:47
第一篇中已经将modules都安装到modules_install/ 这,最终哪里用到它呢??请大体讲解一下,编译的内核,烧到板子里后,提示少/lib/modules/下的文件!
作者: infozt@126.com    时间: 2017-6-12 16:26
牛头,您好,我是用3.10到3.14升级,为什么我执行了make moudels_install后,在编译后的3.14系统中,在lib/下还是没有moudels文件夹及其它文件呢!
作者: infozt@126.com    时间: 2017-6-12 16:28
chaokun 发表于 2017-3-14 16:28
已解决

怎么解决的呢,分享一下
作者: she540061941    时间: 2017-6-16 17:52
chaokun 发表于 2017-3-13 15:05
把3.14kernel烧录进去后,找不到emmc,RFS起不来。是没有把emmc驱动编进去吗?
[    4.558602] Freeing un ...

你好,可不可以分享下一怎么解决的,谢谢
作者: luoqindong    时间: 2017-6-17 15:59
wod 发表于 2017-4-21 14:26
在uboot里面把校验的代码给注释掉,系统终于可以跑起来了,最后一步了——替换自己的ubuntu系统

你好,这个什么解决的,能解释一下吗
作者: luoqindong    时间: 2017-6-19 09:07
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

你好,unpackbootimg工具在哪个目录下,能发给我一份吗?luoqindong123@163.com,谢谢
作者: luoqindong    时间: 2017-6-19 10:17
牛头你好,看来其他网友的回复,好多都有同样的问题,要么kernel起不来,要么起来的,进不到系统。你给出的步骤,会不会落了哪一步,或者还有些细节没有提到呢。
作者: cww0403    时间: 2017-6-20 23:45
wod 发表于 2017-4-21 14:26
在uboot里面把校验的代码给注释掉,系统终于可以跑起来了,最后一步了——替换自己的ubuntu系统

u-boot代码哪里有?
作者: cww0403    时间: 2017-6-20 23:46
wod 发表于 2017-4-21 14:26
在uboot里面把校验的代码给注释掉,系统终于可以跑起来了,最后一步了——替换自己的ubuntu系统

u-boot代码哪里有?
作者: cww0403    时间: 2017-6-20 23:48
chaokun 发表于 2017-3-14 16:28
已解决

怎么解决的阿?
作者: xfwd2004    时间: 2017-6-28 10:45
谢谢谢谢谢谢!
作者: xfwd2004    时间: 2017-6-28 14:02
谢谢谢谢谢谢!!!!
作者: xueyuking    时间: 2017-6-28 14:06
在make脚本里加入,让字节对齐,
truncate -s "%4" $OUT/ramdisk.img && \
作者: cww0403    时间: 2017-7-14 09:56
xueyuking 发表于 2017-6-28 14:06
在make脚本里加入,让字节对齐,
truncate -s "%4" $OUT/ramdisk.img && \

这个干什么用的?
作者: kgp00213    时间: 2017-7-19 22:56
看到楼主的这个帖子,禁不住热泪盈眶啊
作者: zhangjy46    时间: 2017-7-28 14:31

作者: key_sail    时间: 2017-8-6 12:04
好像烧录的图片中没有选中parameter啊?
作者: xfwd2004    时间: 2017-8-7 14:35
嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻
作者: lijianjian135    时间: 2017-8-18 11:07
chaokun 发表于 2017-3-13 15:05
把3.14kernel烧录进去后,找不到emmc,RFS起不来。是没有把emmc驱动编进去吗?
[    4.558602] Freeing un ...

兄弟们这个问题怎么解决的啊

作者: yuxue    时间: 2017-8-25 11:01
有牛头 天下不用愁
作者: ttc3000    时间: 2017-8-29 13:51
看看,先学习。。。。
作者: ttc3000    时间: 2017-8-29 13:52
下载文件,需要回复、、、、、
作者: ttc3000    时间: 2017-8-29 13:52
下载文件需要回复。。。谢谢。。。
作者: onecan    时间: 2017-9-4 00:49
学习了。。
作者: sunzhguy    时间: 2017-9-22 17:30
chaokun 发表于 2017-3-13 15:05
把3.14kernel烧录进去后,找不到emmc,RFS起不来。是没有把emmc驱动编进去吗?
[    4.558602] Freeing un ...

您好,我也遇到这种情况 ,您怎么解决的呀?谢谢!
作者: luofeng2g    时间: 2017-9-26 10:59
为什么这个没有像rk3399一样把initrd编译进内核?
作者: 老牛非老牛    时间: 2017-9-27 13:46
写得不清不楚的,新手真的看不懂。parameter文件放在哪里啊?
作者: 老牛非老牛    时间: 2017-9-29 17:12
chaokun 发表于 2017-3-14 16:28
已解决

emmc,RFS起不来你怎么解决的??
作者: 今夕何夕    时间: 2017-10-11 11:09
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

请问您现在这个问题解决了么?
作者: 今夕何夕    时间: 2017-10-11 11:10
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

请问您,现在这个问题解决了么?我也遇到这个问题
作者: 今夕何夕    时间: 2017-10-11 11:10
标题: RE: Firefly Ubuntu开发入门之(2)运行内核
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

请问您,现在这个问题解决了么?我也遇到这个问题
作者: 今夕何夕    时间: 2017-10-11 11:10
标题: RE: Firefly Ubuntu开发入门之(2)运行内核
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

请问您,现在这个问题解决了么?我也遇到这个问题
作者: 今夕何夕    时间: 2017-10-11 11:10
标题: RE: Firefly Ubuntu开发入门之(2)运行内核
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

请问您,现在这个问题解决了么?我也遇到这个问题
作者: 今夕何夕    时间: 2017-10-11 11:10
标题: RE: Firefly Ubuntu开发入门之(2)运行内核
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

请问您,现在这个问题解决了么?我也遇到这个问题
作者: 今夕何夕    时间: 2017-10-11 11:11
h.m_001@163.com 发表于 2017-4-18 14:56
按照你的方法,已经解决了上面的问题,更换了ramdisk以后,确实又前进了一步。
现在总是卡在找不到/dev/ ...

请问您,现在这个问题解决了么?我也遇到这个问题
作者: 今夕何夕    时间: 2017-10-11 22:08
chaokun 发表于 2017-3-14 16:28
已解决

请问你是怎么解决这个问题的啊,我也遇到了,请详细说一下。谢谢!
作者: 18810697787    时间: 2017-10-23 11:40
为啥现在安装交叉编译环境git不能用了
作者: 15029643022    时间: 2017-10-24 21:13
谢谢大哥
作者: xfwd2004    时间: 2017-11-10 14:08
谢谢谢谢谢谢!
作者: onecan    时间: 2017-11-29 15:25
chaokun 发表于 2017-3-14 16:28
已解决

大哥,你好,我也遇到这个问题,能麻烦你把解决方法告知一下吗?我检查过,mmc驱动是编译进内核的,启动时和你遇到的问题一直,在/dev下发现不了mmc设备,但是此时如果插入一个sd卡,在initramfs界面可以看到可以枚举出这个sd卡,但是emmc就是发现不了,谢谢
作者: onecan    时间: 2017-11-29 15:26
chaokun 发表于 2017-3-14 16:28
已解决

大哥,你好,我也遇到这个问题,能麻烦你把解决方法告知一下吗?我检查过,mmc驱动是编译进内核的,启动时和你遇到的问题一直,在/dev下发现不了mmc设备,但是此时如果插入一个sd卡,在initramfs界面可以看到可以枚举出这个sd卡,但是emmc就是发现不了
作者: ==    时间: 2017-11-30 18:30
学习了
作者: baisetuzi    时间: 2017-12-4 14:23
正在学习编译Ubuntu内核,非常感谢!
作者: apt_get    时间: 2017-12-22 14:20
请问用Android内核,该怎样更改?
作者: ffl86    时间: 2018-1-2 16:25
操作多次 在reload 板子上 運行都不成功
作者: nf_xx    时间: 2018-1-3 22:57
chaokun 发表于 2017-3-14 16:28
已解决

你好,你是咋解决的呀?
作者: nf_xx    时间: 2018-1-3 22:58
chaokun 发表于 2017-3-14 16:28
已解决

你好,你咋解决这个问题的呀,我也。。。。。遇到了
作者: NET_JUN    时间: 2018-1-26 14:15
买的是RK3399的板子,官方的教程讲的真的是简单。搞不懂。在论坛里清楚些
作者: invictus1123    时间: 2018-5-11 09:03
下载下载
作者: invictus1123    时间: 2018-5-11 09:08
下载需要灯泡
作者: bais    时间: 2018-5-21 16:02
Angel  CL 发表于 2016-10-14 00:57
lz:请问parameter文件在哪儿呢?按照你的讲解,之前步骤我都编译成功了,只是在第三步“确认parameter文件 ...

请问你烧写的时候,烧写地址设置的是多少?

我按boot选项烧写,在u-boot阶段就报sha mismatch的错误
作者: bais    时间: 2018-5-21 16:03
magic8421 发表于 2016-11-3 16:13
#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey

你的问题解决了吗? 我的也是这个问题
作者: bais    时间: 2018-5-21 16:03
magic8421 发表于 2016-11-3 16:13
#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey

你的问题解决了吗? 我的也是这个问题
作者: 风一样的男子    时间: 2018-6-6 22:04
hi,您好,我问下我这边生成的boot.img ,解压之后lib目录下面没有modules:rk30xxnand_ko.ko.3.10.0

导致启动失败:
GetParam
Load FDT from boot image.
no key node
No pmic detect.
can't find dts node for pwm0
Can't find dts node for fuel guage cw201x
SecureBootEn = 0, SecureBootLock = 0

#Boot ver: 2018-06-06#2.30
empty serial no.
checkKey
vbus = 1
no fuel gauge found
no fuel gauge found
read logo on state from dts [0]
no fuel gauge found
Hit any key to stop autoboot:  0
boot or recovery image sha mismatch!
Unable to boot:boot
try to start recovery
'recovery' does not seem to be a partition nor an address
Unable to boot:recovery
try to start backup
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
作者: bais    时间: 2018-6-8 14:37
magic8421 发表于 2016-11-3 16:13
#Boot ver: 2015-07-20#2.19
empty serial no.
checkKey

SHA mismatch是因为官方版的boot开启了sha验证,这个可以注释掉。重新编译一个uboot下载下去就OK。网上有人有写博客,可以查一查。下载u-boot的时候把parameter也一起烧一下,否则会报错
作者: bais    时间: 2018-6-8 16:14

* Stopping anac(h)ronistic cron                                         [ OK ]
* Stopping save kernel messages                                         [ OK ]
[    5.766299] mali_kbase: version magic '3.10.0+ SMP preempt mod_uinoaodARER7 R:v8 u s nul  bse'3 1o.u S P yreemplimodounlea/mARiv7base. ': Invalid module format
* Starting configure virtual network devices                            [ OK ]
[   34.827394] systemd-udevd[478]: timeout 'accelerometer /devices/virtual/input/input3'
[   35.812940] systemd-udevd[478]: timeout: killing 'accelerometer /devices/virtual/input/input3' [500]
[   35.954593] systemd-udevd[478]: 'accelerometer /devices/virtual/input/input3' [500] terminated by signal 9 (Killed)

有遇到这个问题的同学吗?




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1