[Sugar-devel] Regarding the Sugar on Raspberry Pi project

Simrann Arora simrann2099 at gmail.com
Mon Mar 27 17:39:48 EDT 2023


Hi Mentors,

Hope you all are doing well!

My name is Simrann Arora and I am an aspiring GSoC 2023 contributor. I have
been actively trying to contribute to the 'Sugar on Raspberry Pi' project
that has been selected for GSoC this year. As far as my progress is
concerned, till now I have completed the following tasks:
- Setting up Debian version 11(bullseye) VM on my mac using Parallels
Desktop, earlier I had installed Ubuntu 23.04 using VMware Fusion
- Cloning the rpi23-gen-image repo for building Sugar OS image.
- I tried running the rpi23-gen-image builder script but I am getting this
error:
```
 chroot: failed to run command '/debootstrap/debootstrap': Exec format
error.
```

I did some research to fix this, and found out that it might have
occured due to the architecture mismatch of the chroot environment and the
command that I am using to run the script, like suppose the chroot
environment is 64-bit and the executable is 32-bit. Another reason could be
that the executable is not compatible with the OS or the linux distro
within the chroot environment.

- To fix this, I created a chroot environment of Debian version 9 (stretch)
within my Debian 11 distro to make it compatible with the
`rpi3stretch-sugar` template as given in the `rpi23-gen-image` repository
and cloned it.
However, when I ran the script, I encountered the same error:
```
 chroot: failed to run command '/debootstrap/debootstrap': Exec format
error.
```

To further troubleshoot this, I tried installing the `binfmts support` and
enabling qemu-arm within the chroot.
Again I got an error:  `update-binfmts: warning: qemu-arm not in database
of installed binary formats. `

Now to fix this one I tried reinstalling qemu-user-static and enabling it
but it says that it might be possible that this package isn't installed in
my system's repo or I need to use another repo for the same.

I would like to request the mentors to guide me further on this and discuss
the next steps of implementation and the project requirements.
I am very keen on working on this project, gaining in-depth understanding
on this and taking it further.

Also, as the proposal deadline is just around the corner, I would be really
grateful if I could connect with all the mentors on a Zoom/GMeets call to
discuss the project

Thanks a lot
Simrann Arora
GitHub Handle - @simrann20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20230328/c6f4eefd/attachment.htm>


More information about the Sugar-devel mailing list