Anthony PERARD
2013-Apr-13 19:23 UTC
Re: [cros-discuss] Boot in Hyp mode on Samsung ARM Chromebook
On Sat, Apr 13, 2013 at 7:40 PM, Mike Frysinger <vapier@chromium.org> wrote:> On Sat, Apr 13, 2013 at 1:41 PM, Chen Baozi <chenbaozi@gmail.com> wrote: >> Just one question about dom0''s command line. >> >> The original CONFIG_CMDLINE from linux-chrome git repo is > > don''t look too much (or at all) at the default value. it''s a > historical artifact and we don''t use it at all.Exactly! Under Xen, the command line given to dom0 is in the dts. Xen will look for "xen,dom0-bootargs" in the node "chosen". The dts: arch/arm/boot/dts/cros5250-common.dtsi -- Anthony PERARD
Chen Baozi
2013-Apr-14 04:59 UTC
Re: [cros-discuss] Boot in Hyp mode on Samsung ARM Chromebook
On 04/14/2013 03:23 AM, Anthony PERARD wrote:> On Sat, Apr 13, 2013 at 7:40 PM, Mike Frysinger <vapier@chromium.org> wrote: >> On Sat, Apr 13, 2013 at 1:41 PM, Chen Baozi <chenbaozi@gmail.com> wrote: >>> Just one question about dom0''s command line. >>> >>> The original CONFIG_CMDLINE from linux-chrome git repo is >> >> don''t look too much (or at all) at the default value. it''s a >> historical artifact and we don''t use it at all. > > Exactly! > > Under Xen, the command line given to dom0 is in the dts. Xen will look > for "xen,dom0-bootargs" in the node "chosen". > The dts: arch/arm/boot/dts/cros5250-common.dtsiThanks Mike & Anthony! I changed the xen,dom0-bootargs to "console=hvc0,115200n8 console=tty1 debug root=/dev/mmcblk1p3 rw rootwait init=/bin/bash" in arch/arm/boot/dts/cros5250-common.dtsi, and print the bootargs in function write_properties in xen/arch/arm/domain_build.c:127. Then I recompiled the dts & xen, ''dd'' the image signed and bundled with dom0 & dtb to the boot partition and see whether we have passed the "right" bootargs to dom0. After rebooting and checking the log in dmesg-ramoops-0, I did read the line printed "console=hvc0,115200n8 console=tty1 debug root=/dev/mmcblk1p3 rw rootwait init=/bin/bash". However, everything stays the same as before. Any ideas? Regards, - Baozi