[U-Boot] rk3288: Falcon mode broken

York Sun york.sun at nxp.com
Mon Oct 30 17:59:08 UTC 2017


On 10/30/2017 10:55 AM, Jagan Teki wrote:
> On Mon, Oct 30, 2017 at 11:19 PM, York Sun <york.sun at 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 at nxp.com>
>>
>>     Test: ls1043ardb SD boot to falcon
>>
>> commit b79372ae94fbc9e30d014ad8ce830d2062539eb9
>> Author: Heinrich Schuchardt <xypron.glpk at gmx.de>
>>
>>     scripts/get_maintainer.pl: enable find_maintainer_files
>>
>> commit 9ef2684c033d325b08133e96e8744b4da9b69a58
>> Author: Heinrich Schuchardt <xypron.glpk at gmx.de>
>>
>>     checkpatch: Support wide strings
>>
>> commit 2d5e6b4aac59d3a93773f19839fbb86d9e704fb7
>> Merge: 4058356 9b73bcc
>> Author: Tom Rini <trini at 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



More information about the U-Boot mailing list