Go to advanced search

by Killertechno
Thu Mar 10, 2016 2:46 pm
Forum: Troubleshooting
Topic: Mount r/w partition on read-only filesystem?
Replies: 0
Views: 537

Mount r/w partition on read-only filesystem?

Hi guys, I'm testing read-only SD card for Raspberry. OS will be read-only but I need to mount external USB flash to save data, where all users can read/write. I would like mount partitions using fstab. /dev/mmcblk0p4 /var/www/baler/data ext4 noatime,rw 0 1 In this case I can mount partition 4 of my...
by Killertechno
Sat Jan 02, 2016 5:42 pm
Forum: General discussion
Topic: Pi zero connections
Replies: 11
Views: 5161

Re: Pi zero connections

May I power Pi zero from 40 pin connector instead USB?
by Killertechno
Mon Dec 21, 2015 12:03 pm
Forum: Troubleshooting
Topic: Detect IP and MAC of headless PI
Replies: 6
Views: 1223

Detect IP and MAC of headless PI

Hi guys, some time ago I've read there was a program to install on Pi to periodically send IP and MAC broadcast through UDP packets. Then there was a GUI program as UDP server to detect ONLY Raspberry Pis on local network. Now I can't find it anymore. On forum I've found only scanners, but I have se...
by Killertechno
Wed Nov 04, 2015 1:57 pm
Forum: Troubleshooting
Topic: Mouse not working after update?
Replies: 5
Views: 1423

Mouse not working after update?

Hi guys, I've download Raspbian Wheezy (kernel 3.18, release date 5/2015), all correctly working running startx. Since I've run "sudo apt-get update" my mouse is not working. I supposed it was a mouse trouble, so I change several mice with no success..... Nothing to do: I run startx and I get freeze...
by Killertechno
Mon Oct 26, 2015 6:19 pm
Forum: Java
Topic: Where is Java Control Panel?
Replies: 5
Views: 3633

Re: Where is Java Control Panel?

Hi xranby, first of all thanks for help. The only way I've ever seen to get data from my server application was through Java, so I supposed to create a web interface to make it "standard". I've installed icedtea due I've found only this plugin working with epiphany browser (to make connection test o...
by Killertechno
Fri Oct 23, 2015 3:49 pm
Forum: Java
Topic: Where is Java Control Panel?
Replies: 5
Views: 3633

Re: Where is Java Control Panel?

Hi guys, I've a trouble using java. My webserver (on Pi) is using java applet to get data from server (also this running on same Pi). I access to webpage through browser (on Windows PC), but my java console says: java.security.AccessControlException: access denied ("java.net.SocketPermission" "192.1...
by Killertechno
Mon Oct 19, 2015 2:24 pm
Forum: C/C++
Topic: Can't compile on Raspbian (RasPi 2)
Replies: 8
Views: 12948

Re: Can't compile on Raspbian (RasPi 2)

Sorry guys, but I can't still compile simple hello world example..... my kernel is 3.18.11 (from image of 2015-05-05). sudo apt-get update sudo aptitude install linux-image-rpi-rpfv linux-headers-rpi-rpfv Now, in my /lib/modules folder I have new 3.18.0-trunk-rpi folder. sudo wget https://raw.github...
by Killertechno
Thu Sep 17, 2015 2:53 pm
Forum: Troubleshooting
Topic: Netcat not working?
Replies: 0
Views: 636

Netcat not working?

Hi guys, I would like to check UDP server (192.168.10.3:5330) using netcat on Pi (192.168.1.2). I run http server on port 80 as test: nc -zv -w5 192.168.10.3 80 &> /dev/null && echo "online" || echo "offline" I correctly get "online" output. To simulate server offline I block TCP traffic to 192.168....
by Killertechno
Thu Sep 17, 2015 11:02 am
Forum: Device Tree
Topic: device-tree model info
Replies: 9
Views: 4385

Re: device-tree model info

