Go to advanced search

by larsth
Thu Apr 07, 2016 7:49 pm
Forum: Linux Kernel
Topic: gpio_to_irq and kernel 3.8
Replies: 4
Views: 3211

Re: gpio_to_irq and kernel 3.8

I honestly think that https://github.com/raspberrypi/linux/blob/rpi-4.1.y/arch/arm/mach-bcm2708/bcm2708.c is the wrong place in the kernel source tree. /driver/tty/serial/max310x.c Using LXR: I find interrupt functionality, and other interesting stuff in /driver/tty/serial/max310x.c: https://lxr.mis...
by larsth
Wed Mar 30, 2016 7:21 pm
Forum: C/C++
Topic: Netbeans C/C++ Link/Make EXE?
Replies: 6
Views: 1081

Re: Netbeans C/C++ Link/Make EXE?

If you want to start you compiled program on a Raspberry Pi, then first copy it to the Pi by using scp. scp it to a directory on the Pi, which is included in the PATH environment variable. ~/bin is a good choice, create it with mkdir - p ~/bin , if it doesn't exists. You may have to restart your SSH...
by larsth
Tue Mar 22, 2016 10:16 pm
Forum: General discussion
Topic: Raspberry Pi Revision identification
Replies: 14
Views: 33979

Raspberry Pi 3B board revison number

On my Raspberry Pi 3B this command: cat /proc/cmdline | awk -v RS=" " -F= '/boardrev/ { print $2 }' returns the board rev., which is: 0xa02082 The same value does also exists in /proc/cpuinfo : cat /proc/cpuinfo | grep Revision returns: Revision : a02082 Is that really the board rev. number for a Ra...
by larsth
Sat Mar 12, 2016 8:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C clock stretching
Replies: 63
Views: 42670

Re: I2C clock stretching

joan wrote:@larsth

I've used a PCA9685 and a HMC5883L. No clock stretching was required.
Great!
Thanks for the reply.

/Lars
by larsth
Sat Mar 12, 2016 8:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C clock stretching
Replies: 63
Views: 42670

Re: I2C clock stretching

It would be really good news to be able to do I²C reliable in hardware. Alternatively I guess it would be possible to abuse a CPU core in RPi 2/3 to do I²C bit banging with the i2c-gpio kernel space driver - especially if you use a low I²C bus frequency, and don't have a lot to do. In my case it wil...
by larsth
Fri Jan 01, 2016 9:38 pm
Forum: Raspbian
Topic: problem with arp on eth0
Replies: 2
Views: 354

Re: problem with arp on eth0

