LS1021A SDK 2.0 : Reboot command issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1021A SDK 2.0 : Reboot command issue

1,220 Views
amolshrotri
Contributor II


Hello,

I have LS1021A rev2 board, and build the kernel 4.1.8 from SDK 2.0, It is booting without any issue. I am loading the kernel zImage (integrated with RootFS) and dtb over tftp. It boots find but when i am give reboot command it gets stuck and fail to reboot the board. Just to confirmed i tried the same with pre-build  images (uImage--4.1-r0-ls1021atwr-20160514210242.bin, uImage--4.1-r0-ls1021a-twr-20160514210242.dtb, fsl-image-core-ls1021atwr-20160514210716.rootfs.ext2.gz.u-boot) from SDK 2.0. But observed the same issue. Please find the log for the same.

I am booting with bank 1 and console on LPUART. Switch settings are as

SW2[1:8] - 10001111

SW3[1:8] - 01101001

J19 : 1 - 2

J20 : 1 - 2

--------------------------------------------------------

U-boot Log:

--------------------------------------------------------

U-Boot 2015.01+ls1+g3281947 (Jul 30 2015 - 18:38:28)

CPU:   Freescale LayerScape LS1021E, Version: 2.0, (0x87081120)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 70000000 00007900 e0025a00 21046000

       00000020: 00000000 00000000 00000000 10000000

       00000030: 00080000 881b7340 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.0

PCBA:  V1.0

VBank: 1

I2C:   ready

DRAM:  1 GiB

Using SERDES1 Protocol: 112 (0x70)

Firmware 'Microcode version 0.0.1 for LS1021a r1.0' for 1021 V1.0

QE: uploading microcode 'Microcode for LS1021a r1.0' version 0.0.1

Flash: 128 MiB

MMC:   FSL_SDHC: 0

EEPROM: NXID v1

PCIe1: Root Complex x1 gen1, regs @ 0x3400000

     01:00.0    - 10ec:8168 - Network controller

PCIe1: Bus 00 - 01

PCIe2: Root Complex no link, regs @ 0x3500000

In:    serial

Out:   serial

Err:   serial

SEC0: RNG instantiated

SATA link 0 timeout.

AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode

flags: 64bit ncq pm clo only pmp fbss pio slum part ccc

scanning bus for devices...

Found 0 device(s).

SCSI:  Net:   eTSEC2 is in sgmii mode.

eTSEC1, eTSEC2, eTSEC3 [PRIME]

Hit any key to stop autoboot:  0

--------------------------------------------------------

Kernel Log:

--------------------------------------------------------

root@ls1021atwr:~# reboot

INIT: Sending processes the TERM signalroot@ls1021atwr:~# logouStopping OpenBSD Secure Shell server: sshdstopped /usr/sbin/sshd (pid 803)

.

hwclock: can't open '/dev/misc/rtc': No such file or directory

Stopping network benchmark server: netserverstopped /usr/sbin/netserver (pid 814)

.

Stopping system log daemon...0

Stopping kernel log daemon...0

Stopping internet superserver: xinetd.

Deconfiguring network interfaces... done.

Sending all processes the TERM signal...

Sending all processes the KILL signal...

Unmounting remote filesystems...

Deactivating swap...

Unmounting local filesystems...

Rebooting... kvm: exiting hardware virtualization

Is there any issue with RCW that I have with my board?

Thanks & Regards,

Amol M Shrotri

0 Kudos
4 Replies

932 Views
Pavel
NXP Employee
NXP Employee

Test your board using kernel from SDK 2.0 and u-boot from SDK 2.0.

Is there problem if UART1 (MBED) is used as console?


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

932 Views
hwei
Contributor III

Hi PavelChubakov

I have a similar problem, I'm using ttyLP5 as console.

My board cannot reboot in SDK2.0 Linux kernel 4.1.8.

But it can reboot in the SDK2.0 U-Boot and previous SDK1.x Linux kernels.

Hi Amol,

Have you figured out this problem?

0 Kudos

932 Views
Pavel
NXP Employee
NXP Employee

Sorry for delay.

Do you use u-boot from SDK 2.0 and Linux kernel from SDK 2.0 on your board?

Is there problem for rebooting if DUART of the LS1021a is used as console?


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

932 Views
hwei
Contributor III

Thank you PavelChubakov‌,

Yes, I'm trying to upgrade to the SDK2.0 Linux kernel and U-boot. As I said, the reboot/reset works well in SDK2.0 U-Boot, even with SDK1.x Linux kernel. But when it comes to SDK2.0 Linux kernel, the reboot command doesn't work.

Actually I find it stops in kernel source(blocking_notifier_call_chain in kernel_restart_prepare)while the kernel notifies the reboot event, but I cannot figure out the reason.

Update:

I managed to enable the LPUART and DUART at the same time, and use the uart0 as console, it's still the same, the system cannot reboot.

BTW, I have enabled the IFC NAND driver which is not enabled in the SDK2.0 Linux kernel by default. Could it be the problem?

Thanks

0 Kudos