I've been working with rpi3 for several years and now I'm starting to work with CM3L. My problem is that I can not output the console to the port ttyS0 (serial1).
1) I'm using ubuntu mate 16.04.2 LTS 4.1.19. X-server disabled.
2) I compiled uart0-overlay.dtb and uart1-overlay.dtb:
Code: Select all
/dts-v1/;
/plugin/;
/{
compatible = "brcm,bcm2708";
fragment@0 {
target = <&uart0>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins>;
status = "okay";
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
uart0_pins: uart0_pins {
brcm,pins = <14 15>;
brcm,function = <2>; /* alt5 */
brcm,pull = <0 2>;
};
};
};
fragment@2 {
target-path = "/chosen";
__overlay__ {
bootargs = "8250.nr_uarts=1";
};
};
__overrides__ {
txd0_pin = <&uart0_pins>,"brcm,pins:0";
rxd0_pin = <&uart0_pins>,"brcm,pins:4";
};
};Code: Select all
/dts-v1/;
/plugin/;
/{
compatible = "brcm,bcm2708";
fragment@0 {
target = <&uart1>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
status = "okay";
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
uart1_pins: uart1_pins {
brcm,pins = <32 33>;
brcm,function = <4>; /* alt0 */
brcm,pull = <0 2>;
};
};
};
fragment@2 {
target-path = "/chosen";
__overlay__ {
bootargs = "8250.nr_uarts=1";
};
};
__overrides__ {
txd1_pin = <&uart1_pins>,"brcm,pins:0";
rxd1_pin = <&uart1_pins>,"brcm,pins:4";
};
};
Code: Select all
#enable_uart=1
#Ignore the HDMI cable hotplug (to avoid the delay at startup)
hdmi_ignore_hotplug=1
# Set the debug port on GPIO32, GPIO33 pins
force_turbo=1
dtoverlay=uart1,txd1_pin=32,rxd1_pin=33
dtoverlay=uart0,txd0_pin=14,rxd0_pin=15
# Enable the 1-wire bus
dtoverlay=w1-gpio,gpiopin=16
# Set the audio lines on GPIO40 and GPIO41 pins
dtoverlay=pwm-2chan,pin=40,func=4,pin2=41,func2=4
# Disable the Bluetooth
dtoverlay=pi3-disable-bt
# Set the I2C1 on GPIO 44 and GPIO 45 pins
dtparam=i2c_arm=on
dtparam=i2c_arm_baudrate=100000
dtoverlay=i2c1-bcm2708,sda1_pin=44,scl1_pin=45,pin_func=6
#Enable the IR Linux driver
dtoverlay=gpio-ir,gpio_pin=20
#core_freq=250
4) I changed /boot/cmdline.txt:
Code: Select all
dwc_otg.lpm_enable=0 console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=commit=120 elevator=deadline noatime nodiratime rootwait quiet splashHave you any ideas to help?
P.S When i use RASPBIAN STRETCH LITE all work fine with this parametrs:
/boot/config.txt:
Code: Select all
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
#Ignore the HDMI cable hotplug (to avoid the delay at startup)
hdmi_ignore_hotplug=1
# Set the debug port on GPIO32, GPIO33 pins
force_turbo=1
dtoverlay=uart1,txd1_pin=32,rxd1_pin=33
# Enable the 1-wire bus
dtoverlay=w1-gpio,gpiopin=16
# Set the audio lines on GPIO40 and GPIO41 pins
dtoverlay=pwm-2chan,pin=40,func=4,pin2=41,func2=4
# Disable the Bluetooth
dtoverlay=pi3-disable-bt
# Set the I2C1 on GPIO 44 and GPIO 45 pins
dtparam=i2c_arm=on
dtparam=i2c_arm_baudrate=100000
dtoverlay=i2c1-bcm2708,sda1_pin=44,scl1_pin=45,pin_func=6
#Enable the IR Linux driver
dtoverlay=gpio-ir,gpio_pin=20Code: Select all
dwc_otg.lpm_enable=0 console=serial1,115200 console=tty1 root=PARTUUID=051c85e3-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait