Why /dev/mem has null size?

DEMIRDJIAN, Antoine antoine.demirdjian at airliquide.com
Mon Dec 14 13:38:37 EST 2020


Hello Ahmad,

Le lun. 14 déc. 2020 à 19:13, Ahmad Fatoum <a.fatoum at pengutronix.de> a écrit :
>
> Hello Antoine,
>
> On 14.12.20 18:51, DEMIRDJIAN, Antoine wrote:
> > Dear all,
> >
> > I'm trying to "addpart" to /dev/mem in order to copy my raw boot image inside.
>
> The normal usage is to let barebox worry about memory allocation:
>
>   bootm /image and go /image both memory map /image for you.

I did not know that it was possible to use bootm on a device.
I tried to use "bootm /dev/mmc2" and it works.
Awesome :-)
I thought I had to create a partition in /dev/mem to copy my binary
inside in order to boot...

Sorry for the noise,
Best regards,
Antoine



More information about the barebox mailing list