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