JuhaniJaakola
Posts: 4
Joined: Sun Jan 05, 2014 9:19 pm

Can't ssh via Ethernet to my RPi after raspi-config

Sun Jan 05, 2014 9:35 pm

I booted my RPi with 2013-12-20-wheezy-raspbian.img, connected to it via Ethernet with ssh and executed "sudo raspi-config". I set my locale and enabled camera in raspi-config. After that I rebooted but I can't ssh into my RPi any more! It does not respond to ping and ssh gives error message "No route to host". The nmap command does not find RPi in the network any more. The only way to connect to my RPi again is to re-flash the CD card!

If I don't execute raspi-config I can reboot my RPi without problems: I can always connect to it with ssh.

I tried enabling ssh in raspi-config (although it was already enabled!) but it does not help. I tried to update raspi-config but it does not help. I tried to remove the camera but it does not help. After executing raspi-config the only way to get a ssh connection is to re-flash the CD card.

In fact I don't really need raspi-config, I just want to enable the camera. How can I enable the camera without raspi-config?

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Can't ssh via Ethernet to my RPi after raspi-config

Mon Jan 06, 2014 12:31 am

JuhaniJaakola wrote: In fact I don't really need raspi-config, I just want to enable the camera. How can I enable the camera without raspi-config?
raspi-config is only a shell script, have a look at it, see what the enable camera stuff does and write your own script to do it.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Can't ssh via Ethernet to my RPi after raspi-config

Mon Jan 06, 2014 10:53 am

If you google search for raspberrypi camera-module arch, you will turn up pages showing how to use the command line to enable the camera module without using raspi-config, and I think the commands they give should work in any Pi OS. Here are two that look like they have very good descriptions. Just skip the parts that do not have anything to do with camera module, it looks like both are using the same basic commands, which you could put into a startup script. Someone else will have to tell you where, I run Arch and our stuff is different from Raspbian for that sort of thing, but command line stuff works the same once the Pi is booted.

Raspberry PI with Camera Module and ArchLinux
http://bjurr.se/raspberry-pi-with-camer ... archlinux/

EverBot.com - SquallLTT's Blog
http://www.everbot.com/blog/

I do know what you mean about how frustrating it is when you can ssh in and then some software change makes it impossible without reflashing the SD card. But don't give up, this is linux and there will be a way to do what you want.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

JuhaniJaakola
Posts: 4
Joined: Sun Jan 05, 2014 9:19 pm

Re: Can't ssh via Ethernet to my RPi after raspi-config

Wed Jan 08, 2014 8:17 pm

Thanks for your answers! I found instructions on how to enable the camera without using raspi-config, but I still had the reboot problem. Then I attached a video capture device to the RCA video output so that I could see what was happening. Reboot failed on error messages:

Code: Select all

mmc0: Timeout waiting for hardware interrupt - cmd12.
mmcblk0: error -110 sending stop command, original cmd response 0x900, card status 0xf00
Then I found an article http://cxcv.de/post/34356721648/fixing- ... ard-issues

which suggested adding a line to /boot/config.txt:

Code: Select all

core_freq=250
This fixed my problem! So the problem was in handling the CD card!

Perhaps my problem is that I'm using an old Raspberry Pi (board version BH1218):

Code: Select all

pi@raspberrypi ~ $ cat /proc/cpuinfo
...
Hardware	: BCM2708
Revision	: 0002
...

Return to “Beginners”