I think I may followed the wrong GitHub? https://github.com/wasdwasd0105/picocalc-pi-zero-2?tab=readme-ov-file#guide-for-setup-pi-zero-2-on-picocalc
After installing the driver using
cd ./picocalc-pi-zero-2
chmod +x ./setup_display.sh
sudo ./setup_display.sh
I got this
-- Build files have been written to: /home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/build
[ 14%] Building CXX object CMakeFiles/fbcp-ili9341.dir/display.cpp.o
[ 14%] Building CXX object CMakeFiles/fbcp-ili9341.dir/dma.cpp.o
[ 14%] Building CXX object CMakeFiles/fbcp-ili9341.dir/diff.cpp.o
[ 19%] Building CXX object CMakeFiles/fbcp-ili9341.dir/fbcp-ili9341.cpp.o
In file included from /home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/diff.cpp:6:
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/spi.h: In member function ‘uint32_t* SPITask::DmaSpiHeaderAddress()’:
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/spi.h:132:51: warning: taking address of packed member of ‘SPITask’ may result in an unaligned pointer value [-Waddress-of-packed-member]
132 | inline uint32_t *DmaSpiHeaderAddress() { return &dmaSpiHeader; }
| ^~~~~~~~~~~~~
In file included from /home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/display.cpp:3:
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/spi.h: In member function ‘uint32_t* SPITask::DmaSpiHeaderAddress()’:
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/spi.h:132:51: warning: taking address of packed member of ‘SPITask’ may result in an unaligned pointer value [-Waddress-of-packed-member]
132 | inline uint32_t *DmaSpiHeaderAddress() { return &dmaSpiHeader; }
| ^~~~~~~~~~~~~
In file included from /home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/dma.cpp:12:
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/spi.h: In member function ‘uint32_t* SPITask::DmaSpiHeaderAddress()’:
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/spi.h:132:51: warning: taking address of packed member of ‘SPITask’ may result in an unaligned pointer value [-Waddress-of-packed-member]
132 | inline uint32_t *DmaSpiHeaderAddress() { return &dmaSpiHeader; }
| ^~~~~~~~~~~~~
[ 23%] Building CXX object CMakeFiles/fbcp-ili9341.dir/gpu.cpp.o
[ 28%] Building CXX object CMakeFiles/fbcp-ili9341.dir/hx8357d.cpp.o
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/gpu.cpp:1:10: fatal error: bcm_host.h: No such file or directory
1 | #include <bcm_host.h> // bcm_host_init, bcm_host_deinit
| ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/fbcp-ili9341.dir/build.make:132: CMakeFiles/fbcp-ili9341.dir/gpu.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 33%] Building CXX object CMakeFiles/fbcp-ili9341.dir/ili9341.cpp.o
In file included from /home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/fbcp-ili9341.cpp:21:
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/spi.h: In member function ‘uint32_t* SPITask::DmaSpiHeaderAddress()’:
/home/jblanked/picocalc-pi-zero-2/fbcp-ili9341-picocalc/spi.h:132:51: warning: taking address of packed member of ‘SPITask’ may result in an unaligned pointer value [-Waddress-of-packed-member]
132 | inline uint32_t *DmaSpiHeaderAddress() { return &dmaSpiHeader; }
| ^~~~~~~~~~~~~
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/fbcp-ili9341.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
install: cannot stat 'fbcp-ili9341': No such file or directory
After/during keyboard driver installation using
cd ./picocalc-pi-zero-2
chmod +x ./setup_keyboard.sh
sudo ./setup_keyboard.sh
I got this:
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c:157:6: warning: no previous prototype for ‘input_fw_read_fifo’ [-Wmissing-prototypes]
157 | void input_fw_read_fifo(struct kbd_ctx* ctx)
| ^~~~~~~~~~~~~~~~~~
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c: In function ‘kbd_timer_function’:
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c:452:51: warning: parameter ‘data’ set but not used [-Wunused-but-set-parameter]
452 | static void kbd_timer_function(struct timer_list *data)
| ~~~~~~~~~~~~~~~~~~~^~~~
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c: At top level:
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c:459:5: warning: no previous prototype for ‘input_probe’ [-Wmissing-prototypes]
459 | int input_probe(struct i2c_client* i2c_client)
| ^~~~~~~~~~~
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c:577:6: warning: no previous prototype for ‘input_shutdown’ [-Wmissing-prototypes]
577 | void input_shutdown(struct i2c_client* i2c_client)
| ^~~~~~~~~~~~~~
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c:595:10: warning: no previous prototype for ‘params_get_sysfs_gid’ [-Wmissing-prototypes]
595 | uint32_t params_get_sysfs_gid(void)
| ^~~~~~~~~~~~~~~~~~~~
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c:729:5: warning: no previous prototype for ‘sysfs_probe’ [-Wmissing-prototypes]
729 | int sysfs_probe(struct i2c_client* i2c_client)
| ^~~~~~~~~~~
/home/jblanked/picocalc-pi-zero-2/picocalc_kbd/picocalc_kbd.c:754:6: warning: no previous prototype for ‘sysfs_shutdown’ [-Wmissing-prototypes]
754 | void sysfs_shutdown(struct i2c_client* i2c_client)
| ^~~~~~~~~~~~~~
And when trying to do the last step: Edit /boot/config.txt (with sudo) and add:
I got this
dtparam=i2c_arm=on
dtoverlay=picocalc_kbd
DO NOT EDIT THIS FILE
The file you are looking for has moved to /boot/firmware/config.txt
(which I then modified the /boot/firmware/config.txt)
But I don’t see anything on the screen