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
gavlee has quit [Read error: Connection reset by peer]
gavlee has joined #linux-amlogic
zkrx has quit [Ping timeout: 260 seconds]
zkrx has joined #linux-amlogic
<gavlee> dtc -I /sys/firmware/devicetree/base -O dts -o >> https://bin.disroot.org/?a448d05fd3066077#EZ3oxadhfucKjVxTofw8Vxs95Xiz7tAYuAkJzxm3FJES
<gavlee> big bunch of errors running that ^^
<gavlee> this is from the stock firmware on x96 air, had to install termux and dtc knew there was a way :D
camus1 has joined #linux-amlogic
kaspter has quit [Ping timeout: 258 seconds]
camus1 is now known as kaspter
gavlee has quit [Excess Flood]
gavlee has joined #linux-amlogic
Barada has joined #linux-amlogic
<chewitt> oh wow .. that's like 45+ seconds of boot on Android
<chewitt> mainline is normally done in under 10 seconds :)
random_yanek has quit [Ping timeout: 246 seconds]
warpme_ has joined #linux-amlogic
random_yanek has joined #linux-amlogic
<narmstrong> yeah android does lots of weird and complex stuff like recompiling apps before loading them
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #linux-amlogic
<lvrp16> narmstrong: sometimes I think it's way too over-engineered. build takes an hour on 16 threads and 32GB of DRAM.
mastertheknife has quit [Ping timeout: 265 seconds]
mastertheknife has joined #linux-amlogic
<mace> two n2's arrived yesterday, shiny
<mace> thought I'd have a go at building for that before i get on with the sztomato boards
<mace> (which, it turns out, also don't have mipi dsi exposed :( )
sputnik_ has quit [Ping timeout: 256 seconds]
ldevulder__ has joined #linux-amlogic
ldevulder_ has quit [Ping timeout: 265 seconds]
ldevulder has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder__ has quit [Ping timeout: 264 seconds]
ldevulder has quit [Ping timeout: 264 seconds]
ldevulder_ is now known as ldevulder
<narmstrong> only the vim3 & vim3l has the mipi dsi exposed
<mace> narmstrong: nod - annoyed with sztomato for selling me these boards as having it
yann|work is now known as yann
<mace> how critical is it to have a FIP from the vendor/amlogic to get a booting board?
<narmstrong> mace: what do you mean by critical ? is it an issue ?
<narmstrong> not really, they are perfectly functional so far
<mace> sztomato want a few k usd and an nda to give me the sdk for these boards
<mace> i'm not wildly convinced i want to spend that
<narmstrong> it depends how much time they spent on the sdk, it theyr only clones the amlogic code and changed the DDR freq, it's not worth it
<mace> having booted them up, they look virtually stock
<mace> both have amlogic splash screens at boot
<narmstrong> so you can take the khadas or hardkernel releases, strip out their changes and you have the vanilla amlogic sdk
<mace> right, cool, thanks
<narmstrong> take the amlogic model from the u-boot prompt and rebuild it in amlogic sdk
<mace> have khadas/hardkernel been pushing their changes to the kernel back upstream?
<narmstrong> virtually no, we have feedback from khadas and they give samples, but recently both started providing upstream based images
<mace> nod
<mace> these boards are a311d and s905d3 based
<mace> would be nice to get them usable
jelly has quit [Ping timeout: 246 seconds]
cyrozap has quit [Ping timeout: 264 seconds]
The_CooIest has quit [Ping timeout: 264 seconds]
<mace> try and salvage the money/time they've cost me already
jelly-home has joined #linux-amlogic
<chewitt> do the boards boot from emmc or SD card, i.e. where is the boot firmware ?
<mace> on board emmc
<mace> i've managed to get a uart console but not been able to break into uboot yet
<chewitt> put that on an SD card and see whether any of the G12B (A311D) or SM1 (S905X3) device-trees work
<chewitt> edit the dtb name in uEnv.ini
<mace> just dd that (after gunzip) straight onto a card aye?
<chewitt> if you have uart working just hold down space or enter during boot
<chewitt> correct, dd
<mace> have tried holding down space etc, but timeout is set to 0. i need to try a wired keyboard, in case that makes a difference
gaspode has quit [Quit: Woof bloody woof.]
gaspode has joined #linux-amlogic
<gavlee> I have trouble compiling android on this puny box that's just :o
<gavlee> but yeah ,when android takes that and I can do some much more with a LE image in 100MB :D
<mace> chewitt: ok dug the board out - doesn't appear to even attempt to boot from sd. plugged in wired keyboard - uboot blasts straight past the hold down space prompt
<chewitt> try enter, shift, etc.
<mace> righto
<mace> i'm an idiot :D
<mace> helps if you press space on the uart o.O
<mace> does it change the baud rate once you've broken in? getting gibberish after the 'space' prompt
<chewitt> not that i've experienced .. should be 115200,8,n,1
<mace> i'll try it again then
<mace> might be a bad connection
Barada has quit [Quit: Barada]
gaspode has quit [Quit: Woof bloody woof.]
gaspode has joined #linux-amlogic
<mace> chewitt: bad connection. can probe the mmc from uboot anyhow
<chewitt> printenv .. and c/p the output to pastebin
<chewitt> this will show the bootscript, so we can see what autoscript files it looks foor
<mace> righto, one moment
<mace> looking for aml_autoscript, maybe?
<mace> yup, got it booting off mmc, although it seems to be stuck in a panic bootloop now. will need to see what it's upset about and tweak
<chewitt> g12a_u202_v1 <= worth remembering
<chewitt> aml_dt=sm1_ac202_4g
random_yanek has quit [Quit: random_yanek]
<chewitt> it supports the IR remote (which you prob. don't have) being used to trigger 'update' mode
<mace> nope don't have - i do have a generic one for something else though
random_yanek has joined #linux-amlogic
<chewitt> upgrade_key=if gpio input GPIOAO_6; then echo detect upgrade key; run update;fi;
<chewitt> so there's a reset button somewhere
<mace> yup right next to the 12v input
<chewitt> and it should look for aml_autoscript
<chewitt> so the LE boot scripts on the SD card should work, if you trigger update mode
<chewitt> then it's all down to "guess the device tree"
<mace> there's another header labelled key with 8 pins, key/gnd/ledg/ledr/key/gnd/ir/5v
<mace> i manually loaded aml_autoscript and booted it by hand, seemed to work well enough
<mace> ignoring kernel panic
<chewitt> which dtb was that?
<chewitt> this is the S905X3 device I guess
<mace> yeah
<mace> it was handy
<mace> dtb/meson-g12b-gtking.dtb
<mace> i literally grabbed one at random
<mace> u200 might be worth a try next
<chewitt> S905X3 = SM1
<mace> s905d3
<chewitt> pick VIM3L or C4, then X96-air/A95XF3-air
<chewitt> still SM1
<mace> right
<chewitt> VIM3L is the closes match by SoC, but SBCs are more likely to have different plumbing
<chewitt> the reset button is something you press, then power on, and when you release the button the signal is set to enter update
<chewitt> aka "toothpick" update, as on Android boxes the button is normally hidden and you need a tootpick or unfolded paper-clip to press the button
<mace> aha
<mace> i didn't imagine it would be that easy :D
<chewitt> it's also fiddly as arse to get the timing right when the bootdelay is set to zero
<chewitt> but eventually you get it right
<chewitt> the SEI610 is also an SM1 device
<chewitt> (remembering)
<chewitt> there are known FIP sources for SEI610 and VIM3L, and C4, but Hardkernel normally modifies theres so they won't run elsewhere
<chewitt> but experimenting with those (and mainline u-boot) requires you to backup and then erase emmc
<mace> is there an easyish way to do that?
<chewitt> yes, once you get a booting (or partially booting) dtb
<mace> i saw mention somewhere of some amlogic tool for flashing
<mace> ah just dump from linux?
<chewitt> Amlogic Burning Tool
<chewitt> but that's for writing not capturing the image
<chewitt> dd works fine
<chewitt> slow.. but then everything will be slow
<mace> yup
The_Coolest has joined #linux-amlogic
<mace> chewitt: silly question, but won't there be a dtb on the emmc already?
armoon has joined #linux-amlogic
<chewitt> yes, but it looks for aml_autoscript first, so we can override that with our own boot scripts
<mace> i was more wondering if the dtb can be used to boot libreelec
sputnik_ has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 265 seconds]
<chewitt> nope, device-trees are kernel version dependent
armoon has quit [Ping timeout: 245 seconds]
ldevulder has quit [Quit: Leaving]
sputnik_ has joined #linux-amlogic
warpme_ has quit [Quit: Connection closed for inactivity]
<mace> chewitt: got a few minutes to try all the configs you suggested, none boot
<mace> chewitt: all of them seem to crash in video_keeper_init
<mace> null pointer dereference
narmstrong has quit [Ping timeout: 272 seconds]
steev has quit [Ping timeout: 260 seconds]
ldts has quit [Ping timeout: 260 seconds]
khilman has quit [Ping timeout: 272 seconds]
saintdev has quit [Ping timeout: 260 seconds]
lvrp16 has quit [Ping timeout: 260 seconds]
jbrunet has quit [Ping timeout: 272 seconds]
jbrunet has joined #linux-amlogic
khilman has joined #linux-amlogic
ldts has joined #linux-amlogic
lvrp16 has joined #linux-amlogic
yann has quit [Ping timeout: 258 seconds]
narmstrong has joined #linux-amlogic
steev has joined #linux-amlogic