Raspberry serial port issue

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
bigjohnson
Posts: 3
Joined: Fri Aug 02, 2013 1:23 pm

Raspberry serial port issue

Post by bigjohnson »

Hello all,
I've compiled Chibios examples for Raspberry pi from
http://www.stevebate.net/chibios-rpi/GettingStarted.html
and when I insert the Chibios test routines in the code the serial port stop work.
The led program run because I see the led flashing.
I try insert the test routines after the shell init and the test run and then the serial port / sehell work ok.
I compiled the examples with gcc version 4.7.3 20121207 (release) [ARM/embedded-4_7-branch revision 194305] (GNU Tools for ARM Embedded Processors)
and ported to ChibiOS_2.6.0 with the same issue.
Someone have a suggestion?
Thanks.

Alberto
NMaas
Posts: 3
Joined: Tue Aug 06, 2013 7:56 am

Re: Raspberry serial port issue

Post by NMaas »

Ok, the problem is about the RPi Firmware.
With version https://github.com/raspberrypi/firmware ... 1989d#boot from 06.01.2013 it does work (Serial Line and everything!)

With the Version 07.01.2013 https://github.com/raspberrypi/firmware ... 211fa/boot [ Enable ZRAM and RFKILL config options. Add mutex around bcm_mailbox_property function. Fix config_hdmi_boost=4 when using hdmi_safe. ] Serial Line broke... So seems like there would be need some adjustments to ChibiOS-RPi to get it working with the latest RPi Firmware...

I will stay with the 06.01.2013 for the time beeing.


NIco
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Raspberry serial port issue

Post by Giovanni »

Probably it would be a good idea to inform the port author about this, this is related to the specific port not to ChibiOS in general.

Giovanni
NMaas
Posts: 3
Joined: Tue Aug 06, 2013 7:56 am

Re: Raspberry serial port issue

Post by NMaas »

@Giovanni
I did post this Snipet as Issue in the GitHub of the Port about a week ago, but sadly he did not respond.

Nico
bigjohnson
Posts: 3
Joined: Fri Aug 02, 2013 1:23 pm

Re: Raspberry serial port issue

Post by bigjohnson »

Hello,
today I tried all bootcode.bin and start.elf with or without loader.bin from all the
http://downloads.raspberrypi.org/raspbian/images/
files, and the winner are from
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip
that I think are the same from
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-10-07/2013-09-25-wheezy-raspbian.zip
the sha digest are the same....
with the boot code combination from this file there are no serial port hang, I tried allot of reboot with no problem.
The Chibios version was:

Code: Select all

Kernel:       2.6.0
Compiler:     GCC 4.7.3 20121207 (release) [ARM/embedded-4_7-branch revision 194305]
Architecture: ARM11
Core Variant: ARM1176JZF-S
Port Info:    Pure ARM mode
Platform:     BCM2835
Build time:   Nov 21 2013 - 11:08:28

I hope this info is useful for someone.

Alberto
NMaas
Posts: 3
Joined: Tue Aug 06, 2013 7:56 am

Re: Raspberry serial port issue

Post by NMaas »

@bigjohnson

Thanks a lot :).
I will check them out!
bigjohnson
Posts: 3
Joined: Fri Aug 02, 2013 1:23 pm

Re: Raspberry serial port issue

Post by bigjohnson »

Today I tried wit

Code: Select all

Kernel:       2.6.1
Compiler:     GCC 4.7.3 20121207 (release) [ARM/embedded-4_7-branch revision 194305]
Architecture: ARM9
Core Variant: ARM9
Port Info:    Pure ARM mode
Platform:     BCM2835
Build time:   Nov 22 2013 - 14:06:23

and the winners are
http://downloads.raspberrypi.org/raspbian/images/2012-07-15-wheezy-raspbian/2012-07-15-wheezy-raspbian.zip
but there are some problems, the serial port don't work 5 times on 10 reboot...
Post Reply