Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2021.10 is OUT / Merge Window is OPEN until 25 October 2021 / Release v2022.01 is scheduled for 10 January 2022 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
sdfgsdfg has quit [Quit: ZzzZ]
aggi has joined #u-boot
<aggi> greetings
<aggi> trying to launch an aarch32 kernel on aarch64 (rk3328); compiled an aarch32 uImage and supplied this to bootm
<aggi> --> "Synchronous Abort" handler, esr 0x02000000
<aggi> launching aarch64 kernels wasn't any problem yet; activated CONFIG_ARM64_SUPPORT_AARCH32=y in uboot config
<aggi> question: is it possible to launch an aarch32 linux kernel from an aarch64 uboot (bl31 atf etc.)??; had not seen anything yet from earlyprintk, nothing..
camus1 has joined #u-boot
camus has quit [Ping timeout: 240 seconds]
camus1 is now known as camus
persmule has quit [Ping timeout: 276 seconds]
persmule has joined #u-boot
samekh_ has joined #u-boot
samekh has quit [Ping timeout: 250 seconds]
sdfgsdfg has joined #u-boot
mmu_man has quit [Ping timeout: 240 seconds]
v0|d has quit [Remote host closed the connection]
thopiekar has quit [Ping timeout: 240 seconds]
thopiekar has joined #u-boot
alchemist_ has joined #u-boot
alchemist has quit [Ping timeout: 256 seconds]
camus has quit [Read error: Connection reset by peer]
camus1 has joined #u-boot
camus1 is now known as camus
taliho has joined #u-boot
camus has quit [Ping timeout: 240 seconds]
camus has joined #u-boot
vagrantc has quit [Quit: leaving]
flyback has quit [Remote host closed the connection]
flyback has joined #u-boot
persmule has quit [Ping timeout: 276 seconds]
persmule has joined #u-boot
SallyAhaj has quit [Quit: Leaving]
SallyAhaj has joined #u-boot
redbrain has joined #u-boot
___nick___ has joined #u-boot
persmule has quit [Ping timeout: 276 seconds]
redbrain has quit [Ping timeout: 245 seconds]
persmule has joined #u-boot
camus has quit [Quit: camus]
persmule has quit [Ping timeout: 276 seconds]
lucaceresoli has joined #u-boot
sdfgsdfg has quit [Quit: ZzzZ]
redbrain has joined #u-boot
lucaceresoli has quit [Ping timeout: 268 seconds]
sdfgsdfg has joined #u-boot
rdo has joined #u-boot
<rdo> Can anybody tell why fw_printenv does not work on my system https://paste.debian.net/1225352/ (Cubox-i, imx6, Debian 11) ?
<marex> rdo: is that u-boot one or libubootenv one ?
<marex> rdo: put fw_env.config into /etc/fw_env.config and make it contain "/dev/mmcblk1 0xfe00 0x2000" only, see if that works
<marex> (drop the block size)
<rdo> That does not help: https://paste.debian.net/1225356/
<rdo> how can I find out if it is u-boot one or libubootenv one ?
<rdo> version tells: U-Boot 2021.01+dfsg-5 (May 23 2021 - 04:32:45 +0000)
<marex> rdo: and you did run 'saveenv' in U-Boot to populate the environment ?
<rdo> yes, I run saveenv
<rdo> I am running libubootenv-tool: /usr/bin/fw_printenv
<marex> rdo: run strace on the tool to see what is it trying to read , whether it accesses the right /dev/mmcblkX
<marex> rdo: also, /dev/mmcblk1 is the correct device with the U-Boot environment, right ?
<marex> the /dev/mmcblkX allocation is first-come-first-serve, so if you have a slow card, the order can be reversed
<rdo> There is only /dev/mmcblk1 not sure why it is not using /dev/mmcblk0 for the device.
mmu_man has joined #u-boot
<rdo> output of strace: https://paste.debian.net/1225359/
<rdo> I think the addresses are wrong. I.e. the content of the env is not what is expected
<marex> rdo: _llseek(4, 65024, [65024], SEEK_SET) = 0 this ?
<marex> rdo: the tool reads 8 kiB from mmcblk1 offset 0xfe00
<marex> rdo: you can dd if=/dev/mmcblk1 of=/tmp/env.test bs=1 skip=65024 count=8192 and inspect /tmp/env.test and see if it contains valid env
<marex> also, do you use redundant env by any chance ?
<aggi> question: is it possible to launch an aarch32 linux kernel from an aarch64 uboot??
<rdo> No redundant env: # CONFIG_SYS_REDUNDAND_ENVIRONMENT is not set
<rdo> This is a hexdump of env.test: https://paste.debian.net/1225361/
<rdo> I don't think this is the correct address
<rdo> I read: If offset is positive (the usual case), it is treated as relative to the start of the MMC partition.
<rdo> CONFIG_SYS_MMC_ENV_PART=0 .... but what is partition zero?
<rdo> Is that the /dev/mmcblk1 itself?
<rdo> There is no /dev/mmcblk1p0, it starts with /dev/mmcblk1p1
sdfgsdfg has quit [Quit: ZzzZ]
<rdo> So the question comes down to: where does u-boot read/write the environment with my u-boot config: https://paste.debian.net/1225366/
v0|d has joined #u-boot
<marex> rdo: the env magic is at offset 0x1600 in the hexdump
persmule has joined #u-boot
camus has joined #u-boot
camus has quit [Ping timeout: 250 seconds]
<rdo> Is there a way in u-boot to dump the address of the env? I assume there is a base address somewhere which I am missing.
<rdo> In the config I see CONFIG_SYS_TEXT_BASE=0x17800000 (376 MB) but that seems to big for me.
<marex> rdo: TEXT_BASE is the link address of U-Boot (where it starts in DRAM, before relocation)
<marex> the ENV_OFFSET is just a macro, it gets inlined into the code by the compiler, it isn't printed anywhere afterward
<marex> could it be your env needs to be in a partition ?
<marex> mmcblk1p1 or so ?
<marex> try running fdisk -l /dev/mmcblk1 and see if that 0x1600 offset is by any chance the offset of first partition or so (remember , 0x1600 is in BYTES, fdisk might print the offsets in 512 B sectors)
<rdo> I would expect it somewhere below 16M
<rdo> Which 0x1600? 0xfe00 was the offset.
<marex> rdo: look at the mmcblk1 hexdump, there is a magic at 0x1600 offset in that hexdump, thats the start of env
<marex> $ grep -H ENV_OFF configs/*cubox*
<marex> configs/mx6cuboxi_defconfig:CONFIG_ENV_OFFSET=0xFE000
<marex> the env offset is 0xfe000 ... three zeroes, not two
kallisti5 has quit [Ping timeout: 240 seconds]
kallisti5 has joined #u-boot
<rdo> Thank you, indeed that made it work immediately. :-)))))))))))
<rdo> Just the last 8k below on 1M
lucaceresoli has joined #u-boot
<rdo> Is there an easy way to clear the environment?
<rdo> dd of=/dev/mmcblk1 if=/dev/zero bs=1 skip=1040384 count=8192 would zero it out, but also the CRC32 is then probably invalid.
vagrantc has joined #u-boot
lucaceresoli has quit [Quit: Leaving]
redbrain has quit [Ping timeout: 240 seconds]
<marex> rdo: good
<marex> rdo: clear it how ?
<marex> rdo: you can generate an empty environment and write in place of the old one , look at u-boot tools/mkenvimage
<marex> that would allow you to generate env image from text file
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
taliho has quit [Ping timeout: 268 seconds]
taliho has joined #u-boot
alchemist_ has quit [Quit: Leaving]
alchemist has joined #u-boot
alchemist_ has joined #u-boot
sdfgsdfg has joined #u-boot
alchemist has quit [Ping timeout: 250 seconds]
persmule has quit [Ping timeout: 276 seconds]
___nick___ has quit [Ping timeout: 268 seconds]
persmule has joined #u-boot
sdfgsdfg has quit [Quit: ZzzZ]
sdfgsdfg has joined #u-boot
mmu_man has quit [Ping timeout: 245 seconds]
mmu_man has joined #u-boot
sdfgsdfg has quit [Quit: ZzzZ]
mmu_man has quit [Read error: Connection reset by peer]
persmule has quit [Ping timeout: 276 seconds]
mmu_man has joined #u-boot
persmule has joined #u-boot
persmule has quit [Ping timeout: 276 seconds]
crb_ has joined #u-boot
sakman_ has joined #u-boot
tlwoerner_ has joined #u-boot
adeepv- has joined #u-boot
persmule has joined #u-boot
Net147_ has joined #u-boot
wyre_ has joined #u-boot
apalos- has joined #u-boot
sakman has quit [*.net *.split]
EdSwarthout has quit [*.net *.split]
adeepv has quit [*.net *.split]
Net147 has quit [*.net *.split]
tlwoerner has quit [*.net *.split]
crb has quit [*.net *.split]
mckoan|away has quit [*.net *.split]
apalos has quit [*.net *.split]
jybz has quit [*.net *.split]
wyre has quit [*.net *.split]
kernelspace has quit [*.net *.split]
mckoan|away has joined #u-boot
jybz has joined #u-boot
kernelspace has joined #u-boot
EdSwarthout has joined #u-boot
sdfgsdfg has joined #u-boot