[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - [FIXED] headless boot: is serial cable mandatory?

[FIXED] headless boot: is serial cable mandatory?

Hardware related problems and workarounds

[FIXED] headless boot: is serial cable mandatory?

Postby SuperSlot » Sat Aug 09, 2014 9:49 am

Hi all,
I have an issue booting my board without the serial cable attached...

I did look into all the posts about booting issues,
my board is cooled by a big fan, heasinks on both chip, good power supply (with current display monitor).
Linux image from june 11, I also removed /etc/udev/rules.d/70-persistent-net.rules

still ... if I have the RS232/USB cable attached it does boot every time,
if I remove it ... does not boot ... I need to reset and unplug power multiple times...

am I missing something?
is the rss3s cable mandatory for headless config?

thanks
Last edited by SuperSlot on Tue Aug 12, 2014 3:37 pm, edited 1 time in total.
SuperSlot
 
Posts: 4
Joined: Sun Jun 15, 2014 9:33 am

Re: headless boot: is serial cable mandatory?

Postby SuperSlot » Mon Aug 11, 2014 7:34 am

mmm ... many read no answers ... no one with my same issue?

I think I did follow every recommendations from the howto and from the forum posts,
still ... I have this annoying issue I would like to fix
:-(
SuperSlot
 
Posts: 4
Joined: Sun Jun 15, 2014 9:33 am

Re: headless boot: is serial cable mandatory?

Postby AlbertoGP » Mon Aug 11, 2014 8:25 am

All I know is that having the serial cable plugged-in is not required for headless booting. I've used my board exclusively headless, with the serial cable at the beginning to access and configure it, but afterwards the only cables plugged-in are power and ethernet.

Do you know that you can read the log files from the SD card by plugging it into another computer?
That's a way of seeing the error messages from booting without the serial cable attached.
If there are no clear error messages, you can also compare the log files when booting with and without it to see what's different.
AlbertoGP
 
Posts: 41
Joined: Sat May 10, 2014 10:17 am
Location: Saarbrücken, Germany

Re: headless boot: is serial cable mandatory?

Postby FHuettig » Tue Aug 12, 2014 4:17 am

Greetings,

As Alberto said the serial cable -should- not be required for booting, I for one have never needed it. However, I think you may be experiencing the headless equivalent of the "Parallella Perpetual Penguin Problem." This problem occurred on some boards when nothing was connected to the UART pins, and the boot process would get stuck with the two penguins displayed on the screen. It never happened when the UART RX line was pulled high by an external device. The solution was to change the boot arguments and remove the UART as the console.

I've updated the headless device tree with the changes we made to the hdmi dev-tree, and attached it here. If you are not using the UART I expect this new tree will solve your problem, copy it to the BOOT partition of your SD card, and rename it "devicetree.dtb" (extract the dtb file from the zip first!). I've tested it on my board and it seems to work, but my board didn't show the problem you describe. Please let me know if this helps, and I'll have it merged into the regular distribution.

The new devtree still includes the UART, it just doesn't assign it as the root console. If at some later point you want to use the UART as a console, you can either:

1) Switch back to the previous devtree, but then you'll again have to make sure there is always something connected to the serial pins at boot time.
2) Keep the new devtree and use agetty to re-assign /dev/ttyPS0 as a login console, you just won't get boot messages on it.

Also, I made one more change to this file, removing one of the GPIOs which was assigned as a reset pin for the USB PHY. If you are using USB devices with your headless system, please let me know if this new devtree causes problems with USB. I want to reclaim that GPIO for general use.

Cheers.
Attachments
devicetree_headless_nouart.dtb.zip
New headless devicetree w/o UART console. Add to BOOT partition and rename as "devicetree.dtb".
(2.31 KiB) Downloaded 1748 times
-- Fred -- Hardware Guy --
FHuettig
 
Posts: 142
Joined: Wed Jan 29, 2014 8:30 pm
Location: Lexington, MA, USA

Re: headless boot: is serial cable mandatory?

Postby SuperSlot » Tue Aug 12, 2014 3:19 pm

Hi Fred,
I think you are right.
I was going to post some of my findings .. and I saw you already preempted me on the issue.

I did check my boot params:
console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0

and looking to the logs without the serial port I saw many errors like:
Aug 12 14:59:13 pla16-01 getty[2361]: /dev/ttyPS0: No such file or directory
Aug 12 14:59:23 pla16-01 getty[2366]: /dev/ttyPS0: No such file or directory

I'm going to try your fix and I'll post an update.
SuperSlot
 
Posts: 4
Joined: Sun Jun 15, 2014 9:33 am

Re: headless boot: is serial cable mandatory?

Postby SuperSlot » Tue Aug 12, 2014 3:36 pm

Hi Fred,
YESS! your devicetree made my day :-)

that was the issue, I tried to reboot multiple times and I had no problems with your new version.

btw (not sure it does matter) I did also put
ENABLED=0
into
/etc/default/autogetty

and I did delete the rule
/etc/udev/rules.d/70-persistent-net.rules

I will keep an eye on the usb devices.
thanks a lot!
SuperSlot
 
Posts: 4
Joined: Sun Jun 15, 2014 9:33 am

Re: headless boot: is serial cable mandatory?

Postby ajtravis » Tue Aug 12, 2014 11:54 pm

Minke Informatics Limited, Registered in Scotland - Company No. SC419028
User avatar
ajtravis
 
Posts: 167
Joined: Fri Jul 18, 2014 12:54 pm
Location: Scotland (UK)

Re: headless boot: is serial cable mandatory?

Postby FHuettig » Wed Aug 13, 2014 6:07 am

-- Fred -- Hardware Guy --
FHuettig
 
Posts: 142
Joined: Wed Jan 29, 2014 8:30 pm
Location: Lexington, MA, USA

Re: headless boot: is serial cable mandatory?

Postby Morgaine » Thu Aug 14, 2014 3:51 pm

Morgaine
 
Posts: 42
Joined: Tue Jul 02, 2013 8:29 pm

Re: headless boot: is serial cable mandatory?

Postby ajtravis » Sat Aug 16, 2014 11:19 pm

Minke Informatics Limited, Registered in Scotland - Company No. SC419028
User avatar
ajtravis
 
Posts: 167
Joined: Fri Jul 18, 2014 12:54 pm
Location: Scotland (UK)

Next

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 14 guests