Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/go.bug.st/serial.v1/enumerator/enumerator.go:28:9: undefined: nativeGetDetailedPortsList #1

Open
scenaristeur opened this issue Dec 27, 2017 · 1 comment

Comments

@scenaristeur
Copy link

Since my last post on arduino Forum http://forum.arduino.cc/index.php?topic=515869.msg3532480#msg3532480 , I've tried to revert to lininoIo and bricked 2 yuns ( white led always on :-( , and u-boot not accessible anymore ... Any idea to retrieve u-boot ??? So I decided to Explore yun-go-updater but I go a pb with a function undefined , see the last line of this log :
(Working on bash (ubuntu ) for Windows 10)


-rw-rw-rw- 1 david david 17470 déc.  27 08:27 main.go
-rwxrwxrwx 1 david david  2639 déc.  27 08:27 make_distrib.sh*
lrwxrwxrwx 1 david david    19 déc.  27 08:49 src -> /home/david/go/src//
drwxrwxrwx 0 david david   512 déc.  27 08:27 tftp/
drwxrwxrwx 0 david david   512 déc.  27 08:27 YunDiskSpaceExpander/
david@DESKTOP-FGTO8A9:~/go/src/github.com/arduino/yun-go-updater$ ./make_distrib.sh
+ rm -rf distrib/
+ mkdir -p distrib/linux32/tftp distrib/linux32/avr distrib/linux64/tftp distrib/linux64/avr distrib/linuxarm/tftp distrib/linuxarm/avr distrib/windows/tftp distrib/windows/avr distrib/osx/tftp distrib/osx/avr
+ export GOPATH=/home/david/go/src/github.com/arduino/yun-go-updater
+ GOPATH=/home/david/go/src/github.com/arduino/yun-go-updater
+ u_boot_fw=u-boot-arduino-lede.bin
+ sysupgrade_fw_name=ledeyun-17.11-r5461-ce9089c-ar71xx-generic-arduino-yun-squashfs-sysupgrade.bin
+ grep ledeyun-17.11-r5461-ce9089c-ar71xx-generic-arduino-yun-squashfs-sysupgrade.bin main.go
        sysupgradeFirmwareName := "ledeyun-17.11-r5461-ce9089c-ar71xx-generic-arduino-yun-squashfs-sysupgrade.bin"
+ grep u-boot-arduino-lede.bin main.go
        bootloaderFirmwareName := "u-boot-arduino-lede.bin"
+ CGO_ENABLED=0
+ GOOS=linux
+ GOARCH=386
+ GO386=387
+ go build -o distrib/linux32/yun-go-updater
+ cp tftp/ledeyun-17.11-r5461-ce9089c-ar71xx-generic-arduino-yun-squashfs-sysupgrade.bin tftp/u-boot-arduino-lede.bin distrib/linux32/tftp
+ cp avr/YunSerialTerminal.ino.hex distrib/linux32/avr/
+ cd distrib/linux32/avr/
+ wget http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino8-i686-pc-linux-gnu.tar.bz2
--2017-12-27 08:49:56--  http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino8-i686-pc-linux-gnu.tar.bz2
Résolution de downloads.arduino.cc (downloads.arduino.cc)… 149.202.160.25
Connexion à downloads.arduino.cc (downloads.arduino.cc)|149.202.160.25|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 701718 (685K) [application/octet-stream]
Enregistre : «avrdude-6.3.0-arduino8-i686-pc-linux-gnu.tar.bz2»

avrdude-6.3.0-arduino8-i686-p 100%[=================================================>] 685,27K  1,98MB/s    in 0,3s

2017-12-27 08:49:57 (1,98 MB/s) - «avrdude-6.3.0-arduino8-i686-pc-linux-gnu.tar.bz2» enregistré [701718/701718]

