ArmbianHelper changed the topic of #armbian to: armbian - Linux for ARM development boards | www.armbian.com | Github: github.com/armbian | Commits: #armbian-commits | Developer talk: #armbian-devel | Forum/Twitter feed: #armbian-rss | Logs: -> irc.armbian.com
califax has quit [Remote host closed the connection]
califax has joined #armbian
norwich_ has joined #armbian
norwich has quit [Ping timeout: 246 seconds]
norwich_ is now known as norwich
Dagger has quit [Ping timeout: 246 seconds]
ajfriesen1 has joined #armbian
ajfriesen has quit [Ping timeout: 268 seconds]
ajfriesen1 is now known as ajfriesen
sunshavi has joined #armbian
califax has quit [Ping timeout: 258 seconds]
califax has joined #armbian
Dagger has joined #armbian
califax has quit [Ping timeout: 258 seconds]
califax has joined #armbian
archetech has joined #armbian
califax has quit [Remote host closed the connection]
califax has joined #armbian
MrFixIt has quit [*.net *.split]
milkii has quit [*.net *.split]
yang2 has quit [*.net *.split]
kveremitz has quit [*.net *.split]
yang2 has joined #armbian
milkii has joined #armbian
kveremitz has joined #armbian
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #armbian
lemonzest has quit [Quit: WeeChat 3.6]
maknho has quit [Quit: WeeChat 3.0]
lemonzest has joined #armbian
indy has quit [Ping timeout: 264 seconds]
indy has joined #armbian
califax has quit [Ping timeout: 258 seconds]
ced117 has quit [Ping timeout: 248 seconds]
califax has joined #armbian
LanDi has joined #armbian
LanDi1 has joined #armbian
LanDi has quit [Ping timeout: 260 seconds]
LanDi1 is now known as LanDi
xoan has joined #armbian
archetech has quit [Quit: Konversation terminated!]
archetech has joined #armbian
maknho has joined #armbian
indy has quit [Ping timeout: 252 seconds]
LanDi has quit [Remote host closed the connection]
indy has joined #armbian
maknho has quit [Ping timeout: 250 seconds]
xoan4 has joined #armbian
xoan has quit [Ping timeout: 268 seconds]
xoan4 is now known as xoan
xoan has quit [Quit: leaving...]
ced117 has joined #armbian
stipa_ has joined #armbian
stipa has quit [Ping timeout: 264 seconds]
stipa_ is now known as stipa
Proxysna has quit [Remote host closed the connection]
alekksander has joined #armbian
sams has quit [Quit: priatno.]
sams has joined #armbian
maknho has joined #armbian
lyri has joined #armbian
lyri has quit [Remote host closed the connection]
lyri has joined #armbian
LanDi has joined #armbian
LanDi has quit [Client Quit]
LanDi has joined #armbian
LanDi1 has joined #armbian
LanDi has quit [Ping timeout: 268 seconds]
LanDi1 is now known as LanDi
LanDi has quit [Read error: Connection reset by peer]
norwich has quit [Ping timeout: 252 seconds]
norwich has joined #armbian
archetech has quit [Quit: Konversation terminated!]
indy has quit [Quit: ZNC 1.8.2 - https://znc.in]
indy has joined #armbian
indy has quit [Ping timeout: 252 seconds]
lyri has quit [Ping timeout: 248 seconds]
lyri has joined #armbian
alekksander has quit [Quit: Konversation terminated!]
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]
crabbedhaloablut has joined #armbian
lyri has quit [Remote host closed the connection]
indy has joined #armbian
<Armbian-Discord> <j​azza> klipper@pine64:~$ client_loop: send disconnect: Broken pipe
<Armbian-Discord> <j​azza> it was ssh
<Manouchehri> oh dang, so the R4SE needs a completely different image than the R4S?
<Manouchehri> The LAN port isn't showing up
<Manouchehri> wait wut it's working now after a reboot
<Manouchehri> rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
<Manouchehri> that's what I had on a previous boot
<Armbian-Discord> <c​0rnelius> basically the u-boot dts needs to be edited to support eMMC along with the kernel patched to add the dts.
<Manouchehri> if I don't want to use the eMMC, is it fine to just use the same image as the R4S?
<Manouchehri> *same dts
<Armbian-Discord> <c​0rnelius> from what I was told its just the eMMC that didn't work. well that and the board doesn't have a unique mac addr.
<Manouchehri> on both LAN and WAN?
<Armbian-Discord> <c​0rnelius> yes.
<Armbian-Discord> <c​0rnelius> need to either force one with scripting or patch u-boot. honestly not sure if the u-boot method works though. I don't actually have the board.
<Manouchehri> Any idea on how I can tell WAN and LAN apart in a script?
<Manouchehri> like when I had that PCIe timeout issue, I had only eth0. Next boot, I had enp1s0 and eth1 (so no eth0).
<Armbian-Discord> <c​0rnelius> adding net.ifnames=0 to the boot command line should force eth0, eth1, eth2, etc.
<Manouchehri> hmm, is that the best way?
<Manouchehri> is there a way of naming them based on if it's the RTL8211E or RTL8111H?
<Armbian-Discord> <c​0rnelius> create a udev rule and you can name them that way.
<Manouchehri> thank you!! I totally overlooked udev.
<Manouchehri> Is it u-boot or the Linux kernel that sets the MAC address?
<Manouchehri> *sets the random MAC address
<Armbian-Discord> <c​0rnelius> I doubt this exact thing would work, but something like it. echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="rk_gmac-dwmac", KERNEL=="eth0", NAME="WAN"' > /etc/udev/rules.d/10-nanopi-r4se-eth.rules echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8169", KERNEL=="eth1", NAME="eth0"' >> /etc/udev/rules.d/10-nanopi-r4se-eth.rules
<Manouchehri> are addresses like e2:06:b3:xx:xx:xx random or unique?
<Armbian-Discord> <c​0rnelius> if the board doesn't have a unique one it will just spit out random ones during each reboot. friendlyarm did this to cut costs and they only offer units with one if you buy a large amount of them.
<Manouchehri> c0rnelius: perfect, thanks! I didn't realize they used two different drivers; I can actually use netplan here I think, with `driver: r8169` and `driver: st_gmac` :D
<Manouchehri> hmm, I don't think I get a random one on each reboot
<Armbian-Discord> <c​0rnelius> well thats good. don't play with it then 🙂
<Armbian-Discord> <c​0rnelius> don't fix what isnt broken
<Manouchehri> ehhh, I'd like to figure out why it's not random, so it doesn't screw me over later :P
<Armbian-Discord> <c​0rnelius> armbian has a script that will set the mac addr. I'm not sure if its currently running on ur system, but I have looked over the script before.
<Manouchehri> I don't see it in /boot/boot.cmd or /boot/armbianEnv.txt
<Manouchehri> c0rnelius: `xxd /sys/bus/nvmem/devices/rockchip-efuse0/nvmem` < what does this return for you on any of your nanopi devices?
<Armbian-Discord> <c​0rnelius> cat /sys/bus/nvmem/devices/rockchip-efuse0/nvmem RK3���!TMS624.00��,)
<ArmbianHelper> ^ build/armbian-firstrun at master · armbian/build · GitHub
norwich has quit [Ping timeout: 246 seconds]
<Manouchehri> c0rnelius: odd, do you have a unique MAC address?
<Armbian-Discord> <c​0rnelius> thats the NanoPC T4 so I hope so 🙂 damn board cost a fortune.
<Manouchehri> ahh
<Armbian-Discord> <c​0rnelius> same SoC though.
<Manouchehri> hmm, I really am confused as to where this MAC address is coming from on mine
<Manouchehri> /boot/armbianEnv.txt doesn't have any MAC addresses in it
c0rnelius has joined #armbian
<Manouchehri> c0rnelius: looking at rk3399-nanopi4.dtsi now, it doesn't seem to set the MAC addresses
<Armbian-Discord> <c​0rnelius> I don't believe it would be in the dts.
<Manouchehri> `dtc -I fs -O dts /sys/firmware/devicetree/base` # dumps the current device-tree
<Manouchehri> I see `local-mac-address` defined for the PCIe ethernet card
<Armbian-Discord> <c​0rnelius> which is interesting.
<Armbian-Discord> <c​0rnelius> maybe you lucked out and got one with a MAC ADDR?
<Manouchehri> so I have 40 of these
<Manouchehri> trying to avoid needing to check them all
<Armbian-Discord> <c​0rnelius> I'm fairly certain if you order in bulk they come with an mac addr.
<Armbian-Discord> <c​0rnelius> but this says: Purportedly, you can order a NanoPi R4SE with a unique MAC address, but only if you order over 100 units
<Armbian-Discord> <c​0rnelius> I really don't know.
<Manouchehri> I mean there's physically a chip there or not, surely there's gotta be a way to detect it
<c0rnelius> whats in `/etc/systemd/network` do you see something like 99-default.link or something like that linking to `/dev/null` ?
<Manouchehri> c0rnelius: it's an empty folder
<c0rnelius> k
<Manouchehri> so addresses starting with e2 *are* local
<Manouchehri> https://gchq.github.io/CyberChef/#recipe=From_Hex('Auto')To_Binary('Space',8)&input=ZTI
<ArmbianHelper> ^ CyberChef
<Manouchehri> see how the second last bit there is 1?
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]
crabbedhaloablut has joined #armbian