Firefly开源社区

标题: Mainline kernel编译出来,烧不进去 [打印本页]

作者: xaityyy    时间: 2016-8-25 16:20
标题: Mainline kernel编译出来,烧不进去
我按照wiki上面编译mainline kernel并且烧写进去,但是每次都还是起的老的kernel。
http://wiki.t-firefly.com/index. ... /Mainline_Kernel/en

我确认uboot是新的了:
#Boot ver: 2016-08-25#2.19

但是kernel.img和boot.img烧进去,每次都还是3.10的老的kernel启动。
烧写kernel.img的时候,compare也没报错。

谢了

作者: xaityyy    时间: 2016-8-25 17:22
做了另外一个测试:
我把recovery分期erase掉,然后板子就不能自动启动:
got recovery cmd from misc.
bad image magic.
load boot image failed
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:recovery
try to start backup
bad image magic.
load boot image failed
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:backup
try to start rockusb

感觉是我自己编译的kernel有问题,所以启动没起来,所以都是起的recovery里面的
老的kernel。看上去就好像我的kernel没烧进去。

问题:为什么我按照wiki上面做下来,这边板子上检测没过?


作者: linjc    时间: 2016-8-26 09:37
你的boot.img里面可能有包含了kernel.img,如果boot.img里面包含了kernel,开机默认从boot.img里面读取kernel
编译完打包的时候用./mkimage 可以生成没有kernel的boot.img
作者: 小默jiang    时间: 2017-9-19 11:13
linjc 发表于 2016-8-26 09:37
你的boot.img里面可能有包含了kernel.img,如果boot.img里面包含了kernel,开机默认从boot.img里面读取kernel ...

我的情况跟楼主有点类似,不过,我的kernel.img   resource.img  换成其他可行的kernel.img   resource.img 是可以烧进去的,但是移植成 kernel 4.4  的,也可以 烧进去,但就是 一直卡在 Starting kernel ...
我是在 rk3288 上移植 kernel 4.4 ,其他 img  还是用原先的, 步骤也是按照 wiki 上操作的
我的log 如下 :
DDR Version 1.00 20160530
In
SRX
Channel a: LPDDR3 200MHz
MR0=0x88774458
MR1=0x88774458
MR2=0x88774458
MR3=0x88774458
MR4=0x88774403
MR5=0x88774401
MR6=0x88774403
MR7=0x88774400
MR8=0x8877441B
MR9=0x8877441B
MR10=0x8877441B
MR11=0x8877441B
MR12=0x8877441B
MR13=0x8877441B
MR14=0x8877441B
MR15=0x8877441B
MR16=0x8877441B
Bus Width=32 Col=10 Bank=8 Row=14/14 CS=2 Die Bus-Width=32 Size=1024MB
Channel b: LPDDR3 200MHz
MR0=0x88774458
MR1=0x88774458
MR2=0x88774458
MR3=0x88774458
MR4=0x88774403
MR5=0x88774401
MR6=0x88774403
MR7=0x88774400
MR8=0x8877441B
MR9=0x8877441B
MR10=0x8877441B
MR11=0x8877441B
MR12=0x8877441B
MR13=0x8877441B
MR14=0x8877441B
MR15=0x8877441B
MR16=0x8877441B
Bus Width=32 Col=10 Bank=8 Row=14/14 CS=2 Die Bus-Width=32 Size=1024MB
OUT


U-Boot 2014.10-RK3288-10-gc28aaca-dirty (Jul 10 2017 - 16:11:05)

CPU: rk3288
cpu version = 0
CPU's clock information:
    arm pll = 600000000HZ
    periph pll = 297000000HZ
    ddr pll = 200000000HZ
    codec pll = 384000000HZ
Board:  Rockchip platform Board
DRAM:  Found dram banks: 1
Adding bank:0000000000000000(0000000080000000)
128 MiB
GIC CPU mask = 0x00000001
SdmmcInit = 0 400
SdmmcInit = 2 0
storage init OK!
Using default environment

GetParam
Load FDT from resource image.
no key node
pmic:act8846
can't find dts node for pwm1
DCDC vdd_logic has been used, pwm regulator not init it.
decode dc_det_gpio err
SecureBootEn = 0, SecureBootLock = 0

#Boot ver: 2017-07-10#2.30
empty serial no.
checkKey
vbus = 1
no fuel gauge found
no fuel gauge found
read logo on state from dts [0]
[jxw] lcd power ldo6,ldo8,swout2 on.
no fuel gauge found
Hit any key to stop autoboot:  0
bad image magic.
load boot image failed
ERROR: [rk_load_image_from_storage]: bootrk: bad boot or kernel image
Unable to boot:boot
try to start recovery
load fdt from resouce.
Secure Boot state: 0
kernel   @ 0x02000000 (0x006a6fc8)
ramdisk  @ 0x05bf0000 (0x002b9f1c)
bootrk: do_bootm_linux...
   Loading Device Tree to 05600000, end 0562f6af ... OK
Add bank:0000000000000000, 0000000080000000

Starting kernel ...

作者: huamingshen    时间: 2017-12-1 15:00
我按照wiki上的操作也是无法分区烧进去没有升级到最新的kernel,奇怪




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