Go to advanced search

by skcasb
Wed Jul 08, 2020 3:23 pm
Forum: Troubleshooting
Topic: Auto-mounting external USB devices on /mnt/mydir
Replies: 3
Views: 142

Auto-mounting external USB devices on /mnt/mydir

Hi all, It is possible to mount a generic USB stick in a folder other than /media/pi/ (for example to /mnt/mydir) and disabling the windows popup shown on display when the usb stick is inserted ? Is it possible to use an udev rule without modifying fstab? Do you have any examples that can help me? T...
by skcasb
Mon Oct 14, 2019 2:39 pm
Forum: Troubleshooting
Topic: dtoverlay gpio-shutdown not working on Stretch
Replies: 6
Views: 4372

Re: dtoverlay gpio-shutdown not working on Stretch

Hi, I use the same RPI 3B+ running raspbian stretch within the same Kernel version, generated by pi-gen. Adding the following line to the config.txt file (even if the gpio used is different from yours) it is possible to verify that on power on the gpio goes to the high level and then go low when shu...
by skcasb
Tue Sep 24, 2019 3:51 pm
Forum: Troubleshooting
Topic: Firmware/Kernel issue on latest version ?
Replies: 5
Views: 654

Re: Firmware/Kernel issue on latest version ?

The workaround suggested by you solved the issue.

I hope for a fix asap.

Thank you.
by skcasb
Mon Sep 23, 2019 1:34 pm
Forum: Troubleshooting
Topic: Firmware/Kernel issue on latest version ?
Replies: 5
Views: 654

Re: Firmware/Kernel issue on latest version ?

I forgot something very important, this problem occurs when the rootfs is on USB key and not on SD-CARD. In the latest version of the bootloader there must be a problem starting the file system from USB. Unfortunately I can't use the sd-card as the basis for the file system, this is causing me a lot...
by skcasb
Mon Sep 23, 2019 10:57 am
Forum: Troubleshooting
Topic: Firmware/Kernel issue on latest version ?
Replies: 5
Views: 654

Firmware/Kernel issue on latest version ?

Hi all, we have notice an issue on hdmi after latest update of firmware/kernel/bootloader version below: vcgencmd version Aug 15 2019 12:06:42 Copyright (c) 2012 Broadcom version 0e6daa5106dd4164474616408e0dc24f997ffcf3 (clean) (release)(start) uname -a Linux 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:4...
by skcasb
Wed Sep 11, 2019 10:11 am
Forum: Troubleshooting
Topic: Raspberry PI 3B+ with kernel 4.19.66-v7+ - hdmi issue ?
Replies: 2
Views: 982

Re: Raspberry PI 3B+ with kernel 4.19.66-v7+ - hdmi issue ?

Hi all, I think I understand that my problem depends on the following files. fixup.dat fixup_x.dat start.elf start_x.elf We use an LCD 800x480@60, for this reason we need to use a custom mode on config.txt file. The latest stretch image created one week ago using pi-gen, doesn't show anything on LCD...
by skcasb
Tue Sep 10, 2019 12:34 pm
Forum: Troubleshooting
Topic: Raspberry PI 3B+ with kernel 4.19.66-v7+ - hdmi issue ?
Replies: 2
Views: 982

Re: Raspberry PI 3B+ with kernel 4.19.66-v7+ - hdmi issue ?

Hi all,

It's always me.

How can I modify the pi-gen scripts to have a kernel/bootloader to a specific release in the resulting image ?

The resulting image must have the right version of kernel/bootloader.

Thank you again
by skcasb
Tue Sep 10, 2019 9:12 am
Forum: Troubleshooting
Topic: Raspberry PI 3B+ with kernel 4.19.66-v7+ - hdmi issue ?
Replies: 2
Views: 982

Raspberry PI 3B+ with kernel 4.19.66-v7+ - hdmi issue ?

Hi all, I normally use pi-gen a tool used to create the raspberrypi.org Raspbian stretch images, the current kernel version downloaded from repository is 4.19.66-v7+ in config.txt we have set a custom HDMI mode: hdmi_group=2 hdmi_mode=87 hdmi_cvt=800 480 60 3 0 0 0 We had notice a strange behaviour,...
by skcasb
Wed Jun 12, 2019 9:43 am
Forum: Troubleshooting
Topic: How to check the filesystem to find errors
Replies: 2
Views: 247

How to check the filesystem to find errors

Hi to all, Do you know if there is a command to check the filesystem for errors without repair it ? I try to use this command on my mounted filesystem (raspbian stretch on usb) fsck.ext4 -c /dev/sda1 unfortunately I receive the below message that warns me that I can damage the filesystem if I contin...
by skcasb
Thu Feb 14, 2019 1:26 pm
Forum: Beginners
Topic: How To Execute a Script at Shutdown/Halt on Raspbian Stretch
Replies: 10
Views: 1202

