# Issues with Raspberry Pi 0 WiFi Raspbian

**URL:** <https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619>\
**Category:** General Discussions\
**Created:** [September 17, 2020, 10:46am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619 "2020-09-17T10:46:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 17, 2020, 10:46am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/1 "2020-09-17T10:46:52Z")

</div>

Hi,

I just want to know how do I include\use a custom\different mender client version when I custom build the RPi image.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [September 17, 2020, 2:14pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/2 "2020-09-17T14:14:18Z")

</div>

Hi @nishad1092 at the moment that’s not easily done. It’s all integrated into mender-convert. When new Mender releases are done then mender-convert is updated with the latest Mender client version.

Do you have a need to change it differently?

Drew

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 17, 2020, 3:06pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/3 "2020-09-17T15:06:23Z")

</div>

Hi @drewmoseley

Oh !!  
Yes, Actually I needed a very important change, so I have rebuilt the mender-client according to my use case. Now I want this mender-client to be used while building using mender-convert.

So far, I have used the normal installation of mender-client using the variable parameters, but as u said earlier, for a stable and rigid system update I was looking at this article, but this looks like an issue for me to build with the default client.

It would be great if I can build image with my custom mender-client, Actually the change is extremly simple, just a line is altered in the custom client I need.

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 18, 2020, 4:05am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/4 "2020-09-18T04:05:24Z")

</div>

Hi @drewmoseley

So I just have one small change here in this file

> <https://github.com/mendersoftware/mender/blob/master/support/mender-device-identity>

So, It will be great to have this edit before building.

the change I need is in line 60, replace that line to —  
echo “hostname=$(cat /etc/hostname)”

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [September 18, 2020, 1:45pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/5 "2020-09-18T13:45:19Z")

</div>

Please submit this as a pull request against [https://github.com/mendersoftware/mender-convert](https://github.com/mendersoftware/mender-convert)

Drew

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 18, 2020, 2:39pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/6 "2020-09-18T14:39:40Z")

</div>

Hi @drewmoseley

So Do I need to create a pull request through this link?

What should I mention in the write section and it will be a pull request under ‘2.2.x’, Is that right?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [September 18, 2020, 3:53pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/7 "2020-09-18T15:53:09Z")

</div>

I don’t think we are accepting changes to 2.2.x so it should go against master.

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 20, 2020, 4:54pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/8 "2020-09-20T16:54:01Z")

</div>

ok. so create a pull request at [master@{1day}…master](https://github.com/mendersoftware/mender-convert/compare/master@%7B1day%7D...master)  
is it? @drewmoseley and Ill mention what changes I required?

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 21, 2020, 12:11pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/9 "2020-09-21T12:11:57Z")

</div>

Hi @drewmoseley

I have created a pull request to the master, please could you check once if its okay.

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 23, 2020, 5:40pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/10 "2020-09-23T17:40:53Z")

</div>

Hi @drewmoseley

