Linux hung while opening /dev/console by ttymxc0

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

Linux hung while opening /dev/console by ttymxc0

676 Views
zhb1984
Contributor I

Hello,

I am using imx6sx to develop application with customized board.  The Linux kernel was downloaded via TFTP and it was started.  It should mount the rootfs via NFS.  The bootargs was 'console=ttymxc0,115200 root=/dev/nfs rw nfsroot=192.168.1.3:/home/zhb/arm/linux/nfs/rootfs-futura,v3 ip=192.168.1.100:::255.255.255.0::eth0:off'.  When the kernel outputed the following:

[ 5.816696] IP-Config: Complete:
[ 5.819990] device=eth0, hwaddr=00:04:9f:06:6a:4d, ipaddr=192.168.1.100, mask=255.255.255.0, gw=255.255.255.255
[ 5.830780] host=192.168.1.100, domain=, nis-domain=(none)
[ 5.836840] bootserver=255.255.255.255, rootserver=192.168.1.3, rootpath=
[ 5.844672] ALSA device list:
[ 5.847901] No soundcards found.

Nothing was outputed then.  Then I did 3 test cases:

1) Use tty1(LVDS LCD) as the console, then everything is OK.  Rootfs was mounted successfully.  The bootargs was 'console=tty1 root=/dev/nfs rw nfsroot=192.168.1.3:/home/zhb/arm/linux/nfs/rootfs-futura,v3 ip=192.168.1.100:::255.255.255.0::eth0:off'.

2) Use ttymxc0 as the console, but without rootfs.  It outputed the error messages about filesystem. 

[ 2.585383] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 2.592954] Please append a correct "root=" boot option; here are the available partitions:

The bootargs was 'console=ttymxc0,115200'.

3) Use ttymxc0 as the console, with boorargs 'console=ttymxc0,115200 ip=192.168.1.100:::255.255.255.0::eth0:off'.  The result was same as the original one.

I don't know what to do next.  Could someone give any advice?

Thanks a lot!

0 Kudos
3 Replies

659 Views
zhb1984
Contributor I

The current version I am using is 5.4.70.  But I try the old version of 4.1.15, and it works.  I don't know what's the difference between them.

0 Kudos

673 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhb1984

 

what bsp used in the case, one can try latest from source.codeaurora.org/external/imx/linux-imx repository, check appropriate dts file:

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6sx-sdb.dtsi?h=imx_5....

 

Best regards
igor

0 Kudos

662 Views
zhb1984
Contributor I

I just use the latest version, 5.4.70

0 Kudos