/dev/ram0 requires CONFIG_CMD_MEMORY?

Sascha Hauer s.hauer at pengutronix.de
Fri Dec 11 04:48:05 EST 2009

Hi Luca,

On Thu, Dec 10, 2009 at 05:34:07PM +0100, list at lucaceresoli.net wrote:
> Hi all,
> starting from the instructions on
> http://elinux.org/BeagleBoardRecovery#USB_recovery I found
> that omap3530_beagle_per_uart_defconfig corrently compiles,
> but `loadb -f /dev/ram0` doesn't work.
> The error code is -2 (-ENOENT). The reason is that /dev/ram0
> doe not exist.
> To make /dev/ram0 appear, I had to set CONFIG_CMD_MEMORY=y.
> Is this intended?

No, it is not intended. commands/mem.c only gets compiled when
CONFIG_CMD_MEMORY is set, but this file should only contain the
commands, not the driver itself.

Anyway, you should set CONFIG_CMD_MEMORY in your config because
otherwise you won't have the memory commands (md, mw, memset,...) which
you probably want to have.


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 |

More information about the u-boot-v2 mailing list