I can't understand...... Raspberry Pi is Linux-based, so... why Raspberry Pi device tree is different from other Linux-based (ARM) devices?
Shouldn't be device-tree structure standard?
by Killertechno
Tue Sep 15, 2015 10:16 am
Forum: Advanced users
Topic: Compiling custom kernel module for 3.18.11?
Replies: 0
Views: 371

Compiling custom kernel module for 3.18.11?

Hi guys, I would like to compile a custom kernel module for Raspberry Pi 2 model B. I've seen nice kernel module here: https://github.com/tanzilli/hc-sr04/blob/master/hcsr04.c I would like to modify (I need to cat /sys/class/hcsr04/value and get back some value). But now I would like to start with s...
by Killertechno
Mon Aug 17, 2015 8:17 pm
Forum: Raspbian
Topic: Raspbian released on 2015-05-05
Replies: 118
Views: 18554

Re: Raspbian released on 2015-05-05

Hi guys, I've just downloaded raspbian image (2015-05-05) and I've seen there is gambas.3.4.
I can't understand how use it (if already installed or if it needs to be compiled.
Or, if I need to save space, should I just erase gambasbuild folder?
Thanks.
by Killertechno
Mon Aug 17, 2015 11:05 am
Forum: Troubleshooting
Topic: How run startx on readonly system?
Replies: 1
Views: 1462

How run startx on readonly system?

Hi guys, I apologize to open another discussion, but I can't find solution from other discussions.... I have a client running 24h/24 so I set filesystem to read-only to preserve SD card life. I followed steps from here: How to make Raspbian read only? https://www.raspberrypi.org/forums/viewtopic.php...
by Killertechno
Fri Aug 14, 2015 1:29 pm
Forum: Advanced users
Topic: How to make Raspbian read only?
Replies: 32
Views: 58446

Re: How to make Raspbian read only?

Hi guys, I finally got my Pi running in read-only mode, here a piece of my fstab: tmpfs /home/pi/ew/run/ring tmpfs nodev,nosuid,size=100M,mode=1777 0 0 tmpfs /home/pi/ew/run/log tmpfs nodev,nosuid,size=10M,mode=1777,size=5m 0 0 In this case I got "log" and "ring" folders in read-only; is there a way...
by Killertechno
Tue Jul 07, 2015 12:27 pm
Forum: Compute Module
Topic: SDIO for Wifi/Bluetooth module
Replies: 93
Views: 46655

Re: SDIO for Wifi/Bluetooth module

There is also LM811 (WiFi + Bluetooth module) with USB interface, but I still can't understand how several producers make SDIO when there are no support/examples about using SDIO devices......

Linux kernel already supporting SDIO devices, but I have no idea how declare it inside device tree.....
by Killertechno
Thu Jun 25, 2015 3:35 pm
Forum: Troubleshooting
Topic: Bluetooth: serial instead USB?
Replies: 1
Views: 495

Bluetooth: serial instead USB?

Hi guys, I'm a bit confused about Bluetooth: using USB Bluetooth dongle I've read I should get new tty interface (RFCOMM TTY?). Then I could use programs such Bluez to connect to other Bluetooth devices (such smartphone)..... Ok, until now I've understood there is a virtual serial port created by Bl...
by Killertechno
Sun May 10, 2015 8:19 pm
Forum: General discussion
Topic: Keep time: leap second?
Replies: 2
Views: 599

Keep time: leap second?

Hi guys, I have a little question: how can en RTC system manage leap seconds? In this case I could have system time set to 00:00:00 while correct time would be 23:59:60. I've read GPS correctly manages this, but when working with ntp? Does it support leap second? I haven't found any library about th...
by Killertechno
Fri May 08, 2015 12:59 pm
Forum: Other programming languages
Topic: GAMBAS(basic)
Replies: 125
Views: 57330

Re: GAMBAS(basic)