I just wanted to make this clear, because I don’t think I mentioned that this file mender-device-identity which Im modifying is from this Mender-Client file [https://d1b0l86ne08fsf.cloudfront.net/2.4.0/dist-packages/debian/armhf/mender-client\_2.4.0-1\_armhf.deb](https://d1b0l86ne08fsf.cloudfront.net/2.4.0/dist-packages/debian/armhf/mender-client_2.4.0-1_armhf.deb),

I was thinking the branch file which is responsible for this change is under [https://github.com/mendersoftware/mender/blob/master/support/mender-device-identity](https://github.com/mendersoftware/mender/blob/master/support/mender-device-identity)  
this link,

So, I need to create pull request to this repo isn’t it?

Please correct me if Im wrong.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [September 23, 2020, 6:03pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/11 "2020-09-23T18:03:22Z")

</div>

If all you are modifying is mender-device-identity, then you only need a PR if it’s a general change that should be applied to the default provided by the links you referenced. If it’s specific to your use case then you can just provide your own version of the file in your integration setup whether that is using mender-convert or yocto.

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 24, 2020, 4:04am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/12 "2020-09-24T04:04:46Z")

</div>

Hi @drewmoseley

I thought of the taking the mender-convert repo and making changes to my own version as required to this file Mender-device-identity, because that’s the only change I need for my Mender-Client before it installs, But then the Mender-Convert repo I couldn’t find this file nor couldn’t find the source were it binds this file.  
I can see this file only in this line [https://github.com/mendersoftware/mender/blob/master/support/mender-device-identity](https://github.com/mendersoftware/mender/blob/master/support/mender-device-identity)

But while doing custom RPi Pi 0 built its mentioned Mender-convert link.  
This is my confusion here @drewmoseley, If you can guide me where this Mender-device-identity file is inside mender-convert, then I’ll make my changes and then start building, else I have to do a PR for the master branch of the link you provided.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [September 24, 2020, 5:03pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/13 "2020-09-24T17:03:07Z")

</div>

mender-convert initially pulls the default /usr/share/mender/identity/mender-device-identity from the Mender sources as you have noticed. But then it applies your [root filesystem overlay](https://docs.mender.io/system-updates-debian-family/convert-a-mender-debian-image/customization#rootfs-overlays) so if you have one in there with the full path embedded (and made executable) then your local one will override the default.

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 26, 2020, 9:12am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/14 "2020-09-26T09:12:08Z")

</div>

Hi @drewmoseley,

Okay, I understood little bit, I went thru [https://docs.mender.io/system-updates-debian-family/convert-a-mender-debian-image/customization#rootfs-overlays](https://docs.mender.io/system-updates-debian-family/convert-a-mender-debian-image/customization#rootfs-overlays)  
And according to this, I should place the mender-device-identity inside here before building is it?

Or like you mentioned above, mender-convert pulls the default /usr/share/mender/identity/mender-device-identity from the Mender sources, if you could tell me where is that pulling script/ is mentioned, I can modify it there itself, it will easier rgt, to change the source to my own local source or my repository source,

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [September 28, 2020, 3:51pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/15 "2020-09-28T15:51:53Z")

</div>

Mender-convert installs mender as a prebuilt binary using the deb package and does not build it from source. You are best off using the rootfs overlay here.

Drew

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 29, 2020, 5:07am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/16 "2020-09-29T05:07:27Z")

</div>

Sure @drewmoseley, I’m trying it now, I shall update you,  
Thanks so much for your support 🙂

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 29, 2020, 7:10am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/17 "2020-09-29T07:10:31Z")

</div>

Hi @drewmoseley

I was trying to build it, and I’m facing this issue while building :::

Applying rootfs overlay: /home/mender/custom\_image/mender-convert/rootfs\_overlay\_demo  
rsync: change\_dir “/home/mender/custom\_image/mender-convert/rootfs\_overlay\_demo” failed: No such file or directory (2)  
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]

All files and folders have the user permission as default.

And for the Mender-device-identity, I have placed the file structure of /usr/share/ inside rootfs\_overlay\_Demo

FYI file structure, I have followed the guide as it is:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/5b7e89b1379eaa06056a13d13d7f754e999bc608.png)

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [September 29, 2020, 2:08pm UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/18 "2020-09-29T14:08:38Z")

</div>

The error here indicates that _/home/mender/custom\_image/mender-convert/rootfs\_overlay\_demo_ does not exist or is not visible from within the docker container running the build. If you can provide a full log of your conversion process, starting with the creation of the rootfs\_overlay\_demo, building of the container, and invocation of mender-convert that may tell us something.

Also, please copy any paste text rather than providing screenshots. It’s much easier if we can search and copy text in our discussions.

Drew

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 30, 2020, 4:19am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/19 "2020-09-30T04:19:22Z")

</div>

Sure @drewmoseley I’ll make sure it will be copied as text from next time. I actually could compile it by just giving ```  
–overlay rootfs\_overlay , instead of --overlay ${PWD}/rootfs\_overlay but pretty strange because PWD points to my current directory and rootfs\_overlay exist,  
Anyways, I have build the image, going to test it now.

Thanks for your huge support.

---

<div class="post-metadata">

**Author:** ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)\
**Post date:** [September 30, 2020, 11:03am UTC](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619/20 "2020-09-30T11:03:27Z")

</div>

Hi @drewmoseley

I have build and flashed the Image to theSD card, and booted also to my RPi zeroW.  
It booted fine, got hit to the mender server also.  
But when checking the free space in the RPI, I can see only 334 MB left (But my sd card is 16GB) , I saw different partition filesystem while checking the sd card, I understand it has different partitions,

But If I’m seeing only 334 MB,

1. What happnd to there rest of the space since its a 16GB card ?  
2.Does it mean, I can only use this much from this point on my sd card? If so, Does it mean, I need a bigger SD card(32 gb ??)

FYI: Sorry I couldn’t type, its the screenshot frm the RPi:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/f4b83edb579dded3145d71bf1d7ff42709fc7a7f.png)

![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/7aaaf5fbe1ea488cfd112ce0ac1a7d6bca319b58.png)

[Next page](https://hub.mender.io/t/issues-with-raspberry-pi-0-wifi-raspbian/2619.md?page=2)
