Go to advanced search

by MattF
Thu Apr 14, 2016 11:12 pm
Forum: Troubleshooting
Topic: Problem using Pi3 as router into WiFi network
Replies: 8
Views: 1987

Re: Problem using Pi3 as router into WiFi network

2 things to check: 1: make sure the forwarding chain in iptables has a default permit policy. 2: how do the packets get _back_? If the host you are tryouts no to reach doesn't know to send the return traffic back via the Pi, it will use its default route and either black hole the traffic or drop it ...
by MattF
Thu Apr 14, 2016 11:04 pm
Forum: Advanced users
Topic: can't connect with SSH when using 2 network adapters
Replies: 2
Views: 957

Re: can't connect with SSH when using 2 network adapters

That's a slightly strange choice of subnet for the 2nd NIC. Where are you trying to SSH in from, and what does its routing table look like?

The pi configuration itself seems OK.

You must might want to check RFC1918, and perhaps use something like 10.10.20.0/24 for the 2nd NIC as a subnet.
by MattF
Tue Aug 19, 2014 3:16 pm
Forum: Troubleshooting
Topic: Need help - 3G USB Dongle on Model A
Replies: 4
Views: 1028

Re: Need help - 3G USB Dongle on Model A

Chances are there just isn't enough power on the USB port directly on the Pi to reliably drive a 3G dongle.
I've always used powered hubs.

Not sure if there is a current difference between the A and B, but my guess is you are on the cusp of it working at all when directly connected.
by MattF
Sat Mar 15, 2014 10:50 pm
Forum: Troubleshooting
Topic: Call for beta testers: FIQ_FSM USB driver rewrite
Replies: 250
Views: 111511

Re: Call for beta testers: FIQ_FSM USB driver rewrite

I've been stressing this for a day now with airodump-ng in a pretty busy wifi environment and very few complaints in dmesg.

Looking very solid.
by MattF
Fri Mar 14, 2014 11:34 pm
Forum: Troubleshooting
Topic: Call for beta testers: FIQ_FSM USB driver rewrite
Replies: 250
Views: 111511

Re: Call for beta testers: FIQ_FSM USB driver rewrite

I've hand applied this to my 3.13 aufs tree and it looks very promising after short testing.
May have cured the hci0 TX timeouts that I occasionally see at USB2 speeds.
by MattF
Thu Feb 13, 2014 2:06 pm
Forum: Advanced users
Topic: How to lock SD card with the device
Replies: 42
Views: 11596

Re: How to lock SD card with the device

A couple of things to think about) 1: /proc is a special file system, but under certain circumstances it can be uncounted. Or mounted somewhere else and a hand crafted /proc/cpuinfo created. 2: you might be in a chroot jail, in which case all bets are off. In the absence of a hardware capability lik...
by MattF
Fri Feb 07, 2014 9:52 am
Forum: Advanced users
Topic: aufs root filesystem
Replies: 39
Views: 31926

Re: aufs root filesystem

I've disabled dphys-swapfile for a long time now. As the aim of the game (well this particular game) is to minimise SD card writes it made no sense to have this enabled. I've updated my kernel to 3.13.1 you can get it from: https://dl.dropboxusercontent.com/u/151327099/3.13.1.tar.bz2 Download it to ...
by MattF
Mon Jan 27, 2014 10:32 pm
Forum: Advanced users
Topic: F2FS with aufs overlay
Replies: 7
Views: 5206

Re: F2FS with aufs overlay

Hi, I'm assuming you've downloaded the image I linked from Dropbox and dd'd it to an SD card (with a block size of 1M). That at least should boot. You need to use something like your Ubuntu system to do that (not on the Pi) If you then subsequently update the card, care needs to be taken as /boot is...
by MattF
Thu Jan 09, 2014 2:47 pm
Forum: Automation, sensing and robotics
Topic: Using Bluetooth to detect when I'm nearby
Replies: 7
Views: 11889

Re: Using Bluetooth to detect when I'm nearby

http://www.digifail.com/software/bluelog.shtml

Compiles easily.

It could be wrapped in a simple looping script to parse it's output.
by MattF
Thu Jan 09, 2014 2:45 pm
Forum: Raspbian
Topic: Raspbian and F2fs
Replies: 1
Views: 1133

Re: Raspbian and F2fs

You can get my home rolled 3.12 based F2FS approach (not heavily tested but seems fairly robust). See: http://www.raspberrypi.org/phpBB3/viewt ... 29&t=63553
by MattF
Sun Dec 29, 2013 2:54 pm
Forum: Troubleshooting
Topic: Prevent SD-Card Corruption
Replies: 241
Views: 235206

Re: Prevent SD-Card Corruption

So far F2FS has been stable for me

See http://www.raspberrypi.org/phpBB3/viewt ... 29&t=63553
by MattF
Tue Dec 24, 2013 9:24 am
Forum: Beginners
Topic: Script to Run 4 terminal commands after Startup
Replies: 4
Views: 2878

Re: Script to Run 4 terminal commands after Startup

su pi -c startx
Rather than
startx

Should get you the desired behaviour

You might also want to take a look at rungetty
by MattF
Thu Dec 19, 2013 9:05 pm
Forum: Advanced users
Topic: F2FS with aufs overlay
Replies: 7
Views: 5206

Re: F2FS with aufs overlay

