narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
_whitelogger has joined #linux-amlogic
chewitt has quit [Quit: Zzz..]
chewitt has joined #linux-amlogic
buzzmarshall has quit [Remote host closed the connection]
_whitelogger has joined #linux-amlogic
chewitt has quit [Quit: Adios!]
_whitelogger has joined #linux-amlogic
random_yanek has quit [Ping timeout: 260 seconds]
random_yanek has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
BrainDamage has joined #linux-amlogic
cmeerw has joined #linux-amlogic
yann has joined #linux-amlogic
trem has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder__ has quit [Ping timeout: 240 seconds]
warpme_ has joined #linux-amlogic
lvrp16 has quit [Ping timeout: 240 seconds]
<narmstrong> BrainDamage: this is a question for xdarklight !
_whitelogger has joined #linux-amlogic
BrainDamage has quit [Ping timeout: 256 seconds]
TheAssassin has quit [Ping timeout: 240 seconds]
BrainDamage has joined #linux-amlogic
TheAssassin has joined #linux-amlogic
ldevulder__ has joined #linux-amlogic
ldevulder_ has quit [Ping timeout: 260 seconds]
sputnik_ has quit [Remote host closed the connection]
Darkmatter66_ has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 272 seconds]
yann has quit [Ping timeout: 260 seconds]
drieschel has joined #linux-amlogic
drieschel has quit [Client Quit]
<xdarklight> BrainDamage: from which kernel version did you update and to which version?
drieschel has joined #linux-amlogic
<BrainDamage> xdarklight: 5.8.0 to 5.8.9
<xdarklight> BrainDamage: hmm, there's not Ethernet related changes in those kernel versions. do you have the kernel log for me when it's *not* working
<BrainDamage> one moment
<BrainDamage> xdarklight: https://paste.rs/KZ7
<xdarklight> BrainDamage: would you be able to re-compile only the .dtb file and do some experiments for me?
<BrainDamage> sure, but I don't know exactly how
<xdarklight> BrainDamage: ok, alternative question: do you have a serial console attached to your board and can add some additional commands in u-boot?
<BrainDamage> yes
<xdarklight> ah, that's the easier way then. can you please paste the commands you are currently using to boot? then I can tell you where to add my experimental command(s) (which can be easily undone, no devices will be harmed in this process ;) )
<BrainDamage> xdarklight: https://paste.rs/f0l
<BrainDamage> yes, it's an ancient version of u-boot
<BrainDamage> and I know that this line loads the device tree ext4load mmc 0:1 0x21800000 /boot/meson8b-odroidc1.dtb
<xdarklight> we have nothing better
drieschel has quit [Quit: drieschel]
<xdarklight> can you please add the following two lines, right before the "bootm" command at the end of the file?
<xdarklight> fdt set /soc/ethernet@c9410000/mdio/ethernet-phy@0 reset-assert-us <100000>
<xdarklight> fdt set /soc/ethernet@c9410000/mdio/ethernet-phy@0 reset-deassert-us <300000>
<BrainDamage> sure
yann has joined #linux-amlogic
<xdarklight> I had some users report "issues" with the PHY reset timings. I'm unable to reproduce that problem and not sure what causes this. so my first idea is: we multiply all the delays by 10 compared to what's upstream and see if that works around your issue
<xdarklight> (next steps would be to either identify the root cause or at least to find "better" timings instead of just multiplying the existing ones by 10)
<BrainDamage> xdarklight: https://paste.rs/w3P link is still out
<BrainDamage> boot.ini, to confirm I didn't fail copypasta: https://paste.rs/kEK
<xdarklight> BrainDamage: "interesting" - nothing seems to have changed. can you please upload your /boot/meson8b-odroidc1.dtb somewhere please?
<xdarklight> hmm
<xdarklight> that one is looking good
<xdarklight> can you manually run dhcpcd (or any dhcp client which you have installed) to rule out that <some network configuration tool> has unrelated problems?
<BrainDamage> sure, one moment that I install that on
<BrainDamage> having a chroot with qemu-guest is a bliss to debug arm boards
<xdarklight> also let me update my Odroid-C1 to the latest Arch Linux ARM build and boot that kernel (instead of booting linux-next and/or 5.9-rc + patches)
<BrainDamage> still no luck: https://paste.rs/UYs
<BrainDamage> fwiw, I've also attempted a manual configuration of the link, but no data gets RX'ed still
<BrainDamage> this is with manual configuration: https://paste.rs/KeH
<xdarklight> ok. first observation on my own Odroid-C1+ (after plugging in the Ethernet cable...): with 5.9-rc + patches Ethernet is working fine
<BrainDamage> mmm, this is a c1, not a c1+
<xdarklight> I'm updating Arch Linux ARM now so I can test with the same kernel version as you
<BrainDamage> however, no major changes to ethernet to my knowledge
<xdarklight> AFAIK there are no Ethernet related changes between C1 and C1+ (only CEC, audio headers and some other small bits)
<BrainDamage> yup, CEC in C1 requires the RTC bat because of faulty wiring
yann|work has joined #linux-amlogic
yann has quit [Ping timeout: 240 seconds]
<xdarklight> BrainDamage: argh, Arch Linux ARM's default kernel has CONFIG_MMC_MESON_MX_SDHC disabled. I need to update my SD card to make things boot...
<xdarklight> for now I'll make dinner and come back afterwards
<xdarklight> also I'm interested why you build your own kernel for Arch Linux ARM instead of using the "default" one
<BrainDamage> I'm not building my own, I'm using arch arm's vanilla kernel, the odroid official one is ancient
<BrainDamage> and unfortunately I need some features of more recent kernels
<BrainDamage> linux-armv7-odroidc1 is in the repos
<BrainDamage> also, I just realized I forgot to execute sd-fusing after eding the boot, so thhe config didn't apply
<BrainDamage> buuut, still no network
yann|work has quit [Ping timeout: 265 seconds]
<xdarklight> BrainDamage: ah, it's a misunderstanding then. I thought you didn't want to compile the kernel *again* because it takes long
<xdarklight> BrainDamage: also Ethernet "just works" on my Odroid-C1+ with: Linux alarm 5.8.9-1-ARCH #1 SMP PREEMPT Sat Sep 12 20:20:55 UTC 2020 armv7l GNU/Linux
<xdarklight> BrainDamage: have you tried connecting your Odroid-C1 to a different switch port or maybe directly to your computer?
sputnik_ has joined #linux-amlogic
tuxd3v has joined #linux-amlogic
trem has quit [Quit: Leaving]
<BrainDamage> xdarklight: yes for the switch port, I've confirmed that the port works by using other machines, moreover, it's two c1s that got the same problem simultaneousl
<xdarklight> hmm
<xdarklight> between 5.8.1 and 5.8.9 there's only two stmmac related commits, both are in 5.8.3: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.8.3
<xdarklight> both are related to hardware multicast filtering
<BrainDamage> thanks for all your help so far btw
<xdarklight> you're welcome
<xdarklight> I just checked the two stmmac commits
<xdarklight> one is mis-labeled and only affects Qualcomm platforms
<xdarklight> sorry, wrong link - that's the only only affecting Qualcomm platforms
<BrainDamage> mmm, now I'm wondering something stupid
<BrainDamage> if it's something else in userspace that's not the network manager that's crippling the ethernet
<BrainDamage> I'll try to boot to pid1 being bash
<BrainDamage> then try to manually configure the ethernet card
<xdarklight> if that's too much effort try including this initramfs: https://filebin.net/4obzlg896t6wfbfj/initramfs.uImage?t=kfogzk8e
<xdarklight> load it similar to how uImage is loaded (I use 0x22000000 as target address) and then pass it as the middle value to the "bootm" command (currently there's only a dash in your boot.ini)
<xdarklight> then boot without having a root filesystem specified in the kernel cmdline
cmeerw has quit [Ping timeout: 240 seconds]
<BrainDamage> using your image the ethernet device isn't found, do have I to load the kernel module manually?
<BrainDamage> https://paste.rs/PBU
<BrainDamage> actually, I'm running out of stamina for the day, I'll crash to bed and resume tomorrow evening
<BrainDamage> thanks again for your help