Xogium_ has joined #Speedsaver
Xogium has quit [Ping timeout: 245 seconds]
Xogium_ is now known as Xogium
peterm6881 has joined #Speedsaver
<peterm6881> hey
<peterm6881> hey Xogium
<peterm6881> good evening
<peterm6881> sleep 10 && mpv --playlist=playlist.txt --quiet --volume=50
<peterm6881> sorted
<peterm6881> can you get an image over to me this evening?
<Xogium> can try but I have no idea if it will even work
<Xogium> for all we know usb doesn't even work hah
<peterm6881> just add whatever delay you reckon it needs
<peterm6881> it works perfectly
<Xogium> well I mean on mangopi, for all we know the dongle won't be detected because usb is broken in kernel lol
<peterm6881> stop making excuses
<peterm6881> share me an image, I'll test it in 10 seconds flat
<peterm6881> nothing came in the post today, although I got the Dupont crimp tool and 500 each of male and female crimps yesterday
<peterm6881> so as soon as the speaker comes i'll crimp it up for you
<peterm6881> male pins ;)
<Xogium> I'm not making excuses
<Xogium> I'm being realistic
<Xogium> the fact that when I type lsusb it doesn't even show an usb controller doesn't sound very good to me
<Xogium> so I have not much hope for this
<Xogium> but who knows really
<Xogium> this is my irc board for example
<Xogium> [xogium@Phoenix ~]$ lsusb
<Xogium> Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.5 ehci_hcd EHCI Host Controller
<Xogium> Bus 002 Device 001: ID 1d6b:0001 Linux 5.15.5 ohci_hcd Generic Platform OHCI controller
<Xogium> and the same on mangopi
<Xogium> # lsusb
<Xogium> #
<Xogium> your image is building… but frankly I'm not sure this will work
<Xogium> ah there we go, ready
<Xogium> so how do we do this, do you want to go in FEL mode and erase only the rootfs ? I could share the rootfs.ubi file and tell you what settings to pass to mtd erase for it
<peterm6881> pass, whatever is simplest
<Xogium> you could write the new rootfs without having to write your bootloader again, since there were no changes to it
<Xogium> m'kay uploading
<peterm6881> yay
<peterm6881> ive asked sc6502 to come online
<peterm6881> i wanna check if he's able to submit your patch, now hes had time to scope it
<Xogium> sent the link over fb
<Xogium> so when you download that
<peterm6881> ok wait
<Xogium> you have to enter in FEL mode and upload the u-boot-sunxi-with-spl.bin file using synxi-fel, like the normal procedure, the only thing that changes is the offset at which you erase on the mtd, and you only run the second dfu-util command, not the first
<Xogium> so mtd erase spi-nand0 becomes
<Xogium> mtd erase spi-nand0 0x100000 0x8000000
<Xogium> u-boot its stored on the nand from 0x0 to 0x100000, so if you want to preserve it you erase from 0x100000 onward
<peterm6881> ok its in my home directory
<peterm6881> flip i can hardly remember anything about the process
<peterm6881> lets take it one step at a time
<Xogium> hehe
<Xogium> sure
<Xogium> so FEL mode first
<peterm6881> hang on
<peterm6881> ok im in dfrobots version of u-boot, I got =>
<Xogium> alright so
<Xogium> oh nah don't use their version, the tables won't match what dfu expects now that I tweaked it
<Xogium> you have to use the one that is in your speedsaver image irectory
<peterm6881> i wonder if it might be easier to test this in sd card
<Xogium> well its just one burning
<peterm6881> and then switch to spi flash
<peterm6881> the problem is without running the fel script, I have nothing printed to show im in fel mode
<peterm6881> but i think i can do it anyway, wait a sec
<Xogium> well you certainly did it the day you flashed using my readme
<peterm6881> i did...
<peterm6881> i guess so lol
<peterm6881> ok lets assume im in fel mode, whatnext
<peterm6881> what next
<Xogium> then you have to erase the mtd like I saide earlier
<peterm6881> yeah im confident im in fel mode
<Xogium> mtd erase spi-nand0 0x100000 0x8000000
<peterm6881> no this is actually impossible
<peterm6881> because theres literally nowhere i can paste that
<Xogium> you could do without fel mode, but its better to do it from there in case you accidentally give it the wrong offset and fuck up the very u-boot you're running from
<peterm6881> im in fel mode, but without u-boot ive no prompt
<Xogium> well you have to upload it to ram first then ?
<peterm6881> no im in fel mode, there is no u-boot
<Xogium> the u-boot that you built the day you built your speedsaver image
<peterm6881> hmm. ok wait, let me start again at the readme
<Xogium> you could just follow the readme again I suppose, but keep in mind that the rootfs.ubi you want to flash is in your home dir not in the buildroot image directory
<Xogium> if that's easier
<peterm6881> ok yeah sorry its been a long hard day and i was up since 6am
<peterm6881> ok im in your u-boot
<peterm6881> whats the command
<peterm6881> oops wait,
<peterm6881> its above
<peterm6881> hang on
<peterm6881> mtd erase spi-nand0 0x100000 0x8000000
<peterm6881> ok its erased
<peterm6881> next
<peterm6881> rest in peace
<Xogium> okay so then you run this
<Xogium> run dfu_nand
<Xogium> then you only run the second dfu-util command, the one with -a rom… and give it the correct path to the rootfs.ubi in your home dir
<peterm6881> can you give me the whole command, the file you shared is on /home/peter
<peterm6881> in
<peterm6881> wait i think i can do it, hang on
<Xogium> yeah sec
<peterm6881> its ok i got it
<Xogium> ah, awesome
<peterm6881> sudo dfu-util -R -a rom -D /home/peter/rootfs.ubi
<peterm6881> right?
<Xogium> yeah
<peterm6881> dfu-util: No DFU capable USB device available
<peterm6881> fel mode / your u-boot is definitely still active in the other window
<peterm6881> i can type stuff at =>
<peterm6881> let me try it again
<Xogium> maybe you ran out of time for run dfu_nand
<Xogium> remember its 15 seconds
<peterm6881> fuck yeah thats gonna be it
<peterm6881> lol
<peterm6881> no its determined
<peterm6881> its not that
<peterm6881> have you tested this on one of yours?
<peterm6881> can you try that first
<peterm6881> dfu-util: Invalid DFU suffix signature
<peterm6881> dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
<peterm6881> dfu-util: No DFU capable USB device available
<Xogium> yeah I did that often… when it said no dfu capable device, you still weren't back at the u-boot prompt in the other window ?
<peterm6881> wait, my bad
<peterm6881> didnt run run dfu_nand
<Xogium> the only reason I saw that happening was because my usb cable was not fully plugged in lol
<peterm6881> yeah got it, downloading now. Sorry im a dickhead, just tired
<peterm6881> i didnt rerun run dfu_nand
<peterm6881> i'll get the hang of this, dont worry
<peterm6881> state(7) = dfuMANIFEST, status(0) = No error condition is present
<peterm6881> state(2) = dfuIDLE, status(0) = No error condition is present
<peterm6881> Done!
<peterm6881> Resetting USB to switch back to runtime mode
<peterm6881> sweet
<peterm6881> umm.. have you changed the root password?
<Xogium> now the fun part, you gotta unplug that otg cable and connect our wifi dongle… and just tell me if you even see anything in dmesg
<Xogium> oh yes
<Xogium> sorry I put root
<peterm6881> lol
<Xogium> since it had no longer anything to do with navit
<peterm6881> so naughty...
<peterm6881> hehe
<peterm6881> wow, absolutely nothing happening on the usb
<Xogium> well… fuck, I guess
<peterm6881> very very conclusive
<peterm6881> now, it could be my stupid hub
<peterm6881> let me test it on Armbian on OPi0
<peterm6881> but first i need to go to the shop
<Xogium> oh, it will work
<Xogium> on armbian, it will most definitely work
<Xogium> not to mention that on opi you've got actual usb a plugs
<peterm6881> shame those OTG adapter cables didnt arrive today
<peterm6881> yeah but its the otg hub i need to test
<peterm6881> it has a switch with 3 positions, no markings
<Xogium> but like I said earlier, the fact that nothing shows up in lsusb made me thing this was going to fail spectacularly
<peterm6881> how is that possible? MangoPi created a device for which otg is not a thing?
<peterm6881> wait, dont you still have the Lichee Nano?
<peterm6881> you should be able to test it with that adapter you got
<Xogium> they are both broken
<Xogium> the lichee nano adapters wre so much crap they litterally fell apart
<peterm6881> both what?
<peterm6881> no i mean the adafruit adapter
<Xogium> didn't you say they are too big ?
<Xogium> besides lichee nano are not soldered so no uart
<peterm6881> ahh yeah the Lichee nano only has one micro usb socket right?
<Xogium> yeah that too
<peterm6881> i need to go to the shop, ill try my hub on Armbian / OPi0
<peterm6881> so if theres no usb in the kernel, how fucked are we? 100%?
<Xogium> I think the problem is the otg is configured in the wrong mode…
<Xogium> otg has 2 modes, host or peripheral
<peterm6881> hmm...
<Xogium> I think right now the otg is configured so the board considers anything connected to it as a host
<Xogium> not as a device
<Xogium> in short the mangopi itself would be the device
<Xogium> I could of course be very wrong, I don't know usb that well
<Xogium> if it isn't that then… I honestly don't know where to start debugging
<Xogium> but if usb is broken in their kernel… well
<Xogium> afk dinner/GoT
sc6502 has joined #Speedsaver
<sc6502> Hey all
<peterm6881> hey sc6502, welcome my friend :)
<peterm6881> Xogium is afk briefly
<peterm6881> just to bring you up to speed. Xogium and I have had distributor pricing for the MangoPi-R3c, and we're still working on creating a bundle and demo image
<peterm6881> but what I wanted to ask you sc6502 is having had some time to scope submitting patches, is it doable?
<sc6502> I'm working through it at the moment.
<peterm6881> because the 2 main Buildroot people pretty much blanked us when I asked about it
<sc6502> Well trying to build it myself before submitting.
<peterm6881> theres a certain amount of political animosity
<peterm6881> thats the Lichee Zero u-boot bump?
<sc6502> yes
<peterm6881> ok good. Buildroot knows they need that if they are to continue official support for the Lichee Zero, and given its the ONLY V3s based device they provide an official defconfig for, theres a lot riding on it
<peterm6881> we're just lucky it hasnt been dropped already
<peterm6881> how are things with you sc6502 ?
<sc6502> Busy as always
<peterm6881> anything you wanna ask?
<peterm6881> we should have Gerbers for Lichee Zero by April 8th
<peterm6881> just to remind you
<peterm6881> Lichee Zero Tinker I should say
<sc6502> What's the difference between the two?
<peterm6881> Hopefully the 3 dev boards should be here soon, Xogium and I should be able to turn that around in a couple of days to load the Speedsaver stuff
<peterm6881> sc6502, very very minor, instead of those castellated half pin holes, they will be full 1.277 mm pin holes.
<peterm6881> 1.27 mm
<peterm6881> also, 2 other changes
<sc6502> I built it locally :)
<sc6502> make
<sc6502> ......
<sc6502> make licheepi_zero_defconfig
<sc6502> ending in
<sc6502> INFO: hdimage(sdcard.img): adding partition 'u-boot' from 'u-boot-sunxi-with-spl.bin' ...
<sc6502> INFO: hdimage(sdcard.img): adding partition 'boot' (in MBR) from 'boot.vfat' ...
<peterm6881> uSB-C instead of micro usb, and 4 screw mount holes
<sc6502> INFO: hdimage(sdcard.img): adding partition 'rootfs' (in MBR) from 'rootfs.ext4' ...
<sc6502> INFO: hdimage(sdcard.img): adding partition '[MBR]' ...
<sc6502> INFO: hdimage(sdcard.img): writing MBR
<peterm6881> sweet
<sc6502> Ah, so no changes detectable from the s/w then.
<peterm6881> nice work, I hadnt tested it myself but obviously Xogium would have
<peterm6881> no
<peterm6881> I told you about the MangoPi-R3c Tinker?
<sc6502> Yes - I've seen some emails
<sc6502> Also been on the buildroot mailing list for a few days to follow what the process seems to be in real life.
<peterm6881> ooo
<peterm6881> i sent you a photo in Signal
<sc6502> So I see :) thanks
<peterm6881> the screw terminals only look slightly wonky because I havent soldered them yet and they are made up of 8-ways and 2-ways
<sc6502> Oh, now I understand
<peterm6881> its just what I had lying around
<sc6502> I was wondering what the "your PI has failed" meant
<sc6502> It's I was disconnected
<peterm6881> basically the Tinker is a carrier board, with the main board pre-soldered on it
<peterm6881> sc6502, are you getting much activity from the mailing list?
<sc6502> 30 to 40 messages a day
<peterm6881> Xogium, thought it could be a bit, spammy...
<peterm6881> hmm...lol
<peterm6881> ok its busy, in a way thats good
<peterm6881> do you see why we need to keep support for the V3s alive?
<sc6502> Most of it seems just patch oriented, and very businesslike.
<sc6502> Certainly no idle rambling flames or anything
<peterm6881> the V3s is the priority, because we know its gonna work for Speedsaver
<sc6502> Yes
<peterm6881> while at the same time making an excellent Tinker board
<peterm6881> eMMC support
<peterm6881> killer
<peterm6881> plus RPi's are subject to commodity price fixing at the minute
<peterm6881> bots are buying them up as soon as they appear, hence they are unavailable, long lead times and very expensive
<peterm6881> so we need to get our colective asses in this market
<peterm6881> collective
<peterm6881> sc6502, are you getting any sense of turnaround time for patches?
<peterm6881> just so we know if we're on the iggy list or not
<sc6502> OK, I'll push ahead and get it submitted soon.
<sc6502> Gotta go now,
<peterm6881> i think Xogium is having a GoT moment lol
<peterm6881> Keep us posted in here, ok
<peterm6881> ok I subscribed to the Buildroot mailing list
<Xogium> oh boy you're gonna get spammed
<Xogium> its mostly full of patches
<peterm6881> hehe
<peterm6881> i set up buildrootmailinglist@gmail.com
<peterm6881> plus i selected daily digest mode
<peterm6881> so they will come batched
<peterm6881> i wanna see if they're gonna play ball with us
<peterm6881> or if we're collectively on the iggy list
<peterm6881> Orange Pi Zero didnt enable OTG, I think i read that somewhere
<peterm6881> so I still dont know if my hub works
<peterm6881> no power on the OPi0
<Xogium> doesn't need to be otg… orange pi has usb a plugs
<Xogium> but either way I think the usb port on the mangopi don't behave as they should
<Xogium> at least the otg one
<Xogium> lsusb should list at a minimum ohci usb controller, maybe ehci, yet there's nothing
<peterm6881> I read this in a forum on orangepi.org: Orange pi zero with armbian 5.38 stable, kernel 4.14.18-sunxi, and the expansion board with two usbs. All usbs working except the OTG, that I want to use as a regular usb.
<peterm6881> To do so, I've shorted Q10 to have power in the OTG
<peterm6881> i just wanted to test my hub
<peterm6881> but cant be done on the OPi0
<Xogium> well… damn. I was about to suggest you could try the usb otg on odyssey… then rememberd its on usb c
<Xogium> so much for that idea
<peterm6881> ha, its on the table in front of me, i had the same idea earlier, for 2 seconds
<peterm6881> ;)
<Xogium> ^^
<Xogium> I really like usb c
<Xogium> I wish my computer had more than one usb c port
<peterm6881> hopefully the otg adapter cables will arrive tomorrow, but it appears usb is not enabled, as you say
<peterm6881> sc6502 got your patch to build
<Xogium> great :) I knew he would
<peterm6881> so he's gonna submit it soon
<peterm6881> yeah I knew you knew he would :)
<Xogium> yeah… unless someone else does it before
<peterm6881> well, is that likely?
<Xogium> no idea
<Xogium> but some other guy ran into the problem you initially ran into and was asked to ultimately bump u-boot
<Xogium> I don't know if he'll do it or not
<peterm6881> think he's capable?
<Xogium> no clue, first time I saw him in buildroot channel
<peterm6881> by the way, br uses bugzilla, did you submit your bugs formally that way?
<Xogium> nah, because I was already in their irc channel so I figured that reporting there would be a good place also
<Xogium> either way, if they had really wanted me to just report and not fix, they could have said so
<peterm6881> its unlikely they would thank you for bypassing their established bug tracking mechanism
<Xogium> no, but they could have said so, what would it cost them to simply tell me, could you report this on our bug tracker ?
<peterm6881> true, were you not aware of it?
<Xogium> I wasn't, back then
<Xogium> gonna try and get some sleep for now, catch you tomorrow
<peterm6881> meh, to be fair, I seem to recall they are super easy to piss off, but not as bad as that c programmers irc channel
<peterm6881> poke the gods at your peril
<peterm6881> pleasant dreams Xogium
<peterm6881> A COBOL programmer's husband asks, "Honey can you go to the store and
<peterm6881> minutes she returns and flops 12 bags of milk on the table. He looks
<peterm6881> get some milk. And if they have eggs, get a dozen." After twenty
<peterm6881> at her curiously, "Honey, why did you do that?" She responds flatly,
<peterm6881> "They had eggs."
<peterm6881> I just tried to buy the 9 MangoPi-R3c's in stock on Mouser
<peterm6881> Maximum Quantity: Purchases are limited to a maximum of 1 per customer every 30 days
<peterm6881> literally, unreal
<peterm6881> Xogium, I think maybe we should try the SDIO WiFi + BT module
peterm6881 has quit [Quit: Leaving]