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*
dev1990_ has joined #linux-sunxi
dev1990 has quit [Ping timeout: 264 seconds]
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #linux-sunxi
DonkeyHotei has quit [Read error: Connection reset by peer]
lurchi_ is now known as lurchi__
megi has quit [Ping timeout: 265 seconds]
TheSeven has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
skiboy has quit [Quit: Leaving]
cnxsoft has joined #linux-sunxi
TheSeven has quit [Ping timeout: 246 seconds]
TheSeven has joined #linux-sunxi
sunshavi has quit [Remote host closed the connection]
Gerwin_J has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
sunshavi has joined #linux-sunxi
DonkeyHotei has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
eliasbakken has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 245 seconds]
eliasbakken has quit [Ping timeout: 240 seconds]
nashpa has quit [Ping timeout: 240 seconds]
Putti has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
Guest31068 has quit [Ping timeout: 245 seconds]
Guest31068 has joined #linux-sunxi
anarsoul has quit [Quit: ZNC 1.7.1 - https://znc.in]
anarsoul has joined #linux-sunxi
florian has joined #linux-sunxi
ganbold has joined #linux-sunxi
aloo_shu has quit [Ping timeout: 245 seconds]
TheSeven has quit [Ping timeout: 245 seconds]
quadjfet has joined #linux-sunxi
TheSeven has joined #linux-sunxi
marcodiego has quit [Quit: Leaving]
TheSeven has quit [Ping timeout: 264 seconds]
vagrantc has quit [Quit: leaving]
TheSeven has joined #linux-sunxi
tllim has quit [Read error: Connection reset by peer]
ganbold has quit [Read error: Connection reset by peer]
_whitelogger has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
florian has quit [Ping timeout: 265 seconds]
fl_0 has quit [Ping timeout: 240 seconds]
_whitelogger has joined #linux-sunxi
fl_0 has joined #linux-sunxi
quadjfet_ has joined #linux-sunxi
quadjfet has quit [Ping timeout: 265 seconds]
quadjfet__ has joined #linux-sunxi
return0e_ has joined #linux-sunxi
quadjfet_ has quit [Ping timeout: 245 seconds]
return0e has quit [Ping timeout: 276 seconds]
RichardG867 has quit [Read error: No route to host]
AneoX has joined #linux-sunxi
netlynx has joined #linux-sunxi
nashpa has joined #linux-sunxi
jbrown has quit [Remote host closed the connection]
quadjfet__ has quit [Remote host closed the connection]
_whitelogger has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
ganbold has joined #linux-sunxi
reinforce has joined #linux-sunxi
bonbons has joined #linux-sunxi
kaspter has joined #linux-sunxi
<KotCzarny> /lib/modules/5.3.1/kernel/drivers/usb/musb/sunxi.ko
<KotCzarny> bad module name, imo
cnxsoft1 has quit [Quit: cnxsoft1]
reinforce has quit [Quit: Leaving.]
<aalm> no shit :S
lurchi_ is now known as lurchi__
kaspter has quit [Read error: Connection reset by peer]
Putti has quit [Remote host closed the connection]
megi has joined #linux-sunxi
LargePrime has joined #linux-sunxi
Putti has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
Net147 has quit [Quit: Quit]
Net147 has joined #linux-sunxi
lurchi__ is now known as lurchi_
<Mangy_Dog> I have one small new problem i need to fix... My OS is on the emmc of the OPiZeroPlus2... But i want to use the SD card as perminant storage... IE leave it in there... But even if my sd card is formated as fat32 and not have a OS image on, uboot is trying to boot from it. How do i stop that? While retaining the ability to boot OS images from SD card?
<KotCzarny> nuke uboot from sdcard
<KotCzarny> and from spi
<Mangy_Dog> but wouldnt that block sd cards with OS images from booting too?
<Mangy_Dog> im assuming thats a form of setting boot order :p
<hellsenberg> Mangy_Dog: if you want to boot from emmc, I would suggest keeping uboot there
<KotCzarny> if you leave uboot on emmc, why should it
<Mangy_Dog> umm
<Mangy_Dog> where is uboot stored?
<hellsenberg> where you put it on, I guess
<KotCzarny> bytes 8k to 1024k of the emmc/sdcard, and 0k-end of spi
<Mangy_Dog> ok that makes no sense
<KotCzarny> and boot priority is sdcard/emmc/spi i think
<Mangy_Dog> Soooooo basicaly the cpu is reading uboot from this SD card
<Mangy_Dog> and thats why its trying to load from it
<hellsenberg> probably.
<Mangy_Dog> even though i nuked the partisions
<Mangy_Dog> and reformatted it
<KotCzarny> although im not sure if spi is tried after of before sd/emmc
<Mangy_Dog> ok strange
<Mangy_Dog> yeah uboot must still be on the card some how
<hellsenberg> Mangy_Dog: if the board tries to boot with the sdcard in, but does nothing with the card out, then uboot must be on the sdcard
<lurchi_> Mangy_Dog: u-boot scans alls filesystems for the next stage, i.e. either an OS or e.g. grub
wasutton3 has joined #linux-sunxi
<Mangy_Dog> wtf deleted partition and reformatted sd card again... and still uboot tries to run from it
<hellsenberg> u-boot is not on a partition, it's kind of like the MBR on computer HDDs
<Mangy_Dog> does it need some kind of special removal tool?
<hellsenberg> just fill the beginning of the sdcard with zeroes
<KotCzarny> dd </dev/zero >/dev/mmccard bs=1k seek=8 count=1016
<hellsenberg> ^ change /dev/mmccard accordingly please
<KotCzarny> i counted on his intelligence
<hellsenberg> (as in, your sdcard might be /dev/somethingelse instead)
<KotCzarny> instead of nuking whatever irc randoms write
<lurchi_> hellsenberg: not generally true, e.g. when using it on the RPI, it is loaded from the FAT partition
<KotCzarny> uboot
<KotCzarny> no
<KotCzarny> not in sunxi world
<hellsenberg> lurchi_: keep those cursed things off me please :S
* hellsenberg looks up sunxi SoC pictures online to cleanse their own mind
<Mangy_Dog> mmcblk0 mmcblk0p1 are what i can find in dev
<Mangy_Dog> they disapear whenb i unload the sd card
<Mangy_Dog> and run dir again
<Mangy_Dog> runnign it on both of those seem to have worked
<Mangy_Dog> thanks
<KotCzarny> bad idea
<KotCzarny> mmcblk0p1 is a partition
<KotCzarny> you probably nuked it, most likely it was fat
<Mangy_Dog> thats ok it was empty now anyway
<KotCzarny> which keeps dir structure there
<Mangy_Dog> ill rebuild it
<KotCzarny> you shouldnt do random things on your devices
bonbons_ has joined #linux-sunxi
<Mangy_Dog> it wasnt random, did what you told me
<KotCzarny> i said mmc device, not mmc partition
<hellsenberg> Mangy_Dog: the command KotCzarny gave is meant to only erase uboot on a device, leaving everything else intact. if you ran it on a partition instead, the partition will be corrupted instead
<hellsenberg> so if you had nothing in it, lucky you
<Mangy_Dog> i had a backup of the stuff anyway
<Mangy_Dog> ist just the roms for the emulators
<hellsenberg> next time, just run that on the device, never on a partition
<Mangy_Dog> if i was worried about the data on the card i would have asked... as i was assuming it was distructive :p
<Mangy_Dog> i didnt know p1 was the partision anyway
<KotCzarny> anyway, that info is in the wiki
bonbons has quit [Ping timeout: 245 seconds]
<Mangy_Dog> yet asking was far quicker
<Mangy_Dog> because even if its in the wiki i had no idea what to even look for
<Mangy_Dog> so i wouldnt have found it
* hellsenberg notes down
<hellsenberg> so one of the reasons people ask instead of looking things up is because if they try to, they don't know what to look for... interesting
<hellsenberg> not faulting anybody, just thinking loudly about humans again
<aalm> think less, act more:p
* hellsenberg is too impulsive already
<aalm> oic, same here, i guess
Jybz has joined #linux-sunxi
<Jybz> Hi all !
<Jybz> There is a special git repo for sunix-linux kernel. But it stops at version 3.x
<aalm> mainline.
<Mangy_Dog> yeah but without you telling me I wouldnt have known that uboot was place in a space outside of a partition and me deleting and reformatting over and over wasnt fixing it...
<Jybz> Does the newer kernels on kernel.org supports sunix ?
<Mangy_Dog> no amount of wiki looking would have found that in a timely maner
<Mangy_Dog> maybe in several days of looking which by that point would have been too late
<hellsenberg> Mangy_Dog: how did you put uboot on the hard in the first place?
<Mangy_Dog> rufus
<Mangy_Dog> im using a ditro image
<KotCzarny> Mangy_Dog: you should read more of linux-sunxi wiki
<Jybz> Oh thank aalm, I read it carefuly
<aalm> [+]
<KotCzarny> more interesting topics are listed here: http://linux-sunxi.org/User:Kc#bookmarks
<megi> anyone tried hacking A13 based pocketbooks? looks like they just have an internal sd card with the system https://megous.com/dl/tmp/mpv-shot0002.jpg
<megi> and nicely accessible uart
<KotCzarny> megi: yeah, old a10/a13 often resorted to os on sdcard inside
<KotCzarny> which is cool
<hellsenberg> lol
<KotCzarny> because one could hack them without any fear
<megi> it's my gf's so I need to hack it up before she wakes up :D
<megi> eh I meant close it up
<KotCzarny> but two sdcard is kinda new in my book
<hellsenberg> my a20 thing boots off the sdcard before booting off the internal nand, so it's also safe
<KotCzarny> hellsenberg: almost all sunxi devices boot like that
<KotCzarny> but nand ones are harder to sniff info out of them
<megi> I wonder whether the SD card on board is the first one, or if sd1 would be first to boot if present
<hellsenberg> now then, if only i could get a working uboot + linux-based OS combo
<KotCzarny> sd2 means its second, i guess
<KotCzarny> so it should boot of sd1 first
<KotCzarny> boot sunxi-fel sdcard to confirm
<KotCzarny> :)
<Mangy_Dog> systemd is evil and written by idiots, how to remove it....... Wasnt some one here telling me off for not making my script run through systemd ? :p
<KotCzarny> you can write scripts/services for any init system
<Mangy_Dog> in my case rc.local has done the job
<Mangy_Dog> though i admit i dont have the protection of a auto restart if it was stopped for any reason
<megi> well it's just an inscription on the board
<Mangy_Dog> but the worse that would happen is the cpu gets hot and throttles
<hellsenberg> i'm pretty sure you can use gentoo on sunxi, it doesn't use systemd by default! :D
<Jybz> aalm: weird... I see news about kernels 5.x, but when I go further on the page, in See also, when I click on "Linux Kernel", then on "our projects' github" at this new page, i fell into github, then on "linux-sunix" repo, it shows no update for 5 years, at least...
<megi> I guess I'll have to try :)
<KotCzarny> megi: inscriptions on the board often correlate with some technicalities
marcodiego has joined #linux-sunxi
<KotCzarny> unless it's sdc0/sdc1/sdc2
<Mangy_Dog> but after this tradeshow ehere i wanted to show the project off at... (dont worry you havent been freely suporting a buisness, just want to show the design off as a handheld design portfolio) im putting this project to bed for a while...
<Mangy_Dog> but yeah ill likely come back at some point and tighten things up
<Mangy_Dog> oh poop that reminds me
<Mangy_Dog> ummmm I have 2 conumer buttons volume up and down... is there a known easy way to install drivers for it? Currently doesnt appear to work on linux
<KotCzarny> write some service
<KotCzarny> obseerving gpio and running alsactl
JohnDoe7 has joined #linux-sunxi
<Mangy_Dog> the volume buttons are being fed via a usb hid
<Mangy_Dog> not gpio
<Mangy_Dog> in windows its detected and runs
<Mangy_Dog> setting the system volume up and down
<KotCzarny> do you run xorg ?
<Mangy_Dog> i assumed (yeah i know...) that linux would have a simular thing
<Mangy_Dog> i dont think its installed
<KotCzarny> then there's nothing special about multimedia keys
<Mangy_Dog> armbian... but with orange retro pi
<KotCzarny> and they will go into your app
<Mangy_Dog> is it just a driver apt get like install to get them running?
<KotCzarny> ?
<KotCzarny> whatever is running on virtual console gets all keys
JohnDoe_71Rus has quit [Ping timeout: 240 seconds]
<KotCzarny> you can however remap the keys if they are not standard
<KotCzarny> then you should react to them in your app
ldevulder__ is now known as ldevulder
<Mangy_Dog> its not my app... but i want it to set the linout of asla
<KotCzarny> treat the problem as x-less pc with usb keyboard with multimedia keys
<KotCzarny> solution would be similar
<Mangy_Dog> nods
_whitelogger has joined #linux-sunxi
lurchi_ is now known as lurchi__
<aalm> Jybz, nothing weird. the wikipage was about _mainline_, that is torvalds and not some random "linux-sunix" repo.
<Mangy_Dog> lol well
<Mangy_Dog> kodi at least reads the volume controller right off
<Mangy_Dog> just wish i could make asla mixer do that
gaston1980 has quit [Ping timeout: 252 seconds]
dddddd has joined #linux-sunxi
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 268 seconds]
wasutton3 has quit [Quit: ZNC 1.7.3 - https://znc.in]
reinforce has joined #linux-sunxi
Wizzup has quit [Ping timeout: 276 seconds]
Wizzup has joined #linux-sunxi
<KotCzarny> kodi is an app with many features
AneoX_ has quit [Ping timeout: 240 seconds]
<KotCzarny> that's why i suggested it's up to app what it does with keys
<KotCzarny> as for alsa config, RTFM. everything is doable
AneoX has joined #linux-sunxi
AneoX_ has joined #linux-sunxi
AneoX has quit [Ping timeout: 268 seconds]
AneoX has joined #linux-sunxi
AneoX_ has quit [Ping timeout: 245 seconds]
TheSeven has quit [Remote host closed the connection]
gnufan_home has joined #linux-sunxi
lkcl has quit [Ping timeout: 246 seconds]
ddas88 has joined #linux-sunxi
ddas88 has quit [Remote host closed the connection]
florian has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
AndroUser2 has joined #linux-sunxi
putti_ has joined #linux-sunxi
Putti has quit [Ping timeout: 240 seconds]
putti_ is now known as Putti
RichardG867 has joined #linux-sunxi
AndroUser2 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 245 seconds]
bonbons_ has quit [Quit: Leaving]
bonbons has joined #linux-sunxi
niceplace has quit [Quit: ZNC 1.7.3 - https://znc.in]
niceplace has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
Gerwin_J has joined #linux-sunxi
Gerwin_J has quit [Client Quit]
<megi> so I've solderd serial cable to my gf's pocketbook, and I'm poking around, and it looks like the SD card that's inisde is on sdc2, so just inserting a card to the external slot, if it has u-boot on it, should be usable to override the boot from the internal one
<megi> so it should be possible to have a alternative OS on the external SD card :)
<megi> lot's of interesting stuff inside, that's not exposed to the user... there's some script to enable samba/usb ethernet/dropbear, probaly for debugging over USB
<megi> just enabling the samba over wifi would make the e-reader much more usable
<KotCzarny> :)
<KotCzarny> ya
<KotCzarny> thats why i love linux-sunxi
<KotCzarny> hackable as heck
<megi> yup :)
<KotCzarny> i have yet to write me some good e-reader app
<KotCzarny> stock one is an abomination beyond any imagination
<megi> I'll just add dropbear and tinysmbd to init and now it's debuggable and I'll be able to copy files over WiFi :)
<KotCzarny> dropbear supports sshfs afair
<KotCzarny> or not?
<megi> yes, but I'll leave it on so that my gf will be able to upload files over wifi
<megi> the usb connector is almost broken and this will save the device
<KotCzarny> :)
<KotCzarny> btw. is it android based or linux?
<megi> looks like customized linux
<megi> busybox
<megi> + random cruft
<KotCzarny> is the reader app any decent?
<megi> slow
<megi> but useable
<KotCzarny> yeah, it tries to be page-exact
<KotCzarny> which means it has to render every page
<megi> it's A13 anyway
<KotCzarny> at least on pageless formats
<megi> it's very slow on pdfs
<KotCzarny> on mine after some page threshold watchdog kills the reader app
<megi> ha
<KotCzarny> so i cant continue books
<KotCzarny> that's why i need to write decent reader
<KotCzarny> which isnt hard, i have most pieces done
<megi> how does the graphics output to epaper work?
<megi> does it use some standard linux interface?
<KotCzarny> similar to touchscreen one
<megi> i noticed a framebuffer
<KotCzarny> ie. you can render pixels, lines, or whole pages
<KotCzarny> on mine it has some ioctls
<megi> ok
<KotCzarny> there is also page reset etc
<megi> interesting, looks like it has 8188eu wifi over usb
<megi> most of the hw should work in mainline linux
<megi> nice
<KotCzarny> might depend on eink model used
<megi> sure
<megi> there's /dev/einkdrv so it probably has some custom interface
<megi> should be easy to decompile the eink kernel module, because they keep the symbols in, and see what ioctls it implements
<megi> hmm, they even included strace :) so might as well be easier to run the ebook app under strace
<KotCzarny> ebook app is trashy
<KotCzarny> unfortunatelly there is no source
<megi> to see what it does
<megi> sure
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
xqdzn has joined #linux-sunxi
xqdzn has quit [Ping timeout: 260 seconds]
<megi> dumped fex file, amazing! It's almost like a schematic, now I have all pin configurations for the pocketbook :)
<megi> now just to write a dts and uboot config and try it with mainline :)
<KotCzarny> hah, and they laughed at fexes!
quadjfet has joined #linux-sunxi
<megi> fexes are good!
aloo_shu has joined #linux-sunxi
<megi> also BSP kernel boot dmesg is very verbose, which is not bad either, any information helps
armessia has joined #linux-sunxi
gnufan_home has quit [Quit: Leaving.]
Alexis3D has joined #linux-sunxi
Alexis3D has quit [Client Quit]
Alexis3D has joined #linux-sunxi
vagrantc has joined #linux-sunxi
Alexis3D has quit [Client Quit]
quadjfet has quit [Quit: Leaving]
JohnDoe7 has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
florian has quit [Ping timeout: 276 seconds]
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 276 seconds]
ixnus has joined #linux-sunxi
<ixnus> megi: which pocketbook model?
<megi> touch lux 3
Jybz has quit [Quit: Konversation terminated!]
<ixnus> Last week bought Touch Lux 2 or 3 not sure with 1/3 cracked screen for hacking on it next month :)
<megi> nice :)
<megi> I almost have it booting mainline u-boot/linux
<ixnus> great
<ixnus> that was fast
<megi> well, it's not picking up my u-boot yet, so...
<megi> if only I can get some serial console output from u-boot the next steps would be easier :)
reinforce has quit [Quit: Leaving.]
<ixnus> here is some notes from a previous attemp
<ixnus> something might be helpful to you
<megi> nice
<megi> I have to check if I'm not using the wrong uart
<megi> ixnus: do you use CONFIG_CONS_INDEX=2 in u-boot?
<megi> yeah, that will be it
<megi> I used 1, because I know console is on UART1, but that's not what that option means :)
<megi> CONS_INDEX=2 will enable UART1
<megi> oh my
<ixnus> you got output?
armessia has quit [Quit: Leaving]
<megi> not yet
<megi> have to recompile and test again
<ixnus> sorry, can't help still haven't open that package yet, and I'm away now. will have time for it next month.
<megi> no problem
<ixnus> Good luck! I hope to see your patches on the mailing list soon :)
<megi> Hopefully I'll get it to work :)
<ixnus> That page on the wiki is also not done by me.
<ixnus> But you have edited it ones https://linux-sunxi.org/index.php?title=PocketBook_Touch_Lux_2_(626)&action=history
<megi> that's weird :)
<megi> I don't remember that
<ixnus> (cur | prev) 10:53, 18 July 2018‎ Megous (Talk | contribs)‎ . . (46,762 bytes) (+2)‎ . . (Add some links to the code)
<megi> I guess I have searched for the BSP in the past, when I first realized my gf's PB is based on A13
<megi> and updated the wiki with the info
ixnus has quit [Remote host closed the connection]
megi has quit [Quit: WeeChat 2.6]
aloo_shu has quit [Read error: No route to host]
aloo_shu has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
gumblex has quit [Quit: ZNC 1.7.4+deb7 - https://znc.in]
gumblex has joined #linux-sunxi
<xcko> is this the right place to ask about the mripard/sunxi-mali repo? I wonder what the difference is between r6p2 and r8p1, I can't find any docs but assume r8p1 is better than r6p2?
<aalm> xcko, maybe; mripard_, ^
lurchi_ is now known as lurchi__
Mangy_Dog has quit [Ping timeout: 240 seconds]
lurchi__ is now known as lurchi_
lurchi__ has joined #linux-sunxi
lurchi_ has quit [Ping timeout: 265 seconds]
lurchi__ has quit [Ping timeout: 240 seconds]
lurchi__ has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 268 seconds]