Re: Oftree from memory and access to start arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 08, 2018 at 01:03:11AM +0200, Pascal Vizeli wrote:
> Hi Sascha,
> 
> I wrote a patch they do that what you have suggest. It write the dtb
> from memory into a file.
> 
> My problem is, I don't know how I can share data between PBL and the
> main process?
> That are not the same binary, so I can't use extern keyword and on
> this early boot step I don't know how I can access to memory.
> I think with a simple pointer, I can't access to a memory area they
> are not my own?

I have a patch in the queue that shall solve this problem, but I never
came to it to make it ready. So far I would recommend some internal SRAM
to store a pointer. Another possibility would be to pass some less
memory to barebox_arm_entry() and pick up the data there. (I would
recommend at least 4k of memory to steal)

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux