bigjosh / NeoUart

Drive a WS2812B NeoPixel connected directly to a Raspberry Pi
25 stars 3 forks source link

NeoUart and console on RPi #2

Open joseangeljimenez opened 8 years ago

joseangeljimenez commented 8 years ago

Thanks for your great work on this!

My question is, what is the correct settings in cmdline.txt for neouart to work properly? I am using an RPi B+ model 1 (not model 2). I have two candidates under consideration,

1) dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait 2) dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

Is the NeoUart compatible with using the serial console on the RPi?

Thanks a lot for your feedback on this, Jose

bigjosh commented 8 years ago

Either startup string should be fine since NeoUart used the "mini" UART on ttyAMA1 rather that the full one on ttyAMA0.

Unfortunately, you can not use a serial console at the same time as NeoUart becuase (for some reason) both UARTs on the RaspPi share the same pins, so only one can be active at a time. So many pins, why not give each UART their own so having two could potentially be useful?

joseangeljimenez commented 8 years ago

Thanks for your very informative answer! I guess it's the SoC fault. It seems it does not strictly provide two UARTs (that would mean, different pin assignments), but two different modes for the same physical UART. However, I have not studied the SoC pin assignment. Does it make sense to you?