OVP Forums - A community of assistance, help, questions, and answers.
|
View previous topic :: View next topic |
Author |
Message |
DuncGrah OVP Technologist

Joined: 27 Feb 2008 Posts: 1642 Location: United Kingdom
|
Posted: Thu Dec 19, 2019 3:16 am Post subject: MSYS2 expands PATHS in shell scripts (causes Linux Kernel Pa |
|
|
MSYS2 by default will try to expand PATHs found in shell scripts to be Windows PATHs.
For example, running the shell script from Demo/Platforms/riscv_RV64_Virtio_Linux in an MSYS shell can cause the Linux kernel boot to fail, kernel panic shown below
Quote: | [ 1.110000] bootconsole [early0] disabled
[ 1.110000] bootconsole [early0] disabled
[ 1.120000] VFS: Cannot open root device "C:/msys64/dev/vda" or unknown-block(0,0): error -6
[ 1.120000] Please append a correct "root=" boot option; here are the available partitions:
[ 1.120000] fe00 65536 vda
[ 1.120000] driver: virtio_blk
[ 1.120000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.120000] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.0-00030-gc2d852c #1
[ 1.120000] Call Trace:
[ 1.120000] [<ffffffe000019ce2>] walk_stackframe+0x0/0xa2
[ 1.120000] [<ffffffe000019de8>] show_stack+0x2a/0x38
[ 1.120000] [<ffffffe00029c190>] dump_stack+0x20/0x2e
[ 1.120000] [<ffffffe00001cd44>] panic+0xc8/0x1e8
[ 1.120000] [<ffffffe000000ff0>] mount_block_root+0x1de/0x2aa
[ 1.120000] [<ffffffe000001138>] mount_root+0x7c/0x8a
[ 1.120000] [<ffffffe00000126a>] prepare_namespace+0x124/0x15a
[ 1.120000] [<ffffffe000000c6a>] kernel_init_freeable+0x198/0x1bc
[ 1.120000] [<ffffffe0002ac6b0>] kernel_init+0xe/0xe8
[ 1.120000] [<ffffffe000018d2c>] ret_from_syscall+0xa/0xe
[ 1.120000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) |
When we look into this we see that the script sets the Kernel command line as Quote: | root=/dev/vda ro console=ttyS0 | but MSYS2 has expanded /dev/vda to C:/msys64/dev/vda, not what we want!
To stop this happening, in the MSYS2 shell
$ export MSYS2_ARG_CONV_EXCL="*" |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Information regarding OVP © 2008-2022 Imperas Software
|