ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
ftg has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
wasutton3 has quit [Ping timeout: 480 seconds]
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
<Jookia> aperezdc: in anger? :O
chewitt has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
gsz has joined #linux-sunxi
vickycq has quit [Remote host closed the connection]
vickycq has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
junari has quit [Remote host closed the connection]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
* aperezdc assumes that comment was intended for apritzel
<Jookia> yes
<Jookia> im sorry aperzdc :(
<Jookia> i tested and prototyped pwm clock setting code in python, i'm pretty pleased with the result. i think it's somewhat better than the linux code :)
<aperezdc> no woprries, it was a clear autocomplete thing, because they left so typing ap+tab probably hit me next in the list or something
<aperezdc> s/woprries/worries
<Jookia> :)
apritzel has joined #linux-sunxi
<tokyovigilante> Raqbit: sorry yeah my u-boot code is a bit behind. There is a TF-A branch which also includes the AXP driver which you may need, but I have previously had booting to linux working well without. I will refresh my branch either tonight or over the weekend. I do very occasionally see 2GB RAM reported, so I assume the DRAM settings are not entirely right unfortunately. However I see that maybe 1
<tokyovigilante> in 20 times, and the device boots ok otherwise.
<tokyovigilante> If you're using the device with a battery connected, maybe try unplugging it and just running 5v power from the USB cable, we had some issues during the AXP bringup where a rail was misconfigured and wouldn't set till both battery and USB power were pulled to fully reset it
<tokyovigilante> for the AXP patches.
<tokyovigilante> apritzel: just confirming usb gadget ethernet should work from u-boot to allow booting a kernel over TFTP? I can't get u-boot to build with the gadget driver enabled currently, I think because I'm missing (or just not enabling the correct) peripheral driver
chewitt has quit [Ping timeout: 480 seconds]
<apritzel> Jookia: the SPL does use DRAM later in its runtime, for the heap (used by the MMC code) and the BSS. But it's not until TF-A executing that code execution and caches come into play
<Jookia> tokyovigilante: you need a patch for sunxi musb
<apritzel> Jookia: really? what for?
<Jookia> so it compiles
<apritzel> I think you just need CONFIG_USB_MUSB_GADGET?
<Jookia> i gave it a review/tested-by last month
<Jookia> someone else also made a duplicate patch and posted it to the mailing list earlier this year
<apritzel> but that's just for DM enablement, isn't it? gadget Ethernet should work already ...
<Jookia> i i dunno
<Jookia> maybe that's the error they got though
<Jookia> with the amount of compile errors you get if you enable a wrong setting it's hard to find what's broken or what's unsupported for your hardware
<tokyovigilante> Jookia: awesome, will give it a go. Was getting a few missing includes which were clearly defined in the various other peripheral drivers. will give it a roll
<apritzel> tokyovigilante: so the USB mass storage gadget in U-Boot definitely works, just tested that on the OPiZero3
<apritzel> just enable CONFIG_USB_MUSB_GADGET=y, for the generic MUSB part, this already automatically pulls in gadget Ethernet, and U-Boot prints some info about it
<apritzel> if you enable CONFIG_USB_FUNCTION_MASS_STORAGE=y and CONFIG_CMD_USB_MASS_STORAGE=y, you can export the SD card via "ums 0 mmc 0"
<apritzel> which would allow you to copy the kernel to the SD card, then load it from there. Not ideal, but better than pulling the SD card in and out
<tokyovigilante> cool, thanks. So you'd suggest that over trying TFTP if I get both working?
<apritzel> I will keep trying on the gadget Ethernet, it seems a bit impatient to me (timing out after one second already?)
<apritzel> so it depends on *your* impatience ;-)
<tokyovigilante> Extreme, but will see how I go :)
<apritzel> ah: setenv cdc_connect_timeout 20
<apritzel> maybe my host just doesn't have the USB Ethernet driver ready ...
jakllsch has quit [Ping timeout: 480 seconds]
<tokyovigilante> that's u-boot master with the pending 6.10 version of the DT for the RGXXX devices, then with some extra nodes for DFVS, NMI etc on top
<tokyovigilante> ah, I didn't have CONFIG_USB_MUSB_GADGET enabled at all
<apritzel> ha, got it to work!
<apritzel> so it seems to work only on the first try, meaning you got to reset when something goes wrong
<apritzel> that's the sequence: setenv ipaddr 192.168.51.2; setenv serverip 192.168.51.1; setenv cdc_connect_timeout 100; tftpboot $kernel_addr_r Image-6.9-rc5.gz
<apritzel> then on your host: ifconfig usb0 192.168.51.1 (or whatever this is with ip ...)
<apritzel> 3.7MB/s, quite decent
jakllsch has joined #linux-sunxi
<tokyovigilante> nice!
<apritzel> tokyovigilante: I ask people to add CONFIG_USB_MUSB_GADGET=y in the defconfig for every board that describes USB0 as being peripheral in the DT
<tokyovigilante> cool, will do
<tokyovigilante> hmm...Trying to boot from MMC1
<tokyovigilante> mmc_load_image_raw_sector: mmc block read error
<tokyovigilante> This is with u-boot at the 256 sector offset
<apritzel> oh yeah, you need a U-Boot patch to support that high offset on the H616
<apritzel> I have one, just didn't manage to send it out yet ...
<tokyovigilante> First time I've actually tried booting from the card
<tokyovigilante> although using FEL - eth0: usb_ether
<tokyovigilante> so that looks like its working
<tokyovigilante> actually, I could still use this with FEL-boot, because as soon as u-boot loads it will switch out of FEL and set up as a USB peripheral port presumably
<tokyovigilante> Obviously good to get the SD support sorted for an eventual downstream image
<apritzel> and yeah, FEL and gadget Ethernet pair up nicely
<tokyovigilante> Bus 001 Device 025: ID 1f3a:1010 Allwinner Technology Android device in fastboot mode
<tokyovigilante> Do I want this? Just getting a bunch of fastboot messages in the console currently
<tokyovigilante> oh no I just didn't interrupt the boot in time
<tokyovigilante> high speed config #1: 2 mA, Ethernet Gadget, using CDC Ethernet
<tokyovigilante> USB network up!
<tokyovigilante> now I just need networkmanager out of the way ;)
<tokyovigilante> thanks for the SD patch too
<apritzel> maybe you can actually talk networkmanager into automatically bringing up the usb0 interface when it appears, with a static IP, then the default three second timeout should be enough already
<tokyovigilante> oh yup
cyrevolt has joined #linux-sunxi
AntoniAloyTorrens[m]1 has joined #linux-sunxi
aedancullen has joined #linux-sunxi
aerospace[m] has joined #linux-sunxi
chuang[m] has joined #linux-sunxi
cmeerw[m] has joined #linux-sunxi
cperon has joined #linux-sunxi
dickenhobelix[m] has joined #linux-sunxi
dittid[m] has joined #linux-sunxi
error2[m] has joined #linux-sunxi
KNULLNoNeAll[m] has joined #linux-sunxi
exkc has joined #linux-sunxi
fraolt has joined #linux-sunxi
GrantM11235[m] has joined #linux-sunxi
JosephWatson[m] has joined #linux-sunxi
JuniorJPDJ has joined #linux-sunxi
mripard1 has joined #linux-sunxi
triskit|away has joined #linux-sunxi
Newbyte has joined #linux-sunxi
insep has joined #linux-sunxi
obbardc has joined #linux-sunxi
oliv3r[m] has joined #linux-sunxi
pgwipeout[m] has joined #linux-sunxi
psydroid[m] has joined #linux-sunxi
exkcmoeadmin[m] has joined #linux-sunxi
rsglobal[m] has joined #linux-sunxi
sajattack[m]1 has joined #linux-sunxi
t4h4[m] has joined #linux-sunxi
Tooniis[m] has joined #linux-sunxi
MatrixTravelerbot[m] has joined #linux-sunxi
vulpes2[m] has joined #linux-sunxi
movedon5b2z4xywybidzannet[m] has joined #linux-sunxi
<tokyovigilante> awww
<tokyovigilante> => booti $kernel_addr - $fdt_addr
<tokyovigilante> Bad Linux ARM64 Image magic!
<tokyovigilante> tftp seemed to work though
<tokyovigilante> Bytes transferred = 24764928 (179e200 hex)
<apritzel> you should use $kernel_addr_r and $fdt_addr_r, I guess?
<tokyovigilante> sorry, just figured that out
<tokyovigilante> Starting kernel ...
<tokyovigilante> "Synchronous Abort" handler, esr 0x02000000
<tokyovigilante> elr: 000000000b5940e0 lr : 000000004a002fd4 (reloc)
<tokyovigilante> still nope, but awesome to get this up and running
<tokyovigilante> hmm, do I mean $fdtcontroladdr?
<tokyovigilante> Haven't built a FIT image, just a regular one so was going to rely on the u-boot DTS
dsimic is now known as Guest2897
dsimic has joined #linux-sunxi
Guest2897 has quit [Ping timeout: 480 seconds]
<aperezdc> paru
<aperezdc> lol, that was supposed to go to a shell
<apritzel> tokyovigilante: yes, of course $fdtcontroladdr would be best
mripard has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.0 Quasar http://www.kvirc.net/]
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
insep has left #linux-sunxi [#linux-sunxi]
JohnDoe_71Rus has joined #linux-sunxi
mripard is now known as Guest2909
Guest2909 has quit []
mripard has joined #linux-sunxi
<Raqbit> tokyovigilante: Thanks, I'll see if I can get your updated u-boot working with the AXP TF-A branch. I initially tried without battery, but stopped doing so as the stock firmware was shutting down after a minute of running without (I'd assume that is coming from the PMIC)
electricworry has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
wingrime-ww has quit [Quit: WeeChat 4.2.2]
gsz has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.2 Quasar http://www.kvirc.net/]
vagrantc has joined #linux-sunxi
apritzel has joined #linux-sunxi
sh1 has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
AntoniAloyTorrens[m]1 has quit []
MatrixTravelerbot[m] has quit []
psydroid[m] has quit []
aedancullen has quit []
apritzel has joined #linux-sunxi
bauen1_ has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
<macromorgan> which is the latest U-Boot branch we're working from? Sorry but I am just now taking stuff back up as I had some unrelated U-boot bugs to quash
<macromorgan> this is the A-TF stuff I'm using at the moment: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/27326/3
ftg has quit [Read error: Connection reset by peer]
hentai has joined #linux-sunxi
<apritzel> macromorgan: tokyovigilante pushed this earlier today: https://git.sr.ht/~tokyovigilante/u-boot/log/rg35xx-upstream
<macromorgan> sweet, I'll give that a whirl
<apritzel> I guess plus this patch if you want to load U-Boot from an SD card's 256K offset: https://gist.github.com/apritzel/423f96d84599d107383b557ca79bbf96
cmeerw[m] has quit []
<tokyovigilante> apritzel: macromorgan: yup that is the 6.10 kernel DTS plus the minimum changes for DRAM and the AXP driver needed to boot, then some random GPU and video nodes on top which shoud probably be ignored ;) will add in or reference the 256k offset patch, and then start thinking about u-boot patches?
cyrevolt has quit []
<apritzel> tokyovigilante: thanks, and yeah, it would be good to get them into shape. I will post my AXP717 patches in the next days, and I think we need some cleanup of the DRAM patches
dickenhobelix[m] has quit []
Schimsalabim has quit [Ping timeout: 480 seconds]