Jump to content

Raspberry Pi Zero (raspberry-pi0): Difference between revisions

From postmarketOS Wiki
m Reverted edits by Doomfan345 (talk) to last revision by SoySoy
Tag: Rollback
Justsoup (talk | contribs)
m removed PMOS_NO_OUTPUT_REDIRECT since it doesn't exist anymore
 
(4 intermediate revisions by 3 users not shown)
Line 48: Line 48:
2. Choose the <code>raspberry-pi0</code> device
2. Choose the <code>raspberry-pi0</code> device


3. Start the build process and install the completed image to a sdcard
3. Start the build process and install the completed image to a sdcard (replace <code>/dev/sdX</code> with the device for your sdcard)
<source lang="shell-session">
<syntaxhighlight lang="shell-session">
$ ./pmbootstrap.py install --sdcard /dev/sdX
$ ./pmbootstrap.py install --sdcard /dev/sdX
(replace /dev/sdX with the device for your sdcard)
</syntaxhighlight>
</source>


4. Place the sdcard into the Raspberry Pi and boot it
4. Place the sdcard into the Raspberry Pi and boot it
Line 59: Line 58:


6. Let the RPI boot and then you should be able to connect using SSH
6. Let the RPI boot and then you should be able to connect using SSH
<source lang="shell-session">
<syntaxhighlight lang="shell-session">
$ ssh user@172.16.42.1
$ ssh user@172.16.42.1
</source>
</syntaxhighlight>


== Issues ==
== Issues ==
Line 68: Line 67:


The vc4 module fails to load:
The vc4 module fails to load:
<source lang="shell-session">
<syntaxhighlight lang="dmesg">
# dmesg | grep vc
# dmesg | grep vc
[    0.000000] Kernel command line: 8250.nr_uarts=1 cma=256M bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:3D:4B:57 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 PMOS_NO_OUTPUT_REDIRECT
[    0.000000] Kernel command line: 8250.nr_uarts=1 cma=256M bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:3D:4B:57 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200
[    0.674097] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.674097] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.675232] vc-sm: Videocore shared memory driver
[    0.675232] vc-sm: Videocore shared memory driver
Line 82: Line 81:
[    3.021189] vc4-drm soc:gpu: failed to bind 20902000.hdmi (ops vc4_hdmi_ops [vc4]): -517
[    3.021189] vc4-drm soc:gpu: failed to bind 20902000.hdmi (ops vc4_hdmi_ops [vc4]): -517
[    3.048315] vc4-drm soc:gpu: master bind failed: -517
[    3.048315] vc4-drm soc:gpu: master bind failed: -517
</source>
</syntaxhighlight>


