01:03
dmh has quit [Changing host]
01:03
dmh has joined #u-boot
01:30
jclsn7 has quit [Ping timeout: 240 seconds]
01:30
jclsn7 has joined #u-boot
01:32
qschulz has quit [Quit: qschulz]
01:35
qschulz has joined #u-boot
01:38
jclsn7 has quit [Ping timeout: 272 seconds]
01:43
jclsn7 has joined #u-boot
01:50
jclsn7 has quit [Ping timeout: 256 seconds]
01:55
jclsn7 has joined #u-boot
02:07
camus1 has joined #u-boot
02:08
camus has quit [Ping timeout: 256 seconds]
02:08
camus1 is now known as camus
02:31
thopiekar has quit [Ping timeout: 256 seconds]
02:31
thopiekar has joined #u-boot
02:31
camus1 has joined #u-boot
02:32
camus has quit [Remote host closed the connection]
02:32
camus1 is now known as camus
02:37
jclsn7 has quit [Ping timeout: 240 seconds]
02:44
jclsn7 has joined #u-boot
03:12
jclsn7 has quit [Ping timeout: 256 seconds]
03:18
jclsn7 has joined #u-boot
03:27
jclsn7 has quit [Ping timeout: 256 seconds]
03:34
jclsn7 has joined #u-boot
04:04
jclsn7 has quit [Ping timeout: 256 seconds]
04:10
jclsn7 has joined #u-boot
04:33
vagrantc has quit [Quit: leaving]
05:02
camus has quit [Remote host closed the connection]
05:03
camus has joined #u-boot
06:09
sbach has quit [Read error: Connection reset by peer]
06:11
sbach has joined #u-boot
08:08
Thorn has quit [Ping timeout: 256 seconds]
08:09
redbrain has joined #u-boot
08:11
Thorn has joined #u-boot
08:41
redbrain has quit [Quit: leaving]
08:42
redbrain has joined #u-boot
09:10
mmu_man has joined #u-boot
09:16
mmu_man has quit [Remote host closed the connection]
10:18
sughosh has joined #u-boot
10:22
sughosh has quit [Remote host closed the connection]
11:48
akaWolf has joined #u-boot
12:08
GNUtoo has quit [Remote host closed the connection]
12:08
GNUtoo has joined #u-boot
12:23
<
milkylainen_ >
sjg1: binutils 2.38 is released. Contains the fix to ld where ld ended up with a segv on that strange linker script.
14:01
camus1 has joined #u-boot
14:03
camus has quit [Ping timeout: 256 seconds]
14:03
camus1 is now known as camus
14:12
mripard has quit [Ping timeout: 250 seconds]
14:26
camus1 has joined #u-boot
14:28
camus has quit [Ping timeout: 256 seconds]
14:28
camus1 is now known as camus
14:41
mripard has joined #u-boot
16:23
camus1 has joined #u-boot
16:25
camus has quit [Read error: Connection reset by peer]
16:25
camus1 is now known as camus
17:39
vagrantc has joined #u-boot
18:17
mmu_man has joined #u-boot
18:58
mripard has quit [Ping timeout: 256 seconds]
19:09
stefanct has quit [Ping timeout: 268 seconds]
19:22
stefanct has joined #u-boot
19:45
redbrain has quit [Ping timeout: 272 seconds]
19:59
mripard has joined #u-boot
20:09
grgy has joined #u-boot
20:25
mthall has quit [Ping timeout: 256 seconds]
20:26
grgy has joined #u-boot
20:27
grgy has quit [Client Quit]
20:28
mthall has joined #u-boot
20:36
grgy has joined #u-boot
21:13
<
samueldr >
when scripting an mmc write, how should I discover the mmc block size to provide count?
21:14
<
samueldr >
I have $filesize as a length in bytes, from a load already, and setexpr available
21:15
<
samueldr >
AFAICT I'm only missing a way to get the block size of the target device
21:29
mthall has quit [Ping timeout: 256 seconds]
21:31
mthall has joined #u-boot
21:39
<
marex >
samueldr: setexpr blkcnt $loadaddr / 0x200
21:40
<
samueldr >
sorry, I didn't mean "how do I get the block count", that is already done and hardcoded with 0x200
21:40
<
samueldr >
my issue is with hardcoding 0x200
21:40
<
samueldr >
which AFAICT the actual block size used for mmc write is actually read from the eMMC device
21:41
<
samueldr >
other persons told me "it should be fine to hardcode 512 byte block sizes", and I mostly agree...
21:41
<
samueldr >
... except that I don't have strong guarantees it's fine
21:43
<
marex >
samueldr: doesnt the mmc subsystem always operate on 512B blocks ?
21:43
<
samueldr >
I couldn't find any confirmation
21:43
<
samueldr >
if it does, then it's easy enough
21:44
<
marex >
samueldr: have you had a look into the code (it is available) ?
21:44
<
samueldr >
all upstream, so yeah available, I'm digging again now
21:44
<
samueldr >
(in parallel while asking)
21:46
<
milkylainen_ >
erase groups are different from writes?
21:46
<
marex >
milkylainen_: that'd be mmc erase subcommand
21:47
<
milkylainen_ >
Yes, that's what I'm trying to say.
21:47
<
samueldr >
it will be clamped to 512, at least
21:47
<
samueldr >
but it could be smaller
21:47
<
milkylainen_ >
You can "erase" 512b blocks or erase groups.
21:48
<
milkylainen_ >
smaller write block tnat 512?
21:48
<
samueldr >
though I guess it's already good to see now that it's limited to 512, but a partial write to the device could put the user in an awkward situation
21:48
<
milkylainen_ >
sorry. erase I meant.
21:49
<
milkylainen_ >
But what is it you're trying to do? Speed up erasing?
21:49
<
samueldr >
scripting a write
21:49
<
samueldr >
I have a `load` operating giving me `$filesize` in bytes
21:50
<
samueldr >
it's trivial with `setexpr` to get the number of blocks to write
21:50
<
samueldr >
except for the fact that AFAICT the actual block size can't be discovered
21:57
<
milkylainen_ >
mmc_partconf_print
21:57
<
milkylainen_ >
if(varname)
21:57
<
milkylainen_ >
env_set_hex(varname, part);
21:57
<
milkylainen_ >
maybe contains something to access the ext_csd.
21:58
<
milkylainen_ >
maybe just the partition.
21:59
<
milkylainen_ >
not so useful.
21:59
<
milkylainen_ >
Easily tweaked though.
22:00
<
samueldr >
I think JESD84-A43 has us covered
22:00
<
samueldr >
TLDR, read access of 512 bytes is mandatory
22:01
<
samueldr >
and the block size value is clamped at 512
22:01
<
samueldr >
only worry is why does the standard allow an invalid maximum read length (too small)?
22:02
<
samueldr >
(sams verbiage for write)
23:03
Zapy has quit [Ping timeout: 240 seconds]
23:14
prabhakarlad has joined #u-boot
23:39
stefanct has quit [Ping timeout: 256 seconds]
23:39
stefanct has joined #u-boot
23:40
cpackham[m] has quit [Ping timeout: 250 seconds]
23:40
mvaittin has quit [Ping timeout: 250 seconds]
23:51
mmu_man has quit [Ping timeout: 272 seconds]
23:55
cpackham[m] has joined #u-boot
23:58
mvaittin has joined #u-boot