Re: How To Execute a Script at Shutdown/Halt on Raspbian Stretch

The first script trigger also on reboot.

I need the service only for halt and shutdown, removing reboot.target from "Wanted by" it works fine.

Thank you.
by skcasb
Thu Feb 14, 2019 11:22 am
Forum: Troubleshooting
Topic: Raspberry Stretch: how to check if Ethernet cable is connected ?
Replies: 2
Views: 1899

Re: Raspberry Stretch: how to check if Ethernet cable is connected ?

I confirm that using ethtool I can see the real Link detected and solve my problem.

Thank you.

Regards.
by skcasb
Thu Feb 14, 2019 10:51 am
Forum: Troubleshooting
Topic: Raspberry Stretch: how to check if Ethernet cable is connected ?
Replies: 2
Views: 1899

Raspberry Stretch: how to check if Ethernet cable is connected ?

Hi All, in general when I need to check if the ethernet cable is connected to a raspberry, I verify the value of /sys/class/net/eht0/carrier carrier = 0 --> network cable detached carrier = 1 --> network cable attached On my Raspberry 3B+ I get always carrier = 1 even if the network cable is disconn...
by skcasb
Thu Feb 14, 2019 10:20 am
Forum: Beginners
Topic: How To Execute a Script at Shutdown/Halt on Raspbian Stretch
Replies: 10
Views: 1202

Re: How To Execute a Script at Shutdown/Halt on Raspbian Stretch

Yes, also rebooted the raspberry but I still have the same issue using your code.

If I use on "Service" section this code instead of yours

Code: Select all

[Service]
Type=oneshot
ExecStart=/bin/sh -c '/bin/echo "cmd=switchoff" > /dev/ttyACM0'
The service works fine when I issue a poweroff/halt command.
by skcasb
Mon Feb 11, 2019 3:44 pm
Forum: Beginners
Topic: How To Execute a Script at Shutdown/Halt on Raspbian Stretch
Replies: 10
Views: 1202

Re: How To Execute a Script at Shutdown/Halt on Raspbian Stretch

Hi,

I'm sorry, but using your code I still have this error:

Code: Select all

Service has no ExecStart= setting, which is only allowed for RemainAfterExit=yes services. Refusing.
by skcasb
Mon Feb 11, 2019 11:05 am
Forum: Beginners
Topic: How To Execute a Script at Shutdown/Halt on Raspbian Stretch
Replies: 10
Views: 1202

Re: How To Execute a Script at Shutdown/Halt on Raspbian Stretch

Added also RemainAfterExit=yes but I still have the issue. I think the problem is how ExecStart is written. Comparing the rpi-display-backlight.service file with mine is enough to change ExecStart as follows to solve the problem: [Unit] Description=Turn power off after shutdown DefaultDependencies=n...
by skcasb
Fri Feb 08, 2019 1:53 pm
Forum: Beginners
Topic: How To Execute a Script at Shutdown/Halt on Raspbian Stretch
Replies: 10
Views: 1202

Re: How To Execute a Script at Shutdown/Halt on Raspbian Stretch

I just replaced ExecStart to ExecStop as you suggested but I get the following error when a systemctl status mypoweroff.service issued mypoweroff.service: Service has no ExecStart= setting, which is only allowed for RemainAfterExit=y Do I need to change or add something on service script ? Thank you.
by skcasb
Fri Feb 08, 2019 9:21 am
Forum: Beginners
Topic: How To Execute a Script at Shutdown/Halt on Raspbian Stretch
Replies: 10
Views: 1202

How To Execute a Script at Shutdown/Halt on Raspbian Stretch

Hi All, I'm using a Raspberry pi 3B+ within Raspian Strecth 9.6. I need to execute a script that send a command on serial ttyACM0 to switch-off raspberry power-supply, when the command "sudo poweroff" or "sudo halt" are issued. The source script is visible below: [Unit] Description=Turn power off af...
by skcasb
Wed Jul 11, 2018 3:32 pm
Forum: Troubleshooting
Topic: sudo reboot
Replies: 13
Views: 2437

Re: sudo reboot

I had the same issue using the Raspbian Stretch Lite downloaded from https://downloads.raspberrypi.org/raspbian_lite_latest on my RPI 3B+ and a usb memory stick of 16GB. Without installing other packages, the first command I gave after login was "sudo reboot" command but the RPI 3B+ won't reboot. Th...

Go to advanced search