Linux hung while opening /dev/console by ttymxc0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Linux hung while opening /dev/console by ttymxc0

1,049件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

1,032件の閲覧回数
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 件の賞賛
返信

1,046件の閲覧回数
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 件の賞賛
返信

1,035件の閲覧回数
zhb1984
Contributor I

I just use the latest version, 5.4.70

0 件の賞賛
返信