I suppose I should have mentioned that you can use a tmpfs RWFS overlay which gives you an RO SDcard which resets to the default on every boot, but also gives you what appears to be a fully RW file system with minimal risk of SD corruption. If you do go this route use ext4 for tmpfs, not f2fs.
by MattF
Thu Dec 19, 2013 3:53 pm
Forum: Advanced users
Topic: F2FS with aufs overlay
Replies: 7
Views: 5206

Re: F2FS with aufs overlay

OK, I have taken vanilla Raspian and apt-get safe-upgraded'd it. (Java is removed due to some space constraints) Firmware is at the latest version, and the kernel is my build of 3.12.4 with AUFS support. F2FS root filesystem. As it comes it will mount the rootfs directly with no AUFS overlay. You ca...
by MattF
Tue Dec 17, 2013 12:16 pm
Forum: Advanced users
Topic: aufs root filesystem
Replies: 39
Views: 31926

Re: aufs root filesystem

You are welcome :)

Updated initramfs with the current version of F2FS tools can be found at:
https://dl.dropboxusercontent.com/u/151 ... Dec17.cpio

No other changes from the previous version other than if you use f2fs you may find that fsck actually does something ....
by MattF
Tue Dec 17, 2013 8:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: how to interface my ttyUSB0 ?
Replies: 5
Views: 2078

Re: how to interface my ttyUSB0 ?

Hi,

I think you need the usb gadget API. Quite possibly the serial version.

It is covered in gagdet_serial.txt in the kernel documentation.

How well it is implemented on dwc_otg I do not know.

MF
by MattF
Mon Dec 16, 2013 10:42 pm
Forum: Advanced users
Topic: F2FS with aufs overlay
Replies: 7
Views: 5206

F2FS with aufs overlay

I've been playing a bit more with F2FS with an F2FS overlay. It's seeming fairly resilient and performant. Using 1.2 of f2fs tools fsck seems to at least pretend to repair problems on sudden loss of power. My own image is fairly heavily customised to do a very specific headless loginless task so is ...
by MattF
Mon Dec 16, 2013 12:27 am
Forum: Raspbian
Topic: Versioning file system?
Replies: 12
Views: 2330

Re: Versioning file system?

Well NILFS has been mainstream for some time. That would be my starting point. Given the nature of SD cards I'd be cautious about introducing the amount of additional writes such a thing would (in my simple brain) entail. Perhaps an aufs/unionfs/... approach would be better? Depends on requirement o...
by MattF
Tue Dec 03, 2013 12:05 am
Forum: Troubleshooting
Topic: DHCP server can't start for AP
Replies: 6
Views: 2100

Re: DHCP server can't start for AP

Make sure that the leases database directory specified in the configuration file actually exists.
by MattF
Tue Dec 03, 2013 12:02 am
Forum: Troubleshooting
Topic: Modem using USB serial I/O
Replies: 18
Views: 4150

Re: Modem using USB serial I/O

Long shot, but just in case you are sending AT+V1E1 as part of the init string? Also check if there is a ttyUSB1 sometimes one gets rather more serial ports than anticipated and different results on different ports (data/control on 0, control only on 1) Check usb_modeswitch is fully up to date as we...
by MattF
Mon Dec 02, 2013 5:04 pm
Forum: Advanced users
Topic: Raspberry PI as VPN Client/Router
Replies: 1
Views: 2576

Re: Raspberry PI as VPN Client/Router

OpenVPN works well as a VPN client on the Pi (assuming you have an OpenVPN server for the other end). Just use the default route option to send all traffic from the Pi (and thus all masquerading Wi-Fi clients) down the VPN
by MattF
Fri Nov 29, 2013 10:16 am
Forum: Advanced users
Topic: aufs root filesystem
Replies: 39
Views: 31926

Re: aufs root filesystem

OK, I've uploaded https://dl.dropboxusercontent.com/u/151327099/3.11.9.tar.bz2 This is a tar-ball with everything you need, but it will quite invasively trample all over /boot. So download this file to /tmp cd / mount -o remount,rw /boot tar jxvf /tmp/3.11.9.tar.bz2 It assumes that you have /boot on...
by MattF
Thu Nov 28, 2013 11:22 pm
Forum: Advanced users
Topic: We need a cross compilation tutorial
Replies: 4
Views: 1376

Re: We need a cross compilation tutorial

A rough answer from my history: rm -rf ~/311MOD && mkdir ~/311MOD && make -j2 ARCH=arm CROSS_COMPILE=${CCPREFIX} && make ARCH=arm CROSS_COMPILE=${CCPREFIX} INSTALL_MOD_PATH=/home/apf/311MOD modules_install && cp arch/arm/boot/zImage /home/apf/Jul4 && cd ~/311MOD && tar jcvf ../Jul4/Sep25.tar.bz2 . e...
by MattF
Thu Nov 28, 2013 11:16 pm
Forum: Advanced users
Topic: aufs root filesystem
Replies: 39
Views: 31926

Re: aufs root filesystem

Been away for a while on other things. I've recently updated to 3.11.9 with aufs and the current firmware with the SD corruption fixes in the firmware. I'll post an updated tar-ball tomorrow as it's a little late now, complete with an updated /boot The initramfs is of course embedded in the kernel. ...
by MattF
Mon Sep 09, 2013 8:52 pm
Forum: Troubleshooting
Topic: OpenVPN Server stopped working
Replies: 12
Views: 11612

Re: OpenVPN Server stopped working

Hmm,

This does indeed suggest there is a problem with tun.ko - a mismatch of some sort between the running kernel and the module.

I haven't been on the 3.6 branch for ages. Are you fully up to date with rpi-update?

Go to advanced search