<chewitt>
I have the vendor u-boot source, but for some reason I'm failing to build clean fips and the existing ones in the tarball aren't working for me
<f_>
mm..sure
<chewitt>
the board does boot using the Khadas VIM fips, but then things seem to go bad
<f_>
chewitt: hmm, which soc generation
<f_>
gxl?
<chewitt>
GXM
<chewitt>
(which is GXL)
<f_>
so basically gxl, firmware-wise :)
<f_>
acsbaby only supports S905 acs structs, but it shouldn't be hard to support gxl
<f_>
I'll do that, one second..
<chewitt>
can it also support a /dev/mmcblkX device as input?
rockosov has quit [Ping timeout: 264 seconds]
<f_>
chewitt: u-boot.bin input you mean?
<f_>
with BL2+FIP?
<chewitt>
yes
<f_>
Yes, normally.
<f_>
Theoretically, I mean.
<f_>
but..uhhh else errx(EINVAL, "types other than \"acs\" aren't supported yet");
rockosov has joined #linux-amlogic
<chewitt>
the tool I am ultimately seeking is something that I can point at an emmc device (with vendor u-boot) to dump the stuff needed for fip signing
<f_>
yeah, would be nice
<chewitt>
the important bits seem to be acs.bin and bl301.bin as those are always 'tweaked' for a particular box
<chewitt>
the former with timing data for whatever low-bin DDR3 is on the board
<f_>
If you just want the binaries you can dd them out.
<chewitt>
the later with remote wake stuff
<chewitt>
IR remote power on etc.
<chewitt>
not NICs
<f_>
chewitt: can I have a dump of your BL2+FIP on that box?
<chewitt>
how many sectors to dump?
<chewitt>
i.e. tell me the dd command to run
<f_>
about 4K is enough
<f_>
Preferably you can just dump mmcblkXbootX
<f_>
with dd if=/dev/mmcblkXbootX of=mmcblkXbootXdump.bin
<chewitt>
I'm booting from SD card at the moment with emmc wiped
<chewitt>
and I never install to those boot devices
<chewitt>
(not sure what those are about really..)
<f_>
these boot devices also have BL2+FIP
<f_>
But are you booting vendor u-boot from SD?
naoki has joined #linux-amlogic
<chewitt>
no, currently experimenting with mainline u-boot
<chewitt>
I'm currently tracking down the vendor firmware(s) needed to restore that
<f_>
ah
<f_>
so I guess this dump is using VIM fip binaries?
naoki has quit [Client Quit]
luka177 has joined #linux-amlogic
<chewitt>
correct
<f_>
sure
naoki has joined #linux-amlogic
naoki has quit [Client Quit]
<chewitt>
sweet .. I finally got the Amlogic card maker tool to work under Win11/Fusion
<chewitt>
now I can reflash the box from an SD card
<chewitt>
the normal burning tool app never works under Fusion as the macOS side never sees something connected to the USB ports, so never prompts to pass that through to Windows
<f_>
haha
<f_>
When you're done, can you dump BL2+FIP?
<f_>
The box's original ones are the ones I'm interested in.