Skip to contentSkip to conversation

linux and sram

DISCUSSION Russell McGuire 3 participants 3 messages Jul 13, 2005

lore
Share & tools
lore
#0 lore raw

Everyone,

If we are using U-boot and populate the CFG_SRAM_SIZE and CFG_SRAM_BASE values, and makes sure this is passed into the kernel.

Does Linux 2.4.2x+ have any direct support for this? Is it just added into the regular memory pool? Does it get used for specific tasks?

Or is this set aside for custom drivers?

Thanks,

Russell McGuire

#1 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

If we are using U-boot and populate the CFG_SRAM_SIZE and CFG_SRAM_BASE values, and makes sure this is passed into the kernel.

Does Linux 2.4.2x+ have any direct support for this? Is it just added into the regular memory pool? Does it get used for specific tasks?

The standard Linux kernel knows nothing about SRAM.

Quoted 1 line

Or is this set aside for custom drivers?

Indeed. You need a driver to support SRAM.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Microsoft Multimedia:
You have nice graphics, sound and animations when the system crashes.
#2 lore raw
Quoted 5 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:

If we are using U-boot and populate the CFG_SRAM_SIZE and CFG_SRAM_BASE values, and makes sure this is passed into the kernel.

Quoted 8 lines
Quoted 2 lines

Does Linux 2.4.2x+ have any direct support for this? Is it just added into the regular memory pool? Does it get used for specific tasks?

The standard Linux kernel knows nothing about SRAM.

Quoted 1 line

Or is this set aside for custom drivers?

Indeed. You need a driver to support SRAM.

Some people use slram/phram for that purpose. It creates an mtd (memory technology device) which can be translated into either a block or a char device. Quite sufficient for most uses.

Jörn

Signature · 4 lines
To announce that there must be no criticism of the President, or that we
are to stand by the President, right or wrong, is not only unpatriotic
and servile, but is morally treasonable to the American public.
-- Theodore Roosevelt, Kansas City Star, 1918