Minimum RAM for "libbsd"? Can't run in 8MB on "imxrt".

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jun 23 05:17:25 UTC 2021



On 21/06/2021 15:31, dufault at hda.com wrote:
> 
>> On Jun 21, 2021, at 08:52 , Sebastian Huber<sebastian.huber at embedded-brains.de>  wrote:
>>
>> What happens when you reduce the memory space for the mbufs to 4MiB? What is the "RTEMS work space"?
> By "RTEMS work space" I mean the space between bsp_section_work_begin and bsp_section_work_end, which I assume is handed over to the unified work space.  I also assume allocated "libbsd" data structures come from there.

Yes, the space between bsp_section_work_begin and bsp_section_work_end 
is used for the heap which is used by libbsd.

> 
> After reducing the space for the mbufs I still run out of RAM.  I've been patching rtems_bsd_allocator_domain_page_mbuf_size in the debugger for test.  I'll put it in at compile time but looking at the code that won't make a difference.

Which memory allocation fails? Is it in the libbsd initialization or 
afterwards?

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list