Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-08 Thread Pali Rohár
On Thursday 08 January 2015 01:16:22 Nishanth Menon wrote: On 01/07/2015 03:12 AM, Pali Rohár wrote: @Tom, Nishanth, or anybody from TI: how to check if omap device type is HS in uboot? In linux kernel it is possible by: if (omap_type() == OMAP2_DEVICE_TYPE_SEC) { ... } it should

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-07 Thread Pali Rohár
On Tuesday 06 January 2015 23:35:16 Georges Savoundararadj wrote: Hi Pali Rohár, Le 06/01/2015 23:19, Pali Rohár a écrit : ooo, thanks very much for help! On non omap HS devices that SMC instruction must not be called. Qemu emulate omap GP device (not HS), so here is must not be

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-07 Thread Nishanth Menon
On 01/07/2015 03:12 AM, Pali Rohár wrote: @Tom, Nishanth, or anybody from TI: how to check if omap device type is HS in uboot? In linux kernel it is possible by: if (omap_type() == OMAP2_DEVICE_TYPE_SEC) { ... } it should be. CONTROL_STATUS register exists in almost all omap2+ devices.

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-06 Thread Georges Savoundararadj
Hi Pali Rohár, The prefetch abort exception occurs in the function do_omap3_emu_romcode_call (in arch/arm/cpu/armv7/omap3/lowlevel_init.S) when executing the instruction SMC #1. I can't figure out what makes the difference between the working and the not-working versions. Maybe we should

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-06 Thread Georges Savoundararadj
Hi Pali Rohár, Le 06/01/2015 23:19, Pali Rohár a écrit : ooo, thanks very much for help! On non omap HS devices that SMC instruction must not be called. Qemu emulate omap GP device (not HS), so here is must not be called too. I remember that linux kernel crashed when called similar function in

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-06 Thread Pali Rohár
ooo, thanks very much for help! On non omap HS devices that SMC instruction must not be called. Qemu emulate omap GP device (not HS), so here is must not be called too. I remember that linux kernel crashed when called similar function in qemu. I temporary commented do_omap3_emu_romcode_call

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-04 Thread Georges Savoundararadj
Hi Pali Rohár, I am trying to reproduce the bug but I think I need the qflasher program for converting the u-boot.bin image into a qemu-compatible image. [1] [2] Where can I get qflasher? Could you explain how to run Nokia RX-51 u-boot's image on qemu? Thanks a lot, Best regards, Georges

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-04 Thread Pali Rohár
Hello, here are commands how to compile u-boot for nokia n900, convert uboot image into n900 nand MTD file and run it under linaro arm version of qemu (upstream version of qemu have not merged n900 support yet): $ export ARCH=arm $ export CROSS_COMPILE=arm-linux-gnueabi- $ make

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-04 Thread Pali Rohár
On Saturday 03 January 2015 19:13:32 Benoît Thébaudeau wrote: Dear Pali Rohár, On Sat, Jan 3, 2015 at 11:47 AM, Pali Rohár pali.ro...@gmail.com wrote: Hello, Nokia N900 board does not work anymore from master branch in qemu. I bisected first commit which broke it. It is:

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-04 Thread Georges Savoundararadj
Hi Pali Rohár, Le 04/01/2015 23:14, Pali Rohár a écrit : Hello, here are commands how to compile u-boot for nokia n900, convert uboot image into n900 nand MTD file and run it under linaro arm version of qemu (upstream version of qemu have not merged n900 support yet): $ export ARCH=arm $

Re: [U-Boot] Nokia RX-51 (N900) board broken

2015-01-03 Thread Benoît Thébaudeau
Dear Pali Rohár, On Sat, Jan 3, 2015 at 11:47 AM, Pali Rohár pali.ro...@gmail.com wrote: Hello, Nokia N900 board does not work anymore from master branch in qemu. I bisected first commit which broke it. It is: 41623c91b09a0c865fab41acdaff30f060f29ad6 arm: move exception handling out of

[U-Boot] Nokia RX-51 (N900) board broken

2015-01-03 Thread Pali Rohár
Hello, Nokia N900 board does not work anymore from master branch in qemu. I bisected first commit which broke it. It is: 41623c91b09a0c865fab41acdaff30f060f29ad6 arm: move exception handling out of start.S files Before this commit uboot on n900 in qemu working fine. Since this commit qemu crash