Closed bsodam closed 7 years ago
Haven't had chance to check but I think enabled_uart=1 should be left in. Will check later and report back. Could it be a typo miss print on the web page?? (https://developer.android.com/things/hardware/raspberrypi.html#disabling_the_console) enable_uart=1
I tried leaving enable_uart=1 in but it I couldn't get it working
As dev prev 41 for the rpi has just been released:
Default cmdline.txt: dwc_otg.lpm_enable=0 console=serial0,115200 ro rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait earlyprintk init=/init androidboot.hardware=rpi3 androidboot.selinux=permissive
Default config.txt: kernel=u-boot-dtok.bin framebuffer_depth=16 dtparam=i2c_arm=on dtparam=spi=on dtparam=audio=on
dtoverlay=pwm-2chan-with-clk,pin=18,func=2,pin2=13,func2=4
start_x=1
dtoverlay=chosen-serial0
dtoverlay=rpi-uart-skip-init
enable_uart=1 core_freq=400
Thank you for your comment.
I was not familiar with UART communication, so I misunderstood the sample. When I typed a letter in terminal program, I can see the letter I typed. I thought additional letter should be echo back from UART serial.
But now I found out that if I can see the letter I type, It means it works. I hope that someone has same issue with me could see this.
Hello, I tried this sample and it does not work for me. I tried it on RPI3 with Android Things developer preview 4. I turned off the UART debugging mode of RP3 by changing "console=serial0,115200" to "console=tty0" in cmdline.txt, and adding "dtoverlay=pi3-disable-bt" and removing "enabled_uart=1" & "core_freq=400" in config.txt file.
When I run this sample, I typed some characters in terminal program but I cannot get any echo back.
From the logs, I guess there are some problems opening some files related to communication pipe. Can you give me any ideas to solve this situation? Thanks
Below is the logs from logcat.