<?xml version="1.0"?>
<rss version="2.0"><channel><title>Orange Pi Zero Plus Latest Topics</title><link>https://testforum.armbian.com/forum/239-orange-pi-zero-plus/</link><description>Orange Pi Zero Plus Latest Topics</description><language>en</language><item><title>Orange Pi Zero Plus not booting on Armbian 24.2.1 Jammy CLI</title><link>https://testforum.armbian.com/topic/35627-orange-pi-zero-plus-not-booting-on-armbian-2421-jammy-cli/</link><description><![CDATA[<p>
	Hi guys,
</p>

<p>
	 
</p>

<p>
	I downloaded Armbian 24.2.1 Jammy CLI (Armbian_24.2.1_Orangepizeroplus_jammy_current_6.6.16.img.xz) for the Orange Pi Zero Plus and it's not booting. Boot log below:
</p>

<p>
	 
</p>

<pre class="ipsCode">U-Boot SPL 2024.01-armbian (Feb 09 2024 - 19:21:37 +0000)
DRAM: 512 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.9(debug):armbian
NOTICE:  BL31: Built : 19:20:27, Feb  9 2024
NOTICE:  BL31: Detected Allwinner H5 SoC (1718)
NOTICE:  BL31: Found U-Boot DTB at 0x20a4ef0, model: Xunlong Orange Pi Zero Plus
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
NOTICE:  PMIC: Assuming H5 reference regulator design
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
SCP/INF: Crust v0.6.10000
INFO:    PSCI: Suspend is available via SCPI
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2024.01-armbian (Feb 09 2024 - 19:21:37 +0000) Allwinner Technology

CPU:   Allwinner H5 (SUN50I)
Model: Xunlong Orange Pi Zero Plus
DRAM:  512 MiB
Core:  67 devices, 20 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Loading Environment from FAT... MMC: no card present
** Bad device specification mmc 0 **
In:    serial,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
Net:   eth0: ethernet@1c30000
MMC: no card present
** Bad device specification mmc 0 **
Couldn't find partition mmc 0
MMC: no card present
** Bad device specification mmc 0 **
Couldn't find partition mmc 0
starting USB...
Bus usb@1c1a000: sun4i_usb_phy phy@1c19400: External vbus detected, not enabling our own vbus
USB EHCI 1.00
Bus usb@1c1a400: USB OHCI 1.0
Bus usb@1c1b000: USB EHCI 1.00
Bus usb@1c1b400: USB OHCI 1.0
scanning bus usb@1c1a000 for devices... 1 USB Device(s) found
scanning bus usb@1c1a400 for devices... 1 USB Device(s) found
scanning bus usb@1c1b000 for devices... 1 USB Device(s) found
scanning bus usb@1c1b400 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Autoboot in 1 seconds, press &lt;Space&gt; to stop
MMC: no card present

Device 0: unknown device
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-02-01-a6-4a-c9-69
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/00000000
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/0000000
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/000000
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/00000
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/0000
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/000
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/00
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/0
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/default-arm-sunxi-sunxi
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/default-arm-sunxi
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/default-arm
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Retrieving file: pxelinux.cfg/default
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Config file not found
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
=&gt; %                                                                             </pre>

<p>
	 
</p>
]]></description><guid isPermaLink="false">35627</guid><pubDate>Tue, 05 Mar 2024 00:40:04 +0000</pubDate></item><item><title>Configure LCD in U-boot for Orange pi zero plus</title><link>https://testforum.armbian.com/topic/14475-configure-lcd-in-u-boot-for-orange-pi-zero-plus/</link><description><![CDATA[<p>
	I am trying to configure a splashscreen in u-boot on an orange pi zero plus using Armbian.
</p>

<p>
	 
</p>

<p>
	The screen is connected through spi1 using the ST7789v chip of the LCD. I have successfully configured the screen when the kernel is loaded.
</p>

<p>
	 
</p>

<p>
	I already have used systemd to display a splashscreen however I find it slow to display something. It display something only after ~12 sec. I could probably reduce that time a bit by loading the service earlier but it would never start in 5 sec.
</p>

<p>
	 
</p>

