All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot]  rk3288: Falcon mode broken
@ 2017-10-30 17:17 Jagan Teki
  2017-10-30 17:49 ` York Sun
  0 siblings, 1 reply; 5+ messages in thread
From: Jagan Teki @ 2017-10-30 17:17 UTC (permalink / raw)
  To: u-boot

Hi,

Did anyone have tested falcon recently? it was working for me during
rc1 and now it's broken cant see kernel booting, I knew I need to
bisect but just checking in case if any new changes.

Log:
------

=> reset
spl_early_init()
>>spl:board_init_r()

U-Boot TPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
Trying to boot from BOOTROM
spl_early_init()
>>spl:board_init_r()

U-Boot SPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
Trying to boot from MMC1
spl: payload image: *s load addr: 0x4 size: 1048544
Jumping to Linux
Entering kernel arg pointer: 0x

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] rk3288: Falcon mode broken
  2017-10-30 17:17 [U-Boot] rk3288: Falcon mode broken Jagan Teki
@ 2017-10-30 17:49 ` York Sun
  2017-10-30 17:55   ` Jagan Teki
  0 siblings, 1 reply; 5+ messages in thread
From: York Sun @ 2017-10-30 17:49 UTC (permalink / raw)
  To: u-boot

On 10/30/2017 10:17 AM, Jagan Teki wrote:
> Hi,
> 
> Did anyone have tested falcon recently? it was working for me during
> rc1 and now it's broken cant see kernel booting, I knew I need to
> bisect but just checking in case if any new changes.
> 
> Log:
> ------
> 
> => reset
> spl_early_init()
>>> spl:board_init_r()
> 
> U-Boot TPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
> Trying to boot from BOOTROM
> spl_early_init()
>>> spl:board_init_r()
> 
> U-Boot SPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
> Trying to boot from MMC1
> spl: payload image: *s load addr: 0x4 size: 1048544
> Jumping to Linux
> Entering kernel arg pointer: 0x
> 

Jagan,

I tested it after seeing your message. I have to make some adjustment to
accommodate the growing SPL image for LS1043ARDB. It boots OK. Please
see my log

U-Boot SPL 2017.11-rc2-00105-ga1a5779 (Oct 30 2017 - 10:42:49)
Initialzing DDR using fixed setting
Configuring DDR for 1600 MT/s data rate
PPA Firmware: Version fsl-sdk-v2.0-1703-29-ga439286
Trying to boot from MMC1
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version
4.11.0-rc4-next-20170330-35552-ge4bfaa9-dirty (york at oslab-l16) (gcc
version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #93 SMP Wed May 10
14:54:47 PDT 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
[    0.000000] bootconsole [uart8250] enabled
Starting logging: OK
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login:

I have a local commit to adjust the image size. My git log is

commit a1a577912fe17f9ff75e07661d9eb61f15e45693
Author: York Sun <york.sun@nxp.com>

    Test: ls1043ardb SD boot to falcon

commit b79372ae94fbc9e30d014ad8ce830d2062539eb9
Author: Heinrich Schuchardt <xypron.glpk@gmx.de>

    scripts/get_maintainer.pl: enable find_maintainer_files

commit 9ef2684c033d325b08133e96e8744b4da9b69a58
Author: Heinrich Schuchardt <xypron.glpk@gmx.de>

    checkpatch: Support wide strings

commit 2d5e6b4aac59d3a93773f19839fbb86d9e704fb7
Merge: 4058356 9b73bcc
Author: Tom Rini <trini@konsulko.com>

    Merge git://git.denx.de/u-boot-video

York

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] rk3288: Falcon mode broken
  2017-10-30 17:49 ` York Sun
@ 2017-10-30 17:55   ` Jagan Teki
  2017-10-30 17:59     ` York Sun
  0 siblings, 1 reply; 5+ messages in thread
