/srv/irclogs.ubuntu.com/2015/09/27/#snappy.txt

sabdflogra yes, i decompresses with xz -d then dd if=... of=/dev/mmcblk0 bs=1M04:52
sabdflogra xzcat ubuntu-15.04-snappy-armhf-rpi2.img.xz | md5sum04:55
sabdflhow does one get a serial interface on the rpi2? do i need a breakout board for the 40-pin headers or can i do it over usb?04:56
sabdfldc2715982039ebc63e5febc17fbae78d  -04:56
sabdflogra: digests check out fine against the web listing05:04
ogra_sabdfl, serial is by default on the outside row of the 40 pin header on pin 6, 8 and 10 (pin 1 is at the corner of the PCB near the power LED) http://www.element14.com/community/docs/DOC-73950/l/raspberry-pi-2-model-b-gpio-40-pin-block-pinout. i use a cable like http://www.amazon.de/gp/product/B00KVUSI3009:01
sabdflmy GPS hats use that, unfortunately09:01
ogra_(any other FTDI cable should do as well)09:01
sabdflis there a way to do TTY over USB?09:01
ogra_right, then we need to disable it in /boot/uboot/config.txt09:01
sabdflon the rpi sd card?09:02
ogra_yes, boot without the hat, then you can edit it09:03
ogra_do you have make and modle of the hat, i bet there are instructions how to set up the config.txt09:03
ogra_*model09:03
sabdflcan i edit it while mounted?09:04
ogra_there is indeed a way to do serial over USB ... but only from a kernel module ... (i.e. it would only provide output after boot) we were pondering to enable that by default (like the BBB has)09:05
ogra_yes, indeed its a normal file on a filesystem ... you can just edit away and reboot to test the change09:05
tbryou can even do kernel console on cdc-acm09:08
tbrbut it's a bit tricky09:08
ogra_tbr, right, but not bootloader09:08
tbrcorrect09:08
tbralthough09:08
ogra_the question is if we could live with disabled bootloader console by default09:08
tbrwould need to ask Tartarus if uboot can do cdc-acm too09:09
sabdflogra, gps hat instructions are at https://learn.adafruit.com/adafruit-ultimate-gps-hat-for-raspberry-pi/pi-setup09:09
sabdflbut nothing there seems to map to system-boot partition09:09
tbrwould depend on the usb controller09:09
sabdfluboot.env seems to have some ttyAMA stuff09:10
ogra_sabdfl, oh, it changes the cmdline ... thats a bit more tricky than config.txt because snappy assembles it from multiple vars and places09:10
ogra_yeah, one sec09:10
ogra_sabdfl, on the booted board run:  sudo fw_setenv mmcargs 'setenv bootargs "${args} console=tty0 root=${mmcroot}"'09:12
ogra_fw_printenv is the command to show all config optios09:12
ogra_(if you want tro check before and after)09:12
sabdflso boot without the hat then do this?09:13
ogra_yeah09:13
sabdflon snappy?09:13
ogra_right09:13
ogra_(RaspberryPi2)ubuntu@localhost:~$ fw_printenv |grep console09:13
ogra_mmcargs=setenv bootargs "${args} console=tty0 console=ttyAMA0 root=${mmcroot}"09:13
ogra_thats the default ...09:13
sabdflok will try that09:14
ogra_ah, the board seems to also need 9600 baud09:15
ogra_that might need further changes09:15
* ogra_ guesses we should move all console options by default to the cmdline.txt file, seems all documentation expects it there09:20
ogra_sabdfl, bug 1500164 :)09:28
ogra_hmm, no bot ?09:28
ogra_https://bugs.launchpad.net/snappy/+bug/150016409:28
ubottubug 1500164 in Snappy "console= cmdline options on the RPi2 should be moved from uboot.env to cmdline.txt" [Undecided,New] https://launchpad.net/bugs/150016409:28
ogra_ah09:29
sabdflogra_ in a similar vein, we should call our new kernel "rpi2" not "rasp2"10:07
ogra_well, thats something the kernel team decided10:11
ogra_we'll have to talk to them10:11
sabdflthere is a community guy who make a linux-image-rpi210:14
sabdflwe should sync with him and have one kernel10:14
ogra_ah, i didnt know ... i'll carry that forward to ppisati ...10:15
sabdflthank you10:16
kiviWoah, look who's here10:16
kiviJust going to say; I'm a huge fan. Thanks for all the work you have done. :)10:17
sabdflmany folks on this channel qualify for that :)10:25
sabdflogra, i still see dots :(10:27
ogra_damn10:27
sabdflit's probbly the GPS chatting away on ttyAMA and interfering with uboot10:27
ogra_well, or just the wrong baud rate ....10:28
sabdfli think uboot says "press a key to interrupt" and the GPS presses a key for me :)10:28
ogra_first of all, drop the two "dtparam=" lines from config.txt10:28
ogra_oh10:29
ogra_hmm10:29
ogra_thats tricky ... the stdout setting for uboot is hardcoded, we could only override it from uboot.env which is actually loaded after the prompt10:32
ogra_(RaspberryPi2)ubuntu@localhost:~$ fw_printenv |grep stdout10:32
ogra_stdout=serial,lcd10:32
ogra_droppin serial from that would help for any later stuff but not for the prompt itself10:33
ogra_lets see if the binary bootloader offers something to forcefully disble serial10:33
ogra_i know there is a second serial port somewhere on these headers, perhaps we can force switch to that one10:35
ogra_hmm, using the uart1 DT overlay makes my board hang on boot10:51
ogra_oh, no, only the output :P10:52
ogra_i can actually ssh in10:52
ogra_sabdfl, so is there a chance to re-wire your gps hat to other pins ?10:58
ogra_via the uart1 DT overlay we should be able to force the second serial port on ...10:59
ogra_which can be configured for pin 32/33 instead of 14/1511:01
ogra_oh, wait !11:12
ogra_sabdfl, i just see we are actually loading uboot.env early enough for overriding the serial input ...11:12
* ogra_ tries it out 11:12
ogra_sabdfl, try if: sudo fw_setenv bootdelay 011:27
ogra_helps in any way11:27
ogra_that should make it not listen to key presses (or other input) during boot11:28
ogra_sabdfl, did you get my last messages ... ?  "sudo fw_setenv bootdelay 0" should turn off the listening for input during boot, if your borad actually stops because the GPS sends chars that might solve it12:19
sabdflhi ogra_ i missed that message but will try it when i am in budapest :)12:20
ogra_safe flight :)12:20
sabdfli hope so!12:20
sabdflshould be a good week, everyone seems well prepared12:20
ogra_yeah, curious what you guys bring home :)12:21
* ogra_ will have a joyful jaw surgery instead of enjoying hungarian beer :) 12:22
=== fginther` is now known as fginther
jdstrandbeuno: fyi, something weird is happening with the store: https://myapps.developer.ubuntu.com/dev/click-apps/3560/20:12
jdstrandbeuno: look at the feedback, there are two errors but its because the server traced back20:12
jdstrandbeuno: the app itself is showing 'Pending review' still20:13
beunojdstrand, right, the review failed and I guess it got stuck in pending review20:18
beunopindonga, matiasb, ^^20:18
* beuno is off to bed20:18
jdstrandpindonga, matiasb (and beuno): fyi, the review failed, but not for the appropriate reasons-- ie, the scripts traced back for some weird reason (running the scripts locally, that doesn't happen)22:01
ogra_beuno, if i do "snappy search oem" that doesnt find the pi2 oem snap, does the search not include types ?22:51
ogra_(snappy search pi2 finds it ...)22:52

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!