[U-Boot] Help Falcon Mode on Wanboard

Hi Stefano,
I downloaded the patch about Falcon Mode from:
https://www.amazon.com/clouddrive/share/hVlzRXoJv1Jq4DJdgDcVnfmOWjARqR06eCfh...
Then, as the README file says I did a checkout on commit 587c3f8ebe356b558f1876414885c1b4a31294ab and applied the patch.
$ git am 0001-wandboard-changes-for-EW-2016-demo.patch
I compiled without errors and then I've tried to upload to the SD card, by doing:
$ sudo dd if=SPL of=/dev/sdb bs=1k seek=1; sync
$ sudo dd if=u-boot.img of=/dev/sdb bs=1k seek=69; sync
But, everytime I try to turn on the board I got this error:
U-Boot 2016.01-rc4-26067-g0ff7f76 (Aug 08 2016 - 09:41:44 -0300)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz Reset cause: POR initcall sequence 178290cc failed at call 178038bd (err=394279101) ### ERROR ### Please RESET the board ###
I'm using wanboard quad rev: B1.
Does anybody know how to solve this?
Regards, Diego Dorta

Hi Diego,
On 08/08/2016 18:12, Diego Dorta wrote:
Hi Stefano,
I downloaded the patch about Falcon Mode from:
https://www.amazon.com/clouddrive/share/hVlzRXoJv1Jq4DJdgDcVnfmOWjARqR06eCfh...
Then, as the README file says I did a checkout on commit 587c3f8ebe356b558f1876414885c1b4a31294ab and applied the patch.
$ git am 0001-wandboard-changes-for-EW-2016-demo.patch
I compiled without errors and then I've tried to upload to the SD card, by doing:
$ sudo dd if=SPL of=/dev/sdb bs=1k seek=1; sync
$ sudo dd if=u-boot.img of=/dev/sdb bs=1k seek=69; sync
But, everytime I try to turn on the board I got this error:
U-Boot 2016.01-rc4-26067-g0ff7f76 (Aug 08 2016 - 09:41:44 -0300)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz Reset cause: POR initcall sequence 178290cc failed at call 178038bd (err=394279101) ### ERROR ### Please RESET the board ###
I'm using wanboard quad rev: B1.
Does anybody know how to solve this?
It was quite a while ago, but the patch sets Falcon mode, and it tries to boot the kernel. Kernel is not in filesystem, but stored at a fixed address on the SD card (0x1000). The error you reported seems when U-Boot is starting - by pressing 'c' or if no kernel is stored.
I have to find back the wandboard I used to try a run...
Best regards, Stefano Babic

From: Stefano Babic sbabic@denx.de
Hi Diego,
On 08/08/2016 18:12, Diego Dorta wrote:
Hi Stefano,
I downloaded the patch about Falcon Mode from:
https://www.amazon.com/clouddrive/share/hVlzRXoJv1Jq4DJdgDcVnfmOWjARqR06eCfh...
Then, as the README file says I did a checkout on commit 587c3f8ebe356b558f1876414885c1b4a31294ab and applied the patch.
$ git am 0001-wandboard-changes-for-EW-2016-demo.patch
I compiled without errors and then I've tried to upload to the SD card, by doing:
$ sudo dd if=SPL of=/dev/sdb bs=1k seek=1; sync
$ sudo dd if=u-boot.img of=/dev/sdb bs=1k seek=69; sync
But, everytime I try to turn on the board I got this error:
U-Boot 2016.01-rc4-26067-g0ff7f76 (Aug 08 2016 - 09:41:44 -0300)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz Reset cause: POR initcall sequence 178290cc failed at call 178038bd (err=394279101) ### ERROR ### Please RESET the board ###
I'm using wanboard quad rev: B1.
Does anybody know how to solve this?
It was quite a while ago, but the patch sets Falcon mode, and it tries to boot the kernel. Kernel is not in filesystem, but stored at a fixed address on the SD card (0x1000). The error you reported seems when U-Boot is starting - by pressing 'c' or if no kernel is stored.
Hi Stefano,
When I use your falcon mode pre-built image everything works fine, but when I try to replace to use the binaries I've compiled, the normal mode (pressing C) doesn't work and shows this error:
U-Boot 2016.01-rc4-26067-g04df0e7-dirty (Aug 12 2016 - 10:31:08 -0300)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz Reset cause: POR initcall sequence 178290d4 failed at call 178038bd (err=394279101) ### ERROR ### Please RESET the board ###
I use the following commands to copy the binaries:
$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 oflag=sync status=none && sync
$ sudo dd if=u-boot.img of=/dev/sdb bs=1K seek=69 oflag=sync status=none && sync
How can I understand this error message? Does anyone know how to fix it?
Regards, Diego Dorta

Hi Diego,
On 12/08/2016 19:19, Diego Dorta wrote:
It was quite a while ago, but the patch sets Falcon mode, and it tries to boot the kernel. Kernel is not in filesystem, but stored at a fixed address on the SD card (0x1000). The error you reported seems when U-Boot is starting - by pressing 'c' or if no kernel is stored.
Hi Stefano,
When I use your falcon mode pre-built image everything works fine, but when I try to replace to use the binaries I've compiled, the normal mode (pressing C) doesn't work and shows this error:
U-Boot 2016.01-rc4-26067-g04df0e7-dirty (Aug 12 2016 - 10:31:08 -0300)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz Reset cause: POR initcall sequence 178290d4 failed at call 178038bd (err=394279101) ### ERROR ### Please RESET the board ###
I use the following commands to copy the binaries:
$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 oflag=sync status=none && sync
$ sudo dd if=u-boot.img of=/dev/sdb bs=1K seek=69 oflag=sync status=none && sync
This does not seem an issue when you write inot the SD card, else SPL is not started. But SPL works as expected and load correctly u-boot.img, that crashes.
I do not know if this makes a difference, but I check my logs and I have seen that I built with gcc 4.9.2 (Yocto-fido). This should not be an issue, but...
You should take a look at u-boot.map, and check the address where it happens. 0x00000000178290d4 should be init_sequence_f, you have to see in which function is 178038bd to make supposition.
For example, in my original u-boot.map (that I have still found on my PC), I see:
.text.initr_malloc 0x00000000178038a8 0x16 common/built-in.o .text.initr_caches 0x00000000178038be 0xa common/built-in.o
If binary was identical, it means a failure in initr_malloc. But your build is surely different and you have to find it.
Best regards, Stefano
participants (2)
-
Diego Dorta
-
Stefano Babic