Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

RK3399 U-Boot and bare metal development

52

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
52

RK3399 U-Boot and bare metal development

Posted at 8/16/2017 07:51:48      View:4744 | Replies:8        Print      Only Author   [Copy Link] 1#
Have anyone succeeded in running bare metal code on RK3399? I have U-boot compiled but the shell is missing many functions. For example, there's no bootelf and no tftp. I tried enabling them by adding #define in config but it's not helping, it seems like the support is not there to begin with. Is there a way of running a simple "Hello World" bare metal application on RK3399? Any suggestion would be greatly appreciated. Thanks!
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 8/16/2017 09:49:10        Only Author  2#
in rockchip's uboot ,you can add command like "bootk" in ./common/cmd_bootrk.c
Reply

Use props Report

52

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
52
Posted at 8/17/2017 00:52:09        Only Author  3#
isle Posted at 8/16/2017 09:49
in rockchip's uboot ,you can add command like "bootk" in ./common/cmd_bootrk.c

How do I do that and what is bootk used for? I do not find it in standard u-boot documentation.

I just want to know how to boot from an elf file, currently it is not even possible to load the elf file into memory. I can't do TFTP and I can't load from a file.
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 8/17/2017 09:24:40        Only Author  4#
which u-boot did you used?
maybe you can try the u-boot from android sdk.https://gitlab.com/TeeFirefly/Fi ... refly-rk3399/u-boot
Reply

Use props Report

52

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
52
Posted at 8/23/2017 05:15:48        Only Author  5#
I had to hack around a bit to boot the .elf from the linux kernel partition but all is working fine now. However I have another request: how can I force the board to boot from the A72 cores instead? The bare-metal application I am using, I'd like to test it on the A72 cores instead of the A53 cores. Thanks!
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 8/23/2017 09:54:47        Only Author  6#
with cpuset , search more on google.
Reply

Use props Report

52

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
52
Posted at 8/24/2017 01:20:51        Only Author  7#
I don't have Linux installed or any kind of Linux kernel so I can't use cpuset. All I have is trustzone, u-boot and a bare metal application. Is there any way to force the board to boot from A72 instead of A53? (basically disable the A53 cluster). Thanks!
Reply

Use props Report

52

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
52
Posted at 8/30/2017 07:03:21        Only Author  8#
Can anyone help me? I really need to boot from the A72 core instead of the A53 core. Thanks!
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 8/30/2017 15:46:41        Only Author  9#
oh, the rk3399 don't support boot from A72.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list