Hi guys, it's 3 days I trying to install Gambas on my Pi 2 unsuccessfully!!!!! 1) sudo apt-get install gambas3 as result I start gambas, CPU at 25% and hangs. 2) compiling sources I always get: Making all in opengl make[5]: Entering directory '/home/pi/gambasbuild/3.4/gb.gtk/src/opengl' CC gb_gtk_op...
by Killertechno
Tue Apr 21, 2015 3:37 pm
Forum: General discussion
Topic: UPS for Pi?
Replies: 52
Views: 37826

Re: UPS for Pi?

I'm waiting for a LTC4089-1, to be used with a 1000 mAh li-ion battery.
So I can use AC wall adapter to power Pi, then if it fails I get power from battery.
Regulator outputs could be used to send to Pi an "emergency shutdown" signal.
If anyone interested I can share results when done.
by Killertechno
Tue Apr 21, 2015 3:25 pm
Forum: General discussion
Topic: Raspberry Pi BrownOuts
Replies: 10
Views: 2673

Re: Raspberry Pi BrownOuts

Hi guys, after so long waiting, finally I got my new 2 model!!!!!!! Great! I insert microSD card, I connect HDMI, then USB keyboard and mouse. I plug microUSB PSU and..... both power and act led switches on, initial square rainbow appears on my LCD, then act led switches off, then.... nothing. Still...
by Killertechno
Sat Mar 07, 2015 11:08 pm
Forum: Beginners
Topic: New releases of NOOBS & Raspbian
Replies: 44
Views: 33257

Re: New releases of NOOBS & Raspbian

Hi guys, I've seen there are updated OS images.
Where can I find changelog for various images?
I can't understand differences between Raspbian and Noobs...
by Killertechno
Mon Feb 23, 2015 5:42 pm
Forum: General programming discussion
Topic: Tutorial: making a basic LED driver for Raspberry Pi
Replies: 1
Views: 2336

Re: Tutorial: making a basic LED driver for Raspberry Pi

Hi bazis, thanks for example, I 'm trying to make simple driver starting from your code. static ssize_t set_period_callback(struct device* dev, struct device_attribute* attr, const char* buf, size_t count) { long period_value = 0; if (kstrtol(buf, 10, &period_value) < 0) return -EINVAL; if (period_v...
by Killertechno
Mon Feb 16, 2015 1:58 pm
Forum: General programming discussion
Topic: Prevent script running simoultaneously
Replies: 9
Views: 2347

Re: Prevent script running simoultaneously

I've found this code around the web, but sometimes I still find .lock file undeleted:

Code: Select all

lockfilename="/home/pi/ew/run/params/tmp/$scriptname.lock"
lockfile -r 0 $lockfilename || exit 1
...
my code here
...
rm -f $lockfilename
My ps output (during running) is simply:

Code: Select all

/bin/bash ./blocktest.sh
by Killertechno
Mon Feb 16, 2015 9:36 am
Forum: General programming discussion
Topic: Prevent script running simoultaneously
Replies: 9
Views: 2347

Prevent script running simoultaneously

Hi guys, I would like to prevent a script would be running multiple times. I'm executing script from crontab, but it could happen script will be still in execution due to launched from previous crontab. First attempt was to check for a flag written on specific folder, if flag absent then write the f...
by Killertechno
Tue Feb 10, 2015 2:55 pm
Forum: Raspbian
Topic: ntpq failing (nothing received)
Replies: 21
Views: 6894

Re: ntpq failing (nothing received)

I'll post here to avoid continue on duplicate thread. Hi Dougie, thanks for help but I'm more confused than before.... If I've correctly understood ntp only corrects offset if defference is less than 1000 seconds. With command: ntpd -g -q I force correction if difference time is less than 1000 secon...
by Killertechno
Mon Feb 09, 2015 3:58 pm
Forum: Advanced users
Topic: Device driver kernel and time drift
Replies: 1
Views: 806

Device driver kernel and time drift

Hi guys, I hope to post in the correct place, if not please move me. I'm trying to make my own kernel module for custom board, so this is my first test. First I wanna make 2 output pulses with specific timings (rising edges after specific period), so this is the kernel module I've written taking cod...

Go to advanced search