redanb
Posts: 12
Joined: Mon Jan 04, 2016 11:42 am

Lan/ethernet port not working

Wed Jan 06, 2016 8:17 am

I changed a file last time called start.elf and rebooted my pi but the ethernet port not started,the ethernet leds are not blinking ,the router is not showing lan port connected.I checked the cable it is working , i also restarted everything but it does not work. I am using it through ssh so i need lan to work,i dont have usb keyboard. Please help.

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Lan/ethernet port not working

Wed Jan 06, 2016 8:21 am

redanb wrote:I changed a file last time called start.elf
Why :?:

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

Re: Lan/ethernet port not working

Wed Jan 06, 2016 1:35 pm

Start with a completely blank, fresh SDCard. Download NOOBS 1.5 (or the 2015-11-21 plain Raspbian). Boot that and see how it goes.

If that works you then need a USB SDCard reader to rescue your data & locally written programs from your knackered SDCard.
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.

redanb
Posts: 12
Joined: Mon Jan 04, 2016 11:42 am

Re: Lan/ethernet port not working

Wed Jan 06, 2016 1:37 pm

I was using text to speech festival, it was working good with small sentences but not with larger texts, there was a glitch, i found something on the forum and made the change ,i dont remember it ,the command was to download something and change start.elf file

redanb
Posts: 12
Joined: Mon Jan 04, 2016 11:42 am

Re: Lan/ethernet port not working

Thu Jan 07, 2016 1:24 pm

Starting with a fresh sd card fixed the problem.
Also I am trying to pass the output of a .py file to a text file.I tried filename.py | text.txt and filename.py > text.txt but I am not able to do it with the limited knowledge i have now. I am afraid if i should have started a new post.

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

Re: Lan/ethernet port not working

Thu Jan 07, 2016 1:36 pm

Use

Code: Select all

      output = open("textfile.txt","wb")
      output.write('static stuff you want to write goes here\r\n')
      output.write(variable.to.write)
      output.close()
in your python code.
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.

Return to “Troubleshooting”