cmdline.txt not loaded

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

cmdline.txt not loaded

Postby seble » Sun Jun 11, 2017 5:11 pm

Hi community, I hope you can help me with the following issue.

Instead of using the SD card for the root partition on a Raspberry Pi 3, I would like to use an ext4 partition inside an LUKS container on an external hard drive as the root partition. I've already copied the contents of the root partition on the SD card to the new root partiton on the external hard drive.

Then I created the file /boot/cmdline.txt, copied the contents of /proc/cmdline into the new file and adapted the parameters that seemed relevant to me.

$this->bbcode_second_pass_code('', '
$ cat /boot/cmdline.txt
#console=ttyS0,115200 console=tty0 root=PARTUUID=e9851ef4-02 rw rootwait smsc95xx.macaddr=b8:27:eb:03:5b:03
console=ttyS0,115200 console=tty0 cryptdevice=/dev/disk/by-uuid/fa90a052-a000-4f8c-aa2a-ae90eaab07ec:gnosos_luks_c1 root=/dev/mapper/gnosos_luks_c1 rw rootwait smsc95xx.macaddr=b8:27:eb:03:5b:03
')

But after rebooting with the above command line I still get:

$this->bbcode_second_pass_code('', '
$ cat /proc/cmdline
console=ttyS0,115200 console=tty0 root=PARTUUID=e9851ef4-02 rw rootwait smsc95xx.macaddr=b8:27:eb:03:5b:03
')

What am I doing wrong?
seble
 
Posts: 2
Joined: Sun Jun 11, 2017 4:54 pm

Re: cmdline.txt not loaded

Postby pepedog » Sun Jun 11, 2017 5:31 pm

It all has to be on one line
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: cmdline.txt not loaded

Postby seble » Sun Jun 11, 2017 6:12 pm

I deleted the commented line (i.e. there is no newline in the file anymore), but upon boot the kernel still uses the default command line.
seble
 
Posts: 2
Joined: Sun Jun 11, 2017 4:54 pm

Re: cmdline.txt not loaded

Postby WarheadsSE » Mon Jun 12, 2017 3:51 pm

Are you using the 32bit or 64bit kernel/userland?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 26 guests