+ tar xvf avrdude-6.3.0-arduino8-i686-pc-linux-gnu.tar.bz2
avrdude/
avrdude/lib/
avrdude/lib/libusb-1.0.a
avrdude/lib/libusb.a
avrdude/lib/libavrdude.a
avrdude/lib/libusb-1.0.la
avrdude/lib/libelf.a
avrdude/lib/libavrdude.so.1.0.0
avrdude/lib/pkgconfig/
avrdude/lib/pkgconfig/libusb-1.0.pc
avrdude/lib/pkgconfig/libelf.pc
avrdude/lib/pkgconfig/libusb.pc
avrdude/lib/libusb.la
avrdude/lib/libavrdude.la
avrdude/lib/libavrdude.so
avrdude/lib/libavrdude.so.1
avrdude/lib/locale/
avrdude/lib/locale/de/
avrdude/lib/locale/de/LC_MESSAGES/
avrdude/lib/locale/de/LC_MESSAGES/libelf.cat
avrdude/bin/
avrdude/bin/libusb-config
avrdude/bin/avrdude
avrdude/etc/
avrdude/etc/avrdude.conf
avrdude/share/
avrdude/share/man/
avrdude/share/man/man1/
avrdude/share/man/man1/avrdude.1
avrdude/include/
avrdude/include/libusb-1.0/
avrdude/include/libusb-1.0/libusb.h
avrdude/include/libelf/
avrdude/include/libelf/elf_repl.h
avrdude/include/libelf/libelf.h
avrdude/include/libelf/nlist.h
avrdude/include/libelf/gelf.h
avrdude/include/libelf/sys_elf.h
avrdude/include/libelf.h
avrdude/include/nlist.h
avrdude/include/gelf.h
avrdude/include/libavrdude.h
avrdude/include/usb.h
+ rm -rf avrdude-6.3.0-arduino8-i686-pc-linux-gnu.tar.bz2
+ mv avrdude/bin avrdude/etc .
+ rm -rf avrdude
+ cd -
/home/david/go/src/github.com/arduino/yun-go-updater
+ CGO_ENABLED=0
+ GOOS=linux
+ GOARCH=amd64
+ go build -o distrib/linux64/yun-go-updater
+ cp tftp/ledeyun-17.11-r5461-ce9089c-ar71xx-generic-arduino-yun-squashfs-sysupgrade.bin tftp/u-boot-arduino-lede.bin distrib/linux64/tftp
+ cp avr/YunSerialTerminal.ino.hex distrib/linux64/avr/
+ cd distrib/linux64/avr/
+ wget http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino8-x86_64-pc-linux-gnu.tar.bz2
--2017-12-27 08:50:07--  http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino8-x86_64-pc-linux-gnu.tar.bz2
Résolution de downloads.arduino.cc (downloads.arduino.cc)… 149.202.160.25
Connexion à downloads.arduino.cc (downloads.arduino.cc)|149.202.160.25|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 711544 (695K) [application/octet-stream]
Enregistre : «avrdude-6.3.0-arduino8-x86_64-pc-linux-gnu.tar.bz2»

avrdude-6.3.0-arduino8-x86_64 100%[=================================================>] 694,87K  4,19MB/s    in 0,2s

2017-12-27 08:50:07 (4,19 MB/s) - «avrdude-6.3.0-arduino8-x86_64-pc-linux-gnu.tar.bz2» enregistré [711544/711544]

