fail to run nxp_ls1028ardb-64b_ubuntu_defconfig

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

fail to run nxp_ls1028ardb-64b_ubuntu_defconfig

1,178 Views
yyu2
Contributor III

Hi all,

I make the "nxp_ls1028ardb-64b_ubuntu_defconfig" and load the sdcard.img to the SD card. When starting from dev. board, it fails to run the OpenIL with Ubuntu. Some error information is displayed in console, somethings like "[FAILED] Failed to start Network Service."

After waiting enough long time, the system can not enter into prompt mode. Is there any idea about this?

Best,

   Yi

pastedImage_1.png

Log info in console is like:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Welcome to OpenIL 2018.12!

[  122.451476] systemd[1]: Set hostname to <OpenIL-Ubuntu-LS1028ARDB>.
[  122.527435] random: systemd: uninitialized urandom read (16 bytes read)
[  122.534099] systemd[1]: Initializing machine ID from random generator.
[  127.690913] random: systemd: uninitialized urandom read (16 bytes read)
[  135.555617] random: systemd-cryptse: uninitialized urandom read (16 bytes read)
[  165.223917] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read)
[  165.231367] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read)
[  165.238735] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read)
[  167.245527] urandom_read: 1 callbacks suppressed
[  167.245529] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[  178.582287] random: crng init done
[  198.873840] systemd[1]: [/lib/systemd/system/systemd-udevd.service:28] Unknown lvalue 'MemoryDenyWriteExecute' in section 'Service'
[  198.885743] systemd[1]: [/lib/systemd/system/systemd-udevd.service:29] Unknown lvalue 'RestrictRealtime' in section 'Service'
[  202.175096] systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
[  202.196399] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[  202.216354] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  202.240357] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[  202.260409] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[  202.280284] systemd[1]: Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[  202.300283] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[  202.320412] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Create list of required st... nodes for the current kernel...
         Mounting Debug File System...
         Mounting Huge Pages File System...
         Starting Journal Service...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Reached target Slices.
[  214.505201] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[  214.524490] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  214.548319] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[  214.568293] systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
[  214.584322] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[  215.255548] systemd[1]: Mounting Temporary Directory...
         Mounting Temporary Directory...
[  215.274765] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[  215.300304] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
[  215.316386] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  215.336315] systemd[1]: Mounted Huge Pages File System.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Mounted Temporary Directory.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[  OK  ] Started Remount Root and Kernel File Systems.
[  222.653887] systemd[1]: Starting Rebuild Hardware Database...
         Starting Rebuild Hardware Database...
[  222.674494] systemd[1]: Starting Load/Save Random Seed...
         Starting Load/Save Random Seed...
[  222.694616] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[  222.720090] systemd[1]: Started Load Kernel Modules.
[  OK  ] Started Load Kernel Modules.
[  222.765505] systemd[1]: Mounting Configuration File System...
         Mounting Configuration File System...
[  222.786510] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[  222.806510] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[  222.826704] systemd[1]: Mounted FUSE Control File System.
[  OK  ] Mounted FUSE Control File System.
[  222.848361] systemd[1]: Mounted Configuration File System.
[  OK  ] Mounted Configuration File System.
[ ***  ] (4 of 6) A start job is running for...e Nodes in /dev (31s / no limit)[  233.796050] systemd[1]: Started Load/Save Random Seed.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Rebuild Journal Catalog...
         Starting udev Kernel Device Manager...
[  292.295123] systemd[1]: Timed out waiting for device dev-ttyS0.device.
[ TIME ] Timed out waiting for device dev-ttyS0.device.
[DEPEND] Dependency failed for Serial Getty on ttyS0.
[     *] (1 of 4) A start job is running for...al Catalog (1min 50s / 2min 56s)[  312.797780] systemd[1]: Failed to start Rebuild Hardware Database.
[FAILED] Failed to start Rebuild Hardware Database.
See 'systemctl status systemd-hwdb-update.service' for details.
         Starting udev Coldplug all Devices...
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started Rebuild Journal Catalog.
         Starting Update is Completed...
