Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the default kernel commandline via menuconfig has no effect #4

Open
christianjann opened this issue Jan 20, 2013 · 0 comments

Comments

@christianjann
Copy link

Changing the default kernel commandline via menuconfig like written in the README (console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait) has no effect becaus it gets overridden by the imx23_olinuxino_bootlets.patch patch, for example I had to modify this patch to use systemd as default init system:

[chris@thinkpad linux-stable]$ sed -i 's/root=\/dev\/mmcblk0p2/root=\/dev\/mmcblk0p2 init=\/usr\/lib\/systemd\/systemd/g' ../../boot/imx23_olinuxino_bootlets.patch
[chris@thinkpad boot]$ cd imx-bootlets-src-10.05.02/
[chris@thinkpad imx-bootlets-src-10.05.02]$ patch -p1 < ../imx23_olinuxino_bootlets.patch
patching file linux.db
patching file linux_prep/board/imx23_olinuxino_dev.c
patching file linux_prep/cmdlines/imx23_olinuxino_dev.txt
patching file linux_prep/core/setup.c
patching file linux_prep/include/mx23/platform.h
patching file linux_prep/Makefile
patching file Makefile
patching file uboot.db
[chris@thinkpad imx-bootlets-src-10.05.02]$ cat linux_prep/cmdlines/imx23_olinuxino_dev.txt
noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 init=/usr/lib/systemd/systemd rw rootwait ssp1=mmc
noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 init=/usr/lib/systemd/systemd rw rootwait ssp1=mmc
noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 init=/usr/lib/systemd/systemd rw rootwait ssp1=mmc
[chris@thinkpad imx-bootlets-src-10.05.02]$

An older Arch Linux image without systemd will also boot, just with a small error message that /usr/lib/systemd/systemd could not be found and switching back to default init.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant