Firefly开源社区

Firefly Ubuntu开发入门之(2)运行内核

54

积分

0

威望

0

贡献

游客

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

可以用3.14将ubuntu1404和ubuntu1604都引导起来
回复

使用道具 举报

37

积分

0

威望

0

贡献

游客

积分
37
发表于 2017-3-15 22:08:28     
牛头 发表于 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的内核文建吗?如果不可以能够给个链接我下载试试。
回复

使用道具 举报

62

积分

0

威望

0

贡献

技术小白

积分
62
发表于 2017-3-19 11:51:54     
学习 学习
回复

使用道具 举报

37

积分

0

威望

0

贡献

游客

积分
37
发表于 2017-3-24 00:23:00     
牛头你好 请问你用的是具体哪个版本的UNBUNTU 为什么我用reload板参照你的总是成功不了
回复

使用道具 举报

34

积分

0

威望

0

贡献

游客

积分
34
发表于 2017-4-9 17:36:06     
很不错的入门教程,非常感谢!
回复

使用道具 举报

67

积分

0

威望

0

贡献

技术小白

积分
67
发表于 2017-4-10 09:32:56     
本帖最后由 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
请问大家是怎么解决的呢
回复

使用道具 举报

33

积分

0

威望

0

贡献

游客

积分
33
发表于 2017-4-13 14:07:25     
看看 是否有用  。。。。。。。。。。
回复

使用道具 举报

90

积分

0

威望

0

贡献

技术小白

积分
90
发表于 2017-4-14 11:55:50     
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 ]
回复

使用道具 举报

67

积分

0

威望

0

贡献

技术小白

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

谢谢,我试一下。
回复

使用道具 举报

67

积分

0

威望

0

贡献

技术小白

积分
67
发表于 2017-4-18 14:56:37     
mayh 发表于 2017-4-14 11:55
你好,我也遇到这个问题,我用的3.10的内核,我的解决办法是可以烧入起来的整体固件包解压出来之后得到li ...

按照你的方法,已经解决了上面的问题,更换了ramdisk以后,确实又前进了一步。
现在总是卡在找不到/dev/mmcblk0p3,等待了30秒后就有回到初始文件系统里了。
回复

使用道具 举报

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

本版积分规则

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