[  OK  ] Started Update is Completed.
[  OK  ] Started udev Kernel Device Manager.
[  346.629173] systemd[1]: dev-disk-by\x2dpath-platform\x2d2150000.esdhc.device: Dev dev-disk-by\x2dpath-platform\x2d2150000.esdhc.device appeared twice with different sysfs paths /sys/devices/platform/soc/2150000.esdhc/mmc_host/mmc1/mmc1:0001/block/mmcblk1 and /sys/devices/platform/soc/2150000.esdhc/mmc_host/mmc1/mmc1:0001/block/mmcblk1/mmcblk1boot0
[  346.879912] systemd[1]: dev-disk-by\x2dpath-platform\x2d2150000.esdhc.device: Dev dev-disk-by\x2dpath-platform\x2d2150000.esdhc.device appeared twice with different sysfs paths /sys/devices/platform/soc/2150000.esdhc/mmc_host/mmc1/mmc1:0001/block/mmcblk1 and /sys/devices/platform/soc/2150000.esdhc/mmc_host/mmc1/mmc1:0001/block/mmcblk1/mmcblk1boot1
[  OK  ] Reached target Sound Card.
[   ***] A start job is running for Journal Service (2min 59s / 3min)[  381.718700] systemd[1]: Failed to start Journal Service.
[FAILED] Failed to start Journal Service.
See 'systemctl status systemd-journald.service' for details.
[DEPEND] Dependency failed for Flush Journal to Persistent Storage.
[  OK  ] Stopped Journal Service.
         Starting Journal Service...
         Starting Create Volatile Files and Directories...
[  OK  ] Started Journal Service.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
         Starting Docker Socket for the API.
         Starting Network Service...
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started D-Bus System Message Bus.
         Starting getty on tty2-tty6 if dbus and logind are not available...
         Starting Permit User Sessions...
[  OK  ] Reached target Containers.
[  OK  ] Started Permit User Sessions.
[FAILED] Failed to start Network Service.
See 'systemctl status systemd-networkd.service' for details.
[DEPEND] Dependency failed for Wait for Network to be Configured.
[  OK  ] Started getty on tty2-tty6 if dbus and logind are not available.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Stopped Network Service.
         Starting Network Service...
[  OK  ] Started Network Service.
[  OK  ] Reached target Network.
         Starting Docker Application Container Engine...
         Starting Network Name Resolution...
[  OK  ] Started Network Name Resolution.
         Starting DHCP client daemon...
[FAILED] Failed to start DHCP client daemon.
See 'systemctl status dhcpcd.service' for details.
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
         Starting OpenIL init for systemd...
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Getty on tty3.
[  OK  ] Started Getty on tty4.
[  OK  ] Started Getty on tty2.
[  OK  ] Started Getty on tty6.
[  OK  ] Started Getty on tty5.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenIL init for systemd.
         Starting Cleanup of Temporary Directories...
[  OK  ] Started Cleanup of Temporary Directories.
[  OK  ] Started Docker Application Container Engine.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

0 Kudos
6 Replies

909 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Yi Yu,

Please use the latest Openil 1.6, I have built image with nxp_ls1028ardb-64b_ubuntu_defconfig and didn't reproduce your problem.

I have uploaded my SD image in the following link, please try it.

https://drive.google.com/open?id=1FHFAQhxotPVZHHObE7Dk6Pd1-7EWR4dp 

Thanks,

Yiping

0 Kudos

909 Views
yyu2
Contributor III

Hi Yiping,

Well, in previous attempt, the SD card is not formatted and the boot process failed.

Now with formatted SD card and deployed with your image, the boot process still failed. It takes much time to do the job like:

pastedImage_1.png

Also there is errors like:

pastedImage_1.pngpastedImage_2.png

Do you have any ideas on this? Should I pay attentions to some boot configurations?

Thanks.

   Yi

0 Kudos

909 Views
yipingwang
NXP TechSupport
NXP TechSupport

I built image with command, please refer to the attached log.

$ make nxp_ls1028ardb-64b_ubuntu_defconfig

$ make

Please execute

dd if=./sdcard.img of=/dev/mmcblkx

mmcblkx is SD card device name.

I uploaded image in the following link

https://drive.google.com/open?id=1Fl7efhGSi7JO_xKcppip71hVEiG8RO9J 

0 Kudos

909 Views
yyu2
Contributor III

Thank you yipingwang and I will try it later.

A quick question about the difference between ubuntu based OpenIL image and raw OpenIL image. Can I interpret them as:

-- Ubuntu based OpenIL implements the Xenomai Mercury

-- Raw OpenIL implement the Xenomai Cobalt

Is there any functional or performance difference between these two images?

Best,

   Yi

0 Kudos

909 Views
yipingwang
NXP TechSupport
NXP TechSupport

Ubuntu based OpenIL image is based on Ubuntu rootfs filesystem, you could install package with "apt-get" command.

No function and performance difference between these two images.

0 Kudos

909 Views
yyu2
Contributor III

Hi Yiping,

I tried your sdcard.img but it printed information like below and can not start the system.

Could you help to check the reason? Thanks.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

