# Kali Latest Build

**URL:** <https://community.zymbit.com/t/kali-latest-build/1464>\
**Category:** OPERATING SYSTEMS\
**Created:** [November 10, 2022, 1:18pm UTC](https://community.zymbit.com/t/kali-latest-build/1464 "2022-11-10T13:18:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jon](https://community.zymbit.com/u/jon)\
**Post date:** [November 10, 2022, 1:18pm UTC](https://community.zymbit.com/t/kali-latest-build/1464/1 "2022-11-10T13:18:51Z")

</div>

Hi,

does anybody know if the latest build of kali is supported on a raspberry pi 4?

i have had it working on version 2020.b and found a previous post however I am unable to get the Zymbit installed on the latest version.

---

<div class="post-metadata">

**Author:** ![Eric\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@Eric\_of\_Zymbit](https://community.zymbit.com/u/Eric_of_Zymbit)\
**Post date:** [November 10, 2022, 8:03pm UTC](https://community.zymbit.com/t/kali-latest-build/1464/2 "2022-11-10T20:03:55Z")

</div>

Hey Jon,

I had a chance to briefly take a look at this.

Kali 2022.3 worked and binded with our zymbit products following the same solution that was found here: [Support for Kali Linux 2020.2b](https://community.zymbit.com/t/support-for-kali-linux-2020-2b/885)

Encrypting the sd card did not work for me. I found the error occurs due to a complaint on how the zymbit hook script is set up in the initramfs process. There may be something kali linux specifically looks for in the initramfs.

If you want to take a look at it yourself our encryption scripts are free to use and modify. Our encryption script can be downloaded via:

> curl -G [https://s3.amazonaws.com/zk-sw-repo/mk\_encr\_sd\_rfs.sh](https://s3.amazonaws.com/zk-sw-repo/mk_encr_sd_rfs.sh) --output mk\_encr\_sd\_rfs.sh

You may also use this as reference from kali’s site to point you in the right direction: [Raspberry Pi - Full Disk Encryption | Kali Linux Documentation](https://www.kali.org/docs/arm/raspberry-pi-with-luks-full-disk-encryption-2/#partition-layout)

Thanks for your patience,  
Eric

---

<div class="post-metadata">

**Author:** ![jon](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jon](https://community.zymbit.com/u/jon)\
**Post date:** [November 11, 2022, 10:43am UTC](https://community.zymbit.com/t/kali-latest-build/1464/3 "2022-11-11T10:43:55Z")

</div>

Thanks for the reply,

I don’t know if the script has changed but when i use the bind script now it doesn’t work but I had an old copy I downloaded a while back and that works with no issues.

I’ll give what you said a go and see if I can look to get it working again. Thanks for the direction if I need further support, I will reach out again.

---

<div class="post-metadata">

**Author:** ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)\
**Post date:** [November 11, 2022, 7:39pm UTC](https://community.zymbit.com/t/kali-latest-build/1464/4 "2022-11-11T19:39:39Z")

</div>

@jon - the installation script has changed since I wrote those notes back when but the same instructions still work (I just ran through an installation). One difference would be the line number to set the distro to focal. This might be a more clear way to do it:

Change

```auto
distro=`lsb_release -c | cut -f2 -d$'\t'`

```

to

```auto
distro="focal"

```

It should be line 72, but just search for that line.

Bob

---

<div class="post-metadata">

**Author:** ![jon](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jon](https://community.zymbit.com/u/jon)\
**Post date:** [November 13, 2022, 11:52pm UTC](https://community.zymbit.com/t/kali-latest-build/1464/5 "2022-11-13T23:52:34Z")

</div>

Thanks bob,

I will try that one tomorrow when i am back with the kit. Did you also manage to get it to encrypt working using the second script? Or did you just bind the zymbit to kali?

I am struggling a bit trying to find the initramfs that eric recommended that may be the issue.

---

<div class="post-metadata">

**Author:** ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)\
**Post date:** [November 14, 2022, 4:12am UTC](https://community.zymbit.com/t/kali-latest-build/1464/6 "2022-11-14T04:12:07Z")

</div>

@jon - The encryption failed for me also. The initramfs output is called initrd.img. The problem is that it does not get created, which is why you don’t see it.

---

<div class="post-metadata">

**Author:** ![Johnny](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Johnny](https://community.zymbit.com/u/Johnny)\
**Post date:** [November 15, 2022, 2:49pm UTC](https://community.zymbit.com/t/kali-latest-build/1464/7 "2022-11-15T14:49:25Z")

</div>

Kali Docs:  
mkinitramfs -o /boot/initramfs.gz 5.15.44-Re4son-v8l+

mk\_encr\_sd\_rfs.sh script:  
update-initramfs -v -c -k `uname -r` -b /mnt/tmpboot

Maybe that’s the reason it doesn’t work?

---

<div class="post-metadata">

**Author:** ![Eric\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@Eric\_of\_Zymbit](https://community.zymbit.com/u/Eric_of_Zymbit)\
**Post date:** [November 15, 2022, 6:22pm UTC](https://community.zymbit.com/t/kali-latest-build/1464/8 "2022-11-15T18:22:36Z")

</div>

Hey @Johnny and @jon ,

I went through this exact step. When you normally do the encryption script, kali bombs out on the script at the command update-initramfs and you’re left with no initrd.img.

When I went through that update-initramfs command stand-alone I saw an error that complained about the Zymbit hooks in the initramfs. This will give you an initrd.img, but it doesn’t work.

I’m assuming there is additional libraries or dependencies needed in initramfs for kali. For instance, kali’s site about disk encryption brings in additional dependencies like dmcrypt in the initramfs. I’m not sure if it’s needed, but that’s one difference.

---

<div class="post-metadata">

**Author:** ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)\
**Post date:** [December 14, 2022, 4:07pm UTC](https://community.zymbit.com/t/kali-latest-build/1464/9 "2022-12-14T16:07:41Z")

</div>

I think I’ve got a one-line fix for the encryption script to work with Kali 2022.3. For some reason, the update\_initramfs process wants a link to /boot that it didn’t need before.

Save the encryption script locally

`curl -G https://s3.amazonaws.com/zk-sw-repo/mk_encr_sd_rfs.sh > mk_encr_sd_rfs.sh`

Add a link after line 224.  
Change from:

```auto
# Make the initramfs
echo -n "Building initramfs..."
rm /mnt/tmpboot/initrd.img-`uname -r` 2>/dev/null
update-initramfs -v -c -k `uname -r` -b /mnt/tmpboot/

EOF1

```

To:

```auto
# Make the initramfs
ln -s /mnt/tmpboot/* /boot/ # <- ADD THIS LINE
echo -n "Building initramfs..."
rm /mnt/tmpboot/initrd.img-`uname -r` 2>/dev/null
update-initramfs -v -c -k `uname -r` -b /mnt/tmpboot/
EOF1

```

Reminder: Be sure you don’t have a file named `original_zk_root.tgz` on your USB stick or the script will use that as the source for your root filesystem files.

```auto
sudo mount /dev/sda1 /mnt
sudo rm /mnt/original_zk_root.tgz
sudo umount /mnt

```

Make the script executable, sudo su, and run the script.

```auto
chmod +x mk_encr_sd_rfs.sh
sudo su
./mk_encr_sd_rfs.sh

```

---

<div class="post-metadata">

**Author:** ![jon](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jon](https://community.zymbit.com/u/jon)\
**Post date:** [January 6, 2023, 3:14pm UTC](https://community.zymbit.com/t/kali-latest-build/1464/10 "2023-01-06T15:14:08Z")

</div>

Hi @Bob_of_Zymbit i can confirm this has worked for me. thanks for all your help.
