3

We are trying to write a pseudo-OS for an ev3 Lego brick. We already know, that there is an u-boot loader in the ROM of the brick, and that it loads an uImage file from the first partition of the SD-Card. We have tried to understand how the Linux ev3 kernel works and where is the entry point (assuming the main function). We have a potential entry point, but we don't know, how this location is marked as entry points or how to code a simplified version.

We want to create our own binary, which can be converted to an uImage file (with mkimage).

  • How do we have to do this?
  • How to mark a certain C-function as entry point?
artless noise
  • 21,212
  • 6
  • 68
  • 105
DiKorsch
  • 1,240
  • 9
  • 20
  • hm... the problem is, that we want to create or own `` and dont know how to do this. – DiKorsch Dec 05 '13 at 15:27
  • The way your question is worded is wrong then. Really, it has nothing with u-boot. You want to google, [*bare metal arm*](http://stackoverflow.com/questions/tagged/arm+bare-metal); the topic is huge. You need to know about linker files, 'c' startup and CPU initialization. The Linux *head.S* is the start point for Linux, but it is too complex for what you want. Look in the [u-boot examples](http://git.denx.de/?p=u-boot.git;a=tree;f=examples/standalone;hb=HEAD). – artless noise Dec 05 '13 at 16:40
  • Sorry for the wrong wording, but im a newby in this topic. I tried to formulate it in the best way a can... ^^ Yes, head.S is to complex, so im looking now for a minimized version. I will take a look at the link you posted. – DiKorsch Dec 05 '13 at 17:05

0 Answers0