Page 1 of 1

Raspberry serial port issue

Posted: Fri Aug 02, 2013 1:37 pm
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

Re: Raspberry serial port issue

Posted: Tue Aug 06, 2013 8:01 am
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

Re: Raspberry serial port issue

Posted: Tue Aug 06, 2013 8:16 am
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

Re: Raspberry serial port issue

Posted: Tue Aug 06, 2013 8:45 am
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

Re: Raspberry serial port issue

Posted: Thu Nov 21, 2013 6:28 pm
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

Re: Raspberry serial port issue

Posted: Thu Nov 21, 2013 7:11 pm
by NMaas
@bigjohnson

Thanks a lot :).
I will check them out!

Re: Raspberry serial port issue

Posted: Fri Nov 22, 2013 2:54 pm
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...