Go to advanced search

by davethomaspilot
Tue Sep 12, 2017 2:21 pm
Forum: Advanced users
Topic: rpi-clone, but from usb to SD
Replies: 18
Views: 2433

Re: rpi-clone, but from usb to SD

when the RPi has booted from the USB stick the SDcard is visible at /dev/mmcblk0
Are you saying that the external USB drive will be mounted at /dev/mmcblk0 only if the pi booted from the usb drive?

Sorry, I missed that in your reply.
by davethomaspilot
Tue Sep 12, 2017 1:23 pm
Forum: Advanced users
Topic: rpi-clone, but from usb to SD
Replies: 18
Views: 2433

Re: rpi-clone, but from usb to SD

If the SDCard is bootable it will be booted first (unless you set the other OTP bits to ignore the SDCard Really? That's cool. I'm surprised I've not been "bitten" by this, since I've probably left a cloned rpi image in an SD drive. Is there an easy way to check whether the pi booted from the usb d...
by davethomaspilot
Tue Sep 12, 2017 12:44 pm
Forum: Advanced users
Topic: rpi-clone, but from usb to SD
Replies: 18
Views: 2433

rpi-clone, but from usb to SD

I've been using rpi-clone with great success for a couple of years. Love it! However, the rpi SD card in one of my projects requires disassembly of a higher level assembly before it can be accessed. That's not a problem for me, but for customers of my product, it's scary. Especially since, improper ...
by davethomaspilot
Fri Mar 17, 2017 12:08 am
Forum: Advanced users
Topic: Automatic Expand Filesystem after cloning a Rasbian image
Replies: 31
Views: 15517

Re: Automatic Expand Filesystem after cloning a Rasbian imag

No, I did both--five (maybe more) times. It definitely doesn't work for me with the cmdline.txt that results from the patch. My "use case" is after running a "hacked" version of rpi-clone. The "hacking" is just modifying some application files that differ based on one of four versions of the clone I...
by davethomaspilot
Thu Mar 16, 2017 11:06 pm
Forum: Advanced users
Topic: Automatic Expand Filesystem after cloning a Rasbian image
Replies: 31
Views: 15517

Re: Automatic Expand Filesystem after cloning a Rasbian imag

HOORAY! It works!

Thank you very much!

When it worked, I must have been editing cmdline.txt manually versus applying the patch.
by davethomaspilot
Thu Mar 16, 2017 10:57 pm
Forum: Advanced users
Topic: Automatic Expand Filesystem after cloning a Rasbian image
Replies: 31
Views: 15517

Re: Automatic Expand Filesystem after cloning a Rasbian imag

Ok, thanks!

I do see a difference in the patch to cmdline.txt besides the appended txt.

I'll try appending the text for invoking the script to a known, working cmdline.txt.
by davethomaspilot
Thu Mar 16, 2017 9:36 pm
Forum: Advanced users
Topic: Automatic Expand Filesystem after cloning a Rasbian image
Replies: 31
Views: 15517

Re: Automatic Expand Filesystem after cloning a Rasbian imag

I don't think that patch to cmdline.txt will apply
Could you elaborate?

The patch appends the invocation of /usr/lib/raspi-config/init_resize.sh to cmdline.txt. That's what resizes the file system.
by davethomaspilot
Thu Mar 16, 2017 6:03 pm
Forum: Advanced users
Topic: Automatic Expand Filesystem after cloning a Rasbian image
Replies: 31
Views: 15517

Re: Automatic Expand Filesystem after cloning a Rasbian imag

At least once everything worked when I did exactly as TimG suggested: sudo wget -qO /boot/cmdline.txt https://github.com/RPi-Distro/pi-gen/raw/dev/stage1/00-boot-files/files/cmdline.txt wget -qO - https://github.com/RPi-Distro/pi-gen/raw/dev/stage2/01-sys-tweaks/00-patches/07-resize-init.diff | sudo...
by davethomaspilot
Wed Mar 08, 2017 9:09 pm
Forum: Advanced users
Topic: Automatic Expand Filesystem after cloning a Rasbian image
Replies: 31
Views: 15517

Re: Automatic Expand Filesystem after cloning a Rasbian imag

Actually, I'm thinking that the problem was that I used: sudo systemctl enable resize2fs_once in my script to enable the resizing. But, maybe after doing update-rc.d resize2fs_once remove versus systemctl disable resize2fs_once another update-rc.d command is needed to ADD the service versus enabling...
by davethomaspilot
Wed Mar 08, 2017 8:52 pm
Forum: Advanced users
Topic: Automatic Expand Filesystem after cloning a Rasbian image
Replies: 31
Views: 15517

Re: Automatic Expand Filesystem after cloning a Rasbian imag

Beware of editing cmdline.txt with an init script. You'll end up running init_resize.sh on every boot (followed by a shutdown and a reboot). I want to make sure I understand... Everything works when I run the wgets and enable the daemon manually. But, I want the automatic expansion stuff enabled as...
by davethomaspilot
Mon Mar 06, 2017 12:38 pm
Forum: Advanced users
Topic: Automatic Expand Filesystem after cloning a Rasbian image
Replies: 31
Views: 15517

Re: Automatic Expand Filesystem after cloning a Rasbian imag

Is it necessary to remove the resize once daemon, (versus disabling)? That way, next time I shrink the filesystem for uploading to a website where others can download, I need only the enable the daemon using sudo systemctl enable resize2fs_once And append the text to /boot/cmdline.txt using sed in s...
by davethomaspilot
Fri Aug 05, 2016 4:55 pm
Forum: Advanced users
Topic: Shutdown X minutes after all hostapd clients disconnect
Replies: 3
Views: 1006

Re: Shutdown X minutes after all hostapd clients disconnect

I misspoke--I meant to say the shutdown based on no activity for a specified time would not be initiated until after a least one client connected. I don't know of a way to do this, other than poll using with iw or the hostapd_cli you mentioned. Thanks for pointing out hostapd_cli, I'll have to look ...
by davethomaspilot
Fri Aug 05, 2016 1:43 pm
Forum: Advanced users
Topic: Shutdown X minutes after all hostapd clients disconnect
Replies: 3
Views: 1006

Shutdown X minutes after all hostapd clients disconnect

I'd like to implement something that will initiate a shutdown a few minutes after all there are no clients connected to a hostapd server. The script wouldn't be run until after the first client connects. I found this to list "stations": iw dev wlan0 station dump I could parse that output to decide w...
by davethomaspilot
Sat Sep 12, 2015 10:34 pm
Forum: C/C++
Topic: Qt REST api
Replies: 5
Views: 2897

Re: Qt REST api

Should have been:

handle SIGILL noprint nostop

(not SIGUSER, but I needed that one too).
by davethomaspilot
Tue Jan 13, 2015 12:06 am
Forum: C/C++
Topic: Qt REST api
Replies: 5
Views: 2897

Re: Qt REST api

Wow, getting old sucks.

Had this problem,decided to "google it". Then found my own post with the answer!

DOH!

I moved up to a newer QtCreator and forgot about having to add the fragment to ignore the SIGILL
by davethomaspilot
Mon Jan 12, 2015 11:14 pm
Forum: Camera board
Topic: Camera stops streaming
Replies: 2
Views: 795

Re: Camera stops streaming

Also, frequently after it's stop streaming, I have to reboot. Until I do, when my code issues

xioctl(fd, VIDIOC_S_FMT, &fmt)

an error is returned. I have to reboot to start using the camera again.

The v4l2 test bench reports the same error when I try using it after the camera hangs.
by davethomaspilot
Mon Jan 12, 2015 12:56 pm
Forum: Camera board
Topic: Camera stops streaming
Replies: 2
Views: 795

Camera stops streaming

I'm using a Webcam (EconSee3CAM_10CUG) with a simplified version of V4l2 example code from here: http://linuxtv.org/downloads/v4l-dvb-apis/capture-example.html I'm using 1280x720 in bayer mode, which means each frame is 92600 bytes. It works, but the camera just stops streaming after a varying perio...
by davethomaspilot
Mon Sep 22, 2014 8:44 pm
Forum: C/C++
Topic: Qt REST api
Replies: 5
Views: 2897

Re: Qt REST api

Under Tools->Options->Debugger->gdb, Add this in the "Additional Startup Commands" entry box: handle SIGUSR1 noprint nostop This "fixes" the problem, but ALL SIGILLS will be ignored. Hopefully those that are "real issues" cause something else to happen a few instructions later that's not hard to iso...
by davethomaspilot
Mon Sep 22, 2014 8:32 pm
Forum: C/C++
Topic: Qt REST api
Replies: 5
Views: 2897

Re: Qt REST api

Found this : https://bugs.launchpad.net/raspbian/+bug/1154042 Indeed, I was running under the debugger. So, I hit Continue, had another SIGILL, hit continue again and the get request finished OK. Based on the thread, I'm assuming the SIGILL is intentional by SSL and harmless since it's trapped someh...
by davethomaspilot
Mon Sep 22, 2014 8:24 pm
Forum: C/C++
Topic: Qt REST api
Replies: 5
Views: 2897

Re: Qt REST api

I have the exact same Sigill when running QNetworkAccessManager->get.

Did you find a work-around?

Thanks,

Dave THomas
by davethomaspilot
Sun Sep 14, 2014 2:19 pm
Forum: HATs and other add-ons
Topic: Power Connection
Replies: 27
Views: 14162

Re: Power Connection

That makes sense--using a connector that is usually only +5. But you just can't push enough current through the micro-usb to handle even 1 amp, at least if you pay attention to the connector specs and wire ampacity guidelines.
by davethomaspilot
Sun Sep 14, 2014 12:50 pm
Forum: HATs and other add-ons
Topic: Power Connection
Replies: 27
Views: 14162

Re: Power Connection

If I remove the poly fuse and micro-usb connector it looks like there's plently of room on the bottom side of the board to hack on a DC barrel connector. Poly fuse is nothing but a reliability degradation in my application--input current limiting is provided by a 12v to 5V DC/DC regulator that power...
by davethomaspilot
Sun Sep 14, 2014 12:38 pm
Forum: HATs and other add-ons
Topic: Power Connection
Replies: 27
Views: 14162

Re: Power Connection

The static drop is probably ok because of the down stream linreg.. Should have said The static drop is probably ok because of the down stream switching regulator. Getting low audio susceptibility (input to output transfer function) while maintaining good dynamic output regulation is difficult. The ...
by davethomaspilot
Sun Sep 14, 2014 12:30 pm
Forum: HATs and other add-ons
Topic: Power Connection
Replies: 27
Views: 14162

Re: Power Connection

That's a bummer. I've never seen a micro-usb connector rated for anywhere close to two amps. Nor a USB cable with a micro-usb on one end that has a gauge of wire that's big enough for 2 amps. Not to mention the IR drop you'll see in the typical 28 gauge wire USB cable with micro connector. The stati...

Go to advanced search