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
bengal has quit [Ping timeout: 256 seconds]
bengal has joined #linux-amlogic
camus1 has joined #linux-amlogic
kaspter has quit [Ping timeout: 240 seconds]
camus1 is now known as kaspter
buzzmarshall has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
Barada has joined #linux-amlogic
Barada has quit [Quit: Barada]
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-amlogic
asdf28 has joined #linux-amlogic
camus1 has joined #linux-amlogic
kaspter has quit [Remote host closed the connection]
camus1 is now known as kaspter
ldevulder_ is now known as ldevulder
swimm3r has joined #linux-amlogic
<swimm3r> hello. I am using amlogic s905d box, with coreelec OS
<swimm3r> the box can boot from usb
<swimm3r> and I did a big mistake... I deleted the mmcblk0 partitions
<swimm3r> can anyone help me to restore them? thank you.
<swimm3r> the board is similar to GXL : Quad 64bit Cortex-A53
cmeerw has joined #linux-amlogic
<asdf28> :->
<swimm3r> :)
camus1 has joined #linux-amlogic
kaspter has quit [Remote host closed the connection]
camus1 is now known as kaspter
Ashleee has joined #linux-amlogic
<Ashleee> hello
<Ashleee> anybody using Odroid C1/C1+ with mainline linux?
<Ashleee> I am unable to get it to work at least to the point where I don't know if it is my console not working or kernel gets stuck
<Ashleee> basically nothing past "Starting kernel ...
<Ashleee> "
<Ashleee> grabbed u-boot off image of the ubuntu 18.04.3
<Ashleee> cleaned up boot.ini to keep only console=ttyAML0,115200n8 and the fatload + bootm
<Ashleee> I can see u-boot log on console but nothing from kernel :)
<Ashleee> the userspace doesn't seem to bring up the network either (at least don't see it on DHCP server) but that may be something else
<Ashleee> tried the kernel's multi_v7_defconfig ...
<Ashleee> packed into uImage with loadaddr = whatever the fatload uses
<Ashleee> ## Booting kernel from Legacy Image at 21000000 ...
<Ashleee> Image Name: Linux-5.9.6
<Ashleee> Image Type: ARM Linux Kernel Image (uncompressed)
<Ashleee> Data Size: 6492672 Bytes = 6.2 MiB
<Ashleee> Load Address: 21000000
<Ashleee> Entry Point: 21000000
<Ashleee> Verifying Checksum ... OK
<Ashleee> wait
<Ashleee> is 0x00208000 the loadaddr for kernel but it execs from somewhere else?
<Ashleee> *yup*
<Ashleee> now we're getting somewhere
<Ashleee> [ 2.191361] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
<Ashleee> [ 2.194641] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
<Ashleee> [ 2.201446] stmmaceth c9410000.ethernet: IRQ eth_wake_irq not found
<Ashleee> [ 2.207082] stmmaceth c9410000.ethernet: IRQ eth_lpi not found
<Ashleee> [ 2.212903] stmmaceth c9410000.ethernet: dt configuration failed
chewitt has joined #linux-amlogic
<chewitt> Ashleee Odroid C1 likely needs a kernel built from https://github.com/xdarklight/linux/tree/meson-mx-integration-5.9-20201003 to work
<Ashleee> hmm :) I don't need much, I just need ethernet + sd card + dvfs :)
<Ashleee> should all be in 5.9
<chewitt> boot is normally from 0x1080000
<chewitt> at least for S905 and onwards, but that probably didn't change
<Ashleee> I got it to boot, I just need ethernet working at this point :P
<chewitt> I'd use xdarklight kernel sources, more likely to have stuff working
steev has quit [Ping timeout: 244 seconds]
<chewitt> brads: not sure what dumping usb memory map would achieve? .. the deadlock issue is with any form of media including mmc
<chewitt> dumping registers generally might be an idea, but at that point I have no clue what i'm doing
steev has joined #linux-amlogic
<chewitt> I'd be happy to follow some guidance
narmstrong has quit [Ping timeout: 260 seconds]
<chewitt> I'm good at building, patching and repackaging stuff, but not actual development
<Ashleee> wait which brand from that repo is "master" for meson8b? :)
<Ashleee> the meson-mx-integration-5.9?
narmstrong has joined #linux-amlogic
<asdf28> have you tried a 5.8 kernel?
<asdf28> 5.87 usb and network doesn't work anyore on my box
<asdf28> 5.9 video performance comes to a crawl
<asdf28> and frequent crashes
<chewitt> Ashleee branches are date-coded, so just use the most recent branch
<Ashleee> ok
<Ashleee> hmm same issue with the linux-meson* latest branch as is on mainline
<Ashleee> [ 2.346508] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
<Ashleee> [ 2.358854] stmmaceth c9410000.ethernet: IRQ eth_wake_irq not found
<Ashleee> [ 2.364572] stmmaceth c9410000.ethernet: IRQ eth_lpi not found
<Ashleee> [ 2.352160] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
<Ashleee> [ 2.370393] stmmaceth c9410000.ethernet: dt configuration failed
<Ashleee> if it at least displayed why dt configuration failed :)
<Ashleee> yup I am missing some driver, grabbed armbian conf and it works
<Ashleee> now which driver it is :D
<Ashleee> maybe eFuse :)
<Ashleee> if it generates MAC based on the device id from fuses
<Ashleee> yup very much so
<Ashleee> :D
<Ashleee> that's 3 hours of my time gone :)
<Ashleee> oh reboot gets stuck but I can get around that, not the first device with such problem :D
<Ashleee> now about mainline u-boot :D :D
<Ashleee> nah just kidding, I am gonna give up on that, there's no support for meson8b in mainline it seems
<Ashleee> and sadly the ancient hardkernel one gives exception and resets on tftp boot
<Ashleee> ah well, better than nothin
<Ashleee> btw in /sys I cannot find cpufreq nodes, did I miss something again or is it working-but-hidden? I swear I have now all dtb things enabled :)
<Ashleee> don't see it being loaded in kernel log
<Ashleee> yes I forgot .. :)
<Ashleee> today's not my best day :D
<chewitt> meson8 is still a bit uncharted with maineline
<chewitt> xdarklight is the person to bug, but he's probably not around until evening time
kaspter has quit [Quit: kaspter]
sputnik_ has quit [Ping timeout: 246 seconds]
asdf28 has quit [Ping timeout: 256 seconds]
asdf28 has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
chewitt has quit [Read error: Connection reset by peer]
chewitt has joined #linux-amlogic
ldevulder has quit [Ping timeout: 256 seconds]
brads has quit [Ping timeout: 260 seconds]
brads has joined #linux-amlogic
brads has quit [Ping timeout: 264 seconds]
niceplace has quit [Ping timeout: 264 seconds]
<efqw> swimm3r:
<efqw> swimm3r: you need to use pyamlboot to start u-boot over USB and work from there
<efqw> Probably need one of those USB-A to USB-A cable.
<efqw> You can probably use ATF binaries from other gxl boards for s905d.
<efqw> narmstrong: is there a way to talk to the mainline u-boot over USB? Currently I'm still using serial console for actual mmc operations, I wonder if there's a way to flash the emmc without having to open up the box and hook up the serial console.
<narmstrong> efqw: ums will share the emmc as usb mass storage
<efqw> cool, so we can just dd to the usb mass storage then?
<narmstrong> efqw: yes
<efqw> Nice, that's much easier than I've thought.
Anessen97_0 has quit [Quit: Ping timeout (120 seconds)]
Anessen97_0 has joined #linux-amlogic
<swimm3r> efqw: I perform full dump on other identical box
<swimm3r> full dump of mmcblk0
<swimm3r> and now is alive
vagrantc has joined #linux-amlogic
Elpaulo has quit [Remote host closed the connection]
Elpaulo has joined #linux-amlogic
asdf28 has quit [Ping timeout: 260 seconds]
drieschel has joined #linux-amlogic
drieschel has quit [Quit: drieschel]
Darkmatter66 has joined #linux-amlogic
Darkmatter66_ has quit [Ping timeout: 265 seconds]
<efqw> Looks like the HDMI dongle trick don't work on absolutely everything
<efqw> I have this p230 based board and the two HDMI dongles I have don't do anything at all. The USB boot one should make the bootrom wait for a copule of seconds and print USB in the first line.
<efqw> but nothing happens, the board insists on booting from emmc
<efqw> The same dongles I used work great on other gxl/gxm boards.
hexdump0815 has joined #linux-amlogic
<hexdump0815> efqw: the hdmi dongle does not work perfectly on all boards, especially gxl and gxm tv boxes in my experience - what always worked for me in such cases was to interrupt the legacy u-boot from emmc and then type reset: then the dongle forced boot usually works
<efqw> hexdump0815: very interesting, just tried it and indeed it's working after a hot reset from the legacy u-boot
<efqw> Actually I think I know what's wrong now, can't believe I missed something as simple as this.
<efqw> On some boards hdmi power is not enabled by default, so the eeprom is not even powered on.
<efqw> The light on the dongle only comes on just before u-boot starts
<efqw> That is indeed the problem. I powered on the eeprom with an external 3v3 source and the bootrom is now waiting for USB.
<efqw> I feel super uncomfortable feeding power from the wrong direction like this though, I think I need some diodes to make this less terrifying for me.
brads has joined #linux-amlogic
cmeerw has quit [Ping timeout: 240 seconds]
drieschel has joined #linux-amlogic
<brads> chewitt: sorry yes I misunderstood, I was of the impression it was a usb problem with vendor uboot only
<xdarklight> Ashleee: I'm still catching up with mails and stuff. do you have your kernel .config at hand?
<xdarklight> Ashleee: and the full kernel boot log output on a pastebin would be great :)
<narmstrong> efqw: it’s exact on most of the tv boxes the hdmi 5v is not powered on a cold boot
<efqw> and if I'm not mistaken in most cases hdmi power is tied to usb power
sputnik_ has joined #linux-amlogic
drieschel has quit [Quit: drieschel]
hexdump0815 has quit [Remote host closed the connection]