View previous topic :: View next topic |
Author |
Message |
brundage Apprentice
Joined: 02 Dec 2004 Posts: 153
|
Posted: Tue Aug 13, 2019 6:13 pm Post subject: UTF charactes in kernel cmdline |
|
|
I'm running 4.19.57-gentoo on a UEFI system without grub and am trying to get the bootloder to pass options to the kernel. I'm getting Asian characters in /proc/cmdline when I do.
Right now I have a kernel with a built in commandline.
Code: | 0 blaze:0.0 /home/brundage % zgrep CMDLINE /proc/config.gz
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="root=/dev/sda2 pci=noaer intel_iommu=on nvidia-drm.modeset=1"
# CONFIG_CMDLINE_OVERRIDE is not set
# CONFIG_BLK_CMDLINE_PARSER is not set
# CONFIG_CMDLINE_PARTITION is not set
CONFIG_FB_CMDLINE=y
|
I've booted with this UEFI entry
Code: | Boot0002* gentoo-4.19.75 xtra HD(2,GPT,366809d6-3983-4be3-be3e-852e902a962c,0xe1800,0x63fff)/File(\EFI\GENTOO\BZIMAGE-4.19.57.EFI)root=/dev/sda2 pci=noaer intel_iommu=on vfio-pci.ids=8086:1912
|
This is currently the contents of /proc/cmdline
Code: | 1 blaze:0.0 /home/brundage % cat /proc/cmdline
root=/dev/sda2 pci=noaer intel_iommu=on nvidia-drm.modeset=1 潲瑯⼽敤⽶摳㉡瀠楣渽慯牥椠瑮汥楟浯畭漽晶潩瀭楣椮獤㠽㠰㨶㤱㈱
|
It appears that the vfio-pci parameters are not passed
Code: | 0 blaze:0.0 /root # for F in /sys/module/vfio_pci/parameters/*; do
echo $F
cat $F
echo
done
/sys/module/vfio_pci/parameters/disable_idle_d3
N
/sys/module/vfio_pci/parameters/disable_vga
N
/sys/module/vfio_pci/parameters/nointxmask
N
|
What's going on here? Thanks. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Tue Aug 13, 2019 6:38 pm Post subject: |
|
|
Quote: | It appears that the vfio-pci parameters are not passed |
where did nvidia-drm.modeset come from as well...
one thing we could try though for the boxes, is to use the -u flag with efibootmgr when making a new entry to force the cmdline to be unicode.
cheers _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
|
Back to top |
|
|
brundage Apprentice
Joined: 02 Dec 2004 Posts: 153
|
Posted: Tue Aug 13, 2019 7:53 pm Post subject: |
|
|
Yep, adding -u to efibootmgr got rid of the characters. Looks like the UEFI parameters are additive to the built-in command line.
Are these periods going to be a problem?
Code: | Boot0001* gentoo-4.19.57 HD(2,GPT,366809d6-3983-4be3-be3e-852e902a962c,0xe1800,0x63fff)/File(\EFI\GENTOO\BZIMAGE-4.19.57.EFI)r.o.o.t.=./.d.e.v./.s.d.a.2. .i.n.t.e.l._.i.o.m.m.u.=.o.n.
|
/proc/cmdline looks okay
Code: | 1 blaze /home/brundage % cat /proc/cmdline
root=/dev/sda2 root=/dev/sda2 intel_iommu=on
|
|
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Tue Aug 13, 2019 8:42 pm Post subject: |
|
|
the periods are fine, my systems do the same thing, i think its because unicode is represented differently or something.
i forgot about that thread too. i thought this sounded familiar _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23088
|
Posted: Wed Aug 14, 2019 1:21 am Post subject: |
|
|
For completeness: the non-English characters shown, when dumped as hex, byte-swapped, and reloaded as individual 8-bit characters rather than as 16-bit characters, match the expected command line set by efibootmgr. |
|
Back to top |
|
|
|