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
<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>
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)
<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)
<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>
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?