From: Jagan Teki @ 2017-10-30 17:55 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 30, 2017 at 11:19 PM, York Sun <york.sun@nxp.com> wrote:
> On 10/30/2017 10:17 AM, Jagan Teki wrote:
>> Hi,
>>
>> Did anyone have tested falcon recently? it was working for me during
>> rc1 and now it's broken cant see kernel booting, I knew I need to
>> bisect but just checking in case if any new changes.
>>
>> Log:
>> ------
>>
>> => reset
>> spl_early_init()
>>>> spl:board_init_r()
>>
>> U-Boot TPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
>> Trying to boot from BOOTROM
>> spl_early_init()
>>>> spl:board_init_r()
>>
>> U-Boot SPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
>> Trying to boot from MMC1
>> spl: payload image: *s load addr: 0x4 size: 1048544
>> Jumping to Linux
>> Entering kernel arg pointer: 0x
>>
>
> Jagan,
>
> I tested it after seeing your message. I have to make some adjustment to
> accommodate the growing SPL image for LS1043ARDB. It boots OK. Please
> see my log
>
> U-Boot SPL 2017.11-rc2-00105-ga1a5779 (Oct 30 2017 - 10:42:49)
> Initialzing DDR using fixed setting
> Configuring DDR for 1600 MT/s data rate
> PPA Firmware: Version fsl-sdk-v2.0-1703-29-ga439286
> Trying to boot from MMC1
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Linux version
> 4.11.0-rc4-next-20170330-35552-ge4bfaa9-dirty (york at oslab-l16) (gcc
> version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #93 SMP Wed May 10
> 14:54:47 PDT 2017
> [    0.000000] Boot CPU: AArch64 Processor [410fd034]
> [    0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
> [    0.000000] bootconsole [uart8250] enabled
> Starting logging: OK
> Initializing random number generator... done.
> Starting network: OK
>
> Welcome to Buildroot
> buildroot login:
>
> I have a local commit to adjust the image size. My git log is
>
> commit a1a577912fe17f9ff75e07661d9eb61f15e45693
> Author: York Sun <york.sun@nxp.com>
>
>     Test: ls1043ardb SD boot to falcon
>
> commit b79372ae94fbc9e30d014ad8ce830d2062539eb9
> Author: Heinrich Schuchardt <xypron.glpk@gmx.de>
>
>     scripts/get_maintainer.pl: enable find_maintainer_files
>
> commit 9ef2684c033d325b08133e96e8744b4da9b69a58
> Author: Heinrich Schuchardt <xypron.glpk@gmx.de>
>
>     checkpatch: Support wide strings
>
> commit 2d5e6b4aac59d3a93773f19839fbb86d9e704fb7
> Merge: 4058356 9b73bcc
> Author: Tom Rini <trini@konsulko.com>
>
>     Merge git://git.denx.de/u-boot-video

Can I see these changes means the image size adjustment ?

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] rk3288: Falcon mode broken
  2017-10-30 17:55   ` Jagan Teki
@ 2017-10-30 17:59     ` York Sun
  2017-11-01 17:03       ` Jagan Teki
  0 siblings, 1 reply; 5+ messages in thread
From: York Sun @ 2017-10-30 17:59 UTC (permalink / raw)
  To: u-boot

On 10/30/2017 10:55 AM, Jagan Teki wrote:
> On Mon, Oct 30, 2017 at 11:19 PM, York Sun <york.sun@nxp.com> wrote:
>> On 10/30/2017 10:17 AM, Jagan Teki wrote:
>>> Hi,
>>>
>>> Did anyone have tested falcon recently? it was working for me during
>>> rc1 and now it's broken cant see kernel booting, I knew I need to
>>> bisect but just checking in case if any new changes.
>>>
>>> Log:
>>> ------
>>>
>>> => reset
>>> spl_early_init()
>>>>> spl:board_init_r()
>>>
>>> U-Boot TPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
>>> Trying to boot from BOOTROM
>>> spl_early_init()
>>>>> spl:board_init_r()
>>>
>>> U-Boot SPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
>>> Trying to boot from MMC1
>>> spl: payload image: *s load addr: 0x4 size: 1048544
>>> Jumping to Linux
>>> Entering kernel arg pointer: 0x
>>>
>>
>> Jagan,
>>
>> I tested it after seeing your message. I have to make some adjustment to
>> accommodate the growing SPL image for LS1043ARDB. It boots OK. Please
>> see my log
>>
>> U-Boot SPL 2017.11-rc2-00105-ga1a5779 (Oct 30 2017 - 10:42:49)
>> Initialzing DDR using fixed setting
>> Configuring DDR for 1600 MT/s data rate
>> PPA Firmware: Version fsl-sdk-v2.0-1703-29-ga439286
>> Trying to boot from MMC1
>> [    0.000000] Booting Linux on physical CPU 0x0
>> [    0.000000] Linux version
>> 4.11.0-rc4-next-20170330-35552-ge4bfaa9-dirty (york at oslab-l16) (gcc
>> version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #93 SMP Wed May 10
>> 14:54:47 PDT 2017
>> [    0.000000] Boot CPU: AArch64 Processor [410fd034]
>> [    0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
>> [    0.000000] bootconsole [uart8250] enabled
>> Starting logging: OK
>> Initializing random number generator... done.
>> Starting network: OK
>>
>> Welcome to Buildroot
>> buildroot login:
>>
>> I have a local commit to adjust the image size. My git log is
>>
>> commit a1a577912fe17f9ff75e07661d9eb61f15e45693
>> Author: York Sun <york.sun@nxp.com>
>>
>>     Test: ls1043ardb SD boot to falcon
>>
>> commit b79372ae94fbc9e30d014ad8ce830d2062539eb9
>> Author: Heinrich Schuchardt <xypron.glpk@gmx.de>
>>
>>     scripts/get_maintainer.pl: enable find_maintainer_files
>>
>> commit 9ef2684c033d325b08133e96e8744b4da9b69a58
>> Author: Heinrich Schuchardt <xypron.glpk@gmx.de>
>>
>>     checkpatch: Support wide strings
>>
>> commit 2d5e6b4aac59d3a93773f19839fbb86d9e704fb7
>> Merge: 4058356 9b73bcc
>> Author: Tom Rini <trini@konsulko.com>
>>
>>     Merge git://git.denx.de/u-boot-video
> 
> Can I see these changes means the image size adjustment ?
> 

Here it is

---
 configs/ls1043ardb_sdcard_defconfig | 7 ++++++-
 include/configs/ls1043a_common.h    | 4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/configs/ls1043ardb_sdcard_defconfig
b/configs/ls1043ardb_sdcard_defconfig
index eac931b..d817a8a 100644
--- a/configs/ls1043ardb_sdcard_defconfig
+++ b/configs/ls1043ardb_sdcard_defconfig
@@ -20,7 +20,7 @@ CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0
earlycon=uart8250,mmio,0x21
 CONFIG_SPL=y
 CONFIG_SPL_BOARD_INIT=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
-CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xf0
+CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x110
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT=y
 CONFIG_CMD_IMLS=y
@@ -53,3 +53,8 @@ CONFIG_DM_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_STORAGE=y
+CONFIG_SPL_FIT=y
+CONFIG_SPL_GZIP=y
+CONFIG_SPL_LOAD_FIT=y
+CONFIG_SPL_OS_BOOT=y
+CONFIG_SPL_OF_LIBFDT=y
diff --git a/include/configs/ls1043a_common.h
b/include/configs/ls1043a_common.h
index a24d006..cb3b748 100644
--- a/include/configs/ls1043a_common.h
+++ b/include/configs/ls1043a_common.h
@@ -69,9 +69,9 @@
 #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin"

 #define CONFIG_SPL_TEXT_BASE		0x10000000
-#define CONFIG_SPL_MAX_SIZE		0x17000
+#define CONFIG_SPL_MAX_SIZE		0x1b000
 #define CONFIG_SPL_STACK		0x1001e000
-#define CONFIG_SPL_PAD_TO		0x1d000
+#define CONFIG_SPL_PAD_TO		0x21000

 #define CONFIG_SYS_SPL_MALLOC_START	(CONFIG_SPL_BSS_START_ADDR + \
 					CONFIG_SPL_BSS_MAX_SIZE)
-- 
2.7.4

York

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] rk3288: Falcon mode broken
  2017-10-30 17:59     ` York Sun
@ 2017-11-01 17:03       ` Jagan Teki
  0 siblings, 0 replies; 5+ messages in thread
From: Jagan Teki @ 2017-11-01 17:03 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 30, 2017 at 11:29 PM, York Sun <york.sun@nxp.com> wrote:
> On 10/30/2017 10:55 AM, Jagan Teki wrote:
>> On Mon, Oct 30, 2017 at 11:19 PM, York Sun <york.sun@nxp.com> wrote:
>>> On 10/30/2017 10:17 AM, Jagan Teki wrote:
>>>> Hi,
>>>>
>>>> Did anyone have tested falcon recently? it was working for me during
>>>> rc1 and now it's broken cant see kernel booting, I knew I need to
>>>> bisect but just checking in case if any new changes.
>>>>
>>>> Log:
>>>> ------
>>>>
>>>> => reset
>>>> spl_early_init()
>>>>>> spl:board_init_r()
>>>>
>>>> U-Boot TPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
>>>> Trying to boot from BOOTROM
>>>> spl_early_init()
>>>>>> spl:board_init_r()
>>>>
>>>> U-Boot SPL 2017.11-rc2-00077-g1ea3e90-dirty (Oct 30 2017 - 22:40:51)
>>>> Trying to boot from MMC1
>>>> spl: payload image: *s load addr: 0x4 size: 1048544

Look like the issue with MMC - CMD18 making host->ioaddr as 0x0 by
means of busy state or something..due to which CMD12 is unable to
process.

Here is the full log[1], while reading the sectors mmc issue CMD16, 18
and 12 in sequence out-of-which 16 and 18 has processed with proper
ioaddr.

Does CMD18 resp MMC_RSP_R1,5,6,7 0x00000000 is proper?

Breaking log:
------------------
mmc_load_legacy sectors = 15906
blk_dread: Call read dev = 0xff716208, blkcnt = 0x0, start = 0x1000
CMD_SEND:16
                ARG                      0x00000000
Sending CMD16 0xff0c0000
                MMC_RSP_R1,5,6,7         0x00000000
CMD_SEND:18
                ARG                      0x00000000
Sending CMD18 0xff0c0000
                MMC_RSP_R1,5,6,7         0x00000000
CMD_SEND:12
                ARG                      0x00000000
Sending CMD12 0x0

Any help?

[1] https://paste.ubuntu.com/25866472/

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-01 17:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 17:17 [U-Boot] rk3288: Falcon mode broken Jagan Teki
2017-10-30 17:49 ` York Sun
2017-10-30 17:55   ` Jagan Teki
2017-10-30 17:59     ` York Sun
2017-11-01 17:03       ` Jagan Teki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.