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*
gaston1980 has joined #linux-sunxi
jstein has quit [Quit: quit]
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 272 seconds]
tuxillo has quit [Remote host closed the connection]
netlynx has quit [Quit: Ex-Chat]
victhor has joined #linux-sunxi
tuxillo has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
lkcl has joined #linux-sunxi
lkcl has quit [Ping timeout: 246 seconds]
kaspter has joined #linux-sunxi
mripard has quit [Ping timeout: 272 seconds]
lkcl has joined #linux-sunxi
asdf28 has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
victhor has quit [Ping timeout: 246 seconds]
apritzel has quit [Ping timeout: 240 seconds]
asdf28 has quit [Ping timeout: 246 seconds]
lukedashjr has joined #linux-sunxi
luke-jr has quit [Ping timeout: 256 seconds]
lukedashjr is now known as luke-jr
lurchi_ has quit [Quit: Konversation terminated!]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
kaspter has quit [Ping timeout: 246 seconds]
jernej has quit [Client Quit]
kaspter has joined #linux-sunxi
kaspter has quit [Ping timeout: 246 seconds]
kaspter has joined #linux-sunxi
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 264 seconds]
ChriChri_ is now known as ChriChri
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
jernej has joined #linux-sunxi
lkcl has quit [Ping timeout: 260 seconds]
JohnDoe_71Rus has joined #linux-sunxi
lkcl has joined #linux-sunxi
reinforce has joined #linux-sunxi
asdf28 has joined #linux-sunxi
faruk has joined #linux-sunxi
faruk has quit [Quit: Leaving]
faruk has joined #linux-sunxi
<montjoie> hellow, how to now if an eMMC is working in sector or byte mode ? My question is needed for EMCE (usermanual page 517)
cmeerw has joined #linux-sunxi
cmeerw has quit [Ping timeout: 260 seconds]
lkcl has quit [Ping timeout: 256 seconds]
faruk_ has joined #linux-sunxi
lkcl has joined #linux-sunxi
faruk has quit [Ping timeout: 240 seconds]
apritzel has joined #linux-sunxi
techn has quit [Ping timeout: 256 seconds]
techn has joined #linux-sunxi
apritzel has quit [Ping timeout: 264 seconds]
tnovotny has joined #linux-sunxi
mripard has joined #linux-sunxi
daregap has joined #linux-sunxi
AneoX has joined #linux-sunxi
ldevulder__ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 246 seconds]
camus has joined #linux-sunxi
kaspter has quit [Ping timeout: 264 seconds]
camus is now known as kaspter
iyzsong has quit [Ping timeout: 240 seconds]
iyzsong has joined #linux-sunxi
yann has quit [Ping timeout: 260 seconds]
yann has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel> montjoie: old SD card use byte addresses, "newer" card (SDHC, SDXC) use sector addresses
<plaes> apritzel: are `max-frequency = <150000000>;" and "mmc-hs200-1_8v";` supported in the u-boot?
<plaes> I tried enabling it last night for u-boot, but the mmc info still showed the 52MHz frequency
<apritzel> plaes: U-Boot support more advances modes, but maybe not for sunxi
<plaes> ok, that explains..
<plaes> I didn't manage to boot linux last night (after building rootfs / kernel) because `bootz` command was not enabled for a64-olinuxino...
<apritzel> bootz? for arm64?
<apritzel> plaes: so yeah, I checked: the sunxi-mmc driver in U-Boot does not care about DT MMC capabilities. It just enables the basic speed modes
<plaes> yeah.. I have my workflow where I build kernel with `make bindeb-pkg -j $(nproc)` :P
<apritzel> plaes: you mean it creates a compressed kernel image?
<plaes> yeah, vmlinuz
<apritzel> but that's not the bootz command, is it?
<apritzel> I thought bootz is for 32-bit kernels?
<apritzel> I always add CMD_UNZIP in those cases, then unzip manually
<plaes> DTC_FLAGS=-@ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make defconfig
<plaes> DTC_FLAGS=-@ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j$(nproc)
<karlp> what's the DTC_FLAGS bit for?
<apritzel> DT overlays?
<plaes> yeah
<plaes> and then I build the debian package (solves the issues with moving over the modules)
<plaes> DTC_FLAGS=-@ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make bindeb-pkg
<plaes> ..and I end up with /boot/vmlinuz-XXX as kernel image
<karlp> why is that -@ thing not turned on by a menuconfig option? that sounds like a really pointy sharp corner
<plaes> I don't know
<apritzel> plaes: I think grub handles gzip'ed kernels transparently, in U-Boot you need to do "ext4load mmc x $load_address /boot/vmlinuz; unzip $load_address $kernel_addr_r" manually
steev_ has joined #linux-sunxi
<apritzel> then boot with booti
<apritzel> or bootefi
<plaes> do I need anything else on the efi partition?
narmstrong has joined #linux-sunxi
<plaes> I'm using the 'fastboot oem format' and 'fastboot flash ...' to set up the device
aliosa27 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
<apritzel> plaes: wow, fastboot, you are living in a different world ...
victhor has joined #linux-sunxi
<plaes> sorry, but it makes my deployments easier.. :D
<plaes> I'm deploying ~30-40 devices in a batch
<plaes> I initially flash ~350MB base image via fastboot and then continue with ansible
kprasadvnsi[m] has joined #linux-sunxi
Net147 has quit [Ping timeout: 240 seconds]
Mangy_Dog has joined #linux-sunxi
faruk__ has joined #linux-sunxi
Net147 has joined #linux-sunxi
faruk_ has quit [Ping timeout: 246 seconds]
tmlind has quit [Ping timeout: 240 seconds]
tmlind has joined #linux-sunxi
Mangy_Dog has quit [Remote host closed the connection]
Mangy_Dog has joined #linux-sunxi
asdf28 has quit [Ping timeout: 256 seconds]
asdf28 has joined #linux-sunxi
<apritzel> He is a user!
cnxsoft1 has quit [Quit: cnxsoft1]
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
netlynx has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
<gediz0x539> can i test lradc keys with a tool like evdev?
kaspter has quit [Quit: kaspter]
<gediz0x539> s/evdev/evtest/
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
<gediz0x539> yeah, apparently it works. listed as "/dev/input/event0: 1c22800.lradc"
<gediz0x539> btw, i'm trying to make multi-press using lradc. is it considered overkill?
<gediz0x539> i could not see any example about this and feel like i may be doing something wrong
kaspter has joined #linux-sunxi
apritzel has quit [Ping timeout: 272 seconds]
faruk__ has quit [Quit: Leaving]
faruk has joined #linux-sunxi
faruk has quit [Client Quit]
ldevulder__ has quit [Quit: Leaving]
apritzel has joined #linux-sunxi
<swiftgeek> gediz0x539: i guess detecting multiple keys would heavily depend on resistor values chosen on board
<swiftgeek> but would be nice to see it in uboot for menu up/down :D
asdf28 has quit [Ping timeout: 260 seconds]
reinforce has quit [Quit: Leaving.]
andy25225 has quit [Quit: Leaving]
andy25225 has joined #linux-sunxi
andy25225 has quit [Client Quit]
andy25225 has joined #linux-sunxi
gaston1980 has joined #linux-sunxi
<jernej> apritzel: I'm back on hacking H616
<jernej> I just noticed that something is still not ok with clocks
<jernej> for example, hdmi-cec reports 1.2 GHz even though it should be ~32 kHz
<jernej> I'm using your h616-v2 branch
xeniter has joined #linux-sunxi
<jernej> predivider doesn't seem to be considered
JohnDoe_71Rus has joined #linux-sunxi
<jernej> apritzel: btw, you missed hdmi-cec bit 30 (pll_peri_gating)
<jernej> I guess it can be folded in enable bits
<apritzel> jernej: yeah, all those audio/video clocks were just copied from H6, then inspected by comparing to the H616 manual
<apritzel> jernej: but one can only do so much Allwinner clock bits comparison before turning mad ...
<jernej> :)
<jernej> hdmi still doesn't work...
<jernej> apritzel: I found the issue with prediv
<apritzel> that was quick!'
<jernej> flag suggest variable prediv, but fixed prediv is configured
<jernej> so either of those must be changed to other
<jernej> I guess flag must be changed to fixed prediv
<jernej> well, that's also the bug in H6
<apritzel> jernej: btw: I have some U-Boot patches (MMC & EMAC) to make it work with the DTs from Linux-v2
<apritzel> I can push them, if you like
<jernej> please do
<apritzel> and I figured that the H6 can also load >32KB via eGON from MMC as well
<apritzel> in fact 139KiB on the H6, and 212KiB on the H616
<psydruid> I've seen some random reboots on A64 with 5.10.1 for the last week or so, so I was wondering if that is just my system or more people have been having those
ldevulder has joined #linux-sunxi
apritzel has quit [Ping timeout: 240 seconds]
matthias_bgg has quit [Ping timeout: 268 seconds]
asdf28 has joined #linux-sunxi
cmeerw has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 264 seconds]
lurchi_ has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel> jernej: those three patches on top of your h616-v1 tree: https://github.com/apritzel/u-boot/commits/h616-v1
<apritzel> refactoring to make H616 support almost trivial
gaston1980 has quit [Quit: Konversation terminated!]
<montjoie> apritzel: thanks, it seems that my eMMc is in sector mode
<montjoie> I found the last trick and EMCE seems working now
<apritzel> montjoie: nice!
<apritzel> montjoie: and yeah, most modern SD cards are "high capacity"
<apritzel> I didn't quite found the bit where this is stored in the Linux MMC framework, maybe data->blksz gives a hint?
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
<apritzel> it's bit 30 in the OCR (status) register, you might try to use that as well. struct mmc_card has a member "ocr"
<apritzel> but it somehow seems not to be the right way, someone with more knowledge about the MMC framework might know
<apritzel> montjoie: is EMCE for SMHC2 (eMMC) only? or does it work on the other controllers (SD card) as well?
steev has quit [Quit: leaving]
steev_ is now known as steev
kaspter has quit [Quit: kaspter]
<montjoie> apritzel unfortunatly only for emmc(smhc2)
lurchi_ has quit [Ping timeout: 260 seconds]
jbrown has quit [Ping timeout: 260 seconds]
lurchi_ has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
apritzel has quit [Ping timeout: 246 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
jbrown has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
jbrown has quit [Ping timeout: 272 seconds]
jbrown has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
<plaes> man.. I'm lost..
<plaes> bootm doesn't recognize vmlinuz file.. and bootz just returns without any action
<plaes> ok, after gunzip vmlinuz.gz , I can boot with `booti ..` \o/
<plaes> ok, how do you check the emmc speed?
<KotCzarny> hdparm -t ? iozone ?
<plaes> thanks
<plaes> with current vanilla dts: 220 MB in 3.02 seconds = 72.81 MB/sec
<KotCzarny> hdparm -t is your ol' plain sequential read speed
<KotCzarny> but usually theoretical max
<KotCzarny> try dd if=/dev/mmcblk0 of=/dev/null bs=1M status=progress
<plaes> oh well, on a64-olinuxino-emmc, mmc2: mmc_select_hs200 failed, error -74
<plaes> that's on rev. D board
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
apritzel has joined #linux-sunxi
victhor has quit [Quit: Leaving]
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
luke-jr has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
cmeerw has quit [Ping timeout: 264 seconds]
<apritzel> plaes: interesting, thanks for the test!
<apritzel> plaes: it seems like you have the 4GB version, right?
<apritzel> plaes: assuming it's the MTFC4GACAANA that the Olimex schematic show, it should be able to speak HS200, but that particular chip is limited to 75MB/s reading anyway
<karlp> so, say I'm designing a new board, with a a wifi+bt module on it, is there any reason to use sdio when I can use usb? the wifibt modules seem to use sdio for wifi, and also a uart for bt, vs, just a single usb interface. I have the usb port available...
<karlp> (I'm only after "wifi "4" geneirc connectivity speeds)
<apritzel> karlp: I think SDIO is mostly used because it's available, and can't be used for much else
<apritzel> also you should check the driver situation
<apritzel> karlp: but other than that I'd say USB is actually easier and more compatible
<karlp> that was wha tI _wanted_ to do, so I'll self select that as the best answer :)
<karlp> I just wanted to make sure there was nothing I would miss on sdio
<karlp> yeah, currently trying to troll menuconfig to check
<karlp> all sounds horrible though, if you want wifi+bluetooth+cheap
<apritzel> karlp: I know that some chips are available in both SDIO/UART and USB versions, and sometimes you only have the driver for one in the kernel
<apritzel> thought it shouldn't be rocket science to cobble the required glue code together
<apritzel> karlp: I think SDIO is now somewhat legacy, and is seriously bandwidth limited when it comes to recent WiFi speeds
<karlp> yeah, that was my feeling too.
<apritzel> it seems you can reach the same speeds as SD cards, so theoretically 100 MB/s with UHS-I (at 1.8V, switchable)
<karlp> iff the sdio periph can handle it :)
<apritzel> exactly
<apritzel> and the board is wired correctly, and ...
<karlp> usb is wayyyy more plug and play from wher eI'm sitting,
<apritzel> if you have the port available, I'd use it
<apritzel> I guess for most SBCs USB is too precious to "waste" it on WiFi, especically if you can use the otherwise unused SDIO for that
<karlp> yeah, I definitelt hav ethe port available,
<karlp> thanks for the advice
<apritzel> karlp: just keep in mind that USB 2.0 also hits a performance wall, but it should be still good enough for 802.11n
<karlp> yeah, only look for 802.11n level speeds
<karlp> mostly just to be a config interface
<apritzel> then it should be definitely good, and it would be really plug&play, just make sure to enable that USB port
<smaeul> I would think the benefit of SDIO is power consumption: lower supply voltage, lower I/O voltage, out-of-band interrupt line, 32 kHz clock line, etc.
<apritzel> smaeul: for on-board USB you can use HSIC, which would give you some of those advantages as well
<apritzel> smaeul: but yeah, power saving and maybe more fine grained control (both a pro and a con) is a plus for SDIO
qschulz has quit [Read error: Connection reset by peer]
<smaeul> apritzel: true. interestingly, it appears some modules support both SDIO and HSIC
<smaeul> unless I'm misreading and they just offer the same chip in SDIO/HSIC/PCIe variants
<apritzel> smaeul: I have seen both, I think
<apritzel> smaeul: sometimes they want to cover the huge USB pen
<apritzel> device style market as well
qschulz has joined #linux-sunxi