Same result with both <code>dtoverlay=vc4-kms-v3d</code> and <code>dtoverlay=vc4-fkms-v3d</code> overlarys using <code>gpu_mem=256</code>
Same result with both <code>dtoverlay=vc4-kms-v3d</code> and <code>dtoverlay=vc4-fkms-v3d</code> overlarys using <code>gpu_mem=256</code>
Line 97: Line 96:
* The Raspberry Pi has a [https://wiki.alpinelinux.org/wiki/Raspberry_Pi pre-existing port of Alpine Linux]
* The Raspberry Pi has a [https://wiki.alpinelinux.org/wiki/Raspberry_Pi pre-existing port of Alpine Linux]
* It should be possible to [[Existing Alpine installation|convert the pre-existing RPi Alpine install to a pmOS install]].
* It should be possible to [[Existing Alpine installation|convert the pre-existing RPi Alpine install to a pmOS install]].
* {{github|1137}} Testing out Hildon and XFCE4 (other UIs did not work at all?) on Raspberry Pi after converting the Alpine installation
* {{issue|1137}} Testing out Hildon and XFCE4 (other UIs did not work at all?) on Raspberry Pi after converting the Alpine installation
* [https://github.com/christinaa/rpi-open-firmware/tree/master rpi-open-firmware] - a Free Software firmware for the Pi.
* [https://github.com/christinaa/rpi-open-firmware/tree/master rpi-open-firmware] - a Free Software firmware for the Pi.
* {{github|1501}} initial PR
* {{MR|1501}} initial PR
* {{MR|125|pmaports}} New device: Raspberry Pi Zero with Ethernet over USB enabled
* {{MR|125|pmaports}} New device: Raspberry Pi Zero with Ethernet over USB enabled
* [https://github.com/ropg/hyper-pi Hyper-pi] - Project to make a handheld device w/ a RPi Zero and a HyperPixel 4" capacitive touch screen
* [https://github.com/ropg/hyper-pi Hyper-pi] - Project to make a handheld device w/ a RPi Zero and a HyperPixel 4" capacitive touch screen
* [https://ruha.camera/ Ruha.cam A Pi zero based camera]
* [https://ruha.camera/ Ruha.cam A Pi zero based camera]
[[Category:Devices]]
[[Category:Devices]]

Latest revision as of 00:07, 28 November 2024

Warning WARNING: This device is not recommended for future use with postmarketOS due to its armhf architecture. Alpine Linux (the distribution that postmarketOS extends) pmaports#599 has been considering dropping it.
The processor of the device may support the armv7 architecture. If so, you can modify the device package and change the architecture accordingly.
Raspberry Pi Foundation Raspberry Pi Zero
Manufacturer Raspberry Pi Foundation
Name Raspberry Pi Zero
Codename raspberry-pi0
Released 2015
Type single board computer
Hardware
Chipset Broadcom BCM2835
CPU ARM1176JZF-S @ 1 GHz
GPU Broadcom VideoCore IV
Display HDMI port
Storage MicroSDHC slot
Memory 512 MB
Architecture armhf
Software
Original software Raspbian
postmarketOS
Category testing
Pre-built images no
Mainline yes
Features
USB Networking
Works
Internal storage
No data
SD card
No data
Screen
Works
Multimedia
3D Acceleration
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
Works
NFC
No data
Miscellaneous
FDE
No data
USB OTG
No data
HDMI/DP
No data
Sensors
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


Users owning this device


Contributors

Installation

1. Follow the steps on Installation_guide#Initialization

2. Choose the raspberry-pi0 device

3. Start the build process and install the completed image to a sdcard (replace /dev/sdX with the device for your sdcard)

$ ./pmbootstrap.py install --sdcard /dev/sdX

4. Place the sdcard into the Raspberry Pi and boot it

5. Connect a microUSB cable to the central microUSB port (with the USB label)

6. Let the RPI boot and then you should be able to connect using SSH

$ ssh user@172.16.42.1

Issues

3D Acceleration (GPU)

The vc4 module fails to load:

# dmesg | grep vc
[    0.000000] Kernel command line: 8250.nr_uarts=1 cma=256M bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:3D:4B:57 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200
[    0.674097] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.675232] vc-sm: Videocore shared memory driver
[    0.716056] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[    0.717968] [vc_sm_connected_init]: start
[    1.300516] [vc_sm_connected_init]: end - returning 0
[    2.594391] vc4-drm soc:gpu: failed to bind 20902000.hdmi (ops vc4_hdmi_ops [vc4]): -517
[    2.602801] vc4-drm soc:gpu: master bind failed: -517
[    2.992957] vc4-drm soc:gpu: failed to bind 20902000.hdmi (ops vc4_hdmi_ops [vc4]): -517
[    3.013847] vc4-drm soc:gpu: master bind failed: -517
[    3.021189] vc4-drm soc:gpu: failed to bind 20902000.hdmi (ops vc4_hdmi_ops [vc4]): -517
[    3.048315] vc4-drm soc:gpu: master bind failed: -517

Same result with both dtoverlay=vc4-kms-v3d and dtoverlay=vc4-fkms-v3d overlarys using gpu_mem=256

Photos

See also