Booting with modified kernel parameters?
#1
Is there a way to do a one-off boot with changes to the kernel's "command line", ideally without opening up the PBP or attaching a serial console?  Like one would do on an x86 with GRUB by editing the menu entry.

I specifically want to interrupt the boot sequence while it's still running out of the initramfs and / isn't mounted, so that I can resize the partition, but I haven't been able to find anything on here talking about the general case.

I'm using the stock Debian install on the eMMC and I don't have a micro-SD card to put another OS instance on, unfortunately.
  Reply
#2
In theory, you can edit the U-Boot configuration file for the command line. I don't know the option to do what you are asking, but this is the file you would need to edit on the stock Debian, as well as the line;
Code:
/boot/extlinux/extlinux.conf
append console=ttyS2,1500000n8 rw root=/dev/mmcblk1p2 rootwait rootfstype=ext4 panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 zswap.enabled=1 video=HDMI-A-1:1920x1080@60 video=eDP-1:1920x1080@60 loglevel=3 vga=current
One thing. I think the default is to mount "/boot" as R/O, so keep that in mind. I forced it to be R/W so I don't have to worry about it.
--
Arwen Evenstar
Princess of Rivendale
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PBP SD Card not booting images/IO-Errors(?!) Mikatale 4 107 1 hour ago
Last Post: wdt
  Compile of Anbox fails because kernel function kallsyms_lookup_name() is unexported Tsvi Bar-David 6 233 06-30-2020, 06:41 AM
Last Post: tophneal
  Pinebook Pro not Booting at All eMMC or MicroSD AstroCEO 18 725 06-26-2020, 01:04 PM
Last Post: tophneal
  eMMC frequently not found by Linux kernel (especially on low battery) v-man 7 408 06-21-2020, 04:30 PM
Last Post: Arwen
  Graphic problems when booting Debian crecker 0 84 06-17-2020, 06:25 PM
Last Post: crecker
  A true mainline Linux Kernel for the Pinebook Pro tsys 148 25,023 06-16-2020, 03:13 PM
Last Post: xmixahlx
  How does one get working deep/S3 sleep with Ubuntu Focal/5.7 mainline kernel? Syonyk 6 345 06-14-2020, 10:36 PM
Last Post: Syonyk
  mainline kernel hardware acceleration xmixahlx 33 5,485 06-11-2020, 10:41 AM
Last Post: xmixahlx
  dim screen after kernel upgrade bsammon 4 250 03-22-2020, 10:29 PM
Last Post: xmixahlx
Question Mount eMMC after booting from SD card Feakster 3 396 03-16-2020, 02:36 PM
Last Post: lxn

Forum Jump:


Users browsing this thread: 1 Guest(s)