<p>
	I have tried unsuccessfully to activate CONFIG_VIDEO_LCD_MODE (<a href="https://github.com/u-boot/u-boot/blob/93330d4ce416208fe202e304e5a18166c57ac569/arch/arm/mach-sunxi/Kconfig" rel="external nofollow">VIDEO_LCD_MODE</a>) in u-boot which allow to configure an LCD. It seems that it is not allowed because it depends on !MACH_SUNXI_H3_H5.
</p>

<p>
	 
</p>

<p>
	How can I configure the output to the LCD via the SPI 1 ?
</p>

<p>
	 
</p>

<p>
	It seems that u-boot doesn't take in charge spi as a video output. I can see LCD, HDMI, DVI, VGA,... but no SPI. Is it possible to configure the SPI as LCD? Or to send framebuffer to the SPI to display the splashscreen?
</p>
]]></description><guid isPermaLink="false">14475</guid><pubDate>Wed, 24 Jun 2020 09:41:11 +0000</pubDate></item><item><title>Orange Pi Zero Plus spi nor flash - anyone know how to configure for booting</title><link>https://testforum.armbian.com/topic/8111-orange-pi-zero-plus-spi-nor-flash-anyone-know-how-to-configure-for-booting/</link><description><![CDATA[<p>
	From reading through the forums I cobbled together what I thought might work for getting spi nor to boot, but it fails:
</p>

<p>
	Activate the spi-jedec-nor overlay in /boot/armbianEnv.txt :
</p>

<p>
	overlays=spi-jedec-nor<br>
	param_spinor_spi_bus=0
</p>

<p>
	 
</p>

<p>
	Then, after reboot, "cat /proc/mtd" should produce something like this :
</p>

<p>
	dev:    size   erasesize  name<br>
	mtd0: 00200000 00001000 "spi0.0"<br><strong>Here is where it fails - I just get the heading, with no mtd0: 00200000 00001000 "spi0.0".</strong><br><br>
	Should I be using a different param_spinor_spi_bus?<br><br>
	I assume that once that works, the following will work?
</p>

<p>
	apt-get install mtd-utils<br>
	 
</p>

<p>
	cat /usr/lib/linux-u-boot-next-orangepizeroplus_5.38_arm64/sunxi-spl.bin /usr/lib/linux-u-boot-next-orangepizeroplus_5.38_arm64/u-boot.itb &gt; /usr/lib/linux-u-boot-next-orangepizeroplus_5.38_arm64/u-boot-sunxi-with-spl.bin
</p>

<p>
	<br>
	flashcp /usr/lib/linux-u-boot-next-orangepizeroplus_5.38_arm64/u-boot-sunxi-with-spl.bin /dev/mtd0
</p>
]]></description><guid isPermaLink="false">8111</guid><pubDate>Tue, 04 Sep 2018 12:06:56 +0000</pubDate></item><item><title>OPI-zero+ (H5) gpiodmon generates spurious Interrupts* upon invocation</title><link>https://testforum.armbian.com/topic/20166-opi-zero-h5-gpiodmon-generates-spurious-interrupts-upon-invocation/</link><description><![CDATA[<p>
	I cut/paste a related information exchange I had w/ Kent from the gpiod mailing list. The arbian-monitor output is in the attached file.
</p>

<p>
	&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
</p>

<p>
	I wired a <abbr title="General purpose input/output"><abbr title="General purpose input/output">GPIO</abbr></abbr> Pin to GND. Upon the cmd: sudo gpiomon -r -n1 -Bpull-up &lt;chip&gt; &lt;offset&gt; the program exits immediately with 1 event, although there was never a rising edge due to the fix wire to GND. Is this a feature or a bug, and is it reproducible?
</p>

<p>
	&lt;
</p>

<p>
	Not a feature and not reproducible for me on a Raspberry Pi4 with the setup you describe, so probably a bug specific to your hardware platform, whatever that may be. If it is 100% reproduceable for you, and assuming it is an initialisation issue so you only get the one spurious event, how about using -n2 as a workaround ? Cheers, Kent.
</p>

<p>
	&gt;
</p>

