(05-07-2018, 02:10 AM)hexalyn Wrote: You want me to give a try to modify a bit ayufan's scripts to release a new image to flash mainline u-boot in the SPI ?
@aww : Thanks a lot for your efforts !
@aww : here is a version using Ayufan's scripts with mainline u-boot : https://transfer.sh/4h6rM/u-boot-mainlin...spi.img.xz
Could you try it and tell me if it works as expected ? I had no issues with any command not found. What command was it ?
Thanks for generating that (and the previous image, although I haven't gotten around to trying it... should do that right now just for giggles...)
The image boots, but it fails to erase or write to the SPI... that
sf command must be something to do interacting with the spi flash...
https://pastebin.com/VUJtee2b
I'll boot the image up again with network connected and see if it actually pokes the ethernet... it looks promising as it did indicate phy negotiation was complete. I'll run through that, and add a second boot log or comment shortly...
A little later...
Well, I booted the pine64 master box up, and watching the log from dnsmasq (
sudo tailf /var/log/syslog | grep dnsmasq-dhcp), I was starting to get
Code:
May 4 06:39:33 localhost dnsmasq-dhcp[1246]: 154664209 available DHCP subnet: 192.168.0.0/255.255.255.0
May 4 06:39:33 localhost dnsmasq-dhcp[1246]: 154664209 vendor class: U-Boot.armv8
repeated endlessly once the sopine got it's act together and was doing the BOOTP broadcast, so networking is indeed working, and it is trying!
Also,
sudo tcpdump -i eth0 port 67 or port 68 -e -n was giving me
Code:
06:45:08.378427 02:ba:09:37:bd:8b > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 02:ba:09:37:bd:8b, length 300
And at some point, also got some
Code:
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 available DHCP subnet: 192.168.0.0/255.255.255.0
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 vendor class: PXEClient:Arch:00011:UNDI:003000
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 PXE(eth0) 02:ba:09:37:bd:8b proxy
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 tags: eth0
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 broadcast response
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 sent size: 1 option: 53 message-type 2
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 sent size: 4 option: 54 server-identifier 192.168.0.250
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 sent size: 9 option: 60 vendor-class 50:58:45:43:6c:69:65:6e:74
May 4 06:40:19 localhost dnsmasq-dhcp[1246]: 154710342 sent size: 29 option: 43 vendor-encap 06:01:08:0a:17:05:42:6f:6f:74:69:6e:67:20...
happening also... did somebody say PXE? :-D
So getting warmer! And btw, the older earlier image writes the SPI flash properly, but the ethernet doesn't work. So it looks like mainline may be the best way for now if we can get uboot on the spi flash...