00:34
zibolo has quit [Ping timeout: 246 seconds]
00:34
zibolo has joined #u-boot
00:47
teejay has quit [Ping timeout: 256 seconds]
00:53
<
macromorgan >
so is boot.scr booting not a thing anymore, or am I just being thick?
00:56
<
sjg1 >
apalos: Have you ever implemented suspend/resume? There is a firmware component
00:57
<
sjg1 >
If you change what tpm_init() does, we have no way to do what tpm init currently does
00:57
<
sjg1 >
apalos: When we agreed on the auto-start thing I expected you to use that in a command. So please explain why you don't want to do that? It seems to solve your problem and avoids creating any others
01:17
apritzel_ has quit [Ping timeout: 265 seconds]
01:29
goliath has quit [Quit: SIGSEGV]
01:49
teejay has joined #u-boot
02:00
thopiekar has quit [Ping timeout: 256 seconds]
02:01
thopiekar has joined #u-boot
02:16
alpernebbi has quit [Ping timeout: 256 seconds]
02:18
naoki has joined #u-boot
02:20
alpernebbi has joined #u-boot
02:55
prabhakarlad has quit [Quit: Client closed]
03:01
Wouter0100670440 has joined #u-boot
03:10
mmu_man has quit [Ping timeout: 264 seconds]
04:16
vagrantc has joined #u-boot
04:24
naoki has quit [Quit: naoki]
04:30
macromorgan has quit [Read error: Connection reset by peer]
05:04
teejay_ has joined #u-boot
05:07
teejay has quit [Ping timeout: 240 seconds]
05:27
ladis has quit [Quit: Leaving]
05:33
<
apalos >
sjg1: what firmware component is there to implement?
05:33
<
apalos >
Unless you suspend on the OS and then suddenly need to resume in the firmware,
05:34
<
apalos >
which in any case is not supported in any board and as i pasted, even the coral book does force the tpm to startup
05:34
<
apalos >
and doesnt even care about resume.
05:35
<
apalos >
and as far as 'what tpm init already does', I am still waiting for a single file which it does something meaningfull and is used on it's own
05:35
<
apalos >
I am sorry, i cant play the guessing game here.
05:35
<
apalos >
If you have something you use tpm init internally there's not much I can do about it
05:36
<
apalos >
grepping 'tpm init', 'tpm2 init' or tpm_init, verifies what I am saying. That this command us never used alone
05:36
<
apalos >
So i'll send a v2 fixinf the config file on coral but that's the best i can do
05:51
vagrantc has quit [Quit: leaving]
06:03
wooosaiiii has quit [Quit: wooosaiiii]
06:03
wooosaiiii has joined #u-boot
06:14
monstr has joined #u-boot
06:16
ikarso has joined #u-boot
06:19
guillaume_g has joined #u-boot
06:24
pbergin has quit [Ping timeout: 246 seconds]
06:27
frieder has joined #u-boot
06:38
runcom has joined #u-boot
06:44
runcom has quit [Ping timeout: 265 seconds]
06:48
mncheck has joined #u-boot
06:49
mckoan|away is now known as mckoan
06:50
<
apalos >
sjg1: unless 'by the firmware' you mean platform firmware that is responsible for supsend/resume stages, e.g PSCI
06:51
<
apalos >
But even in that case, u-boot is not running anymore, so it's irrelevant
07:09
<
apalos >
and maybe not even PSCI, that's for CPU states iirc. Some 'special' firmware that gets triggered on PM
07:10
<
apalos >
and automatically suspends/resumes the TPM, but that's not mandatory and it's certianly not u-boots job
07:10
<
apalos >
that is for a special firmware that is tied to PM, not uboot
07:39
ldevulder has joined #u-boot
07:45
flyback has quit [Ping timeout: 260 seconds]
07:50
m5zs7k has quit [Ping timeout: 240 seconds]
07:52
sszy has joined #u-boot
07:55
m5zs7k has joined #u-boot
07:58
flyback has joined #u-boot
08:09
camus has quit [Read error: Connection reset by peer]
08:09
camus1 has joined #u-boot
08:11
camus1 is now known as camus
08:33
rockosov has joined #u-boot
08:41
pbergin has joined #u-boot
08:49
camus has quit [Quit: camus]
08:50
camus has joined #u-boot
08:50
camus has quit [Client Quit]
08:51
camus has joined #u-boot
08:51
camus has quit [Client Quit]
08:54
apritzel_ has joined #u-boot
08:54
camus has joined #u-boot
09:07
matthias_bgg has joined #u-boot
09:17
alan_o has quit [Ping timeout: 240 seconds]
09:18
alan_o has joined #u-boot
09:24
eloy has quit [Quit: eloy]
09:27
eloy has joined #u-boot
09:32
apritzel_ has quit [Ping timeout: 240 seconds]
09:48
d-s-e has joined #u-boot
09:54
RecursiveG has joined #u-boot
09:55
slobodan has joined #u-boot
10:00
prabhakarlad has joined #u-boot
10:12
mmu_man has joined #u-boot
10:29
goliath has joined #u-boot
10:43
rockosov has quit [Ping timeout: 240 seconds]
10:45
rockosov has joined #u-boot
11:18
d-s-e has quit [Ping timeout: 246 seconds]
11:23
zibolo has quit [Read error: Connection reset by peer]
11:26
Wouter0100670440 has joined #u-boot
11:50
antaresgades has joined #u-boot
11:52
<
antaresgades >
Hello all. This a newbie question I guess. I'm trying no pxe boot a Rockpi 4 device. I am susccessful setting up tftp and nfs server and stuff, and even able to boot. However, I have to give uboot the commands dhcp pxe get and pxe boot in every single boot. How could I override this?
12:19
<
apalos >
antaresgades: there an env variable called 'bootcmd'
12:19
<
apalos >
do a printenv bootcmd
12:20
urja has quit [Read error: Connection reset by peer]
12:20
<
apalos >
You can then change it with setenv bootcmd 'your new command'
12:20
<
apalos >
Tartarus: I am still looking at the UA stuff,
12:20
<
apalos >
Basically gcc does a better job that clang atm
12:20
<
apalos >
I think clang disregards the outer struct alignment
12:20
<
apalos >
which in our case is any byte offset
12:21
<
apalos >
gcc has 2 flags instead of 1 and does take into account the outer struct alignment
12:21
<
apalos >
and the error report is much more comprehensive
12:22
<
apalos >
I just need to be sure if silencing it wont cause us any pain in the future
12:22
<
apalos >
But do note that clang correctly spots an error if you use a
*member* of that struct as a pointer to a function
12:22
<
apalos >
Beecause the calee at that point assumes the ptr is aligned and things will colorfully blow up :>
12:22
<
apalos >
and it does that even without -Wunaligned-access
12:24
<
antaresgades >
@apalos Well I tried that but i get
12:24
<
antaresgades >
Saving Environment to MMC... Card did not respond to voltage select! : -110
12:24
<
antaresgades >
No block device
12:24
<
antaresgades >
Failed (1)
12:24
<
apalos >
yea, so the env is supposed to be saved in an mmc, but you dont have one
12:24
<
apalos >
You either inster one, or recompile u-boot and change your default bootcmd
12:25
<
apalos >
CONFIG_BOOTCOMMAND='what you need'
12:26
<
antaresgades >
I have a SD card (I guessed it was=mmc. However, is it not possible to load it from a file in the system?
12:27
<
apalos >
there's config options as well on where the env should be stored
12:29
<
antaresgades >
Yes but now it should be stored in some place. is it compiled inside uboot image/executable/whatever and thus inaccessible?
12:30
<
apalos >
i am not following
12:36
<
Tartarus >
apalos: file a clang bug?
12:37
urja has joined #u-boot
12:41
d-s-e has joined #u-boot
12:42
<
apalos >
Tartarus: I am not sure it's a clang bug
12:42
<
apalos >
they both warn for the internal placement, the fact that clang disregards the outer alignment is 'intentional'
12:44
<
apalos >
/ TODO: Takes no account the alignment of the outer struct :>
12:44
<
apalos >
but I think the compiler is right here
12:45
<
apalos >
You define a member that you explicitly request to be 4b aligned
12:45
<
apalos >
and then you dont honor that
12:45
<
apalos >
So i'll backpaddle, I dont think we should silence it, instead we should convert the guid there to a char array
12:45
<
apalos >
(as my patch originally did), but let me search a bit more
12:50
mncheck has quit [Remote host closed the connection]
12:51
mncheck has joined #u-boot
13:39
<
apalos >
xypron: what about getting rid of 'aligned(4)' entirely?
13:39
<
apalos >
I mean we could define efi_guid_t as non aligned which should be fine
13:39
<
apalos >
we arent breaking the spec, and we are also protecting against someone in the future asking a ptr of that efi_guid_t to be passed in a function
13:40
<
apalos >
in which case that's definitely an unaligned access and we
*will* blow up on armv7
13:41
antaresgades has quit [Quit: Client closed]
13:42
<
apalos >
xypron: we just need to make sure, that nothing breaks wrt to alignof() etc on runtime services,
13:42
<
apalos >
But we can do that relatively easy
13:44
<
xypron >
Which assumption may an EFI binary make about the alignment of GUIDs? Can an arbitrary EFI binary break due to incorrect alignement?
13:44
<
apalos >
yea exactly
13:44
<
apalos >
let me do some tests and i'll let you know
13:45
<
xypron >
If some binary will not run anymore because we misalign GUIDs, we have a problem.
13:46
<
xypron >
E.g. a binary might use the lowest two bits of the address for some internal use and assume that setting them to zero returns a valid GUID pointer again.
13:49
<
xypron >
UEFI spec 2.10 p. 163 has the definition of EFI_GUID and that contains UINT32.
13:49
<
xypron >
If you want to get rid of the aligned, you would have to change our defintion of GUIDs to be char[16].
13:53
<
apalos >
anyway, let me stare at it a bit more, but i think we can get rid of the align(4)
13:54
<
apalos >
commit 1dd705cf9903 is what I had in mind
13:54
<
apalos >
But I'll have a close look :>
14:23
mmu_man has quit [Ping timeout: 264 seconds]
14:26
Wouter0100670440 has joined #u-boot
14:49
<
apalos >
xypron: yea that won't work, took a closer look
14:50
<
apalos >
some assumption on offsetof() will change if we do that
15:02
mckoan is now known as mckoan|away
15:03
monstr has quit [Remote host closed the connection]
15:19
mmu_man has joined #u-boot
15:27
runcom has joined #u-boot
15:33
ikarso has quit [Quit: Connection closed for inactivity]
15:52
<
apalos >
yea xypron so to elaborate more,
15:52
<
apalos >
We cant remove the alignment of efi_guid_t
15:52
<
apalos >
One obvious point where this breaks is capsule updates
15:53
<
apalos >
struct efi_firmware_image_descriptor is not packed, and the first two members are
15:53
<
apalos >
struct efi_firmware_image_descriptor {
15:53
<
apalos >
2048 u8 image_index;
15:53
<
apalos >
2049 efi_guid_t image_type_id;
15:53
<
apalos >
EFI applications trying to do capsule update, calculate the size with offsetof(struct efi_firmware_image_descriptor, image_type_id)
15:54
<
apalos >
with aligned(4) that's 4, if you remove the alignment it's 2....
15:54
<
apalos >
So that break the whole erst reporting.... yaaaay '''fun''''
15:56
runcom has quit [Remote host closed the connection]
15:58
runcom has joined #u-boot
15:59
<
apalos >
xypron: how about papering over the problem right now until we get some feedback from the UEFI committee?
15:59
<
apalos >
We can apply Toms patch + a huge comment explaining theproblem and silence the warning for now
15:59
<
apalos >
Besides it's on an EFI keybord communication protocol, I doubt we'll ever use that thing in practice :>
16:02
runcom has quit [Ping timeout: 240 seconds]
16:04
<
apalos >
either silence it or convert it to a char[16], I think the latter is better since it wont break anything on that protocol,
16:04
<
apalos >
We'll just end up with a weird efi guid struct member, but I'll add a comment on that
16:09
prabhakarlad has quit [Quit: Client closed]
16:19
guillaume_g has quit [Quit: Konversation terminated!]
16:21
stefanro has quit [Quit: Leaving.]
16:24
persmule has quit [Ping timeout: 240 seconds]
16:26
runcom has joined #u-boot
16:37
mmu_man has quit [Ping timeout: 268 seconds]
16:39
persmule has joined #u-boot
16:56
vagrantc has joined #u-boot
16:57
mmu_man has joined #u-boot
17:04
runcom has quit [Ping timeout: 240 seconds]
17:08
d-s-e has quit [Quit: Konversation terminated!]
17:13
Leopold has quit [Ping timeout: 265 seconds]
17:13
runcom has joined #u-boot
17:13
Leopold has joined #u-boot
17:18
runcom has quit [Ping timeout: 248 seconds]
17:23
ldevulder_ has joined #u-boot
17:25
ldevulder has quit [Ping timeout: 265 seconds]
17:28
Net147 has quit [Ping timeout: 260 seconds]
17:41
matthias_bgg has quit [Quit: Leaving]
17:49
Net147 has joined #u-boot
17:49
Net147 has quit [Changing host]
17:49
Net147 has joined #u-boot
18:18
runcom has joined #u-boot
18:28
slobodan has quit [Quit: Leaving]
18:36
Wouter0100670440 has joined #u-boot
18:39
stipa_ has joined #u-boot
18:39
___nick___ has joined #u-boot
18:40
stipa has quit [Ping timeout: 260 seconds]
18:41
stipa_ is now known as stipa
18:48
apritzel_ has joined #u-boot
19:02
rvalue has quit [Ping timeout: 256 seconds]
19:09
rvalue has joined #u-boot
19:10
runcom has quit [Ping timeout: 240 seconds]
19:10
runcom has joined #u-boot
19:15
runcom has quit [Ping timeout: 240 seconds]
19:22
___nick___ has joined #u-boot
19:25
___nick___ has quit [Client Quit]
19:27
___nick___ has joined #u-boot
19:35
runcom has joined #u-boot
20:04
___nick___ has quit [Ping timeout: 256 seconds]
20:24
runcom has quit [Ping timeout: 240 seconds]
20:34
wkawka has joined #u-boot
20:50
ldevulder_ has quit [Quit: Leaving]
21:04
wyre has joined #u-boot
21:08
macromorgan has joined #u-boot
21:20
wkawka has quit [Quit: Client closed]
21:37
frieder has quit [Remote host closed the connection]
21:52
pbergin has quit [Quit: Leaving]
22:04
wkawka has joined #u-boot
22:05
wyre has joined #u-boot
22:06
wyre has quit [Read error: Connection reset by peer]
22:07
wyre has joined #u-boot
22:11
wyre has quit [Read error: Connection reset by peer]
22:11
wyre has joined #u-boot
22:12
wyre has quit [Remote host closed the connection]
22:13
wyre has joined #u-boot
23:22
mncheck has quit [Ping timeout: 246 seconds]
23:23
wkawka has quit [Quit: Client closed]
23:56
apritzel_ has quit [Ping timeout: 264 seconds]
23:58
vagrantc has quit [Quit: leaving]