Replies: 11 comments 20 replies
-
Just in case there was a pcb problem caused by the tight fit of the HDMI adaptor against the 3.5mm socket, I have checked all the connections between the codec and the R Pi, and all is OK. I also checked that the dtoverlay in config.txt looks correct to enable the codec with GPIO4. I noticed that there is a mod to the software 2 days ago wrt create-midi-gadget - could that be creating a problem? |
Beta Was this translation helpful? Give feedback.
-
Hi Javier Thanks for getting back to me. I've been powering the Haxophone with a high quality USB battery pack that gives around 4.9V or so at the R Pi 5V pins. I've also used it with and without keyboard and monitor, and/or powered from my MacBook. Everything went wrong when I downloaded a new image, so if you have an older one, I would be happy to try it again. If you look at the first of my screen pictures, you will see that the Pi timed out while waiting for /dev/sda1, then dependency failed for /media/usb (whatever the means!). Thereafter it was just a run down to a reboot. The behaviour is always identical, although of course I can't see that without a monitor plugged in. I'll try the link you sent, but I guess that will be the same as before - confirmed - that's the image of 21 Dec 2023 @ 20:48. Tony |
Beta Was this translation helpful? Give feedback.
-
Hi Yes - the 2nd Pi Zero fails the same, and also fails when not connected to the Haxophone. I was thinking that perhaps you had changed the software so that it would not time out gracefully if the codec was not connected. Tony |
Beta Was this translation helpful? Give feedback.
-
I got the latest version of the script, but now get an execution error.
Tony
…On Fri, 5 Jan 2024 at 18:51, Javier Cardona ***@***.***> wrote:
Hi @tony1tf <https://github.com/tony1tf>
The version of the create_midi_file.sh script that shipped with the
released image would not allow restarting the service more than once. This
was fixed here
<cardonabits/haxo-rs@6f11c89>,
so you might want to pick the latest version of the script
<https://github.com/cardonabits/haxo-rs/blob/main/scripts/systemd/create_midi_gadget.sh>
from the repository.
Unfortunately your capture does not show why the service failed to start
the first time around. You would need to scroll up for that. Or you can
swap the script, and you'll get rid of those errors.
Regarding the hostname, I don't think EDSACLA1 will hurt.
—
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJKGTWET4JAEKPNTMFCTELYNBDS7AVCNFSM6AAAAABBJAN2YCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DAMRWGAYTK>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately, it looks like there are problems in the apt database for 'Buster' for libfluidsynth-dev. I had to use '--fix-missing'. |
Beta Was this translation helpful? Give feedback.
-
Tried git cloning your haxo-rs code, but 'cargo run' gives error -bash: cargo: command not found. I guess I need to install rust, but this is getting out of my comfort zone! |
Beta Was this translation helpful? Give feedback.
-
I've taken a different route now and used pishrink.sh from https://github.com/aikoncwd/PiShrink to compress the 16GB image to 4.9GB. I was able to burn this to an 8GB card with R Pi Imager. |
Beta Was this translation helpful? Give feedback.
-
Hi Javier
"What do you mean by "worked". Were you able to play the haxophone?" - yes
- I downloaded the RPi Zero image I found at Christmas to a 32GB card, and
posted a video of me playing along with my friend improvising on piano,
after I had learned as a complete 'Noob' to play the pentatonic scale.
Initially, I was trying to get WiFi working so I could SSH to the Pi, and
didn't at first realise that you had disabled WiFi.
It all went wrong after that when I downloaded the later image that had the
USB gadget mods, and I have never had a working saxophone since then.
The 32GB SD card has 'firstrun.sh' - attached here - I have deleted my WiFi
SSI psk string that appears on it. The 8GB version after the 'shrink' and
boot up does not have a firstrun.sh file. I have also attached the cmdline
and config files from the 32GB card.
Tony
On Sun, 7 Jan 2024 at 11:23, Javier Cardona ***@***.***> wrote:
Hi @tony1tf <https://github.com/tony1tf>,
Thanks for the update.
Old RPiZ16GB image on 32GB card worked
What do you mean by "worked". Were you able to play the haxophone?
Newest RPiZ 16GB image on 32 GB card failed during boot.
Looking carefully at the images you sent, it seems as if your RPi is doing
an orderly shutdown in response to a command executed by the firstrun.sh
script.
image.png (view on web)
<https://github.com/cardonabits/haxo-hw/assets/676181/d63d14fc-1711-4c8a-8127-070be40eb1b4>
Your image is cropped, so I cannot see what that command is. *But
firstrun.sh is not included in the released image.*
Screenshot.from.2024-01-07.11-08-59.png (view on web)
<https://github.com/cardonabits/haxo-hw/assets/676181/ef021455-3695-40c3-ac65-7802a2d06566>
This is created by the Raspberry Pi Imager if you choose to apply custom
settings.
Screenshot.from.2024-01-06.14-36-32.png (view on web)
<https://github.com/cardonabits/haxo-hw/assets/676181/6800ca0c-ebc5-4a4e-9e3a-3d0596a067c3>
Screenshot.from.2024-01-07.11-08-07.png (view on web)
<https://github.com/cardonabits/haxo-hw/assets/676181/fba00199-318a-4c61-b5a8-d0ab156c28c2>
Screenshot.from.2024-01-07.11-08-17.png (view on web)
<https://github.com/cardonabits/haxo-hw/assets/676181/381834f9-ad70-459b-aa75-8a3c14a5d698>
Can you try and extract the contents of firstrun.sh and attach here? That
script lives in the /boot partition, and it should be readable by
inserting the SD card on your Mac.
And after that, can you retry to flash an SD card *without customization
settings*?
If that fails, can you try to capture the full log where firstrun.sh
commands are displayed?
I have a positive feeling about this... 🤞
—
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJKGTX53YS2BDPBSEF7NGLYNKAULAVCNFSM6AAAAABBJAN2YCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DAMZWGI2TK>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
boot=overlay console=serial0,115200 console=tty1 root=PARTUUID=4c4e106f-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB systemd.run=/boot/firstrun.sh systemd.run_success_action=reboot systemd.unit=kernel-command-line.target
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
# dtparam=audio=on
# Enable haxophone built in sound card
dtoverlay=max98357a,sdmode-pin=4
# Automatically load overlays for detected cameras
camera_auto_detect=1
# Automatically load overlays for detected DSI displays
display_auto_detect=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
# Disable compensation for displays with overscan
disable_overscan=1
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
#otg_mode=1
[all]
[pi4]
# Run as fast as firmware / board allows
arm_boost=1
[all]
enable_uart=1
dtoverlay=dwc2
dtoverlay=disable-wifi
dtoverlay=disable-bt
dtparam=i2c_arm_baudrate=400000
initramfs initrd.img-6.1.21+-overlay
|
Beta Was this translation helpful? Give feedback.
-
Hi Javier What I don't understand, is that I wasn't doing any customisation initially, so I don't understand the problem. Anyway - I'm expecting a 16GB card to arrive today, so will try to put the current image on it without customisation and see if it works. |
Beta Was this translation helpful? Give feedback.
-
Hi Javier Thank you - even before the new 16GB card arrived, you have given me the clue to why the 32GB image wasn't working. I deleted firstrun.sh, and edited cmdline.txt to remove everything after 'rootwait' that calls firstrun. I must have unknowingly generated firstrun etc after the original success, in an effort to get WiFi working, and then subsequently I put the disable WiFi command back in the configuration file, but by that time, the damage was done. I have never had any knowledge of how R Pis boot up, so this is all quite revealing. Tony |
Beta Was this translation helpful? Give feedback.
-
Yay! Glad I could help. Thanks to this, I learned about RPi customizations as well. I did not know about Thanks! |
Beta Was this translation helpful? Give feedback.
-
I though I'd start a new thread on this problem.
Using this image https://bit.ly/haxo-rpiz that is linked to in hortense667 issues.
I have also managed to get some screen pictures before the Pi reboots. This is with the haxophone attached with HDMI and keyboard connected. No mods to any start-up files. I have managed to capture the screen when it is looking for the sound card, and then just as it is about to reboot.
Tony
Beta Was this translation helpful? Give feedback.
All reactions