+ tar xvf avrdude-6.3.0-arduino8-x86_64-pc-linux-gnu.tar.bz2
avrdude/
avrdude/lib/
avrdude/lib/libusb-1.0.la
avrdude/lib/locale/
avrdude/lib/locale/de/
avrdude/lib/locale/de/LC_MESSAGES/
avrdude/lib/locale/de/LC_MESSAGES/libelf.cat
avrdude/lib/libavrdude.la
avrdude/lib/libelf.a
avrdude/lib/libusb.a
avrdude/lib/libavrdude.so
avrdude/lib/libusb-1.0.a
avrdude/lib/libavrdude.a
avrdude/lib/pkgconfig/
avrdude/lib/pkgconfig/libelf.pc
avrdude/lib/pkgconfig/libusb.pc
avrdude/lib/pkgconfig/libusb-1.0.pc
avrdude/lib/libusb.la
avrdude/lib/libavrdude.so.1
avrdude/lib/libavrdude.so.1.0.0
avrdude/share/
avrdude/share/man/
avrdude/share/man/man1/
avrdude/share/man/man1/avrdude.1
avrdude/bin/
avrdude/bin/avrdude
avrdude/bin/libusb-config
avrdude/include/
avrdude/include/nlist.h
avrdude/include/libusb-1.0/
avrdude/include/libusb-1.0/libusb.h
avrdude/include/libelf/
avrdude/include/libelf/nlist.h
avrdude/include/libelf/sys_elf.h
avrdude/include/libelf/gelf.h
avrdude/include/libelf/libelf.h
avrdude/include/libelf/elf_repl.h
avrdude/include/gelf.h
avrdude/include/libavrdude.h
avrdude/include/usb.h
avrdude/include/libelf.h
avrdude/etc/
avrdude/etc/avrdude.conf
+ rm -rf avrdude-6.3.0-arduino8-x86_64-pc-linux-gnu.tar.bz2
+ mv avrdude/bin avrdude/etc .
+ rm -rf avrdude
+ cd -
/home/david/go/src/github.com/arduino/yun-go-updater
+ CGO_ENABLED=0
+ GOOS=linux
+ GOARCH=arm
+ go build -o distrib/linuxarm/yun-go-updater
+ cp tftp/ledeyun-17.11-r5461-ce9089c-ar71xx-generic-arduino-yun-squashfs-sysupgrade.bin tftp/u-boot-arduino-lede.bin distrib/linuxarm/tftp
+ cp avr/YunSerialTerminal.ino.hex distrib/linuxarm/avr/
+ cd distrib/linuxarm/avr/
+ wget http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino8-armhf-pc-linux-gnu.tar.bz2
--2017-12-27 08:50:27--  http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino8-armhf-pc-linux-gnu.tar.bz2
Résolution de downloads.arduino.cc (downloads.arduino.cc)… 149.202.160.25
Connexion à downloads.arduino.cc (downloads.arduino.cc)|149.202.160.25|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 644550 (629K) [application/octet-stream]
Enregistre : «avrdude-6.3.0-arduino8-armhf-pc-linux-gnu.tar.bz2»

avrdude-6.3.0-arduino8-armhf- 100%[=================================================>] 629,44K  3,73MB/s    in 0,2s

2017-12-27 08:50:28 (3,73 MB/s) - «avrdude-6.3.0-arduino8-armhf-pc-linux-gnu.tar.bz2» enregistré [644550/644550]

+ tar xvf avrdude-6.3.0-arduino8-armhf-pc-linux-gnu.tar.bz2
avrdude/
avrdude/include/
avrdude/include/gelf.h
avrdude/include/libusb-1.0/
avrdude/include/libusb-1.0/libusb.h
avrdude/include/usb.h
avrdude/include/nlist.h
avrdude/include/libelf/
avrdude/include/libelf/gelf.h
avrdude/include/libelf/elf_repl.h
avrdude/include/libelf/sys_elf.h
avrdude/include/libelf/nlist.h
avrdude/include/libelf/libelf.h
avrdude/include/libavrdude.h
avrdude/include/libelf.h
avrdude/share/
avrdude/share/man/
avrdude/share/man/man1/
avrdude/share/man/man1/avrdude.1
avrdude/bin/
avrdude/bin/libusb-config
avrdude/bin/avrdude
avrdude/lib/
avrdude/lib/pkgconfig/
avrdude/lib/pkgconfig/libelf.pc
avrdude/lib/pkgconfig/libusb.pc
avrdude/lib/pkgconfig/libusb-1.0.pc
avrdude/lib/libelf.a
avrdude/lib/libavrdude.so.1.0.0
avrdude/lib/libavrdude.so
avrdude/lib/libusb.a
avrdude/lib/libavrdude.so.1
avrdude/lib/libusb.la
avrdude/lib/libusb-1.0.a
avrdude/lib/libavrdude.a
avrdude/lib/locale/
avrdude/lib/locale/de/
avrdude/lib/locale/de/LC_MESSAGES/
avrdude/lib/locale/de/LC_MESSAGES/libelf.cat
avrdude/lib/libavrdude.la
avrdude/lib/libusb-1.0.la
avrdude/etc/
avrdude/etc/avrdude.conf
+ rm -rf avrdude-6.3.0-arduino8-armhf-pc-linux-gnu.tar.bz2
+ mv avrdude/bin avrdude/etc .
+ rm -rf avrdude
+ cd -
/home/david/go/src/github.com/arduino/yun-go-updater
+ CGO_ENABLED=0
+ GOOS=windows
+ GOARCH=386
+ GO386=387
+ go build -o distrib/windows/yun-go-updater.exe
+ cp tftp/ledeyun-17.11-r5461-ce9089c-ar71xx-generic-arduino-yun-squashfs-sysupgrade.bin tftp/u-boot-arduino-lede.bin distrib/windows/tftp
+ cp avr/YunSerialTerminal.ino.hex distrib/windows/avr/
+ cd distrib/windows/avr/
+ wget http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino8-i686-w64-mingw32.zip
--2017-12-27 08:50:51--  http://downloads.arduino.cc/tools/avrdude-6.3.0-arduino8-i686-w64-mingw32.zip
Résolution de downloads.arduino.cc (downloads.arduino.cc)… 149.202.160.25
Connexion à downloads.arduino.cc (downloads.arduino.cc)|149.202.160.25|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 645996 (631K) [application/zip]
Enregistre : «avrdude-6.3.0-arduino8-i686-w64-mingw32.zip»

