Go to advanced search

by psergiu
Fri Dec 28, 2012 10:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ENC28J60 SPI Ethernet
Replies: 33
Views: 51021

Re: ENC28J60 SPI Ethernet

6 jumper wires:

ENC - RPi
=======
VCC - 3v3
GND - GND
CS - CE0 (gpio 8)
SI - MOSI (gpio 10)
SCK - SCKL (gpio 11)
SO - MISO (gpio 9)

Also, pin INT can be connected to another GPIO pin and the driver configured to use-it as IRQ (haven't done this yet so i cannot tell you exactly how)
by psergiu
Tue Dec 04, 2012 10:57 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

Yes, it works with Raspibian but you have to edit some config files in order to load the required kernel modules and enable the RTC on the I2C bus before running "hwclock --hctosys" for the first time during boot. Simplest way is to edit /etc/init.d/hwclock.sh and to add the required modprobe & echo...
by psergiu
Mon Nov 26, 2012 9:35 am
Forum: Advanced users
Topic: Current supply of 1.5A is allowed?
Replies: 3
Views: 3501

Re: Current supply of 1.5A is allowed?

Think of the Amps as of the quantity of electrical current. RPi uses 750 mili-Amps so your power supply must be able to provide AT LEAST 750 mA. If your power supply is able to provide more, that's okay, RPi will use only 750 mA. I personally run my RPis off some 2 & 3A power supplies - with a more ...
by psergiu
Sun Nov 04, 2012 7:38 am
Forum: Other projects
Topic: Deleted
Replies: 24
Views: 20716

Re: 720x480 over Composite?

That's what i'm talking about. The "squash_everything_horizontaly_because_the_display_will_strech_to_16_9" flag.
by psergiu
Wed Oct 31, 2012 8:24 pm
Forum: Media centres
Topic: Unpowered Raspi breaking HDMI-CEC
Replies: 108
Views: 57310

Re: Unpowered Raspi breaking HDMI-CEC

Reset your devices.
Even after i unsoldered D14 from my original model RPi, my Sony TV refused to do anything CEC-related until i did a reset to factory settings.
by psergiu
Sat Oct 20, 2012 6:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver latency and a possible solution
Replies: 241
Views: 132544

Re: SPI driver latency and a possible solution

My ENC28J60 works now ! Thanks.
No major speed improvements, unfortunatelly (~130KB/s vs ~100KB/s before)
I'll try wiring up a GPIO as an IRQ line
by psergiu
Thu Oct 18, 2012 7:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

You have connected a battery to that RTC chip, right ? :-) I have only seen that hwclock register corruption errors only with run-down rtc batteries. The chip is a pure DS1307 or a "compatible" variant ? Those i2c errors are no problem. You are doing the "echo ds1307 0x68 ..." two times so the 2nd t...
by psergiu
Tue Oct 16, 2012 7:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

Ugly hack time :)

Edit /etc/init.d/hwclock.sh

after log_action_msg "Setting the system clock"
add:

Code: Select all

modprobe i2c-bcm2708
modprobe i2cdev
modprobe rtc-ds1307
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
Now it SHOULD work okay.
by psergiu
Mon Oct 15, 2012 9:21 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

Edit /etc/modules and add those 3 lines at the end:

Code: Select all

i2c-bcm2708
i2cdev
rtc-ds1307
Edit /etc/modprobe.d/raspi-blacklist.conf and comment out the line

Code: Select all

#blacklist i2c-bcm2708
by psergiu
Mon Oct 15, 2012 10:19 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

