Firefly Open Source Community

Title: Firefly rk3288 : the kernel hangs at "Starting kernel" message [Print This Page]

Author: ismael.faye    Time: 2/13/2015 00:08
Title: Firefly rk3288 : the kernel hangs at "Starting kernel" message

Hi all,

I am using Firefly rk3288 and I am trying to start it with the kernel linux I have compiled. But it doesn't work correctly. The last message I see is " Starting kernel ..." and few second after the board reboot automatically. Any idea of why it works like that? What the matter? Do I missed something?

I have flashed the kernel respecting the informations given in the link "http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_kernel/en". But I didn't modify the parameter file... Where is the parameter file located? And what do I have to write in this parameter file in order to run linux kernel in the firefly board?


When I compile the kernel I don't have the "firefly-rk3288.img" as mentionned in the link "http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_kernel/en". I have kernel.img, boot.img and I flashed this two images using rkflashkit.


I have also compiled the u-boot and flashed it using "sudo upgrade_tool ul RK3288UbootLoader_V2.19.01.bin" command.


After flashing RK3288UbootLoader_V2.19.01.bin, kernel.img and boot.img, the borad doesn't work correctly (See the logs bellow). Have you already faced this kind of problem? How did you managed it? Could you please explain again the differents steps in order to start a kernel linux on firefly rk3288?


/********************My logs************************/


DDR Version 1.00 20141007
In
SRX
Channel a: DDR3 200MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel b: DDR3 200MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
OUT


U-Boot 2014.10-RK3288-01-gc0494ea-dirty (Feb 12 2015 - 10:27:33)

CPU: rk3288
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)
2 GiB
storage init OK!
Using default environment

GetParam
check parameter success
Unknow param: MACHINE_MODEL:rk30sdk!
Unknow param: MACHINE_ID:007!
Unknow param: MANUFACTURER:RK30SDK!
Unknow param: PWR_HLD: 0,0,A,0,1!
failed to prepare fdt from boot!
power key: bank-0 pin-5
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-02-12#2.19
sn:1006120000000337
checkKey
vbus = 1
no fuel gauge found
no fuel gauge found
read logo_on switch from dts [0]
no fuel gauge found
Hit any key to stop autoboot:  0
failed to load fdt from boot!
kernel   @ 0x02000000 (0x005fd670)
ramdisk  @ 0x04bf0000 (0x00199961)
Secure Boot state: 0
bootrk: do_bootm_linux...
   Loading Device Tree to 04810000, end 0482b184 ... OK
Add bank:0000000000000000, 0000000080000000

Starting kernel ...


Author: zhansb    Time: 2/13/2015 10:33
Title: Re: Firefly rk3288 : the kernel hangs at

the cmdline must contain  ttyS2 and earyprintk instead of ttyFIQ0.


you can find it at FFTools/parameter/


Author: zhansb    Time: 2/13/2015 10:57
Title: Re: Firefly rk3288 : the kernel hangs at
Others have met similar problems£ºhttp://developer.t-firefly.com/e ... 26101f7fec9e4df2572
Author: ismael.faye    Time: 2/13/2015 22:50
Title: Re: Firefly rk3288 : the kernel hangs at "Starting kernel" message

Hi all,

Thank you for your answer.

I have flashed the parameter file in the board and the kernel is going further now. I have the following error message now : "Could not load /lib/modules/3.10.0/modules.dep: No such file or directory" .

The modules.dep file is not found. Any idea of why this error happens? How can we fix it?


In the link "http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_kernel/en" we have to run the command "rsync -av ./modules_install/ /path/to/your/rfs/lib/modules/". What is the real value of "/path/to/your/rfs/lib/modules/" if we download the kernel source with "git clonehttps://bitbucket.org/T-Firefly/firefly ... -kernel.gi"?


Thank you in advance.

Best regards,

Ismael FAYE

/******************************************************************************************************************/

[    7.671246] udevd[146]: starting version 175
Begin: Loading essential drivers ... FATAL: Could not load /lib/modules/3.10.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.10.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.10.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.10.0/modules.dep: No such file or directory
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
[   12.793255] es8323_create file error
[   19.464794] *****************vbus detect*******************
[  592.980012]
[  592.980012] rk_fb_switch_screen lcdc_id 0 type 1 enable 0
[  592.980298] VGA SUSPEND
[  592.982338] rk_iommu ff930300.vopb_mmu: (vopb) Disabled
[  592.982412] rk_iommu ff930300.vopb_mmu: rockchip_iommu_detach_device: Detached IOMMU with pgtable 0x2e23b000
[  593.007251] rk3288-lcdc lcdc0: blank mode:1
/**************************************************************************************************************************************/


Author: zhansb    Time: 2/13/2015 23:00
Title: Re: Firefly rk3288 : the kernel hangs at
you can try "scp" command to copy  on running firefly
Author: ismael.faye    Time: 2/13/2015 23:41
Title: Re: Firefly rk3288 : the kernel hangs at "Starting kernel" message

Hizhansb,

I can not run any command on the board due to the error. Do we have another solution?

In the link "http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_kernel/en" we have to run the command "rsync -av ./modules_install/ /path/to/your/rfs/lib/modules/". What is the real value of "/path/to/your/rfs/lib/modules/" if we download the kernel source with "git clonehttps://bitbucket.org/T-Firefly/firefly ... -kernel.gi"?


Thank you in advance,

Best regards,

Ismael FAYE


Author: ismael.faye    Time: 2/16/2015 19:03
Title: Re: Firefly rk3288 : the kernel hangs at

Hi all,


Any idea about my lattest post, please?

Thanks.


Best regards,

Ismael FAYE


Author: busybee    Time: 2/26/2015 14:21
Title: Re: Firefly rk3288 : the kernel hangs at

>FATAL: Could not load /lib/modules/3.10.0/modules.dep: No such file or directory


modules.dep stores the dependency of the kernel modules.

Since no modules are used in the boot.img, you can safely ignore this.


> rsync -av ./modules_install/ /path/to/your/rfs/lib/modules/


If you have compiled modules, this command will copy all the kernel modules files and their depencency info to /lib/modules to your rfs.


Author: boge90    Time: 3/19/2015 17:52
Did you find any solution to this problem?

Experiencing the same issue
Author: liatoss    Time: 6/8/2015 19:25
I have the same problem as at the beginning here - the boot loop... The parameters file doesn't help. Don't know how to fix it, even flashing original files from FireFly doesn't fix the issue.

Any idea how one can fix the loop? This is my original topic for discussion: http://bbs.t-firefly.com/forum.php?mod=viewthread&tid=550

Thx, Vlad.
Author: liatoss    Time: 6/10/2015 03:34
In my case, the reason of the kernel loop was the power cable. I took a USB cable from Cubieboard and it power up the board just to flash. However, as soon as the board starts, the board doesn't have enough power and the board reboots.

All of a sudden, I realized, I have another USB cable, the original one. As soon as I replaced the power cable, the board starts working and the boot continues...

Sorry for the mess on the forum,
Vlad.
Author: liatoss    Time: 6/10/2015 05:42
The problem is fixed by using the original power cable.

Thank you, Vlad.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1