cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Observer
Observer
677 Views
Registered: ‎08-28-2018

Kernel doesn't boot if i include my apps

Jump to solution

a

0 Kudos
Reply
1 Solution

Accepted Solutions
Observer
Observer
601 Views
Registered: ‎08-28-2018

Hey @aaron_b1,

 

thank you for all your help. In the end removing the ${S} was correct. The problem was that I compiled the app with an older Petalinux compiler version (2014.2). 

 

Best regards,

Senna

View solution in original post

0 Kudos
Reply
4 Replies
Explorer
Explorer
644 Views
Registered: ‎12-20-2017

You mention three problems, and it is unclear which ones you are still having:  1) failure to build, 2) failure to boot, and 3) once you build and boot, the executable is there but you are unable to run it.

 

Could you please restate the problem(s) you would like help with, this time with logs showing the exact error?

 

Incidentally, your BB file looks fine, and looks identical to others I've seen.

 

0 Kudos
Reply
Observer
Observer
627 Views
Registered: ‎08-28-2018

Sorry had to remove this..

0 Kudos
Reply
Explorer
Explorer
609 Views
Registered: ‎12-20-2017

Not being an expert, I confess to being confused as to the method of booting you are showing.  You show a bunch of "sf writes", which according to what docs I can find, are for writing FROM memory INTO flash... but I never see you put anything into that memory.  In other words, what are you writing into the flash before you boot?  

 

[What this output log looks like is that you wrote uninitialized memory into the flash, then tried to boot from it that data.  But maybe I missed something (like reading the boot image from a tftp or sd card)]

 

In any case, assuming you've got your procedures correct, but seeing how you might typically boot, what you describe sounds like:  when you DON'T install your application into the boot kernel, everything works fine.  When you DO install it, it might change the kernel size.  I'm going to go out on a limb and guess that you forgot to change the size in your "sf" command that copies the boot image?  If you use the old size, perhaps you don't copy the whole image, and perhaps it fails a consistency check by the boot loader.

0 Kudos
Reply
Observer
Observer
602 Views
Registered: ‎08-28-2018

Hey @aaron_b1,

 

thank you for all your help. In the end removing the ${S} was correct. The problem was that I compiled the app with an older Petalinux compiler version (2014.2). 

 

Best regards,

Senna

View solution in original post

0 Kudos
Reply