<p>
	It appears 2b reproduceable 100% on my OrangePi zero+ (Allwinner H5) and using -n2 does the trick, but isn't gpiod not supposed to work on all commercial HW platforms and related kernels, rather then only on <abbr title="Raspberry Pi"><abbr title="Raspberry Pi">RPI</abbr></abbr>??
</p>

<p>
	&lt;
</p>

<p>
	gpiod will work on any platform with a supporting kernel. How well depends on the underlying hardware and driver. The RPi4 was merely a counter-example demonstrating that your issue is not universal, using hardware I happen to have readily available. Cheers, Kent.
</p>

<p>
	&gt;
</p>

<p>
	So if I understand you right, gpiod works on sort of a logical level, while the HW dependend part depends of the kernel driver implementation of the specific HW?
</p>

<p>
	&lt;
</p>

<p>
	libgpiod is a userspace library and tools to access <abbr title="General purpose input/output"><abbr title="General purpose input/output">GPIO</abbr></abbr> lines via the Linux <abbr title="General purpose input/output"><abbr title="General purpose input/output">GPIO</abbr></abbr> character device. The actual interfacing to the hardware is performed by the kernel and appropriate drivers for your hardware. As your problem does not exhibit on other hardware, the root cause of your problem probably lies in the driver for your hardware, not in libgpiod nor the gpiolib subsystem of the kernel. But you would need to debug it further to be sure. Cheers, Kent.
</p>

<p>
	 
</p>

<p>
	* Event should be more correct than Interrupt.
</p>

<p>
	 
</p>

<p>
	I made some trial to understand if it is reproduceable, but I have difficulties defining, when it happens. After RESET there is no spurious event. The spurious event appears to happen, when the line was moved:
</p>

<p>
	RESET, gpiomon -r -n1 -Bpull-up 1 6   =&gt; No event,  -&gt; pull line up /down, =&gt; event (as expected),  gpiomon -r -n1 -Bpull-up 1 6 =&gt; false event
</p>

<p>
	There might be an issue w/ pending interrupts, when the line is bouncing when pulled up/down. The 2nd gpiodmon cmd might catch one of the pending interrupts. (Just an idea). This would hint to an initialisation problem, that pending line states are not preempted, before the int is attached.
</p>

<p>
	If I just let the line go up (by pull-up) and leave it "1", I get continuous false events on every gpiomon... cmd, just like "level interrupts"
</p>

<p>
	 
</p>

<p>
	Kent Gibson and I performed checks independently on our RPIs and we both can confirm that the problem does no occur on the <abbr title="Raspberry Pi"><abbr title="Raspberry Pi">RPI</abbr></abbr>: Linux raspberrypi 5.10.63-v7+ #1459 SMP Wed Oct 6 16:41:10 BST 2021 armv7l GNU/Linux
</p>

<p>
	 
</p>

<p>
	 
</p>

<p>
	<a class="ipsAttachLink" data-fileext="txt" data-fileid="8816" href="https://testforum.armbian.com/applications/core/interface/file/attachment.php?id=8816&amp;key=f473b45840606609514d243601187e4f" rel="">armbian-monitor-U.txt</a>
</p>
]]></description><guid isPermaLink="false">20166</guid><pubDate>Tue, 29 Mar 2022 09:23:08 +0000</pubDate></item><item><title>orange pi zero plus won't reboot after 'shutdown -r now', only shuts down.</title><link>https://testforum.armbian.com/topic/20244-orange-pi-zero-plus-wont-reboot-after-shutdown-r-now-only-shuts-down/</link><description><![CDATA[<p>
	Orange pi zero plus
</p>

<p>
	'shutdown -r now' shuts down, won't reboot within 20 minutes. Have to power cycle.
</p>

<p>
	reboot worked initially.
</p>

<p>
	I installed a few bits and firefox. Not sure what triggered it. In other reports I read kernel upgrades.
</p>

<p>
	Could it do a lengthy fsck during boot? 64 GB SD-card/file system.
</p>

<p>
	Would some (red or green) LED shine? It's all dark.
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">20244</guid><pubDate>Sun, 10 Apr 2022 21:24:07 +0000</pubDate></item></channel></rss>
