Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Missing inittab file

Mon Jan 04, 2016 5:00 am

I am going through the PrivateEyePi documents to configure the serial port:
http://projects.privateeyepi.com/home/h ... spberry-pi

but I don't have an inittab file, what the heck? So I took a giant step backward and formated this card and installed Pi on it without all the other things I had done on the other image. I have inittab on the other image, but I don't want to use that one because of seeing this, I am wondering if it is the source of my RF issues.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Missing inittab file

Mon Jan 04, 2016 5:38 am

With Raspbian Jessie, there is no inittab.

Instead, use raspi-config. In the Advanced options is

Code: Select all

A8 Serial Enable/Disable shell and kernel messages on the serial connection

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Mon Jan 04, 2016 2:13 pm

I enabled that rebooted, enabled again, rebooted. The file still does not show up.

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

Re: Missing inittab file

Mon Jan 04, 2016 2:43 pm

Kadam wrote:I enabled that rebooted, enabled again, rebooted. The file still does not show up.
/etc/inittab is part of sysvinit. With Jessie sysvinit is removed from the system and replaced with systemd. As part of that change /etc/inittab is removed (because it's not used and can't be used).

There are new and better ways to get things running at boot time and get things running on demand.

The serial console is ONLY defined in /boot/cmdline now. If that exists then systemd does some magic to get it running.
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.

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Mon Jan 04, 2016 3:09 pm

Thank you for the reply and now I am thoroughly confused because I had installed Pi software which I'm sure was NOOBs on the Pi I got from Amazon and it had the inittab file.

I am trying to use wireless things (Ciseco) radios and haven't had luck with the config that had the inittab file. I borrowed my buddy's radios and they didn't work either. So it really boiled down to my config, which I've read through the instructions about 100 times. ok that was an exaggeration, 99 times.

These are the destructions (listed above, but copied for easy reference):
http://projects.privateeyepi.com/home/h ... spberry-pi

I have been through the PeP site, Wireless things, and they're the same obviously... they say the same, but I have been struggling with this for a month! I realize how fickle this is because of a . instead of a , makes a big diff, I have scrutinized all my stuff, but I have no serial comms.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Missing inittab file

Mon Jan 04, 2016 3:14 pm

Kadam wrote:Thank you for the reply and now I am thoroughly confused because I had installed Pi software which I'm sure was NOOBs on the Pi I got from Amazon........
fyi: NOOBS is an installer / chooser IT IS NOT an Operating System, the Operating System installed it what you chose to install from the NOOBS Menu on first boot up.....
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Mon Jan 04, 2016 3:18 pm

right, I'm going to start over. Jesse is installed on this one, my other SD must have a different OS that has the inittab.

Back to the original problem of communications, vs my poor knowlege of the OS/installer names. So PeP seems to be based not on Jesse.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Missing inittab file

Mon Jan 04, 2016 3:25 pm

Kadam wrote:right, I'm going to start over. Jesse is installed on this one, my other SD must have a different OS that has the inittab.

Back to the original problem of communications, vs my poor knowlege of the OS/installer names. So PeP seems to be based not on Jesse.
Raspbian Wheezy as stated uses Sysvinit

Raspbian Jessie uses SystemD

Maybe rather than using NOBS, install a standalone image of the version of Raspbian you need:

https://www.raspberrypi.org/downloads/raspbian
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Missing inittab file

Mon Jan 04, 2016 3:32 pm

viewtopic.php?f=44&t=51633&start=25#p828064 for connecting Pizero / A to a Model B
using jessie
this may help in your task
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Mon Jan 04, 2016 5:47 pm

Thank you thank you both for replying. This has been a pain. I did find on the ciseco site that Wheezy is the prefered OS. I was so new when I installed the first time that I used Wheezy (which was right for the radios, but still doesn't work). I formatted another card and thats when I "found" the missind file...

A person really has to dive in and do a lot of research about this. I don't think PEP specifies Wheezy, so that could be a pitfall. I have asked them about it and they did say they would look into updating for Jessie. Then the Ciseco site has links to their old site... so that's not fully helpful.

Jessie:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Wheezy:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait

I see that the setup is virtually about the same, I know that if I copy the cmdLine.txt for Jessie and put it into a Wheezy OS then the thing bricks...

I am using Wheezy. I have configured the two files as you had in your outline and if I run miniterm I can type +++ and get OK, ATID and see 5AA5 so there is talking to the base transmitter. However, there are no comms back from remote radios. I have now tried my buddy's radios both base station and transmitters, they do not work on my Pi.

I have struggled with this for about a month and haven't had much fun past the first week or two of having the Pi... I have programming background, experience w Linux, networking, and electrical/electronics. This is very frustrating.

Thanks for all the input thus far guys! It is MUCH appreciated.
Last edited by Kadam on Mon Jan 04, 2016 6:09 pm, edited 1 time in total.

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: Missing inittab file

Mon Jan 04, 2016 5:59 pm

Note that it is supposed to be possible to uninstall systemd and (re-) install sysvinit. I need to try that one of these days on my Jessie system. It sounds like a good move. Should be the default.

systemd (despite what the cheerleaders on these forums say) is horrid.
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Mon Jan 04, 2016 6:25 pm

On further reading from Ciseco, they say that these things are sensitive and that makes sense. Seems that my Tx is working to get AT commands to work but maybe the Rx is pootched. This seems the most likely problem now because nothing else is working!

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Missing inittab file

Tue Jan 05, 2016 8:54 am

Kadam wrote:...
Jessie:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
Wheezy:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait.....
bolded the possible thing you missed
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Tue Jan 05, 2016 2:42 pm

By missed do you mean I should delete that whole comment, just the bolded part, or?

This is my first "build" with configuring the UART so I'm really just following others instructions that may not reflect changes in the OS.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Missing inittab file

Tue Jan 05, 2016 2:51 pm

Kadam wrote:By missed do you mean I should delete that whole comment, just the bolded part, or?

This is my first "build" with configuring the UART so I'm really just following others instructions that may not reflect changes in the OS.
If you are using Raspbian via NOOBS the Raspbian root partition is /dev/mmcblk0p6, if you are using the Raspbian (standalone) image the the root partition is /dev/mmcblk0p2. It has nothing to do with the difference between Jessie and Wheezy.

From the NOOBS github repository ... NOOBS partitioning explained and Standalone partitioning explained

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Tue Jan 05, 2016 3:27 pm

Oh yes, that's what I was pointing out, the difference and when I copied the folder for Jessie to Wheezy it bricks and rightfully so. I fixed it without issue.

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Thu Jan 07, 2016 3:38 am

It occurred to me that I had it plugged into my computer because that was convenient but the wall charger would be much better. But could it cause any damage?

Kadam
Posts: 28
Joined: Sat Dec 12, 2015 7:03 pm

Re: Missing inittab file

Fri Jan 15, 2016 4:19 pm

Found out that the stock Wheezy image from here does not work. The image provided by ciseco is great!

Can anyone point me to where I can see how to send/receive commands/inputs from the RFs? (python coding)

Return to “Troubleshooting”