Go to advanced search

by Frank Buss
Tue Jun 19, 2012 5:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

I have read this thread and as i understand i had to run this script to use the patched kernel. So i run the script. But afther reboot i still get this: [email protected]:~# modprobe w1-gpio FATAL: Module w1-gpio not found. Any other ides what should i do to get this working? No idea, worked for me....
by Frank Buss
Sun Jun 10, 2012 11:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

Anyone got problems building modules with this patch? I updated the firmware and use your modules/kernel. I downloaded the 3.2.18 linux kernel and tried to build... no success :( [email protected]:/usr/src/3.2.18+$ sudo modprobe -f prism2usb FATAL: Error inserting prism2usb (/lib/modules/3.2.18+/prism...
by Frank Buss
Sun Jun 10, 2012 10:36 pm
Forum: HATs and other add-ons
Topic: Gertboard
Replies: 258
Views: 109642

Re: Gertboard

This sounds strange. There is something related to the Raspberry Pi at Farnell to buy, but you are not allowed to talk about it?
by Frank Buss
Wed Jun 06, 2012 5:48 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

Yes, there are some problems with some programs, because Alsa is still buggy on the Raspberry Pi, see other forum posts.

Nice script.
by Frank Buss
Sun Jun 03, 2012 7:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

btw, this patch and the new firmware, breaks the sound support :( Works for me. How did you test it? When I do this as root: apt-get install alsa modprobe snd-bcm2835 amixer cset numid=3 1 and then login as "pi", then "startx", I can start "Music Player" and the demo sound (and other mp3 files) wor...
by Frank Buss
Sat Jun 02, 2012 5:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO to Parallel?
Replies: 13
Views: 18217

Re: GPIO to Parallel?

Sounds like a perfect job for the NXP PCF8574 I2C I/O expander, providing 16 I/O's. http://www.nxp.com/documents/data_sheet/PCF8574.pdf Perfect for re-creating a Centronics parallel port, or for any other I/O requiring a lot of I/O lines. It will work fine with 3V3 or even with 5V, if you use I2C p...
by Frank Buss
Fri Jun 01, 2012 8:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

Short lengths are probably fine, the other thing to consider is with 3.3v you are close to hitting the minimum voltage for the DS18B20's due to voltage drop in the cable. The active current of the DS18B20 is 1.5 mA and minimum allowed voltage is 3 V. To be below a 0.3 V voltage drop at 1.5 mA, the ...
by Frank Buss
Wed May 30, 2012 5:25 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

Great Daniel, glad to see that it finally works. The kernel is still in much development, but mabe it would be a good idea to compile all possible drivers as modules (for devices which are attachable to the Raspberry Pi)? They are just some kB each. Then they could be loaded like in other big Linux ...
by Frank Buss
Tue May 29, 2012 4:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

Looks like there were still some bugs in the update script. The problem from fulburncams was, that there was alread a file names arm192_start.elf, so wget saved it as arm192_start.elf.1 and then the script failed and leaved the /boot directory without any start.elf file. I guess I've tested the star...
by Frank Buss
Mon May 28, 2012 10:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

For testing the DS1307 driver module: "modprobe rtc-ds1307"
by Frank Buss
Mon May 28, 2012 10:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

Re: kernel patch for Dallas 1-wire interface

Being a Linux newbie I tried the precompiled version and it failed to boot:-( I rewrote the SD card with the latest official Debian download and retried having set up a root password first and rebooted. My collegue checked I was following the instructions and no errors were reported but it also fai...
by Frank Buss
Sat May 26, 2012 8:16 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

I've enabled 1-wire, too. For testing I've uploaded my pre-compiled kernel, if you don't want to compile your own kernel. See http://www.raspberrypi.org/phpBB3/viewt ... =44&t=6649 , it contains the I2C driver, too.
by Frank Buss
Sat May 26, 2012 8:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 159391

kernel patch for Dallas 1-wire interface

I've tested the GPIO one-wire implementation in the Linux kernel. This is the Linux kernel patch: https://github.com/FrankBuss/linux-1/tree/rpi-w1 At the moment it is fixed at GPIO 4, maybe the new Linux pinctrl concept will change this and then this patch is not needed anymore, but if you want to a...
by Frank Buss
Thu May 24, 2012 2:16 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

DexOS wrote:Cool, give a day or two and i will knock a bare metal test GPIO in asm.
I may even convert it to FBasic to make its easier to understand.
Someone did this already, it might help with your projects:

https://github.com/raspberrypi/firmware ... nt-5362664
by Frank Buss
Wed May 23, 2012 1:43 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

pygmy_giant: would be difficult to use my code without Linux, because first you would need to implement a multitasking system for wait_event_interruptible_timeout/wake_up_interruptible. And then all the other things related to request_irq with interrupt handling etc. But the rest of the code should ...
by Frank Buss
Wed May 23, 2012 12:07 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

Playing a bit with the driver: looks like activating the 3rd BSC module for the HDMI interface works. HDMI cable connected: [email protected]:~# i2cdetect 2 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-2. I will probe address range 0x03-0x77. C...
by Frank Buss
Tue May 22, 2012 1:55 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

bootc has created a Debian package to install the new Linux kernel with the I2C driver, now integrated in the Linux I2C framework, so all tools like i2cdetect etc. are working as expected. I had problems with my SD card and the latest SD card driver, but after restoring the first version of the SD c...
by Frank Buss
Sat May 19, 2012 4:00 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

i2cdetect doesn't work for this driver, bootc from #raspberrypi is working on integrating the driver in Linux, because it is similar to the work he has done already with his SPI driver. Watch this repository for updates: https://github.com/bootc/linux/commits/rpi-spi
by Frank Buss
Sat May 19, 2012 2:14 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

Sorry, the "watch" flag was not ported to the new forum, so I didn't noticed the other articles in the thread. fulburncams: currently it is all in development state, but if you like to build your own kernel, this is a nice step-by-step setup guide for it: http://elinux.org/RPi_Kernel_Compilation I g...
by Frank Buss
Sat May 19, 2012 2:00 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

Good news, I've finished a first version of the driver for the BSC module, with interrupts. For faster turnaround cycles, I have written it as an external modul: http://pastebin.com/hLCmdkb5 For rebuilding, you'll need a kernel cross compilation environment, as described at http://elinux.org/Rpi_ker...
by Frank Buss
Fri May 11, 2012 11:26 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

Thanks, dom, this will save some time, I guess I should have RTFM

Thanks for your offer, Lars, always good to have a code review.
by Frank Buss
Fri May 11, 2012 12:04 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

<r>Thanks GadgetUK, I've merged it.<br/> <br/> When I remove the I2C module with these commands:<br/> <br/> rmmod i2c_gpio<br/> rmmod i2c_algo_bit<br/> <br/> I can use the pins as GPIO now.<br/> <br/> And I've fine tuned a bit the udelay, now it is nearly 100 kHz, was about 76 kHz with the default s...
by Frank Buss
Thu May 10, 2012 5:32 am
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

<r>csoutreach said: <br/> <br/> Great to hear progress on I2C. I've asked a similar question about pin allocation for the SPI driver. <URL url="http://www.raspberrypi.org/for.....-3/#p73509">http://www.raspberrypi.org/for.....-3/#p73509</URL><br/> I suggested passing in config arguments at boot time...
by Frank Buss
Wed May 09, 2012 9:30 pm
Forum: Other projects
Topic: Linux device drivers for Rapberry Pi on-board I/O
Replies: 97
Views: 55870

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

<r>GadgetUK said: <br/> <br/> <br/> Frank, great work.<br/> <br/> No luck for me here with the .config file <br/> <br/> Pi boots, but no sign of /dev/i2c entries.<br/> <br/> <br/> <br/> Did you install it with all modules to the right place? I've used this manual:<br/> <br/> <URL url="http://elinux....
by Frank Buss
Wed May 09, 2012 9:20 pm
Forum: Other projects
Topic: C64 emulator
Replies: 103
Views: 77008

Re: C64 emulator

<r>Awesome, a Pi in a C64 case!<br/> <br/> For sound you have to install ALSA:<br/> <br/> apt-get install alsa<br/> <br/> The on booting, activate the driver, e.g. automaticly in /etc/rc.local:<br/> <br/> modprobe snd-bcm2835<br/> <br/> And if you want to use the audio jack instead of HDMI as the so...

Go to advanced search