Hi All,
Recently bought RPI3 and I was able to run Rasbian image and use it.
I wanted to create my own custom image using Buildroot. I have built kernel by CROSS COMPILING source as mentioned in below link.
https://www.raspberrypi.org/documentati ... uilding.md
I have used same toolchain (ued for building Kernel) in buildroot. [github.com/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian]
I was able to build Kernel, buildroot sd card image. Was able to boot the box, but once it reaches console I am not able to login.
1] I have enabled root login using menuconfig in buildroot
2] I tried giving 2 different root passwords and both didn't work. I get invalid password message
3] I tried leaving root password as blank in buildroot config. But still it was asking for password and wasn't able to login.
I thought enabling/disabling/changing root password is easy unless until i have missed some important steps.
NOTE1: I have set 115200 baud-rate in cmdline
NOTE2: I have not added any other user ( not sure how to do it also)
Thanks & Regards
Munez
Re:[RESOLVE] [PI3] Login issue with Custom buildroot based i
I figured it out myself. Hopefully this will help others in future. It was related to my boot commandline
console=tty1 console=ttyAMA0,115200 >> console=ttyAMA0,115200 console=tty1
if you want to use HDMI display terminal then pass console==tty1 after console=ttyAMA0 .. Kernel always configures second one.
Also make sure Only HDMI console is enable in /etc/inittab file
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console
Thanks & Regards
Munez
console=tty1 console=ttyAMA0,115200 >> console=ttyAMA0,115200 console=tty1
if you want to use HDMI display terminal then pass console==tty1 after console=ttyAMA0 .. Kernel always configures second one.
Also make sure Only HDMI console is enable in /etc/inittab file
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console
Thanks & Regards
Munez
Re: [PI3] Login issue with Custom buildroot based image
Hi,
I have the same login issue.
As you said, I have changed the cmdline.txt to this:
root=/dev/mmcblk0p2 rootwait console=ttyAMA0,115200 console=tty1
After the image generation, I have the this on /etc/inittab:
# Put a getty on the serial port
console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console
So I need to comment the "console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL". How can I achieve this from the buildroot menuconfig?
Kind regards
I have the same login issue.
As you said, I have changed the cmdline.txt to this:
root=/dev/mmcblk0p2 rootwait console=ttyAMA0,115200 console=tty1
After the image generation, I have the this on /etc/inittab:
# Put a getty on the serial port
console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console
So I need to comment the "console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL". How can I achieve this from the buildroot menuconfig?
Kind regards
Re: [PI3] Login issue with Custom buildroot based image
Hi,
I have disabled in buildroot menuconfig --> system configuration --> [n]Enable login into getty prompt.
Now I have this configuration in /etc/inittab
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console
And with cmdline.txt : root=/dev/mmcblk0p2 rootwait console=ttyAMA0,115200 console=tty1
Now is working the login.
Kind regards
Rafa
I have disabled in buildroot menuconfig --> system configuration --> [n]Enable login into getty prompt.
Now I have this configuration in /etc/inittab
#ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console
And with cmdline.txt : root=/dev/mmcblk0p2 rootwait console=ttyAMA0,115200 console=tty1
Now is working the login.
Kind regards
Rafa