rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 256 seconds]
ChriChri_ is now known as ChriChri
camus1 has joined #linux-sunxi
kaspter has quit [Ping timeout: 246 seconds]
camus1 is now known as kaspter
Mangy_Dog has quit [Ping timeout: 246 seconds]
lvrp16 has quit [Ping timeout: 240 seconds]
lvrp16 has joined #linux-sunxi
ChriChri_ has joined #linux-sunxi
ChriChri_ is now known as ChriChri
ChriChri has quit [Ping timeout: 256 seconds]
cnxsoft has joined #linux-sunxi
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-sunxi
kaspter has quit [Ping timeout: 260 seconds]
kaspter has joined #linux-sunxi
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
[7] has quit [Ping timeout: 244 seconds]
TheSeven has joined #linux-sunxi
kaspter has quit [Remote host closed the connection]
kaspter has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-sunxi
kaspter has quit [Ping timeout: 256 seconds]
kaspter has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 260 seconds]
daregap has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
kaspter has quit [Remote host closed the connection]
kaspter has joined #linux-sunxi
kaspter has quit [Ping timeout: 260 seconds]
kaspter has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
cmeerw has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
reinforce has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
gediz0x539 has joined #linux-sunxi
tmlind has joined #linux-sunxi
florian has joined #linux-sunxi
lurchi_ is now known as lurchi__
suprothunderbolt has quit [Ping timeout: 256 seconds]
lurchi__ is now known as lurchi_
lurchi_ is now known as lurchi__
Mangy_Dog has joined #linux-sunxi
<jo0nas> Jin^eLD: as I understand it, "LiveSuite" is a tool using the FEL protocol - if that is correct then you can find more info at https://linux-sunxi.org/FEL/USBBoot
<Jin^eLD> jo0nas: yes, but there is more to it, the fel protocol can just load stuff to memory addresses and that works fine, but the .img files that are being distributed seem to have a specific format
<Jin^eLD> I think they contain some .fex stuff
<Jin^eLD> my understanding is that this "LiveSuite" tool parses the .img accordingly
<Jin^eLD> but then again... if it can write the image to nand, then is should be possible with the FEL tools as well?
<KotCzarny> if someone implemented it
<Jin^eLD> or would it just boot the image from memory?
<Jin^eLD> right now I am trying to activate nand support in mainline so that I can at least once boot from an sdcard that has nand support and dump u-boot to the internal nand, I don't really need more...
<KotCzarny> but i think recently there was some work on fastboot flashing
<KotCzarny> which is similar, but less proprietary
<Jin^eLD> sounds like its very emmc oriented
<Jin^eLD> I assume nobody bothered with the old nan crap any longer one an emmc versin came out
<Jin^eLD> *nand crap
<KotCzarny> that's because nand crap was very proprietary/convoluted
<Jin^eLD> dont get me wrong, I am not defending nand crap in any way, I am just unlucky enough to have such a device :)
<mru> nand is always crap
<Jin^eLD> fun fact back in the day: when I got this board I was tolt it has emmc and that we should put an ext4 on it, which we did, I guess noone bothered rechecking ;) then a month later ext4 dissolved due to fs errrs and what not
<Jin^eLD> *told
<KotCzarny> :)
<Jin^eLD> of course now its clear why that happened :)
<mru> huh?
<mru> you can't put ext4 on raw nand
<mru> not just shouldn't, you can't
<KotCzarny> maybe those were those tsd versions
<Jin^eLD> isnt that sunxi nand "special" in the sense that you get a /dev/nand which pretends to be a disk or something
<Jin^eLD> normally you indeed should not be able to, but somehow we did that without even noticing lol
<mru> I'd expect emmc to be on /dev/mmcblkN
<Jin^eLD> yep
<mru> and if it wasn't, I'd find out why before proceeding
<Jin^eLD> I think it was a combo of lack of experience and blindly following some instruction howtos
<mru> well, you learned a valuable lesson there
<mru> never trust the howto
<Jin^eLD> indeed :)
<mru> step-by-step guides can be helpful to get started with something complex
<mru> but it's important to understand what each step does and why
<mru> unfortunately many of them are written by people who didn't take the time to do that
<Jin^eLD> heh... and read by people who dont have a clue - nice combo :>
<KotCzarny> writing docs is for interns
<Jin^eLD> well, you can call yourself lucky if there are any docs at all...
<Jin^eLD> my most common experience was "here is something xyz did, but he's no longer with us and we have no idea how it works" :>
<mru> they're basically written by this guy: https://xkcd.com/763/
<Jin^eLD> totally:)))
<Jin^eLD> hmm... I activated sunxi nand in 5.4.18 and I see nothing at all when booting from the sdcard, its not recognizing the internal nand which I was hoping for in order to dump u-boot there
<Jin^eLD> I guess I need to go back to 3.x?
<Jin^eLD> or is there some special magic that I am missing?
<mru> u-boot on raw nand, are you mad?
<Jin^eLD> :)
<Jin^eLD> isn't that the default setup of the cubietruck nand version?
<mru> maybe
<mru> if so, they're mad
<mru> nand flash is _unreliable_
<KotCzarny> jin: have you read about nand on the wiki?
<KotCzarny> legacy and mainline nand drivers are incompatible
<Jin^eLD> KotCzarny: well, I understood the wiki in the sense of "dont mix them"?
<mru> you need a management layer on top to get reliable storage
<mru> like tcp for ip
<KotCzarny> more like, bits come in different flavors
<KotCzarny> and come out differently
<Jin^eLD> it sounded like mainline nand is not advised but could work or something
<mru> they probably use different checksum methods
<Jin^eLD> mru: I am not sure u-boot can live on top of, dunno, ubifs or whatever?
<mru> it can't
<KotCzarny> but i think for boot process to read uboot from nand it needs to be written with legacy algo
<Jin^eLD> oh
<mru> if you insist on using raw nand, you should have a small spi nor flash for the boot loader
<Jin^eLD> ok I should go back to 3.x then
<KotCzarny> would be nice for someone to confirm/deny that
<mru> the boot rom uses a third method
<KotCzarny> but i also think you can simply write mainline uboot and boot whatever you like
<mru> there are ways of coaxing it into working
<Jin^eLD> mru: my plan is to use a sata SSD (afaik I can't boot the cubietruck from it directly?) and I'd very much like to get rid of the sdcard, thats the reason of my uboot in nand quest...
<mru> it can be done
<mru> you need to write u-boot in the format the boot rom expects
<mru> it's a common problem on many socs, not just sunxi
<Jin^eLD> well, i know it has been setup like that when I got the board years ago, so I only need to reproduce it somehow and ideally dump a newer u-boot in there
<plaes> Jin^eLD: use SPI
<mru> is there an spi nor flash on the board?
<Jin^eLD> I dont think so
<mru> cheapskates
<plaes> we actually rolled out ~10+ devices with u-boot on NAND and which then did network boot.. but they failed quite often :(
<plaes> and then we just used sd-card
<Jin^eLD> Storage solution NAND+MicroSD or TSD+ MicroSD or 2*MicroSD
<Jin^eLD> thatss all it says for cubietruck 3, and I got the NAND one unfortunately
<Jin^eLD> plaes: well, this one will be just reusing old hw for a private project
<Jin^eLD> but if I am wasting time then perhaps I should really just let u-boot live on the sdcard and be done with it
<mru> unless you need the sd card slot for something else, that's what I'd recommend
<KotCzarny> if it's a private project, you should really play with it
<KotCzarny> you will learn a bit about allwinner boot process
<mru> but there's a slight danger of going mad
<Jin^eLD> lol
<mru> if you're already mad, you should be safe
<mru> do you happen to be friends with any hares?
<KotCzarny> if you have more than one sbc at home you are already mad
<Jin^eLD> well, I can't say I am all too interested into understanding every bit of the allwinder boot stuff, I am only adding "just another board" to a klipper 3d printing linux distro that I am hacking
<mru> KotCzarny: what if you have more than one boxful?
<Jin^eLD> lol
<KotCzarny> mad^box
<DuClare_> Well, I have a bunch of sbcs in my home office. Work made me mad then, I s'pose!
<DuClare_> Oh well, they do have parts on daughterboards so not true sbcs
<Jin^eLD> yeah.. I dont think I ever bought one, got all of them due to work
<Jin^eLD> and I usually try to send the not usable/slow ones back after a job :>
macc24 has quit [Ping timeout: 256 seconds]
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
rsglobal has joined #linux-sunxi
romanstratiienko has quit [Ping timeout: 240 seconds]
macc24 has joined #linux-sunxi
daregap has quit [Quit: daregap]
Naka has joined #linux-sunxi
Nakaori has quit [Remote host closed the connection]
JohnDoe_71Rus has quit [Ping timeout: 240 seconds]
JohnDoe_71Rus has joined #linux-sunxi
diego71_ has quit [Ping timeout: 256 seconds]
diego71 has joined #linux-sunxi
embed-3d_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
embed-3d has joined #linux-sunxi
electrostrong has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
protoCall7 has joined #linux-sunxi
<corecode> i'm trying to find a linux image for the lichee pi nano
<fALSO> maybe here? http://nano.lichee.pro/
<corecode> yay
<corecode> thanks
<fALSO> it was the first hit on google :-P
<corecode> not here :/
<jo0nas> then maybe try https://duckduckgo.com/ next time
<corecode> maybe!
<KotCzarny> how about https://licheepizero.us/ ?
<KotCzarny> at least its in comprehensible language
reinforce has quit [Quit: Leaving.]
<corecode> that's the zero, not the nano
<KotCzarny> i would assume difference is minimal
<KotCzarny> same soc, similar pins
<corecode> same soc?
<corecode> the zero uses the v3s
<corecode> has ethernet etc
<KotCzarny> hmm
<KotCzarny> f1c100s on nano
<KotCzarny> interesting
<KotCzarny> i thought they use the same soc
<Mangy_Dog> https://cdn.discordapp.com/attachments/392833351238811650/737685266806079548/IMG_20200728_155739.jpg for everyone complaining about lack of defuser.... (not glued in)
cnxsoft1 has quit [Quit: cnxsoft1]
tnovotny has joined #linux-sunxi
protoCall7 has quit [Quit: protoCall7]
<Jin^eLD> hmm, I see "usb0-vbus: disabling", same for usb1 and usb2 and the usb devices that I plug into the cubietruck appear not to be powered
<Jin^eLD> what could be the reason for that?
<Jin^eLD> its also saying its disabling vcc3v0 and vcc5v0
dev1990 has quit [Quit: Konversation terminated!]
tllim has joined #linux-sunxi
<Jin^eLD> usb is enabled in the kernel of course
dev1990 has joined #linux-sunxi
<jo0nas> Jin^eLD: wild guess: you need to do "usb start"
<Jin^eLD> usb start? whats that? and what does it do?
kaspter has quit [Ping timeout: 260 seconds]
camus1 has joined #linux-sunxi
<Jin^eLD> I dont think I ever used it on any other hardware, is that something sunxi specific?
camus1 is now known as kaspter
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
<Jin^eLD> I think I might be missing some power driver modules in the kernel config, lets see
kaspter has quit [Remote host closed the connection]
kaspter has joined #linux-sunxi
camus1 has joined #linux-sunxi
kaspter has quit [Ping timeout: 256 seconds]
camus1 is now known as kaspter
florian has quit [Quit: Leaving]
tnovotny has quit [Quit: Leaving]
<jo0nas> Jin^eLD: See "Common USB Commands" at https://gitlab.denx.de/u-boot/u-boot/-/blob/master/doc/README.usb
<Jin^eLD> jo0nas: oooh you were referring to u-boot, sorry
<Jin^eLD> I was complaining about userspace
<jo0nas> fair enough - I was unaware
<Jin^eLD> mhhh I need to get a better psu
<Jin^eLD> if I hook up a SATA drive to the cubietruck now
<Jin^eLD> ha! these kernel setings fixed usb for me https://github.com/linux-sunxi/meta-sunxi/issues/275#issuecomment-581606497
<Jin^eLD> that damn cubie port is built in a way that only the supplied cable fits it, if it was just a tiny bit higher any sata cable would do
<Jin^eLD> nothing a file could not fix :>
<Jin^eLD> unfortunately fel can't jump to sata directly, so u-boot still has to be either on the sdcard or in nand
<mru> how is the sata connector different from a normal one?
<Jin^eLD> the cubietruck one is totally flat on the bottom, i.e. the side that gets into the slot continues up to the cable without having a step in there
<Jin^eLD> because the connector on the cubietruck sits deeper on the board
<Jin^eLD> so the board itself would be in the way
<Jin^eLD> regular sata cables have the thinner part that goes in, but then they have a step on top and on the bottom so that the plug itself is thicker
<mru> is the connector they used meant to be mounted right at the card edge?
<mru> or where the hell do you get a non-standard sata connector?
<Jin^eLD> its a cubie connector
<Jin^eLD> you see that step there, right?
<Jin^eLD> facing up in the photo is its botto part
<Jin^eLD> so there is virtually no "step", it continues in the same plane
<Jin^eLD> the sata port on the board is on the top right in the photo, but not at the edge of the pcb
<mru> right, but if it were at the edge, it would be fine?
<Jin^eLD> there are those two tiny white power slots for SATA and further up next to it the sata port itsef
<Jin^eLD> yes
<Jin^eLD> so the sata port itself is standard if thats what you were asking
<Jin^eLD> but a standard cable won't fit because the port is not on the edge of the pcb
<mru> so the connector on the pcb is (likely) a standard type that they've mounted incorrectly
<Jin^eLD> right
<Jin^eLD> I have no idea why they decided not to mount it on the edge so that they even had to come up with a special cable for it
<mru> unsurprising
<Jin^eLD> sounds like allwinner is not enjoying a good repurtation :>
<KotCzarny> dont confuse board vendor with soc maker
<Jin^eLD> ah
<Jin^eLD> right
iyzsong has quit [Quit: ZNC 1.7.5 - https://znc.in]
iyzsong has joined #linux-sunxi
tl_lim has joined #linux-sunxi
<Jin^eLD> I think the wiki is a bit outdated? it says you need an initramfs to boot from SATA, but afaik recent u-boots have native sata support, actually I can ext4ls my drive from uboot
<mru> when was a wiki ever not out of date?
<Jin^eLD> :)
tllim has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-sunxi
iyzsong has quit [Ping timeout: 256 seconds]
iyzsong has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.1, revision: 5.0.1+git-7433-0df9f22f2, build type: debug, sources date: 20160102, built on: 2019-12-08 19:19:20 UTC 5.0.1+git-7433-0df9f22f2 http://www.kvirc.net/]
DonkeyHotei is now known as sn9
sn9 is now known as DonkeyHotei
[Promenade] has quit [Quit: Do not stare into the beam.]
netlynx has quit [Quit: Ex-Chat]
[AceVentura] has joined #linux-sunxi
davidebeatrici has quit [Ping timeout: 244 seconds]
JuniorJPDJ has quit [Ping timeout: 244 seconds]
Kwiboo- has quit [Quit: .]
Kwiboo has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
<hexdump0815> Ashleee: i just ran at your tries to get the dram timing working on your tanix box ... i'm the one jernej: was remote debugging my dram timing problems with
davidebeatrici has joined #linux-sunxi
<hexdump0815> Ashleee: we got to the point where it was failing dozens of times but always once after a few minutes finally it worked :)
JuniorJPDJ has joined #linux-sunxi
<hexdump0815> Ashleee: in the end i was using a hybrid u-boot using the libdram blob and mainline u-boot which was able to initialize the memory properly - i have tried to document it here: https://github.com/hexdump0815/u-boot-misc/blob/master/readme.h6-libdram
<hexdump0815> Ashleee: maybe trying to go that route might help you to get it booting this way with mainline linux and debug from there what this u-boot was setting as memory timing ...
<Ashleee> thanks hexdump0815 :)
<Ashleee> I mean I still have android there so I could try dumping via /dev/mem the whole memory region
<Ashleee> to see if there's some control reg bit that is set in the allwinner code but not upstream
<hexdump0815> Ashleee: it would be cool if you could get this working somehow as h6 tv boxes where mainline u-boot cannot initialize the memory propery seem to be very common
<Ashleee> it is funny, I have 4 of them and each is different ...
<Ashleee> be it with memory and even eMMC, one has funny eMMC that tries to reset but fails ... so I am using SD card instead
<Ashleee> then there's the one with memory
<hexdump0815> Ashleee: that is no surprise at all with tv boxes - it is also very normal that you get different hardware even if you buy multiple boxes at the same seller at once :)
<Ashleee> :)
<Ashleee> I bought 1 and then 3 at once and yeah, each is different :D
<Ashleee> but for the next time I am switching to something better, however leaving Allwinner as they do not have anything higher performance... going for Orange Pi 4 with rk3399
<Ashleee> but yeah I want to get the Tanix box working as well :)
iyzsong has quit [Ping timeout: 256 seconds]
<Ashleee> if only there was pause to press key in stock allwinner uboot lol
<Ashleee> to allow dumping of anything
<Ashleee> oh checking the thread I see you had the eMMC issue as well hexdump0815 :D
jstein has joined #linux-sunxi
[AceVentura] has quit [Quit: hmmmm]
<hexdump0815> Ashleee: you might give this one a try for the emmc - that was the fix for me: https://github.com/hexdump0815/linux-mainline-and-mali-allwinner-h3-h6-kernel/blob/master/misc.ah6/emmc-fix.patch ... its originally from icenovy or megi if i remember correctly
<Ashleee> yup just found it on pastebin :) thanks
<Ashleee> if that works I can free up the 64GB Samsung SD card I just bought haha
<Ashleee> but tomorrow, need to go to sleep as well :) thanks for all, will poke all the boards this week again
<Ashleee> gnight
<hexdump0815> Ashlee: good night - looking forward to hear updates regarding progress on the memory initialilation :)
jstein has quit [Quit: quit]
cmeerw has quit [Ping timeout: 246 seconds]
hexdump0815 has quit [Remote host closed the connection]
lkcl__ has joined #linux-sunxi
lkcl_ has quit [Ping timeout: 264 seconds]
<megi> hmm, is there some way when I have gpio in "irq" mode, and switch it to output mode, to switch it back to irq mode?
<megi> looks like there's not
<anarsoul|2> but why?
<megi> maybe sunxi pinctrl driver can be changed so that toggling between intput/output direction would set function mux back to int mode?
<megi> when changing to input
<megi> I'm dealing with multiplexed input that I want to use as output sometimes
<megi> but also in int mode :)
<megi> but switching to output and back works
<megi> but the it's no longer configured as irq function but as input in the soc
<megi> I guess I'll just poll, as this looks to be a losing battle looking at the code
<megi> somehow such gpio should be locked for IRQ function only, but I can still change it to output and use it as such :)
MangyDog has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 256 seconds]
MangyDog has quit [Remote host closed the connection]
Mangy_Dog has joined #linux-sunxi
lurchi__ is now known as lurchi_
ldevulder has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 265 seconds]
gediz539 has joined #linux-sunxi
iyzsong has joined #linux-sunxi
gediz0x539 has quit [Ping timeout: 264 seconds]