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
repk has quit [Ping timeout: 240 seconds]
_whitelogger has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
sputnik__ has quit [Read error: Connection reset by peer]
sputnik_ has joined #linux-amlogic
chewitt has joined #linux-amlogic
chewitt has quit [Ping timeout: 245 seconds]
Barada has joined #linux-amlogic
nexgen has joined #linux-amlogic
<narmstrong> Yardanico: did the binary work ?
chewitt has joined #linux-amlogic
ldevulder_ is now known as ldevulder
lykt has joined #linux-amlogic
bengal has quit [Ping timeout: 240 seconds]
bengal has joined #linux-amlogic
yann has quit [Ping timeout: 265 seconds]
nexgen has quit [Remote host closed the connection]
nexgen has joined #linux-amlogic
sputnik_ has quit [Read error: Connection reset by peer]
sputnik_ has joined #linux-amlogic
nsaenz has joined #linux-amlogic
yann has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 245 seconds]
chewitt has quit [Read error: Connection reset by peer]
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
Barada has quit [Quit: Barada]
Barada has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 245 seconds]
Barada has quit [Quit: Barada]
Barada has joined #linux-amlogic
Barada has quit [Quit: Barada]
ldevulder_ is now known as ldevulder
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
<Yardanico> narmstrong: for some reason the tv box just didn't want to read u-boot from sd card, and I tried to flash that uboot directly to eMMC and bricked it a bit. Bought a USB A M-M cable today, and flashed some android firmware, will also connect UART (I have a spare nodemcu esp8266 which can be used for uart-wifi bridge)
<Yardanico> The reason I wanted to compile my own u-boot is to boot arch linux arm kernel (for some reason it just doesn't boot, although the armbian kernel does). So I'll try to boot it with stock u-boot and with uart to see why doesn't it want to boot arch kernel
<Yardanico> well maybe the u-boot from sd card actually worked but it just didn't fix my arch linux problem :D I'll check it when I get an UART running though
<narmstrong> Yardanico: you can chainload mainline uboot from the vendor uboot
<narmstrong> Yardanico: it works well and is much simpler
<narmstrong> `usb start;fatload usb 0 0x1000000 u-boot.bin;go 0x1000000` from usb for example
<Yardanico> narmstrong: thank you, I also got wifi-UART transparent bridge (https://github.com/NaoNaoMe/ESP8266-WiFi-UART-transparent-bridge) flashed on ESP8266, now I'm gonna figure out a good way to connect it to my TV box (that's not very hard though)
yann has quit [Ping timeout: 268 seconds]
vagrantc has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Ping timeout: 240 seconds]
nsaenz has joined #linux-amlogic
<Yardanico> well, I finally managed to capture vendor uboot, and it's "U-Boot 2015.01-gff1cbc0660-dirty (Apr 08 2018 - 09:35:05)", also "BL2 Built : 11:04:41, Jan 26 2018."
<Yardanico> just for info, gonna start actual linux stuff now
<Yardanico> btw, is q200 similar to q201? The u-boot log says it uses q201 3gb version for my tv box
<khilman> q201 only has internl PHY
<khilman> q200 has a choice between interal or external (gbit I think) phy
<Yardanico> khilman: oh, thanks :)
<Yardanico> btw, the funny thing is that I don't have a soldering iron right now so yes, I captured uart log by holding the wires to the board with my fingers), gonna boot from armbian just to check it works, and then will start with arch kernel
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Read error: Connection reset by peer]
sputnik_ has joined #linux-amlogic
<Yardanico> so what can be the issue if the uboot successfully reads Image.gz of arch linux but after "Starting kernel ..." and "uboot time: 8413820 us" there's no output?
<Yardanico> well, I'm gonna try mainline u-boot anyway
zkrx has quit [Quit: I'm done]
repk has joined #linux-amlogic
zkrx has joined #linux-amlogic
<khilman> Yardanico: are you trying to boot mainline linux? If so, first thing to change is the serial console on the cmdline. Try `console=ttyAML0,115200`
<khilman> the vendor kernel uses ttyS0 which doesn't exist upstream, so you wont see any serial console output
<Yardanico> khilman: well when booting armbian I got all kernel output from uart
<Yardanico> idk if it's fully mainline though, maybe they have patches
<khilman> I don't know what kernel version armbian uses
<Yardanico> the latest armbian provided for my device uses 5.3.0-aml-g12
<Yardanico> so not mainline I guess
<Xogium> it is
<Yardanico> khilman: I think I might have had an error in my uEnv.ini, it was like "console=ttyAML0,115200n8 console=tty"
<khilman> that looks fine
<Yardanico> there's also other thing that bothers me - for some reason the s905_autoscript for armbian loades the armbian zImage kernel using "booti"
<Yardanico> s/loades/loads
<Yardanico> ugh, it seems I have the same issue as in https://archlinuxarm.org/forum/viewtopic.php?t=13172&p=59727
nexgen has quit [Quit: Leaving]
<Yardanico> narmstrong: I tried the chain loading and I get u-boot "bootloop" with it with "Synchronous Abort handler, esr 0x02000000" error: https://paste.debian.net/1104077/
<Yardanico> s905_autoscript.cmd: https://paste.debian.net/1104079/
<Yardanico> (ignore the dtb part, I tried to fix arch with it, but it does not have any effect on u-boot booting since that also happened without it)
<Yardanico> maybe it has some effect though - I used "aarch64-elf-" for cross-compilation instead of "aarch64-none-elf", is that maybe incorrect?
<Yardanico> built u-boot.bin binary from fip directory: https://filebin.net/3k3qczq96rn33pur/u-boot.bin
<Yardanico> printenv output (just in case): https://paste.debian.net/plain/1104090
Darkmatter66 has joined #linux-amlogic
nexgen has joined #linux-amlogic
nexgen has quit [Remote host closed the connection]
nexgen has joined #linux-amlogic
nexgen has quit [Remote host closed the connection]
nexgen has joined #linux-amlogic
nexgen has quit [Remote host closed the connection]
<Yardanico> Ok, good night (my account will still be there because I use quassel so you can reply anytime)
nexgen has joined #linux-amlogic
nexgen has quit [Remote host closed the connection]
return0e has joined #linux-amlogic
return0e_ has quit [Ping timeout: 276 seconds]
nsaenz has quit [Remote host closed the connection]
Darkmatter66 has quit [Ping timeout: 245 seconds]
sputnik_ has quit [Read error: Connection reset by peer]
sputnik_ has joined #linux-amlogic
Darkmatter66 has joined #linux-amlogic
nexgen has joined #linux-amlogic
nexgen has quit [Remote host closed the connection]
nexgen has joined #linux-amlogic
nexgen has quit [Quit: Leaving]
nexgen has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 265 seconds]
nexgen has quit [Remote host closed the connection]
nexgen has joined #linux-amlogic