Hmmm ... it means that hwclock is started before the kernel modules are loaded. Please run: ls -l /etc/rcS.d/*mod* I have /etc/rcS.d/S08kmod -> ../init.d/kmod So on mine the kernel modules are loaded before hwclock is run (S08 vs S10) You have added i2c-bcm2708, i2cdev & rtc-ds1307 to /etc/modules, ...
by psergiu
Mon Oct 15, 2012 9:04 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

Have you added "echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-0/new_device" as needed ?
After boot, can you please scroll up on the console (shift-pageup) and tell me if there are any RTC or module loading error messages ?
by psergiu
Sun Oct 14, 2012 3:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver latency and a possible solution
Replies: 241
Views: 132544

Re: SPI driver latency and a possible solution

Hi msperl ! I succesfully applied your latest patch, recompiled the kernel & the modules but now the enc28j60.ko module (ENC28J60 SPI Ethernet) will no longer detect the device. (see: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=44&t=18397 ) Do i need to do some tweaks in the driver source or u...
by psergiu
Sat Oct 13, 2012 8:15 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Dual Ethernet Interface
Replies: 6
Views: 28610

Re: Dual Ethernet Interface

Or, if you don't require a lot of bandwidth, you can add a SPI Ethernet card (or two): http://www.raspberrypi.org/phpBB3/viewt ... 44&t=18397
by psergiu
Sat Oct 13, 2012 7:59 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

Try making the symlinks by hand and re-run ...

Code: Select all

cd /etc/rc0.d
ln -s ../init.d/hwclock.sh K06hwclock.sh
cd ../rc6.d
ln -s ../init.d/hwclock.sh K06hwclock.sh
cd ../rcS.d
ln -s ../init.d/hwclock.sh S10hwclock.sh
by psergiu
Sun Oct 07, 2012 9:31 pm
Forum: Advanced users
Topic: New Overclocking bricked my RasPi
Replies: 21
Views: 7658

Re: New Overclocking bricked my RasPi

anakondarh wrote: Card is (was?) a new 8gb Kingston SDHC card.
New card ? Get-it replaced under warranty - overclocking or no overclocking it should NOT fail like this.
by psergiu
Wed Oct 03, 2012 9:57 am
Forum: Advanced users
Topic: Brand new rPi + bad F3 polyfuse
Replies: 56
Views: 16354

Re: Brand new rPi + bad F3 polyfuse

Will a cooled polyfuse recover quicker ? In theory, it should ... http://www.te.com/content/dam/te/global/english/products/Circuit-Protection/knowledge-center/documents/polyswitch-fundamentals.pdf Has anyone tried putting his RPi in the freezer for 5 minutes then measuring the resistance of the poly...
by psergiu
Mon Oct 01, 2012 1:49 pm
Forum: Advanced users
Topic: New Overclocking bricked my RasPi
Replies: 21
Views: 7658

Re: New Overclocking bricked my RasPi

... [Wed Sep 26 09:58:31 2012] sd 19:0:0:0: [sdb] 4294967296 512-byte logical blocks: (2.19 TB/2.00 TiB) ... [Wed Sep 26 09:58:32 2012] sd 19:0:0:0: [sdb] Sense Key : Medium Error [current] [Wed Sep 26 09:58:32 2012] sd 19:0:0:0: [sdb] Add. Sense: Unrecovered read error [Wed Sep 26 09:58:32 2012] s...
by psergiu
Fri Sep 28, 2012 2:37 pm
Forum: Other projects
Topic: Inexpensive High-Res 4.3" display
Replies: 2
Views: 1807

Re: Inexpensive High-Res 4.3" display

1200x600 is the sub-pixel resolution. Thus the real resolution is 600x300. If you're lucky.
by psergiu
Thu Sep 27, 2012 10:00 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ENC28J60 SPI Ethernet
Replies: 33
Views: 51021

Re: ENC28J60 SPI Ethernet

Success. file to edit: arch/arm/mach-bcm2708/bcm2708.c search for "spi_board_info bcm2708_spi_devices" and modify as follows (assuming your ENC28J60 is connected to spi0.0 (CE0): static struct spi_board_info bcm2708_spi_devices[] = { { .modalias = "enc28j60", .max_speed_hz = 12000000, .bus_num = 0, ...
by psergiu
Wed Sep 26, 2012 5:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ENC28J60 SPI Ethernet
Replies: 33
Views: 51021

Re: ENC28J60 SPI Ethernet

I succesfuly compiled the module ln -s /wherever/i/downloaded/the/kernel /usr/src/linux ln -s /usr/src/linux /lib/modules/`uname -r`/build cd /lib/modules/`uname -r`/build make -C /lib/modules/`uname -r`/build i insmod the enc28j60 module aaaand ... nothing. further reading on the interwebs tells me...
by psergiu
Tue Sep 25, 2012 7:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ENC28J60 SPI Ethernet
Replies: 33
Views: 51021

Re: ENC28J60 SPI Ethernet

Thank you very much. Thankfully i skiped the last step. And i backed up the old modules. I somehow managed to compile broken kernel modules. "modinfo" says the are the same as the old ones, "file" says they are the same as the old ones but they are a couple ok Kb smaller and "modprobe" says: "ERROR:...
by psergiu
Tue Sep 25, 2012 3:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

i2cdetect is from the i2c-tools package
by psergiu
Tue Sep 25, 2012 1:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ENC28J60 SPI Ethernet
Replies: 33
Views: 51021

ENC28J60 SPI Ethernet

Hi everyone, I want to use a ENC28J60 SPI ethernet board with the latest Raspbian. It's possible, the driver exists in the kernel source code, and Chris Boot already did-it before. Can anyone give me some hints on how i can accomplish this ? Do i need to recompile the whole kernel or just the enc28j...
by psergiu
Tue Sep 25, 2012 11:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Video Interfacing with iDevices
Replies: 2
Views: 1155

Re: Video Interfacing with iDevices

The iPad does not have video in. The most you can do is to build a serial cable (iPad serial port is 3.3V so no electronics are needed) and connect-it to the serial pins on the RPi On the iPad: jailbreak-it then with Cydia install latest MobileTerminal http://code.google.com/p/mobileterminal/ instal...
by psergiu
Tue Sep 25, 2012 11:39 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Tutorial: Add a Real Time Clock to the Raspberry Pi
Replies: 113
Views: 126993

Re: Tutorial: Add a Real Time Clock to the Raspberry Pi

Small correction to the tutorial With Raspbian, in order to correctly set the time using hwclock you have to (as root): dpkg --purge fake-hwclock rm /etc/rcS.d/K0?hwclock.sh edit /etc/init.d/hwclock and modify the following lines in the header as: # Required-Start: mountdevsubfs kmod # X-Start-Befor...

Go to advanced search