Re: Raspberry pi not working with latest compiler and rtems-git
Hi Pavel, I can confirm that your branch and the RTEMS git head work on my Pi A+ and Pi Zero now. The console works when connected. For me, it will not automatically switch to the serial port if the HDMI cable is not connected. I have to comment out the cmdline.txt console switches. The Pi 2 works too, but with the older firmware. I still need to debug that. At least I can get back to trying the recently submitted SPI code. Thanks, Alan > On Jun 21, 2016, at 7:24 PM, Pavel Pisawrote: > > Hello Alan, > > On Wednesday 22 of June 2016 01:00:39 Alan Cudmore wrote: >> Hi Pavel, >> The HDMI Console! I do have it enabled, so I’m sure that’s it. >> You saved me a lot of time. >> Thanks, >> Alan > > but at least on my board/setup when RPi HDMI connector > is not connected to monitor then console is not switches/ > ticker output continues on the serial port. > > The detection is little hacky/comparison with know default > width/height. > > So if you do not have connected monitor output should > work. Or your board reports different state/resolution > in disconnected case. > > It would be much better if some firmware function > is know to explicitly report monitor is/is not connected. > But Get EDID block functions describes that it returns > one block unconditionally > > https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface > > If it could report error if monitor is not connected > then it would be better. It would worth to test that > wit different firmwares and monitors connected/disconnected > in future. > > Best wishes, > > Pavel > ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: Raspberry pi not working with latest compiler and rtems-git
Hello Alan, On Wednesday 22 of June 2016 01:00:39 Alan Cudmore wrote: > Hi Pavel, > The HDMI Console! I do have it enabled, so I’m sure that’s it. > You saved me a lot of time. > Thanks, > Alan but at least on my board/setup when RPi HDMI connector is not connected to monitor then console is not switches/ ticker output continues on the serial port. The detection is little hacky/comparison with know default width/height. So if you do not have connected monitor output should work. Or your board reports different state/resolution in disconnected case. It would be much better if some firmware function is know to explicitly report monitor is/is not connected. But Get EDID block functions describes that it returns one block unconditionally https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface If it could report error if monitor is not connected then it would be better. It would worth to test that wit different firmwares and monitors connected/disconnected in future. Best wishes, Pavel ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: Raspberry pi not working with latest compiler and rtems-git
Hi Pavel, The HDMI Console! I do have it enabled, so I’m sure that’s it. You saved me a lot of time. Thanks, Alan > On Jun 21, 2016, at 4:53 PM, Pavel Pisawrote: > > Hello Alan, > > On Tuesday 21 of June 2016 20:41:43 Alan Cudmore wrote: >> Hi Pavel, >> I compiled your branch, and it stopped on after the last line below ( on >> the Pi Model A+ ) >> >> Now I think it may be the options I use to compile the BSP. What configure >> options do you use for the Pi? > > My RPi1 config is > > ../../../git/rtems/configure --target=arm-rtems4.12 --prefix=/opt/rtems4.12 \ > --enable-rtems-inlines --disable-multiprocessing --enable-cxx \ > --enable-rdbg --enable-maintainer-mode --enable-tests=samples \ > --disable-networking --enable-posix --disable-itron --disable-ada \ > --disable-expada --disable-multilib --disable-docs \ > --enable-rtemsbsp="raspberrypi" > > RPi2 (tested only on QEMU) > > ../../../git/rtems/configure --target=arm-rtems4.12 --prefix=/opt/rtems4.12 \ > --enable-rtems-inlines --disable-multiprocessing --enable-cxx \ > --enable-rdbg --enable-maintainer-mode --enable-tests=samples \ > --enable-networking --enable-posix --disable-itron --disable-ada \ > --disable-expada --disable-multilib --disable-docs \ > --enable-rtemsbsp="raspberrypi2" > > May it be, that some options are historical reminiscences > to previous RTEMS versions. > I think that --enable-rtems-inlines is ignored/not recognized > by actual version. > > > As for the output, if it is not simplified then there is something strange > >> bsp_console_select: >> >> rpi_video_is_initialized OK > ... >> _Thread_Start_multitasking ... >> >> _Thread_Start_multitasking: >> >> printk test ... > > should be followed by " printk test OK" in the hacked > version > > https://github.com/ppisa/rtems/blob/rtems-rpi-devel/cpukit/score/src/threadstartmultitasking.c#L31 > > ll_strout("_Thread_Start_multitasking:\n"); > ll_strout(" printk test ...\n"); > printk(" printk test OK\n"); > > if the printk output does not appear then it can be redirected to HDMI > output or something else is broken in console driver or related setup. > >> _Thread_Get_heir_and_make_it_executing ... >> >> _Profiling_Thread_dispatch_disable ... > > Is it possible that you have left console redirection to HDMI > in config.txt ? The line is not checked for '#' comment leading > character so you need to rename file or remove/alter option. > > To ensure that there is not some error hidden on my side > by use of U-boot, I have checked actual RTME GIT master > build on RPi1 B+ with direct boot through config.txt > kernel option in addition to TFTP load test and both > seems to work OK with both, serial and HDMI console. > > Please, can you test version with HACK applied on RPi2? > > I have (force) updated my GitHub rtems-rpi-devel branch > to actual mainline + HACK. But there should not be > a difference. > > Best wishes, > > Pavel ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: Raspberry pi not working with latest compiler and rtems-git
Hello Alan, On Friday 17 of June 2016 19:04:58 Alan Cudmore wrote: > I refreshed my RSB build and pulled the latest rtems git changes. ( as of > today ) and the Raspberry Pi BSPs are not working. > I built the sparc/sis RSB and BSP and my tests run fine on that. > I will troubleshoot in the next day or so and try to find the error. > > What is the best ARM simulator BSP to try? > I have qemu-system-arm 2.5.0 installed, and I can run some bare metal > examples using the -M versatilepb sim. > > Thanks, > Alan I have successfully build and run actual RTEMS master on RPi1 B+ but with U-boot load. Last commit commit 16706b723f788cd26a3d5cb475f5468a68dcf263 Author: Sebastian HuberDate: Fri Jun 17 08:06:56 2016 +0200 bsps: Fix printk() format warning I have pushed set of my debug prints hacks to my personal rtems-rpi-devel branch on GitHub https://github.com/ppisa/rtems/tree/rtems-rpi-devel Commit "HACKS to locate Raspberry Pi boot problems." Try to build that version of RTEMS and run it on RPi1 and RPi2 where you experience problems. Best wishes, Pavel ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Raspberry pi not working with latest compiler and rtems-git
I refreshed my RSB build and pulled the latest rtems git changes. ( as of today ) and the Raspberry Pi BSPs are not working. I built the sparc/sis RSB and BSP and my tests run fine on that. I will troubleshoot in the next day or so and try to find the error. What is the best ARM simulator BSP to try? I have qemu-system-arm 2.5.0 installed, and I can run some bare metal examples using the -M versatilepb sim. Thanks, Alan ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel