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*
gaston_ has quit [Quit: Konversation terminated!]
night199uk has quit [Ping timeout: 258 seconds]
night199uk has joined #linux-sunxi
jonasbits has quit [Quit: No Ping reply in 180 seconds.]
jonasbits has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
nexgen has joined #linux-sunxi
diego_r has joined #linux-sunxi
wwilly has quit [Ping timeout: 245 seconds]
diego_r has quit [Ping timeout: 244 seconds]
TheSeven has quit [Ping timeout: 264 seconds]
TheSeven has joined #linux-sunxi
wwilly has joined #linux-sunxi
forkbomb has quit [Remote host closed the connection]
forkbomb has joined #linux-sunxi
tllim has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 246 seconds]
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 244 seconds]
selfbg has joined #linux-sunxi
xcko_ has quit [Ping timeout: 248 seconds]
xcko_ has joined #linux-sunxi
tl_lim has quit [Read error: Connection reset by peer]
xqdzn has joined #linux-sunxi
reinforce has joined #linux-sunxi
TheSeven has quit [Ping timeout: 264 seconds]
reinforce has quit [Remote host closed the connection]
diego_r has joined #linux-sunxi
TheSeven has joined #linux-sunxi
msevo has joined #linux-sunxi
reinforce has joined #linux-sunxi
SopaXorzTaker has joined #linux-sunxi
diego_r has quit [Ping timeout: 246 seconds]
SopaXorzTaker has quit [Remote host closed the connection]
ldevulder has joined #linux-sunxi
tllim has joined #linux-sunxi
tllim has quit [Read error: Connection reset by peer]
lurchi_ is now known as lurchi__
ldevulder has quit [Quit: Leaving]
ldevulder has joined #linux-sunxi
rexxster has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
nexgen has quit [Remote host closed the connection]
rexxster has quit [Remote host closed the connection]
nexgen has joined #linux-sunxi
SopaXorzTaker has joined #linux-sunxi
kilobyte_ch has quit [Ping timeout: 248 seconds]
tnovotny has joined #linux-sunxi
kilobyte_ch has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
gsz has joined #linux-sunxi
SopaXorzTaker has quit [Remote host closed the connection]
selfbg has quit [Ping timeout: 244 seconds]
AneoX has joined #linux-sunxi
quadjfet has quit [Quit: Leaving]
SopaXorzTaker has joined #linux-sunxi
yekka has joined #linux-sunxi
selfbg has joined #linux-sunxi
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-sunxi
<yekka> Hi everyone. Can someone help me how to add "iomem=relaxed" boot argument to uboot?
<KotCzarny> this might have a few hints for you
<yekka> I'm trying to use GPIO on my BPi M1. OS is Debian 9. Kernel is 4.19.0-0. I've done what stated in http://wiki.lemaker.org/BananaPro/Pi:GPIO_library. but upon running "gpio readall" I get an error of "wiringPiSetup: mmap (GPIO) failed: Operation not permitted". on investigating the problem, I saw that passing "iomem=relaxed" boot argument to uboot might help (https://bugs.centos.org/view.php?id=13734). I read "https://linux-sunxi.org/Mainline_U-Boot", but
<yekka> couldn't find a hint.
<KotCzarny> did you miss the part of setting 'bootargs' ?
<yekka> there is no boot.cmd on my boot partition. only boot.scr and changing any bit of it will result in a failed boot.
<KotCzarny> boot.scr is just boot.cmd with uboot header on top
<KotCzarny> as in checksum etc
<KotCzarny> so just copy boot.scr to boot.cmd, remove few binary chars at start, edit, then add header with mkimage
<KotCzarny> mkimage -C none -A arm -T script -d boot.cmd boot.scr
<KotCzarny> is the command
<yekka> Thank you KotCzarny.
<KotCzarny> i've added that info to the page just now
jelly has quit [Read error: Connection reset by peer]
<KotCzarny> also, this information is further down the page in 'installing uboot' section. which i admit isnt the right place
hpagseddy[m] has joined #linux-sunxi
<KotCzarny> unless it was, before addition of other booting methods
Danct12 has joined #linux-sunxi
jelly-home has joined #linux-sunxi
<yekka> Thats great KotCzarny. Thanks for updating wiki
dddddd has joined #linux-sunxi
<libv> as i said several times before
<libv> the changelog and list of supported devices should not live there, the first should be a separate page, the other should be collapsible
<libv> it makes people unable to see the real info on that page
<fALSO> Yo good morning
<libv> but this is what happens when people use the wiki as a glorified changelog.
<KotCzarny> k
<fALSO> Just got a non sunxi board
<KotCzarny> im gonna butcher uboot's page now
<fALSO> rockpro64
<fALSO> gonna play with it today
<libv> KotCzarny: thanks, but...
<libv> look at what happened to the mainline page
<KotCzarny> yeah, mainline uboot's page
<KotCzarny> that is
<libv> err, mainline kernel page... the changelog was moved over, and then it was continued on the main page regardless
<KotCzarny> we will prevail!
<KotCzarny> just watch me
xqdzn has quit [Remote host closed the connection]
craigo has joined #linux-sunxi
<KotCzarny> done.
<KotCzarny> how do you like it?
<libv> KotCzarny: where did the devices list go? someone will complain, sadly
<KotCzarny> see 'see also'
<libv> ah, right
<KotCzarny> its also more readable that way
<KotCzarny> more concise
<libv> yeah, but it might help to mention that as a link in the initial blurp
<libv> indeed
<libv> but as a user errs into that page (having missed his device page), he will wonder whether his device is at all supported
<libv> not showing the full list is good
<libv> but it might help to link to it
<KotCzarny> feel free to add some descriptive text
<libv> right
<libv> willco
yekka has quit [Ping timeout: 258 seconds]
megi has joined #linux-sunxi
yekka has joined #linux-sunxi
jelly-home is now known as jelly
<yekka> @KotCzarny I did as you told and problem is fixed thanks.
<KotCzarny> good
antoine89 has joined #linux-sunxi
<yekka> can add a hint to wiki about initial boot.cmd too? some, like me may not know that they are essentially the same (except the first line) and since there is no boot.cmd example file around.
<KotCzarny> it's very distro dependant
<KotCzarny> some might not even use boot.* and just set uboot env directly
<yekka> ok. thanks for the fast support! now those damn led's can lit up ;D
<antoine89> KotCzarny what is the best way to modify my SID? is it possible to burn the SID fuses, and will they all then show 1, meaning that the information is modified? or is it possible to supply 2.5V to the GND pin to enable writing?
<KotCzarny> um
<KotCzarny> first of all, i hope you have plenty of boards to test things
<KotCzarny> :)
<antoine89> , i'll get more only if it works
<KotCzarny> how would you know if you have to experiment?
<antoine89> i have 1 that i am willing to spare
<KotCzarny> only few people (1?) experimented with writing sid
<antoine89> could you point me to that person?
<KotCzarny> hmm, cant remember the nick
nexgen has quit [Quit: Leaving]
<KotCzarny> you might try searching channel logs
<antoine89> ok, thanks very much
<KotCzarny> also, sid is already burned
<KotCzarny> so you cant modify it
<KotCzarny> although no one experimented in overwriting remaining 0s
<antoine89> not exactly i think. because if you supply proper voltage, the efuses can be modified because the current will jump the burned gap of the fuses
<KotCzarny> anyway, that's uncharted territory, feel free to report any success/failure
<antoine89> sure. it will take a while though
<antoine89> if anyone's interested i'll supply 2 boards and pay 200 usd in case of success
tuxillo has quit [Ping timeout: 246 seconds]
gaston_ has joined #linux-sunxi
yekka has quit [Quit: Leaving]
powerpan has joined #linux-sunxi
powerpan has quit [Remote host closed the connection]
ninolein has joined #linux-sunxi
msevo has quit [Quit: Leaving]
xqdzn has joined #linux-sunxi
antoine89 has quit [Ping timeout: 248 seconds]
selfbg has quit [Quit: selfbg]
tuxillo has joined #linux-sunxi
forkbomb has quit [Quit: In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move.]
forkbomb has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Danct12_ has quit [Quit: Quitting - Huong Tram IRC Client 1.22]
Danct12_ has joined #linux-sunxi
xqdzn has quit [Ping timeout: 260 seconds]
antoine89 has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
DrFrankensteinUK has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
DrFrankensteinUK has joined #linux-sunxi
sunilmohan has quit [Ping timeout: 272 seconds]
xqdzn has joined #linux-sunxi
aalm has joined #linux-sunxi
<xqdzn> Check.
sunilmohan has joined #linux-sunxi
wwilly has quit [Ping timeout: 272 seconds]
lynxis has quit [Ping timeout: 250 seconds]
lynxis has joined #linux-sunxi
Mangy_Dog has quit [Remote host closed the connection]
Mangy_Dog has joined #linux-sunxi
xqdzn67 has joined #linux-sunxi
xqdzn has quit []
xqdzn67 is now known as xqdzn
JohnDoe4 has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 246 seconds]
psychedup74 has joined #linux-sunxi
wwilly has joined #linux-sunxi
Loewe has joined #linux-sunxi
Loewe has quit [Quit: Nettalk6 - www.ntalk.de]
vagrantc has joined #linux-sunxi
sunshavi has quit [Read error: Connection reset by peer]
sunshavi has joined #linux-sunxi
quadjfet has joined #linux-sunxi
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
gsz has quit [Quit: Konversation terminated!]
matthias_bgg has quit [Ping timeout: 258 seconds]
reinforce has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
psychedup74 has quit [Quit: leaving]
<ElBarto> anarsoul: MoeIcenowy: do you know if the min/max freq on pll_mipi applied to both mode ? or only when in mipi mode ?
<anarsoul> sorry, no idea
<ElBarto> ok thanks :)
<ElBarto> I'll do some test
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 245 seconds]
rexxster has joined #linux-sunxi
<xqdzn> Guys,
<xqdzn> I tried to download vanilla linux 5.2 source, patch it with some file,
<xqdzn> make -j5 ARCH=arm CROSS_COMPILE=arm-none-eabi- bananapi_m2_zero_defconfig
<xqdzn> then
<xqdzn> make -j5 ARCH=arm CROSS_COMPILE=arm-none-eabi- zImage
<xqdzn> compilation process said nothing wrong: OBJCOPY arch/arm/boot/zImage Kernel: arch/arm/boot/zImage is ready
<xqdzn> but OBJCOPY arch/arm/boot/zImage Kernel: arch/arm/boot/zImage is ready
<xqdzn> did i miss something?
<KotCzarny> if you really want to redo things, make clean ?
<KotCzarny> or make mrproper (but backup config beforehand)
<KotCzarny> unless that zImage doesnt work and you need help on that?
<xqdzn> make -j5 ARCH=arm CROSS_COMPILE=arm-none-eabi- bananapi_m2_zero_defconfig << this do nothing but generating .config file, is this correct?
<KotCzarny> yes
<xqdzn> aight, i'll try one more time
<xqdzn> make clean doesn clean diff that i patched, right?
<KotCzarny> shouldnt
<xqdzn> while compiling, let me validate what I learnt so far ^_^
<xqdzn> Linux is consists of three big part: kernel, module, and device tree << Is this right?
<KotCzarny> you've missed the bootloader
<xqdzn> Oh yeah, sure.
<KotCzarny> which sometimes initializes devices
<KotCzarny> which is important bit
<xqdzn> bootloader e.g. u-boot, grub, syslinux
<xqdzn> right?
<KotCzarny> yup
<xqdzn> that means we need at least that 3 parts to get linux running.
<KotCzarny> and uart is your biggest friend
<xqdzn> UART = Common tools that we use to debug / retreiving serial output?
<KotCzarny> yes
<KotCzarny> basically serial console
<KotCzarny> which also doubles as input too
<xqdzn> I see, that's why they leave UART pins exposed in most embedded devices, so they could debug it, right?
<KotCzarny> yup
lurchi__ is now known as lurchi_
<KotCzarny> and in some cases they even embed uart2usb on the board itself
<KotCzarny> as is in the case of espressobin
<xqdzn> so all we need to do is plug usb cable?
<KotCzarny> in case of sunxi boards you need uart dongle
<KotCzarny> luckily they are cheap
<xqdzn> I have it.
<KotCzarny> good, now the question
<xqdzn> and currently using it, that's when i know u-boot stuck
<KotCzarny> pastebin the output?
<KotCzarny> 'loading linux...' ?
<xqdzn> i cant' copy, let me just upload the screenshot ^_^
<fALSO> sirs, dont know if its a crime to talk here but i just got my rockpro64
<fALSO> its hueg compared with raspberrys oranges
<KotCzarny> why you cant copy? use putty or screen as terminal app
<KotCzarny> then just copypaste to some pastebin
<KotCzarny> unless you are behind some firewall or something
<xqdzn> i did, i used to right click to copy in windows, but this time, nothing there when i ctrl+v
<KotCzarny> in putty you just select
<KotCzarny> and its already in the buffer
<KotCzarny> then shift-insert or ctrl-v
<KotCzarny> into browser
<KotCzarny> ye, classic 'starting kernel...'
<KotCzarny> :)
<xqdzn> This is the output after i switched back to previous working kernel
<KotCzarny> did you leave 'early console' in the kernel?
<xqdzn> idgi xD
<KotCzarny> anyway, kernel didnt boot, for whatever reason
<KotCzarny> :)
SopaXorzTaker has quit [Quit: Leaving]
<KotCzarny> check if you have early console enabled in kernel
<xqdzn> what i did: download linux from source, patch with 5.2.9 diff, patch with 5.2.8 diff, patch sun4i-gpadc-iio-add-H3-support.patch, config, then compile zImage
<KotCzarny> you might also start with working .config from the other kernel
<xqdzn> wait, lemme google about early console first
<xqdzn> is it okay if i manually edit .config file (for experiment purpose) ?
<KotCzarny> better not, unless you get all dependencies
<KotCzarny> which is why it's better to use make menuconfig
<xqdzn> I'm afraid i'll lose many config i dont know if i run menuconfig
<KotCzarny> backup it then
<xqdzn> the options from menuconfig is so different
<KotCzarny> learn to love it
<KotCzarny> if you press '/' it will open search function
<KotCzarny> :)
<xqdzn> currently reading search result of "CONFIG_KERNEL"
xcko_ has quit [Ping timeout: 258 seconds]
<xqdzn> make menuconfig
<xqdzn> make bananapi_m2_zero_defconfig
<xqdzn> make zImage
<KotCzarny> dont forget to supply ARCH=arm to menuconfig
<KotCzarny> :)
<KotCzarny> and pretty every make command
xcko_ has joined #linux-sunxi
<xqdzn> compiled it recklessly and still stuck at Starting Kernel...
<xqdzn> i guess i did it wrong, lemme try one more time
<KotCzarny> start with config from working kernel
<KotCzarny> so you exclude some weird option
<xqdzn> aye aye, captain!
florian has joined #linux-sunxi
<xqdzn> I guess i forgot to include ARCH=arm last time, currently compiling with earlyprintk enabled
<xqdzn> is it okay to compile it in my x86_64 PC with "make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi-" ?
<KotCzarny> yes
<xqdzn> what's with crosstool-ng then? I saw they're being closed to newb when it comes into cross-compiling.
xcko_ has quit [Ping timeout: 245 seconds]
<KotCzarny> what's a crosstool-ng? i must be a newb
xcko_ has joined #linux-sunxi
<xqdzn> does make menuconfig read .config first then load it as default parameter?
<xqdzn> tried to diff two .config file and seems like menuconfig doesnt care about previous .config file
<xqdzn> hmm.. maybe i should enable what written in working defconfig manually over menuconfig
<xqdzn> I found that some of parameters are lost (maybe replaced with another name?)
lurchi_ is now known as lurchi__
DrFrankensteinUK has quit [Read error: Connection reset by peer]
lkcl has quit [Ping timeout: 258 seconds]
Putti has quit [Ping timeout: 268 seconds]
DrFrankensteinUK has joined #linux-sunxi
JohnDoe4 has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
xqdzn has quit [Ping timeout: 260 seconds]
xqdzn has joined #linux-sunxi
<xqdzn> https://pastebin.com/aT7HFWdN bootlog with make sunxi_defconfig https://pastebin.com/Dq7Li7rs bootlog with make bananapi_m2_zero_defconfig
lkcl has joined #linux-sunxi
<KotCzarny> so it booted, not bad, yeah?
lurchi__ is now known as lurchi_
<xqdzn> sure. I'm pretty happy rn.
<xqdzn> I just need to do the right patch to get thermal sensor working
<xqdzn> i saw someone build ubuntu image and thermal sensor is working. I tried to build the dtb file, close enough but it seems like I have to make modification on the kernel as well.
<xqdzn> that's why i want to rebuild kernel in the first place.
<KotCzarny> i have thermal sensor + ths working on my boards since 4.16-rc1
<xqdzn> H3 ?
<KotCzarny> yes, and a20
<xqdzn> what did you patched?
<KotCzarny> already pasted you, that armbian thread patch
<KotCzarny> it got integrated on the way tho
<KotCzarny> i still have to update the kernels
<KotCzarny> 4.14 seems bit old
<xqdzn> already pasted you < aight, lemme search it tru irclog
<KotCzarny> just look into armbian patches
reinforce has quit [Quit: Leaving.]
<KotCzarny> if i'm not mistaken
<KotCzarny> directory is for 4.19.y tho, dont know if those work on newer
<xqdzn> I did all of the dts/dtsi paching then generate dtb file.
<KotCzarny> thermal sensor alone should be available, do you get thermal node in sys ?
<xqdzn> Nope.
<KotCzarny> in 5.something its already in mainline
<KotCzarny> but tricky to enable, few deps
<xqdzn> cat /sys/class/thermal/thermal_zone0/mode says disabled
<xqdzn> sun4i-gpadc-iio.c does this has anything to do with H3?
<KotCzarny> yup
<xqdzn> sun4i
<xqdzn> really?
<KotCzarny> names are from where it first appeared
<KotCzarny> allwinner socs are like lego
<KotCzarny> :)
<anarsoul> KotCzarny: newer patches introduces new driver
<anarsoul> thermal sensor in H3 and later isn't derived from this IP module
<KotCzarny> anarsoul, as i've mentioned, upgrading my kernels is in my todo, feel free to help him
<anarsoul> IIRC I already pointed to the patchset, didn't I?
<KotCzarny> could be, since im multitasking i might've missed/forgotten
<KotCzarny> thanks :)
<anarsoul> np
<xqdzn> Hi anarsoul, thank you so much for joining! I read that yesterday, and still wondering why i can't see it on source yet (maybe mainline guy didn't approve it yet), then i tried to google up those filenames. That's why i ended up in armbian and ballena repo.
<anarsoul> it hasn't landed yet
<anarsoul> so you'll have to apply it to your tree
<xqdzn> which one?
<xqdzn> all of 18 series of diff ?
<anarsoul> whole series
<anarsoul> and you'll have to modify your dts since Yangtao didn't provide dts changes
<xqdzn> dont worry about dts, i modified mine
<xqdzn> that's when i know i should recompile my kernel because i think i already did best for dtb
<xqdzn> xD
lurchi_ is now known as lurchi__
<xqdzn> https://patchwork.kernel.org/series/158107/mbox/ is this the correct patch file?
<xqdzn> because i can't see drivers/thermal/sun8i_thermal.c or another related file in my patched source, even after compiling zImage
<libv> meh, sprites need to live below 0x20000000
florian has quit [Ping timeout: 250 seconds]
<xqdzn> martinayotte thank you!
lurchi__ is now known as lurchi_
<xqdzn> [root@p2z ~]# cat /sys/class/thermal/thermal_zone0/modedisabled
<xqdzn> lel
<libv> heh, bad cma assignment
<xqdzn> idgi :|
<xqdzn> cost management assignment?
<xqdzn> tried to google it
<anarsoul> xqdzn: contiguous memory allocator
antoine89 has quit [Ping timeout: 272 seconds]
<xqdzn> http://pasted.co/9b959658 maybe i did it wrong?
<anarsoul> I'd suggest using 'git am' since it'll import this patch as corresponding commits
<anarsoul> you probably did your dts wrong
<xqdzn> for dts, i write it manually xD
<xqdzn> git am ../v5-01-18-thermal-sun8i-add-thermal-driver-for-h6.diff
<xqdzn> Patch format detection failed.
<anarsoul> download it as mbox
<xqdzn> okay
<xqdzn> git am ../*.patch << is this correct?
lurchi_ is now known as lurchi__
<anarsoul> so it doesn't apply cleanly
<anarsoul> are you using linux-5.2?
<xqdzn> yeah
<xqdzn> should i clone from sunxi-next instead?
<xqdzn> i've been using linux mainline
<anarsoul> it applies fine on top of 5.2 for me
<xqdzn> did you use vanilla or linux-sunxi repo?
<anarsoul> just 5.2
<anarsoul> I'm not using linux-sunxi
<anarsoul> I maintain my own repo
<libv> xqdzn: is your failed attempt to apply this still present?
<xqdzn> libv yes
lurchi__ is now known as lurchi_
<anarsoul> xqdzn: well, fix rejects manually
<xqdzn> let me get this straight, there are only two kind of patch = 1. .diff; 2. .patch << Is this correct?
<karlp> the suffix doesn't reaally mean anything at all.
<karlp> it can be blahblah.thisismagic
<libv> it's MAINTAINERS, skip that part of the change.
<xqdzn> how did the patcher patch the right file? by searching for excerpt?
<xqdzn> because i dont see file name / directory name in patch file, sometime
<xqdzn> http://pasted.co/c08d493c then I did it wrong xD
<xqdzn> anarsoul anyway, have you ever tried running makepkg for arm in x86 ?
<anarsoul> yes
<anarsoul> it's tricky
<xqdzn> seems like it'll be easier if i just use PKGBUILD but i can't do cross compiling rn
<anarsoul> and doing it for kernel is not a good idea
<anarsoul> xqdzn: I'm doing native builds
<xqdzn> and stuck at bash checking, failed to trick it.
<xqdzn> because compiling in arm taking forevurrrr
<xqdzn> and since thermal sensor is not working yet, I almost fry my board
<anarsoul> don't enable dvfs without thermal
<xqdzn> idt i did it yet
<xqdzn> i barely get my sensor working xD
<xqdzn> anarsoul I'm doing native builds << with distccd? or chroot one?
<anarsoul> xqdzn: chroot on armv8 board
<xqdzn> so, do you think something like prepare(){ # ALARM patches git apply ../0001-ARM-atags-add-support-for-Marvell-s-u-boot.patch } will be enough in PKGBUILD?
<anarsoul> I don't remember pkgbuild syntax, try it?
<anarsoul> or refer to linux package
<xqdzn> they only do "git apply ......"
<xqdzn> So I think "git apply..." would be sufficient, no?
<anarsoul> do the same?
<xqdzn> i tried, i just can't get my x86 compiling for arm yet xD
<xqdzn> so rn, i'm compiling it manually
lurchi_ is now known as lurchi__
Mangy_Dog has quit [Ping timeout: 245 seconds]
xqdzn59 has joined #linux-sunxi
xqdzn59 has quit [Remote host closed the connection]
xqdzn33 has joined #linux-sunxi
<xqdzn33> .
xqdzn has quit [Ping timeout: 260 seconds]
vagrantc has quit [Quit: leaving]