do have any idea how solve it? ? It is probably a hardware problem. Check the Ethernet cable for damages, and the connectors in each end of the cable. It is possible that one or more of the thin wires from the Ethernet cable is not connected to the connector. A short-circuit is also possible (that ...
by larsth
Sun Aug 23, 2015 12:46 pm
Forum: Other languages
Topic: The Go Programming Language on the Raspberry Pi
Replies: 36
Views: 32495

Re: The Go Programming Language on the Raspberry Pi

I compiled go1.4.2 on the Pi, and then compiled go1.5 using the 1.4.2 as a go compiler. This worked OK, except for a couple of tests. But when I check go version it shows go version devel +2468227 instead of 1.5. Used go 1.5 and compiled some code and it seems to work. Need to check goroutines. Got...
by larsth
Sat Aug 31, 2013 8:52 pm
Forum: Other languages
Topic: The Go Programming Language on the Raspberry Pi
Replies: 36
Views: 32495

Re: The Go Programming Language on the Raspberry Pi

First you question: Let's assume both my JS and Go programs are written the most naive way, which is probably true. So they both need to do a lot of memory allocation, deallocation and garbage collecting. How come the Go garbage collector is so much worse? Probably because Go is a very young program...
by larsth
Sat Aug 31, 2013 1:49 am
Forum: Other languages
Topic: The Go Programming Language on the Raspberry Pi
Replies: 36
Views: 32495

Re: The Go Programming Language on the Raspberry Pi

This perhaps not the thread to ask in but I have been trying out Go and node.js on ARM boards including the Pi and I have found that Go is incredibly slow compared to node.js. A somewhat surprising result. Basically I have a simple websocket client written in both JS and Go which simply connects to...
by larsth
Fri Apr 26, 2013 5:03 pm
Forum: General programming discussion
Topic: GUI for Car info. Where do I get start with the programing?
Replies: 4
Views: 17155

Re: GUI for Car info. Where do I get start with the programi

I will here write about a software development process you can use. It is only a very coarse grained picture of the process, but it should get you started: Any piece of software works by using a model of the real world. That model is data stored in the computer's memory (RAM). The kind of data you n...
by larsth
Thu Feb 14, 2013 8:19 pm
Forum: Troubleshooting
Topic: Can't get serial (MAX3232 chip) port to work
Replies: 4
Views: 3660

Re: Can't get serial (MAX3232 chip) port to work

Edit: Sorry. I was too quick, and did not read this line: "I've tested the codes and TV using Windows and can successfully turn the TV off/on etc. so I know that is working. " ---- First things first. Before software and code - make sure the hardware works. That is: No cold solderings. The chip is s...
by larsth
Fri May 11, 2012 6:51 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<t>Hi Frank Buss<br/> <br/> Good work you had done <br/> <br/> ... and I'm still in the RS Components queue.<br/> <br/> I hope that will change today, or next friday - and the Pi will be in my postbox a week to 10 days later after it were purchased<br/> <br/> I will begin my hardware development nex...
by larsth
Tue May 08, 2012 12:55 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<r>jbeale said: <br/> <br/> <br/> By the way, I'm not sure if I'm looking in the right place to see your github patch, is the file you're working on called "bcm2708.c" ? For the R-Pi it should be BCM2835, I think? Are you doing a bit-banged GPIO type I2C, or using the SoC's internal I2C modules and ...
by larsth
Sun May 06, 2012 7:54 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<r>Frank Buss said: <br/> <br/> <br/> I saw that coming Ok, I'll try it. I'll have some time for it on Monday. A public github repository sounds good.<br/> <br/> The first version will use the Linux bitbanging interface, which should be fairly easy. There is already an I2C driver which does this for...
by larsth
Sat May 05, 2012 7:25 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<t>selsinork said: <br/> <br/> <br/> unfortunately I've been sidetracked onto non R-Pi related stuff this last week or so.<br/> <br/> I've not really progressed much further than getting an initial github repo created, and doing some really trivial stuff like editing the Makefile and Kconfig.<br/> <...
by larsth
Fri May 04, 2012 10:02 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<t>Frank Buss said: <br/> <br/> <br/> Any news on the I2C driver? I have a Raspberry Pi and I have I2C slave devices for testing. I could even write the driver by myself, because I did some commercial driver development for another embedded Linux system, but I would like to avoid duplicate work But ...
by larsth
Sun Apr 29, 2012 3:34 pm
Forum: Cases
Topic: GCSE Project: RPi Case
Replies: 16
Views: 2320

Re: GCSE Project: RPi Case

<r><br/> nmcc said: <br/> <br/> jamtholee said: <br/> <br/> Like can I limit the voltage or current going through the fans if I wanted to.<br/> <br/> If you want to programatically vary the speed of the fans this can be arranged with an array of resistors. Not sure about voltages though as the IO pi...
by larsth
Sun Apr 29, 2012 9:31 am
Forum: Troubleshooting
Topic: Kernel Panic on concurrent network and usb storage [SOLVED]
Replies: 33
Views: 7525

Re: Kernel Panic on concurrent network and usb storage

aficionado said:


With the network and USB plugged in, I am unable to even log in, it just stops at the login prompt.


When you get your kernel to work, note that SSH is disabled by default.
by larsth
Thu Apr 26, 2012 10:19 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<r>@selsinork<br/> <br/> There are some bugs in the kernel at the moment, one in particular is very annoying. It looks like a buffer overrun: <URL url="https://github.com/raspberrypi/firmware/issues/9">https://github.com/raspberrypi/firmware/issues/9</URL><br/> <br/> Question is whether or not we ne...
by larsth
Wed Apr 25, 2012 7:23 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<r>rew said: <br/> <br/> <br/> You don't need the level shifter.<br/> <br/> The Philips design note also starts with "it is not always necessary, but if you have to... ".<br/> <br/> I have the <URL url="http://www.bitwizard.nl/catalo.....ts_id=69">http://www.bitwizard.nl/catalo.....ts_id=69</URL>  r...
by larsth
Mon Apr 23, 2012 11:33 pm
Forum: Troubleshooting
Topic: Pi Don't ... No.1 in a series of things to not do...
Replies: 23
Views: 7191

Re: Pi Don't ... No.1 in a series of things to not do...

SN said:


So never mind the magic smoke, if you see magic black flakes, then you know its really 'b**gered'


Yes that is true, if the magic smoke trapped inside an electronic component has been freed, then that component does not work any longer'

by larsth
Mon Apr 23, 2012 9:55 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<r>cbaurtx said: <br/> <br/> <br/> Thank you for offering to develop these drivers. I have a PIC controlled system, which uses I2C to communicate with two devices:<br/> 1. Supercap backuped RTC and Thermometer (DS1629)<br/> <br/> 2. Seven segment LED driver (SAA1064)<br/> <br/> I can make available ...
by larsth
Mon Apr 23, 2012 7:19 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 42513

Re: Linux device drivers for Rapberry Pi on-board I/O

<t>selsinork said: <br/> <br/> <br/> Lars T. Hansen said:<br/> <br/> <br/> You can cross-compile for the Pi on x86<br/> <br/> <br/> sure, I just haven't got enough round tuits to set that up yet <br/> <br/> <br/> I think it is a very good idea to do code peer-reviews.<br/> <br/> <br/> agreed, but yo...
by larsth
Mon Apr 23, 2012 5:57 pm
Forum: Beginners
Topic: Internet Connection Sharing with Windows 7 Machine
Replies: 10
Views: 3753

Re: Internet Connection Sharing with Windows 7 Machine

<t>q3dm6 said: <br/> <br/> <br/> Is this possible? I've got my Raspberry PI hooked up to my desktop, and I've shared my internet connection, however I can't get online.<br/> <br/> I can ping the router (192.168.1.1) but it doesn't get any further than that.<br/> <br/> Any advice?<br/> <br/> <br/> <b...

Go to advanced search