liushuyu has quit [Quit: Konversation terminated!]
Gerwin_J has joined #linux-sunxi
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
lurchi_ is now known as lurchi__
ninolein_ has joined #linux-sunxi
ninolein has quit [Ping timeout: 240 seconds]
cnxsoft has joined #linux-sunxi
<wens>
just sent
Gerwin_J has quit [Ping timeout: 260 seconds]
dave0x6d has quit [Quit: Connection closed for inactivity]
<wens>
damn, had some email configuration issues :(
lkcl has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
Gerwin_J has quit [Ping timeout: 260 seconds]
velly has joined #linux-sunxi
victhor has quit [Ping timeout: 260 seconds]
Nacho has quit [Remote host closed the connection]
Nacho has joined #linux-sunxi
MXfive has quit [Quit: Sleep Quit.]
velly has quit [Read error: Connection reset by peer]
Gerwin_J has joined #linux-sunxi
velly has joined #linux-sunxi
pg12 has quit [Ping timeout: 240 seconds]
pg12 has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 260 seconds]
Hao has joined #linux-sunxi
IgorPec has joined #linux-sunxi
TheSeven has quit [Ping timeout: 255 seconds]
TheSeven has joined #linux-sunxi
Hao has quit [Quit: Ex-Chat]
Hao has joined #linux-sunxi
kaspter has joined #linux-sunxi
foxx has joined #linux-sunxi
Hao has quit [Remote host closed the connection]
IgorPec has quit [Ping timeout: 252 seconds]
lemonzest has joined #linux-sunxi
lkcl has quit [Ping timeout: 268 seconds]
DullTube has joined #linux-sunxi
dave0x6d has joined #linux-sunxi
IgorPec has joined #linux-sunxi
terra854 has quit [Quit: Connection closed for inactivity]
kaspter has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
Hao has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
xes has quit [Read error: Connection reset by peer]
xes has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
DullTube has quit [Quit: Leaving]
reinforce has joined #linux-sunxi
yann|work has quit [Ping timeout: 240 seconds]
<diego_r>
env
<diego_r>
sorry, wrong window :)
rookieone has quit [Quit: Oh poop..]
Andy-D_ has joined #linux-sunxi
velly has quit [Read error: Connection reset by peer]
IgorPec has quit [Ping timeout: 240 seconds]
<diego_r>
Hi guys, is there any way to know from a bootscript from where U-Boot has been initially loaded? In my case I have an Olinuxino A20 Lime2 eMMC: I can place U-Boot with SPL both on the microSD or in the eMMC. As a human I can get from where it is loaded by looking at the "U-Boot SPL" output or by looking at the order of the devices in "mmc list" when full-fledged U-Boot has started, but is there any easily scriptable
<diego_r>
way to get that from a bootscript?
<diego_r>
(I'd love to avoid having a different boot.scr file, one for microSD, one for eMMC, just to specify the kernel root parameter mmcblk0p1 vs mmblk1p1)
<KotCzarny>
if you want it scripted yourself, you can try to load some specific file
<KotCzarny>
then make it an 'if' statement
<MoeIcenowy>
I used to want to import a environment variable for the boot media
<MoeIcenowy>
(as I have a board with both sdc0 and sdc2 wired out as MicroSD slot
<MoeIcenowy>
(and I want a card can boot with both slots
<MoeIcenowy>
but currently there's no way to retrieve real boot media in U-Boot
matthias_bgg has joined #linux-sunxi
<diego_r>
KotCzarny: my target is to have the same exact "sdcard" image produced by a Yocto build to boot from microSD or eMMC (without adding different files). Everything else works, as the order of "mmc list" changes depending on the device U-Boot is loaded from, the last missing piece is the kernel root parameter. From your words it looks like this is not possible / easy.
lkcl has joined #linux-sunxi
komunista has joined #linux-sunxi
<KotCzarny>
diego_r: but if you try to load SAME file but from different devices, you can detect what is available at least
Andy-D_ has quit [Ping timeout: 240 seconds]
dave0x6d has quit [Quit: Connection closed for inactivity]
<KotCzarny>
so you can start with load mmc 0 /somefile and if its not avaialble continute with mmc 1 or 2 or spi
<KotCzarny>
i'm not saying there is no scriptable way to report boot device otherwise, i'm just saying what i use
<MoeIcenowy>
I think he wants to use the same image on mmc0 or mmc2
<MoeIcenowy>
"without adding different files"
<MoeIcenowy>
let me try to dig out my old patch
<KotCzarny>
again, you try loading mmc 0 /somefile and mmc 1 /somefile
<BenG83>
architecture Behavioral of ov7670_registers is
<KotCzarny>
kind of ghetto detection, why not submit a patch for a new command?
<diego_r>
tkaiser: perfect thanks. That works and is exactly what I needed. I knew there was a way...
<diego_r>
KotCzarny: MoeIcenowy thanks for you help in any case
<diego_r>
tkaiser: do you know if there's anybody trying to upstream the defconfig for Olinuxino A20 LIme 20 eMMC in U-Boot mainline, or should I try to upstream it myself?
<diego_r>
(the one you pointed me to yesterday)
<MoeIcenowy>
maybe you should do it ;-)
<wens>
great, i won't have internet this weekend :(
<KotCzarny>
wens: make the best out of it
<KotCzarny>
tidy your room! ;)
<wens>
KotCzarny: my room at my parents is basically empty :p
<KotCzarny>
dust it? :P
<KotCzarny>
no prepaid gsm internet available?
<wens>
hmm, i guess that's an option
<wens>
my phone doesn't have unlimited data
<KotCzarny>
for simple google/irc/mail it will suffice
<KotCzarny>
just make sure you turn off js/images
kaspter has quit [Ping timeout: 240 seconds]
<KotCzarny>
for firefox there is noscript extension that easily can whitelist js sites (with a simple click)
<wens>
i guess i'll just stick to basic ssh :|
popolon has joined #linux-sunxi
<diego_r>
wens: what about enjoying real world? :)
<KotCzarny>
real world is overrated
BenG83 has quit [Ping timeout: 268 seconds]
<wens>
diego_r: depends on the weather
LargePrime has quit [Ping timeout: 240 seconds]
yann|work has joined #linux-sunxi
Mr__Anderson has joined #linux-sunxi
dave0x6d has joined #linux-sunxi
LargePrime has joined #linux-sunxi
rookieone has joined #linux-sunxi
BenG83 has joined #linux-sunxi
popolon has quit [Ping timeout: 240 seconds]
popolon has joined #linux-sunxi
mario_ has joined #linux-sunxi
chomwitt1 has quit [Ping timeout: 260 seconds]
paulk-collins has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
reinforce has joined #linux-sunxi
BenG83 has quit [Ping timeout: 260 seconds]
massi has joined #linux-sunxi
Hao has quit [Remote host closed the connection]
wzyy2 has quit [Ping timeout: 260 seconds]
Leepty has quit [Ping timeout: 240 seconds]
Gerwin_J has quit [Quit: Gerwin_J]
fkluknav has joined #linux-sunxi
Leepty has joined #linux-sunxi
yann-kaelig has joined #linux-sunxi
BenG83 has joined #linux-sunxi
lemonzest has quit [Quit: Leaving]
perr has joined #linux-sunxi
IgorPec has joined #linux-sunxi
Leepty has quit [Ping timeout: 245 seconds]
wzyy2 has joined #linux-sunxi
Leepty has joined #linux-sunxi
<IgorPec>
anyone knows proper offset for saving u-boot environment from user space. v2017.03 / cubietruck
velly has quit [Ping timeout: 252 seconds]
cptG_ has joined #linux-sunxi
matthias_bgg has quit [Read error: Connection reset by peer]
cptG has quit [Ping timeout: 240 seconds]
<mripard>
IgorPec: if on MMC, 552KiB
<mripard>
but it depends on the board and storage medium
<IgorPec>
so it's not the same on all allwinner boards? A10/A20/H3 ... at least ot SD card?
tsuggs has quit [Ping timeout: 255 seconds]
<mripard>
on SD card it is
<IgorPec>
ok. what about eMMMc? the same?
<mripard>
but it's also something the user can configure, for example to have a redundant environment
<KotCzarny>
isnt emmc 'just embedded sdcard' ?
<KotCzarny>
from soc point of view
<mripard>
but if you just want to support the standard feature set, then yes, on SD/eMMC, it's always the same
<mripard>
KotCzarny: kind of but not really
<mripard>
eMMCs have higher speed modes that require specific configurations
<mripard>
and a wider bus
<KotCzarny>
but its driver level
<mripard>
so even if you can use an eMMC just like an SD card
<mripard>
it's most of the time not the same
<mripard>
no, the controller is different too
<mripard>
and you have more operations so that it works properly
<mripard>
like signal calibration and so on
<KotCzarny>
still, it's driver level
<IgorPec>
mmcblk0 0x8A000 0x20000
<IgorPec>
if my math is correect
<IgorPec>
para for fw_emv.config
<IgorPec>
yes, it looks o.k. tnx!
<mripard>
KotCzarny: if a dedicated HW controller that needs to be programmed specifically not hardware to you
<mripard>
then yes, it's just driver level.
<KotCzarny>
for uboot/linux its abstracted as mmc device, and system integrators dont look at further details
mhlavink has quit [Ping timeout: 268 seconds]
<KotCzarny>
same for users
<KotCzarny>
thats why i say it behaves like one (i know that its quite different on hw level)
matthias_bgg has joined #linux-sunxi
<IgorPec>
one problem. now when I save environment from userspace, it is saved ... but uboot still uses default one?
<mripard>
IgorPec: do you have the uboot logs ?
<IgorPec>
yes
beeble has quit [Remote host closed the connection]
<mripard>
IgorPec: tbh, if you control that in your installer, maybe the cleanest solution would be to create a partition to hold the environment, and then you just have to use that
Mr__Anderson has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
chomwitt1 has joined #linux-sunxi
ykchavan has joined #linux-sunxi
<MoeIcenowy>
tkaiser: is 672MHz too high for Nano Pi NEO2 DRAM?
<MoeIcenowy>
I think stock licheee used 504
<tkaiser>
BenG83: As announced before and maybe worth a post in Pine64 forum: https://forum.armbian.com/index.php?/topic/3953-preview-generate-omv-images-for-sbc-with-armbian/&do=findComment&comment=29436
<tkaiser>
MoeIcenowy: No idea, don't have the board. But wait...