avrdude-6.3.0-arduino8-i686-w 100%[=================================================>] 630,86K  2,26MB/s    in 0,3s

2017-12-27 08:50:51 (2,26 MB/s) - «avrdude-6.3.0-arduino8-i686-w64-mingw32.zip» enregistré [645996/645996]

+ unzip avrdude-6.3.0-arduino8-i686-w64-mingw32.zip
Archive:  avrdude-6.3.0-arduino8-i686-w64-mingw32.zip
   creating: avrdude/
   creating: avrdude/lib/
  inflating: avrdude/lib/libavrdude.la
  inflating: avrdude/lib/libusb-1.0.a
  inflating: avrdude/lib/libusb.a
  inflating: avrdude/lib/libusb-1.0.la
   creating: avrdude/lib/pkgconfig/
  inflating: avrdude/lib/pkgconfig/libelf.pc
  inflating: avrdude/lib/pkgconfig/libusb-1.0.pc
  inflating: avrdude/lib/libelf.a
  inflating: avrdude/lib/libavrdude.a
   creating: avrdude/bin/
  inflating: avrdude/bin/avrdude.exe
  inflating: avrdude/bin/remove_giveio.bat
  inflating: avrdude/bin/status_giveio.bat
  inflating: avrdude/bin/giveio.sys
  inflating: avrdude/bin/loaddrv.exe
  inflating: avrdude/bin/libusb0.dll
  inflating: avrdude/bin/install_giveio.bat
   creating: avrdude/etc/
  inflating: avrdude/etc/avrdude.conf
   creating: avrdude/include/
   creating: avrdude/include/libelf/
  inflating: avrdude/include/libelf/elf_repl.h
  inflating: avrdude/include/libelf/sys_elf.h
  inflating: avrdude/include/libelf/gelf.h
  inflating: avrdude/include/libelf/libelf.h
  inflating: avrdude/include/libelf/nlist.h
   creating: avrdude/include/libusb-1.0/
  inflating: avrdude/include/libusb-1.0/libusb.h
 extracting: avrdude/include/gelf.h
  inflating: avrdude/include/lusb0_usb.h
  inflating: avrdude/include/libavrdude.h
  inflating: avrdude/include/libelf.h
 extracting: avrdude/include/nlist.h
   creating: avrdude/share/
   creating: avrdude/share/man/
   creating: avrdude/share/man/man1/
  inflating: avrdude/share/man/man1/avrdude.1
+ rm -rf avrdude-6.3.0-arduino8-i686-w64-mingw32.zip
+ mv avrdude/bin avrdude/etc .
+ rm -rf avrdude
+ cd -
/home/david/go/src/github.com/arduino/yun-go-updater
+ CC=o64-clang
+ GOOS=darwin
+ GOARCH=amd64
+ go build -o distrib/osx/yun-go-updater
# go.bug.st/serial.v1/enumerator
src/go.bug.st/serial.v1/enumerator/enumerator.go:28:9: undefined: nativeGetDetailedPortsList

@facchinm
Copy link
Member

facchinm commented Jan 8, 2018

Hi @scenaristeur ,
golang must be compiled with CGO capabilities to be able to access native functions (thus the failure on nativeGetDetailedPortsList ); in fact, it only fails on OSX build (which is not the one you need, probably). Simply comment out the parts of make_distrib.sh you don't need and it should be fine.
However, about the other problem, are you able to access the u-boot console after uploading YunSerialTerminal ? You can try changing the baudrate by issuing ~ and a number between 1 and 4 (maybe the linino bootloader configures the serial port at 115200 baud)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants