Why /dev/mem has null size?

DEMIRDJIAN, Antoine antoine.demirdjian at airliquide.com
Mon Dec 14 12:51:52 EST 2020


Dear all,

I'm trying to "addpart" to /dev/mem in order to copy my raw boot image inside.
But I noticed that /dev/mem doesn't really exists :

>From devinfo :

   `-- mem1
      `-- 0x00000000-0xffffffffffffffff (   0 Bytes): /dev/mem

And more specifically :

barebox at MyBoard:/ devinfo mem1
Resources:
  num: 0
  name: mem
  start: 0x00000000
  size: 0x00000000
Driver: mem
Bus: platform

As a consequence, my addpart fails with "partition end is beyond device".

Do you have any idea why my /dev/mem size is 0x0 ?

Thanks,

--
Antoine D



More information about the barebox mailing list