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
<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?
<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
<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
<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?