[    5.481743] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    5.490210] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.47-ipipe #1
[    5.496757] Hardware name: LS1028A RDB Board (DT)
[    5.501472] I-pipe domain: Linux
[    5.504704] Call trace:
[    5.507163] [<ffff00000808a2d0>] dump_backtrace+0x0/0x400
[    5.512579] [<ffff00000808a6e4>] show_stack+0x14/0x20
[    5.517645] [<ffff000008e757ac>] dump_stack+0xd4/0x108
[    5.522798] [<ffff0000080d0da8>] panic+0x114/0x28c
[    5.527603] [<ffff0000094411dc>] mount_block_root+0x1fc/0x24c
[    5.533365] [<ffff000009441460>] mount_root+0x11c/0x134
[    5.538605] [<ffff0000094415e8>] prepare_namespace+0x170/0x1b8
[    5.544454] [<ffff000009440da4>] kernel_init_freeable+0x200/0x224
[    5.550566] [<ffff000008e88040>] kernel_init+0x10/0x100
[    5.555805] [<ffff0000080850a8>] ret_from_fork+0x14/0x1c
[    5.561134] SMP: stopping secondary CPUs
[    5.565067] Kernel Offset: disabled
[    5.568561] CPU features: 0x1802008
[    5.572055] Memory Limit: none
[    5.575118] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[   16.472744] mmc1: Timeout waiting for hardware cmd interrupt.
[   16.478508] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[   16.484969] mmc1: sdhci: Sys addr:  0xe7c80000 | Version:  0x00002202
[   16.491429] mmc1: sdhci: Blk size:  0x00000200 | Blk cnt:  0x00000000
[   16.497889] mmc1: sdhci: Argument:  0x00010000 | Trn mode: 0x00000033
[   16.504349] mmc1: sdhci: Present:   0x01fd0008 | Host ctl: 0x00000032
[   16.510808] mmc1: sdhci: Power:     0x00000006 | Blk gap:  0x00000000
[   16.517268] mmc1: sdhci: Wake-up:   0x00000000 | Clock:    0x00000028
[   16.523727] mmc1: sdhci: Timeout:   0x0000000c | Int stat: 0x00000001
[   16.530186] mmc1: sdhci: Int enab:  0x027f100f | Sig enab: 0x027f100b
[   16.536646] mmc1: sdhci: AC12 err:  0x00000000 | Slot int: 0x00002202
[   16.543105] mmc1: sdhci: Caps:      0x00fa0000 | Caps_1:   0x0000af00
[   16.549565] mmc1: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[   16.556025] mmc1: sdhci: Resp[0]:   0x00000900 | Resp[1]:  0xffffff8d
[   16.562484] mmc1: sdhci: Resp[2]:   0x320f5913 | Resp[3]:  0x00000900
[   16.568943] mmc1: sdhci: Host ctl2: 0x00000083
[   16.573397] mmc1: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0xebc9c208
[   16.579855] mmc1: sdhci: ============================================
[   26.712744] mmc1: Timeout waiting for hardware cmd interrupt.
[   26.718506] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[   26.724966] mmc1: sdhci: Sys addr:  0xe7c80000 | Version:  0x00002202
[   26.731426] mmc1: sdhci: Blk size:  0x00000200 | Blk cnt:  0x00000008
[   26.737885] mmc1: sdhci: Argument:  0x00010000 | Trn mode: 0x00000033
[   26.744345] mmc1: sdhci: Present:   0x01fd0008 | Host ctl: 0x00000032
[   26.750804] mmc1: sdhci: Power:     0x00000006 | Blk gap:  0x00000000
[   26.757264] mmc1: sdhci: Wake-up:   0x00000000 | Clock:    0x00000028
[   26.763723] mmc1: sdhci: Timeout:   0x0000000c | Int stat: 0x00000001
[   26.770183] mmc1: sdhci: Int enab:  0x027f100f | Sig enab: 0x027f100b
[   26.776642] mmc1: sdhci: AC12 err:  0x00000000 | Slot int: 0x00002202
[   26.783101] mmc1: sdhci: Caps:      0x00fa0000 | Caps_1:   0x0000af00
[   26.789561] mmc1: sdhci: Cmd:       0x00000d1a | Max curr: 0x00000000
[   26.796020] mmc1: sdhci: Resp[0]:   0x00000900 | Resp[1]:  0x0000000d
[   26.802479] mmc1: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[   26.808938] mmc1: sdhci: Host ctl2: 0x00000083
[   26.813392] mmc1: sdhci: ADMA Err:  0x00000000 | ADMA Ptr: 0xebc9c208
[   26.819850] mmc1: sdhci: ============================================

0 Kudos